Setting Specific Time Alarm on PCF85063A

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

Setting Specific Time Alarm on PCF85063A

826 Views
Vaishali9
Contributor I

Hi,

I'm having trouble setting an alarm on the PCF85063A RTC for a specific time. Here are the steps :

  1.  Set the Current time
  2.  configure the alarm to trigger at a specific time, e.g., 8:30.

I’m using the following registers:

  • Register B for setting the seconds alarm
  • Register C for setting the minutes alarm
  • Register D for setting the hours alarm

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!

0 Kudos
Reply
1 Reply

793 Views
diazmarin09
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply