I am writing some code to sample an input at 125KHz. I am driving a square wave, and I would like to sample an input on either the failing or rising edge of the PWM.
I am using Teensyduino on the 3.2 board.
I have tried using the the Timer interrupt to sample the input, but this is too slow.
I am trying to port some work from MBed to Teensyduino.
Any help on to cause an interrupt on a PWM output state change would be appreciated.
I am using Teensyduino on the 3.2 board.
I have tried using the the Timer interrupt to sample the input, but this is too slow.
I am trying to port some work from MBed to Teensyduino.
Any help on to cause an interrupt on a PWM output state change would be appreciated.