User`s manual

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: