PCF85063A skipping 31st

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCF85063A skipping 31st

Jump to solution
564 Views
CloudsEder
Contributor I

Hello everyone,

i'm using PCF85063AT and it skips the 31st of most month, even when it has 31 days. It skips it for 5 of the 7 months with 31 days. Only exceptions are march and (i think) august.

Everything else seems to work without problems, even the leap year correction. I've checked the datasheet but couldn't find anything helpful. Maybe anyone had a similar problem or can give me any hint.

Thanks in advance.

0 Kudos
Reply
1 Solution
514 Views
CloudsEder
Contributor I

Hello David,

thanks for the reply. I also hope everything is great with you. Sorry for the late reply.

Turns out it was all my fault and how I processed the time that I read from the PC85063A. The microcontroller I'm using only uses 0-11 for months for the time format and so I wrote this to PCF85063A (0 for January for example). I assume this caused the weird behaviour. I changed it and now it all works perfectly.

Sorry for the confusion.

View solution in original post

0 Kudos
Reply
2 Replies
515 Views
CloudsEder
Contributor I

Hello David,

thanks for the reply. I also hope everything is great with you. Sorry for the late reply.

Turns out it was all my fault and how I processed the time that I read from the PC85063A. The microcontroller I'm using only uses 0-11 for months for the time format and so I wrote this to PCF85063A (0 for January for example). I assume this caused the weird behaviour. I changed it and now it all works perfectly.

Sorry for the confusion.

0 Kudos
Reply
555 Views
diazmarin09
NXP TechSupport
NXP TechSupport

Hello CloudsEder,

I hope all is great with you. Thank you for using the NXP communities.

This is not the expected behavior. Could you please share your device configuration? I mean, the internal registers configuration.

Are you performing the following method to reading the time?

diazmarin09_0-1699473000903.png

 

Are you using the offset register to add or subtract clock correction pulses?

 

Regards,

David