Yahoo Groups archive

Lpc2000

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

Message

Re: external reset of timer

2005-01-19 by lpc2100_fan

Friendly amendment,  during the capture interrupt service routine
disable all other higher priority interrupts while handling the
setting of the timer. Read the captured value, read the current timer
value, subtract captured from current value, count the number of
cycles this took write the result of the subtraction + cycles into timer. 

Cheers, Bob

--- In lpc2000@yahoogroups.com, "Karl Olsen" <kro@p...> wrote:
> 
> --- In lpc2000@yahoogroups.com, "itsjustimpossible" <simonjh@b...> 
> wrote:
> > 
> > I need to use an external pulse to reset one of the timers of an 
> > LPC2294. The latency of the FIQ from an external interrupt is too 
> > long, so I wondered if there is any clever technique that anyone 
> has 
> > thought of to achieve the same thing faster.
> > 
> > Sadly, the capture pins aren't able to provide a nice external 
> > hardware reset input.
> 
> Use a capture pin and enable the capture interrupt.  In the capture 
> interrupt handler, remember the captured value as the time where you 
> would have reset the timer.  When you later need the timer value, 
> subtract the remembered value.
> 
> Karl Olsen

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.