ABL electronic PIC12 Personal Computer User Manual


 
MikroElektronika:
Development
tools
-
Books
-
Compilers
16 5
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
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 Cf_Read_Init.
Example
PORTC = Cf_Read_Byte();
// Read byte and display it on PORTC
Cf_Read_Byte
Prototype
void Cf_Write_Init(long address, char sectcnt);
Description Initializes CF card for writing. Parameter address specifies sector address where data
will be stored, and
sectcnt is total number of sectors prepared for write operation.
Requires Ports must be initialized. See Cf_Init.
Example
Cf_Write_Init(590, 1);
Cf_Write_Init
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 Cf_Read_Init.
Example
PORTC = Cf_Read_Word();
// Read word and display it on PORTC
Cf_Read_Word