F280049芯片的EPWM同步触发,在TBCTL中只能配置为计数到0或CMPB时才能触发,如果我想在增减计数时在0和PRD时都触发应该怎么才能实现?
user5860441:把计数方式改成up方式,或者在PRD处中断,用软件强制同步。
F280049芯片的EPWM同步触发,在TBCTL中只能配置为计数到0或CMPB时才能触发,如果我想在增减计数时在0和PRD时都触发应该怎么才能实现?
Green Deng:
我认为不行,同步输出只能选择0、CMPB以及上一个PWM模块的EPWMxSYNCI。
EPWMxSYNCO
Time-base synchronization output.
This output pulse is used to synchronize the counter of an ePWM module later in the synchronization chain. The ePWM module generates this signal from one of three event sources:
1. EPWMxSYNCI (Synchronization input pulse)
2. CTR = Zero: The time-base counter equal to zero (TBCTR = 0x00).
3. CTR = CMPB: The time-base counter equal to the counter-compare B (TBCTR = CMPB) register.