PDA

View Full Version : 16f73 pwm capture interupt



EDWARD
- 22nd July 2005, 07:04
does the 16f73 have the ability to measure a pulse width in the back ground?
does it have to be on a specific pin?


im trying to make a loop that stays in the loop as long as the PWM signal on PORTB.0 is short enough.

psuedo idea.

run in backgroung ---> while 100ms>PWM>1ms stay in loop

loop:
high portb.2
pause 100
low portb.2
goto loop

i cant use the pulsin command beacuse the loop doesnt run smooth enough.


i need this small loop to cycle consistatly as long as the pwm input signal is short enough.

Bruce
- 22nd July 2005, 22:22
What's the width & polarity of the pulse that would cause a break from the
loop, and what oscillator frequency are you using?