Part Number: TMS320F28075 Am a little confused with the configuration of the ePWM module particularly the Time base counter. I would like to generate a PWM using the Time base module, Capture Compare module, Action qualifier module and dead band module. The PWM signals will be used to control a single phase inverter and dual interleaved boost converter. I've read the manual and I have a relatively good understanding of how to use the stated ePWM and microcontroller. I will be using the Time base counter in Up count mode. The frequency of the PWM is 50kHz and I will be nomarlizing the control value i.e. the maximum value to the compare capture registers will be 1. In order to have this done, I will set the time base counter value to 1 and the Time base period to a value I will calculate using the formula provided in the manual as shown below; EPWM_setTimeBaseCounter(EPWM2_BASE, 1U);//set time base counter of ePWM2 to 1 EPWM_setTimeBasePeriod(EPWM2_BASE, EPWM_TIMER_TBPRD);//Time base period count is defined by macro EPWM_TIMER_TBPRD What does the manual mean when it says an event gets generated when "Time base counter equals the specified period". From my point of view, the period is on the x axis (time) and the counter increments along the Y axis. In my code, I want the value of the Time base counter to be 1 at the end of every cycle. How can I have this done?
↧