What I am trying to do is basically the same as this topic here: http://forum.arduino.cc/index.php?topic=146634.0 . My signal (I attached a picture) is a square wave produced by a pwm output. The information I try to measure is the height of these pulses. Because the widgth of the pulses is variing I want to trigger the measurement after a certain delay of the raising edge of the pwm.
I browsed the forum, but I could not get the right information. I figured out that on the DUE there is this PWMC with the pwmc.h library. But I still don’t know how I could attach the interrupt caused by the pwm_eventline to trigger the ADC.
I also have the datasheet of the Microcontroller (>1400 pages!!!http://www.atmel.com/devices/SAM3X8E.aspx)
Can anybody show me a good method to do this measurement? How would you solve this problem?
Seaching the .h Lib files for keywords, searching the datasheet?
signal.pdf (8.9 KB)