Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Multiple compare and capture on same Timer

2006-02-22 by Robert Adsett

At 09:53 AM 2/21/2006 +0000, gvnn77 wrote:
>Sorry, but also PWM timer is used...
>I am not able to understand why
>
>T0MR0 += L_COMPAREMATCH;
>
>doesn't work!!! I use other micro, such as Texas MSP430, and this
>implementation work well! Is there a bug in micro or I have to do
>something before read/write T0MR0???

It seems more likely to me that you have got an unexpected source of 
latency in your system somewhere (another interrupt perhaps?).  Can you set 
it up to toggle a pin on match using one of the EMR registers?  If you do 
that and toggle a pin on entry to your ISR you can get a direct measurement 
of your latency.  This is where a DSO or logic analyzer really pays off, 
you can get easy measurements of the range of latencies and even trigger on 
the difference between the edges.  However, even an analog 'scope should 
give you a start, it just won't help you with the rare event nearly as much.

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

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.