Greetings All!
Using the Teensy 4.0 with a PWM switching output of 25kHz for an AC-DC boost converter. I am using an external parallel interface ADC to simultaneously sample input voltage, input current, and output voltage at the same 25kHz rate.
--> In terms of the Teensy 4.0, I'm using:
1 analogWrite PWM to trigger the external ADC conversions (constant duty cycle, let's say 50%)
1 PWM to switch the switching transistor (variable duty cycle - this is the output of the control law on the Teensy)
I want:
The switching transistor PWM to be center-aligned
The ADC trigger PWM to be left-aligned
Both PWMs to be synchronized to the same clock.
Is this possible?
Diagram here to illustrate what I'm looking for (external ADC "conversion start" is triggered by a positive edge).
Using the Teensy 4.0 with a PWM switching output of 25kHz for an AC-DC boost converter. I am using an external parallel interface ADC to simultaneously sample input voltage, input current, and output voltage at the same 25kHz rate.
--> In terms of the Teensy 4.0, I'm using:
1 analogWrite PWM to trigger the external ADC conversions (constant duty cycle, let's say 50%)
1 PWM to switch the switching transistor (variable duty cycle - this is the output of the control law on the Teensy)
I want:
The switching transistor PWM to be center-aligned
The ADC trigger PWM to be left-aligned
Both PWMs to be synchronized to the same clock.
Is this possible?
Diagram here to illustrate what I'm looking for (external ADC "conversion start" is triggered by a positive edge).
Last edited: