QN9080 RTC CNT2

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

QN9080 RTC CNT2

942 Views
Kynnans
Contributor I

In QN9080 sdk documents ,a RTC register named CNT2 will add one at every clock rising edge, but it‘s a 32 bit number. If i use a 32.768kHz crystal, It can only count to 36 hours. What happens when this register overflows after 36h

 

0 Kudos
Reply
6 Replies

934 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

An interrupt will occur after the overflow, and how the interrupt event is handled is determined by the application layer.

0 Kudos
Reply

925 Views
Kynnans
Contributor I

Can I  modify this value?

0 Kudos
Reply

908 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

Which value are you referring to? An interruption event?

0 Kudos
Reply

900 Views
Kynnans
Contributor I

can i modify CNT2?

0 Kudos
Reply

893 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

CTN2 is free running count value, which cannot be modified.

0 Kudos
Reply

935 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

Which SDK documents do you use and let me check it.

0 Kudos
Reply