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
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
Thank you Mark, i'll check that.