Yahoo Groups archive

Lpc2000

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

Message

Re: Timer interrupts on LPC2138

2006-05-15 by ylavoie66

--- In lpc2000@yahoogroups.com, "Karl Olsen" <kro@...> wrote:
>
> 
> You should set the match register to one less than the desired 
period.  The
> timer goes to 0 the next count _after_ the match, so if you set 
the match
> register to e.g. 4, the timer will count 0, 1, 2, 3, 4, 0, 1, 2, 
3, 4...
> giving a period of 5.  Try a match value of 0.
> 
> Karl Olsen
>


Thanks Karl.

Is it something you already tried and tested? 
Philips documentation does not clearly state that.  Then again it 
won't be the first time an IC manufacturer gives incomplete 
documentation :(

Regards,

Yves Lavoie

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.