Content originally posted in LPCWare by Rob65 on Sat Mar 31 07:10:41 MST 2012
welcome,
why do you think the prescaler is by design offset by 1 ?
If I read the user manual (section 15.7.5 Prescale Counter) I read:
Quote:
When it reaches the value stored in the Prescale Register,
the Timer Counter is incremented, and the Prescale Counter is reset on the next PCLK.
This causes the TC to increment on every PCLK when PR = 0, every 2 PCLKs when
PR = 1, etc.
So there is no offset by 1 as far as I can see. With a 12 MHZ clock setting the prescaler to 12 will divide by 12 resulting in a 1 MHz resolution of the timer.
But I could be wrong - it's been a while since I've actually used my lpc1114 board.
Regards,
[INDENT]Rob
[/INDENT]