PCF85263 RTC INTA flag issue

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

PCF85263 RTC INTA flag issue

Jump to solution
4,243 Views
ohck
Contributor I

We're trying to use the pcf85263 rtc in stop-watch mode to generate a alarm and level signal on INTA, the INTA flag gets set correctly but we're unable to clear the INTA flag.

We're trying to clear the alarm by sending 0x00 to register 2Bh. Looking at the logic analyzer it gets ACKed and even set but INTA pin remains high.

Our config is as following description(also shown in the rtc.py file):

Config:
        Read 0x28 register to verify correct rtcm mode TEST USE
        Disable battery switch 0x26 register 0x10 data
        Set INTA pin mode 0x27 register 0x10 data
        Enable stop bit 0x2E register 0x01 data
        Set rtcm mode and more to 0x28 register 0x97 data
        Battery switch disable 0x29 register 0x90 data
        Set minutes to 0x02 register 0x00 data
        Set minutes alarm to 0x09 register 0x02 data
        Enable minutes (SW control) 0x10 register 0x02 data
        Clear stop bit 0x2E register
       
        After business logic:
        Clear flag 0x2B register
 

 

Apart from not being able to get the INTA pin down everything seems to work.

Question:

Is there something missing or are we doing something wrong? Clearing the INTA flag should set the INTA pin low right?

 

Thank you in advance

 

0 Kudos
Reply
1 Solution
4,227 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

I am not sure about this line in your code:

self.__write_data(bytearray([0x27]), bytearray([0x10]))

Please try to modify it to:

self.__write_data(bytearray([0x27]), bytearray([0x02]))

Screenshot 2024-11-06 135758.png

BRs, Tomas

View solution in original post

0 Kudos
Reply
1 Reply
4,228 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

I am not sure about this line in your code:

self.__write_data(bytearray([0x27]), bytearray([0x10]))

Please try to modify it to:

self.__write_data(bytearray([0x27]), bytearray([0x02]))

Screenshot 2024-11-06 135758.png

BRs, Tomas

0 Kudos
Reply