Hi,
I'm having trouble setting an alarm on the PCF85063A RTC for a specific time. Here are the steps :
I’m using the following registers:
Then I'm using register 0x01 with the value 0x80 to set the alarm interrupt .
The alarm does not trigger at the specified time. Can suggest the correct procedure to set up an alarm?
Thanks!
Hello Vaishali9,
I hope all is great with you. Thank you for using the NXP communities.
Are you enabling the ALARM interrupt?
control_2 = RTC_CTRL_2_DEFAULT | RTC_ALARM_AIE; // enable interrupt
control_2 &= ~RTC_ALARM_AF;
I do recommend using the following example code as a reference for your design.
https://github.com/SolderedElectronics/PCF85063A-Arduino-Library/blob/master/PCF85063A.cpp
Please note that this is not an official driver.
I hope this information helps.
Regards,
David