mikroC - C Compiler for Microchip PIC microcontrollers
Cf_Write_Sector
Prototype
void Cf_Write_Sector(int sector_number, unsigned short *buffer);
Description
Writes
Requires
CF must be initialized for file write operation. See
Example
Cf_Write_Sector(22, data);
Cf_Set_File_Date
Prototype
void Cf_Set_File_Date(int year, char month,day,hours,min,sec);
Description
Writes system timestamp to a file. Use this routine before finalizing a file; otherwise,
file will be appended a random timestamp.
Requires
CF must be initialized for file write operation. See
Example
// April 1st 2005, 18:07:00
Cf_Set_File_Date(2005,4,1,18,7,0);
Cf_File_Write_Complete
Prototype
void Cf_File_Write_Complete(char filename[8], char *extension);
Description
Finalizes writing to file. Upon all data has be written to file, use this function to close
the file and make it readable. Parameter
Requires
CF must be initialized for file write operation. See
Example
Cf_File_Write_Complete("MY_FILE1","txt");
page
168
from buffer to CF sector at
value
MikroElektronika: Development tools - Books - Compilers
.
sector_number
.
Cf_Init
Cf_File_Write_Init
must be 8 chars long in uppercase.
filename
Cf_File_Write_Init
mikroC
making it simple...
.
.
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?