PDA

View Full Version : PWM signal



Battalinoglu
- 22nd January 2010, 06:29
Hello everyone,

A newbie question,

I have a sensor that produces a PWM signal. What I need to do is calculating the width of the pulse with 16F877. If it is greater than some value pic will HIGH PORTx.x
Do i need to use a timer interrupt? I'll be glad if you could help me with the code.

mehmetOzdemir
- 22nd January 2010, 08:38
i think this thread will help you.

http://www.picbasic.co.uk/forum/showthread.php?t=11475&highlight=Pulse+Capture+byte+building

Battalinoglu
- 25th January 2010, 07:07
Thanks mehmetOzdemir,

I am in a dilemma of using a low-pass filter and using timer interrupts.
Any suggestions?