> > Why not use 32-bit counters? > The mind set was for C51 ;-) > If you use a 5 kHz timer, you can easily count both phase changes, > with plenty of safety margin for a maximum 1 kHz signal. > > Every 500 interrupts (i.e. 100 ms) the frequency of each channel is > then: > > F = (c / 2 * 10) or F = c * 5 > > where F is frequency in Hz, c is count of phase changes in the last > 100 ms period. Thanks Brendan, Yes this should be OK. Best Regards, Mukund Deshmukh. Beta Computronics Pvt Ltd 10/1, IT Park, Parsodi, Nagpur-440022 Cell - 9422113746
Message
Re: [lpc2000] Re: Timer as counter...
2006-05-25 by Mukund Deshmukh