embpic
Advanced Member level 3
- Joined
- May 29, 2013
- Messages
- 742
- Helped
- 80
- Reputation
- 160
- Reaction score
- 77
- Trophy points
- 1,308
- Location
- india
- Activity points
- 5,213
I am getting problem while interfacing EEPROM and 16f876a pic controller.I am using MPLAB X IDE and XC compiler.
I have pulled up SDA and SCL with 4k7 resistor.
and also i use function and after blink port with 0x55 and 0xAA in infinite loop.
If i simply use functions
write_eeprom();
read_eeprom();
then LED doesn't get blink for that much delay it just blink for few part of second.
and if i comment the function then it wait for that much delay.
i have posted code here.
I have pulled up SDA and SCL with 4k7 resistor.
and also i use function and after blink port with 0x55 and 0xAA in infinite loop.
If i simply use functions
write_eeprom();
read_eeprom();
then LED doesn't get blink for that much delay it just blink for few part of second.
and if i comment the function then it wait for that much delay.
i have posted code here.