I am trying to take measurements of the folling waveform coming in at 400Hz and want to sync an output to the wider of the 2 pulses. I am using a 18F458 proto board. any ideas on how this can be accomplished
--- -- -----
|_____| |___|
the first pulse is 2.08 ms the second 1.96 ms with 460 us between them at a 400 hz rate.
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Oct 26, 2006 2:56 pm
The CCP module can be used (in Capture mode) to do this.
See this CCS example file:
c:\program files\picc\examples\ex_ccpmp.c
Here's a CCS example file with another method:
c:\program files\picc\examples\ex_pulse.c
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum