|
Re: PWM inputs?
Quote:
|
Originally Posted by Kevin Sevcik
...For direct input, I think you'd need two digital interrupt inputs and a NOT IC. interrupts firing on the rising edge of the signal, so you start a timer when the straight signal fires, and stop the timer when the NOTed signal fires. Voila, the time of the pulse...
|
Kevin, et al,
Use DIO3 and use both rising and falling edges as interrupts. Read Port B within the interrupt handler to determine which edge you are processing...
Mike
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|