Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Configuring the Timer 0

2004-12-22 by kaiandxiulpc2000

I didn't use the pre-scale register, but the main TC.  I think you 
need to decrement your value by 1 to 0xEA5F.  The way the timer 
works, the value 0 is one tick of the pclk, 1 is the 2nd tick, etc.. 
59999 is your 60,000th tick.  Look in the User Manual figures and you 
will see that.

--- In lpc2000@yahoogroups.com, "acetoel" <acetoel@y...> wrote:
> 
> Hello...
> 
> I'm configurin Timer 0... My Clock is a 10Mhz Crystal PLLed to 60Mhz
> for the CCLK and the PCLK. 
> 
> If I set the P0PR (prescaler register) to 0xEA60 (decimal 60000), 
then
> when I start the Timer 0, will I have an increment on T0TC (Timer
> Counter) each 60000 cycles of clock? or what's more easy to
> understand... will T0TC increment in one each 1ms?
> My idea is to make a short rutine that start the timer, and stop it
> when 1mS has passed...
> 
> Thanks
> Ezequiel

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.