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 CCS Technical Support

MCP79522 RTC not working

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



Joined: 23 Nov 2013
Posts: 2

View user's profile Send private message Send e-mail

MCP79522 RTC not working
PostPosted: Mon Nov 25, 2013 2:11 am     Reply with quote

I am trying to use MCP79522 with dspic33fj128GP710A controller without success. Able to read and write RTC and ram registers, but RTC not working. Reading the values same as written.

Always writing ST bit (0x80) high along with seconds, but nothing happens to seconds, it stays in the same value.
I am able to enable VBAT, and it maintain the ram values after power reset.

Any help/ suggestion?

Joy
Ttelmah



Joined: 11 Mar 2010
Posts: 19549

View user's profile Send private message

PostPosted: Mon Nov 25, 2013 4:15 am     Reply with quote

That's how it'll behave, if there is a tiny whisker short round the oscillator/crystal pins somewhere, or the crystal is not actually making contact. Oscillator can't start, so none of the time registers change. Have seen this.

Best Wishes
joy.philipz



Joined: 23 Nov 2013
Posts: 2

View user's profile Send private message Send e-mail

MCP79522 RTC not working
PostPosted: Mon Nov 25, 2013 10:16 pm     Reply with quote

Ttelmah wrote:
That's how it'll behave, if there is a tiny whisker short round the oscillator/crystal pins somewhere, or the crystal is not actually making contact. Oscillator can't start, so none of the time registers change. Have seen this.


Thanks for the reply. I have checked crystal, removed and connected again, and not found anything. Will assemble second board and try.

Cheers

Joy
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