mikroC
making it simple...
Cf_Read_Byte
Prototype
char Cf_Read_Byte(void);
Returns
Returns byte from CF.
Description
Reads one byte from CF.
Requires
CF must be initialized for read operation. See
Example
PORTC = Cf_Read_Byte();
Cf_Read_Word
Prototype
unsigned Cf_Read_Word (void);
Returns
Returns word (16-bit) from CF.
Description
Reads one word from CF.
Requires
CF must be initialized for read operation. See
Example
PORTC = Cf_Read_Word();
Cf_Write_Init
Prototype
void Cf_Write_Init(long address, char sectcnt);
Description
Initializes CF card for writing. Parameter
will be stored, and
Requires
Ports must be initialized. See
Example
Cf_Write_Init(590, 1);
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
// Read byte and display it on PORTC
// Read word and display it on PORTC
address
is total number of sectors prepared for write operation.
sectcnt
.
Cf_Init
.
Cf_Read_Init
.
Cf_Read_Init
specifies sector address where data
page
165
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?