Hello,
Is there any possibility to control the duty cycle at 0% and 100% without using the ISR's?
Seems like it's possible according to the document:
TMS320x2802x, 2803x Piccolo Enhanced Pulse Width Modulator (ePWM) SPRUGE9E–December 2008–Revised March 2011 Page 44.
2.4.4 Waveforms for Common Configurations
........
Figure 23 shows how a symmetric PWM waveform can be generated using the up-down-count mode of
the TBCTR. In this mode 0%-100% DC modulation is achieved by using equal compare matches on the
up count and down count portions of the waveform. In the example shown, CMPA is used to make the
comparison. When the counter is incrementing the CMPA match will pull the PWM output high. Likewise,
when the counter is decrementing the compare match will pull the PWM signal low. When CMPA = 0, the
PWM signal is low for the entire period giving the 0% duty waveform. When CMPA = TBPRD, the PWM
signal is high achieving 100% duty.
When using this configuration in practice, if you load CMPA/CMPB on zero, then use CMPA/CMPB values
greater than or equal to 1. If you load CMPA/CMPB on period, then use CMPA/CMPB values less than or
equal to TBPRD-1. This means there will always be a pulse of at least one TBCLK cycle in a PWM period
which, when very short, tend to be ignored by the system.....
but there is another document where it's stated that ISR's are required for it:
Application Report
SPRAAI1–December 2006
Using the Enhanced Pulse Width Modulator (ePWM)
Module for 0% to 100% Duty Cycle Control
I just need to drive some independent PWM outputs(Full range including 0% & 100%), symmetric or asymmetric and without Dead-Band or PWM-Chopper
Thanks,