Ruben Barriuso

PCA8565, error when the date-time is reading

Discussion created by Ruben Barriuso on Sep 18, 2017
Latest reply on Oct 27, 2017 by Ruben Barriuso

Hello all,

 

I have an issue when I read the date-time on PCA8565. If the seconds are from 0 to 0x10 when I are reading, the date and time is correct, but if the seconds are more than 0x10, some register of the data-time readins are wrong.

 

I am done some tests and  for example (I have wrote the wrong registers):

- seconds = 0x12 --> week day = 0x11

- seconds = 0x16 --> week day = 0x11

- seconds = 0x19 --> week day = 0x19

- seconds = 0x24 --> week day = 0x21, month = 0x21

- seconds = 0x34 --> week day = 0x31, month = 0x21

- seconds = 0x37 --> week day = 0x31, month = 0x21

- seconds = 0x45 --> hour = 0x40, day = 0x41, week day = 0x41, month = 0x41

- seconds = 0x47 --> hour = 0x40, day = 0x41, week day = 0x41, month = 0x41

- seconds = 0x49 --> hour = 0x40, day = 0x41, week day = 0x49, month = 0x41

- seconds = 0x59 --> hour = 0x40, day = 0x41, week day = 0x59, month = 0x41

 

Why are that happening? Why the register are ok when the seconds are 00 to 0x10?

 

Thanks,


Regards.

 

Ruben

Outcomes