when I use this piece of code
Code: Select all
Cf_Write_Init(590, 1);
for (i = 0; i < 512; i++)
Cf_Write_Byte(i+11);
Code: Select all
Lcd_Cmd(Lcd_CLEAR);
i=0;
Delay_ms(1000);
Cf_Read_Init(590, 1);
for (i = 0; i < 512; i++) {
size = Cf_Read_Byte();
LCD_Out(1,1, size);
Delay_ms(200);
Lcd_Cmd(Lcd_CLEAR);
IntToStr(i, txt);
LCD_Out(2,2, txt);
Delay_ms(100);
}
The pic is a 18f458 and I'm using 10MHz osc whith OSCS_OFF, BOR_OFF, PWRT_OFF, DEBUG_OFF, WDT_OFF, LVP_OFF .
some idea?