LPC4350 RTC Driver in LPC43xx CMSIS Driver Library

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by gregd on Fri Sep 21 11:46:50 MST 2012
When you call the RTC_GetFullTime function in lpc43xx.c, does this automatically handle cases where the second is changing during the call - Could part of the values be from one second and the rest from another?  The user manual doesn't really specify if the values are latched when reading multiple registers. 

What about the RTC_SetFullTime function?  Is it guaranteed to set the time correctly?

It would be nice if there was a function that sets the time and waits for the new time to go into effect.  It takes almost 2 seconds before the new time is readable.  If you read the RTC too early, you will get the old time from the clock.  This can cause lots of issues if your code is using the RTC for time based calculations.

I don't guess there is any way to apply the new time immediately is there?

Greg Dunn