TeoYX WROTE:Hi all,
I encounter the real time clock problem with change value and clock running again. I use the same program and same circuit i tested OK last time but now it cannot work totally. The LCD display all 0 and unable to save the value i changed. The clock also not running at all no matter how long i power ON it.
Does anyone face this problem as me before? How do i troubleshooting further? I did check connection and it is correct. Program able to be compiled with no error as well. I totally lose in this point... Please help if anyone know.
Hope can get any suggestion. Thanks a lot.
Your circuit was working once and doesnt work now, correct? To do trouble-shooting, you have to isolate the fault part by part or block by block.
1. Is you circuit constructed on PCB or breadboard?
2. Is your PIC & LCD confirmed working?
3. If you have a scope or logic probe, you can monitor the SDA & SCL lines. Are there any pulses from PIC to 1307 and vice versa? There should be some activities when the clock is updating the PIC every second or every minute or during the setting of clock.
4. Is the +5V and battery voltage for clock OK?
There are many things you can check besides the software (which I dont suspect as it was working before). The keyword is
ISOLATION of fault....
Allen