detecting pwm
Thric
Posts: 109
Is there a way to detect whether a pwm signal is present on a pin? Currently I can use timers to find the duty of a PWM signal but if there is no signal present the program will hang indefinitely for an event that will never come. Is there a way to do this without implementing a watchdog?
Comments
-Phil
Problem is it doesn't seem to be working as I would expect it too (of course). See any blatantly obvious mistakes?
Following my own advice here, since frqa stays not equal zero you should clear phsa once the counter is upset:
Edit: maybe i jumped the gun a bit for no problems, works one minute and not the next. I'll check latter.
Adds to the BOM...
Here ya go: 20,000 pull-up resistors for $37.05. That's less than two-tenths of a cent apiece.
-Phil