I used this method to measure fuel injection pulses, although the shortest pulses on that were around 2mS, I ran it from a 16MHz clock with a divide by 4 on the counter to give me a direct output in us, which I then sent down the serial port between pulses. Martin > Has anybody tried to measure the width of a pulse by changing the interrupt > polarity edge on the interrupt pin? I want to measure a pulse width by setting > the interrupt to go on the rising edge of the pulse, and change the edge > polarity so the next interrupt is fired by the falling edge of the pulse. The > shortest pulse length will be around 50uS and I envisaged using the counter to > measure the width. > > the project involves trying to read the output of a Motorola MC145026 remote > control sender which is being clocked at 40kHz, and use this code to do things > in a manner that the companion decoders cannot do for me. > > Has anyone tried something similar before, or see any problems with what I am > trying to do? > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.