What seems like a simple Teensy 3.2 task is proving to be more perplexing than I thought.
I've got a device that's generating pulses (in the 50 kHz range). I need to detect the rising edge, and drive a response pulse that begins as soon as possible (maybe a 2-5% delay?), and lasts up to 50% of the width of the source pulse. The width of this source pulse would be measured in advance. The response pulses would be dynamically adjusted as the width of the source pulse changes.
I was hoping to use the Arduino PDB function to accomplish this, but unfortunately, the PDB 'pulse out' feature cannot be driven to a Teensy pin. I also thought about the FTM function, but providing an input trigger seems challenging.
Any suggestions or ideas? I think I might be overlooking something obvious....
I've got a device that's generating pulses (in the 50 kHz range). I need to detect the rising edge, and drive a response pulse that begins as soon as possible (maybe a 2-5% delay?), and lasts up to 50% of the width of the source pulse. The width of this source pulse would be measured in advance. The response pulses would be dynamically adjusted as the width of the source pulse changes.
I was hoping to use the Arduino PDB function to accomplish this, but unfortunately, the PDB 'pulse out' feature cannot be driven to a Teensy pin. I also thought about the FTM function, but providing an input trigger seems challenging.
Any suggestions or ideas? I think I might be overlooking something obvious....