Content originally posted in LPCWare by tkggitfk24 on Thu May 12 19:55:38 MST 2016 Hello Everyone,
I'm getting crazy about RTC, if the rtc oscillator is not populated or broken, my whole system will be corrupted. This is not acceptable for us.
and I know write the rtc and Alarm timer registers without the 32 kHz clock can stall the CPU from the LPC4357 User Manual. So the key point is how to check rtc oscillator is running?
The User Manual says that,
To confirm that the 32 kHz clock is running, read the Alarm timer counter register (DOWNCOUNTER, see Table 866), which counts down from a preset value using the 1024 Hz signal derived from the 32 kHz oscillator.
I think it is NOT feasibility.The DOWNCOUNTER and PRESET are zero after reset.
Content originally posted in LPCWare by bavarian on Mon May 23 02:32:32 MST 2016 Well, if you have a simple oscilloscope you can see the 32.768kHz on the CLKOUT pin. If you want to make a functional test in production you could connect CLKOUT to another input like a timer capture and get the feedback.
This RTC oscillator circuit has been designed for very low power, so it is sensitive with regards to board design and any impact from the outside (crosstalk etc). You need to find a setup (crystal selection + board design) which works 100% under your environment conditions, especially temperature.