MikroElektronika PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 140

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 139
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
135
page
sub procedure CF_INIT_PORT(dim byref CtrlPort as byte, dim byref DataPort
as byte)
None.
CtrlPort is control port, DataPort is data port to which CF is attached.
Initializes ports appropriately.
sub function CF_DETECT(dim byref CtrlPort as byte) as byte
CtrlPort must be initialized (call CF_INIT_PORT first).
Check for presence of CF.
Returns TRUE if CF is present, otherwise returns FALSE.
sub procedure CF_WRITE_INIT(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim Adr as longint, dim SectCnt as byte)
Ports must be initialized.
CtrlPort - control port , DataPort - data port , Adr - specifies sector address from
where data will be written, SectCnt - parameter is total number of sectors prepared
for write.
Initializes CF card for write operation.
CF_INIT_PORT
Prototype:
Parameters:
Effects:
Precondition:
CF_DETECT
Prototype:
Effects:
Output:
Precondition:
CF_WRITE_INIT
Prototype:
Parameters:
Effects:
Precondition:
Przeglądanie stron 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag