Hello, I am using EASYPIC5(PIC16F877A) and RTC PCF8583 board from mikroElectronica.
I have connected the RTC on portC and display the time on LCD provided on the board. But sometimes the display stops to change and only resumes upon reset.
Any clues what to do or check. I am using the RTC read and write functions provided in the sample codes on mikroe.com, some times the clock display runs fine for 4-5 hours and sometimes it stops to change after 5 minutes.
I'd go to their website and forum to ask for help. You're using mikroe C NOT CCS C compiler !
There could be a hundred reasons why your program doesn't work right and the original manufacturer of the board and software is your best choice.
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed Oct 06, 2010 5:48 am
Without more details it is hard to point out the problem.
Are you using the CCS compiler or Mikroc ?
I had a quick look at the website and the there provided RTC_read.c program and it has a bug:
Code:
while (I2C_Is_Idle() = 0)
asm nop;
The '=' should have been a '==', now it hangs forever.
This error is there 5 times in the code.
For an intermittent problem like yours I would suspect the power supply. Do you still have the problem when running from a battery?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum