mikroElektronika PIC Microcontrollers PIC12 User Manual page 171

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
Cf_Init
Prototype
void Cf_Init(char *ctrlport, char *dataport);
Description
Initializes ports appropriately for communication with CF card. Specify two different
ports:
Example
Cf_Init(&PORTB, &PORTD);
Cf_Detect
Prototype
char Cf_Detect(void);
Returns
Returns 1 if CF is present, otherwise returns 0.
Description
Checks for presence of CF card on
Example
// Wait until CF card is inserted:
do nop; while (Cf_Detect() == 0);
Cf_Total_Size
Prototype
unsigned long Cf_Total_Size(void);
Returns
Card size in kilobytes.
Description
Returns size of Compact Flash card in kilobytes.
Requires
Ports must be initialized. See
Example
size = Cf_Total_Size();
MikroElektronika: Development tools - Books - Compilers
and
ctrlport
dataport
Cf_Init
mikroC - C Compiler for Microchip PIC microcontrollers
.
.
ctrlport
.
page
163

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents