How To Enable RTC PCA21125 Interrupt

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

How To Enable RTC PCA21125 Interrupt

283 Views
vishaldethe
Contributor I

How to Enable RTC PCA21125 Interrupt 

0 Kudos
Reply
1 Reply

261 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Vishal,

To enable an interrupt on the PCA21125, you need to configure the Control_2 register to enable the interrupt functionality you require (e.g. alarm interrupt, countdown timer interrupt, minute/second).

Then if you are enabling an alarm interrupt, configure the Alarm registers with the desired time for the alarm. 

If you are enabling a countdown timer interrupt, configure the Timer registers with the desired countdown value.

You can find examples in the UM10301, chapters 12.2 and 12.3.

After configuring these registers, the PCA21125 should generate an interrupt on the INT pin when the alarm or timer condition is met. Ensure your MCU is configured to handle this interrupt appropriately.

BRs, Tomas

 

0 Kudos
Reply