Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
CF_Read_Init(PORTB, PORTD, 590, 1) ' Initialize write at sector address
590
' of 1 sector (512 bytes)
5.2.5.7 CF_Read_Byte – Reads 1 byte from CF
Prototype
sub function CF_READ_BYTE(dim byref CtrlPort as byte, dim byref DataPort
as byte) as byte
Description Function reads 1 byte from Compact Flash. Ports need to be initialized, and CF must be initialized for reading.
Parameters:
CtrlPort - control port,
DataPort - data port
Example
PORTC = CF_Read_Byte(PORTB, PORTD) ' read byte and display on PORTC
5.2.5.8 CF_Read_Word – Reads 1 word from CF
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (47 sur 112)05/11/2004 02:20:52