5 years, 8 months ago.

LPC1768 How To Configure RTC To Use Internal Clock Source


Title says it all, I'm struggling to figure out how to configure an LPC1768/mbed to use the the internal clock source for the RTC module. If anyone has any info or examples it would be helpfull.


Comment on this question

1 Answer

5 years, 8 months ago.

Looks like the RTC is only intended to be used with an external 32kHz crystal. Of course you can try using a PWM/timer output to generate that from the main clock, but a 32kHz crystal is the better solution.

External oscillator it is thanks, would i need to configure any registers to use the RTC?

posted by Rob Cawsey 26 Aug 2013

You can use standard C time functions, those will automatically configure the RTC, see: (out of date revision, you can also check latest one, but personally I prefer the older one).

And if you require interrupts you can use:

posted by Erik Olieman 26 Aug 2013

To post an answer, please log in.