QN9080 RTC CNT2

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

QN9080 RTC CNT2

1,272 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

1,264 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

1,255 Views
Kynnans
Contributor I

Can I  modify this value?

0 Kudos
Reply

1,238 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

Which value are you referring to? An interruption event?

0 Kudos
Reply

1,230 Views
Kynnans
Contributor I

can i modify CNT2?

0 Kudos
Reply

1,223 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

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

0 Kudos
Reply

1,265 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Kynnans 

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

0 Kudos
Reply