Yahoo Groups archive

Lpc2000

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

Message

Re: counter with pin 6

2004-08-30 by Karl Olsen

--- In lpc2000@yahoogroups.com, "zpierre007" <zpierre007@y...> wrote:
> Hi everybody,
> 
> I know it's very simple, but can somebody  help me to count the 
> falling edge clock ticks from an another chip with the timer0 
> capture2 on the pin6.
> All of that without interrupt just by reading the timer value, with 
a 
> prescaler egal at 1.

You cannot do that with the current LPC2000 timers.  The capture 
feature is for finding the exact time where an edge happens, not for 
finding the number of edges.  To count the edges, you must have an 
interrupt that increments a software counter.

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.