Yahoo Groups archive

Lpc2000

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

Message

Re: Timer as counter...

2006-05-24 by lpc2100_fan

--- In lpc2000@yahoogroups.com, Mukund Deshmukh <betacomp_ngp@...> wrote:
>
> > > Just a quick question to see if there's anyway of using the inbuilt
> > > timer functionality of a LPC2119 as a counter. Ie to count the
number
> > > pulses (rising or falling edge) from an external source over a given
> > > time frame. Basically we have a pot
> 
> I too have a similar problem, but I want measure 4 channel low freq
(about 1
> Khz) signal.
> Any idea how it could be implemented using one timer.
> Earlier we were using C8051F040, which has five timers.
> 
> Best Regards,
> 
> Mukund Deshmukh.
> Beta Computronics Pvt Ltd
> 10/1, IT Park, Parsodi,
> Nagpur-440022
> Cell - 9422113746
>

Hi,

if you do not need the CAN, using the LPC2136 instead of the LPC2129
or the 2134 instead of the 2119 could resolve your problem.
Nevertheless, the proposals from Karl apply here as well and as
Brendan pointed out CPU load will be very low. 
I guess the missing counter inputs were recognized as something to
improve and therefor implemented in newer derivatives. 

Another (little crazy) option would be to use a LPC2101 which uses the
same tools and is very code compatible to the LPC21x9, let it do
everything around counting and timers and have it communicate with the
LPC21x9 via SPI or UART once it has the job done.

Bob

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.