CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

RTC display stops moving

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lunar



Joined: 06 Oct 2010
Posts: 1
Location: PAK

View user's profile Send private message Visit poster's website AIM Address

RTC display stops moving
PostPosted: Wed Oct 06, 2010 3:33 am     Reply with quote

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.

Please Help

Thanks
temtronic



Joined: 01 Jul 2010
Posts: 9165
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Oct 06, 2010 5:31 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 06, 2010 5:48 am     Reply with quote

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?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group