I have successfully connected a CF-Card with a PIC16F877A. This was my first test in microC 2.0.0.3:
Code: Select all
while (CF_Detect() == 0) ;
Delay_ms(1000);
CF_Read_Init(528,1);
for (i=0; i<=511; i++) {
PORTC = CF_Read_Byte();
Delay_ms(100);
}
But now I am searching some examples for using Cf_Find_File to select a certain file on the CF by its name, determine the length of the file and read the data.
The library examples in the microC handbook only describe how to write 5 text files but not how to read them.
I know that the 16F877A has not enough RAM. Therefore tomorrow I will get the 18F452 and the 18F458 for testing.
Regards, Gunther