K66 RTC issue after power off

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

K66 RTC issue after power off

485 Views
anand_s
Contributor III

Hi all,

        In our design we are using K66 controller with MQX RTOS. For RTC we are provided a crystal  32.768Khz and VBAT 3.3V. With MQX API's we are able to set time and it's working fine. even though we provided battery for RTC after power off RTC showing default time. For testing after setting the rtc we read back the register value and it is also fine. Could you please suggest anything we are missing?

Thanks in advance,

Regards.

Anand.S

Labels (1)
Tags (2)
0 Kudos
2 Replies

401 Views
mjbcswitzerland
Specialist V

Hi

Are you sure that there is not some demo code being executed that is setting the RTC on each start?

By checking the TIF flag in RTC_SR you can see whether the time is valid and then avoid reconfiguring/reseting the RTC on each startup.

Regards

Mark


Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis K66:
- http://www.utasker.com/kinetis/TWR-K65F180M.html
- http://www.utasker.com/kinetis/FRDM-K66F.html
- http://www.utasker.com/kinetis/TEENSY_3.6.html
uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market
Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html

RTC and time keeping: http://www.utasker.com/docs/uTasker/uTasker_Time.pdf

Open Source version at https://github.com/uTasker/uTasker-Kinetis

0 Kudos

401 Views
anand_s
Contributor III

Thank you Mark, i'll check that.

0 Kudos