This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28379D: Constant On-Time Control Using Delfino

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi,

I need to implement a constant on-time control using TI TMS320F28379D microcontroller. I have a pulse signal (trigger) generated by an external event and I need the PWM output to go high due to that external trigger (which is possible using the trip zone module). However, I also need to turn off / reset the PWM to low state after a fixed on time. In the low state the PWM output should stay low until the next external trigger (input) occurs which must again cause the PWM output to go high for a fixed time and so on. 

Using the trip zone module helps me turn the PWM output high after the external trigger however, I cannot seem to find a way to turn the PWM output low after a fixed time has elapsed after the external trigger signal. Any leads on implementing this would help me alot. 

Thanks in advance.

  • Hello,

    Delays to EPWM ouptuts are typically implemented with the EPWM Dead-band submodule. You can read up on this submodule in the TRM chapter and take a look at the EPWM dead-band example in C2000Ware's F2837xD device support examples.

    If your application's desired fixed time delay is of a size that can be represented in the dead-band edge delay count register, then this may be a good option to consider.

    Regards,
    Elizabeth
  • Thank you Elizabeth. I used a different approach than what you suggested and got the required PWMs at the output.