User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
136
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
sub procedure CF_WRITE_BYTE(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim BData as byte)
Ports must be initialized, CF must be initialized for write operation (see
CF_WRITE_INIT).
CtrlPort - control port , DataPort - data port , dat - is data byte written to CF.
Write 1 byte to CF. This procedure has effect if writing is previously initialized,
and all 512 bytes are transferred to a buffer.
sub procedure CF_WRITE_WORD(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim WData as word)
Ports must be initialized, CF must be initialized for write operation (see
CF_WRITE_INIT).
CtrlPort - control port , DataPort - data port , dat - is data word written to CF.
Writes 1 word to CF. This procedure has effect if writing is previously initialized,
and all 512 bytes are transferred to a buffer.
sub procedure CF_READ_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 read, SectCnt - parameter is total number of sectors prepared
for read operations.
This procedure initializes CF card for write operation.
CF_WRITE_BYTE
Prototype:
Parameters:
Effects:
Precondition:
CF_WRITE_WORD
Prototype:
Parameters:
Effects:
Precondition:
CF_READ_INIT
Prototype:
Parameters:
Effects:
Precondition: