Content originally posted in LPCWare by teekaytk on Mon Feb 11 16:01:33 MST 2013
dear all
I am converting from PIC so I am not very sure what would be the best way to implement a real time clock in LPC 812. I'll have a 32khz external oscillator producing a 32khz square wave. When working with PIC all I had to do was connect it to one of the clk inputs to timer and then I could use it as interrupt every 32K cycles (one second). After the interrupt had been dealt with the PIC went to sleep so saved me a lot of power.
Can Something similar be done in LPC. I may have a GPS signal from time to time that I may be able to use to reset the clock if it has drifted a bit..
Thanks for your help.