Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure CF_WRITE_INIT(dim byref CtrlPort as byte, dim byref DataPort as
byte, dim Adr as longint, dim SectCnt as byte)
Description The procedure initializes CF card for writing. Ports need to be initialized.
Parameters:
CtrlPort - control port,
DataPort - data port,
k - specifies sector address from where data will be written,
SectCnt - parameter is total number of sectors prepared for write.
Example
CF_Write_Init(PORTB, PORTD, 590, 1) ' Initialize write at sector address 590
' of 1 sector (512 bytes)
5.2.5.4 CF_Write_Byte – Writes 1 byte to CF
Prototype
sub procedure CF_WRITE_BYTE(dim byref CtrlPort as byte, dim byref DataPort as
byte, dim BData as byte)
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (44 sur 112)05/11/2004 02:20:52