lindodv
Junior Member level 1
Hi guys, I have two problems:
1) LEDs are not blinking.
2) I can see a lot of errors in the simulator(Protus)
how can I solve this Problems with EEPROM?
I'm using mikroc for PIC.
thanks a lot.
1) LEDs are not blinking.
2) I can see a lot of errors in the simulator(Protus)
how can I solve this Problems with EEPROM?
I'm using mikroc for PIC.
thanks a lot.
Code:
void main(){
PORTC = 0;
TRISC = 0;
while (1) {
EEPROM_Write(2,0b11110000); // Write some data to EEPROM address 2
EEPROM_Write(3,0b00001111); // Write some data to EEPROM address 3
PORTC = EEPROM_Read(2); // Read data from EEPROM address 2 and display it on PORTC
Delay_ms(1000);
PORTC = EEPROM_Read(3); // Read data from EEPROM address 3 and display it on PORTC
Delay_ms(1000);
}
}
Last edited by a moderator: