Using a PSOC 6, I am trying to use a single PWM module to control a boost converter single power switch MOSFET, AND trigger an external ADC.
I want to use the PWM's overflow output to trigger the external ADC, but the pulse is too narrow to reliably trigger the ADC. On my oscilloscope, with the PWM frequency at 25kHz, I measure the overflow pulse at ~60 nanoseconds.
Is there a way to "stretch" this overflow pulse?
If you are using PSoC Creator, you can add the SR Flip-flop component between the PWM and ADC.
- Connect the "s" to the PWM overflow
- Connect the "r" to the ADC "sdone" or "eos"
- Connect the "q" to the ADC "soc"
- Clock the SR Flip-flop with the same frequency you clock the PWM