MikroElektronika PIC Microcontrollers PIC16 Manuale Utente Pagina 140

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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:
Vedere la pagina 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 171 172

Commenti su questo manuale

Nessun commento