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.
现在使用PWM1和PWM2,PWM1去控制H桥实现逆变,PWM2控制DC-DC BOOST升压电路实现电池升压到直流600V 发现当H桥的SPWM波数据到零点的时候,我需要停止PWM1模块这时会发现会停止PWM2
规格书提示
enabled ePWM modules to the time-base clock (TBCLK). When set, all enabled ePWM module clocks are
started with the first rising edge of TBCLK aligned. For perfectly synchronized TBCLKs, the prescalers for
each ePWM module must be set identically.
The proper procedure for enabling ePWM clocks is as follows:
1. Enable ePWM module clocks in the PCLKCRx register
2. Set TBCLKSYNC= 0
3. Configure ePWM modules
4. Set TBCLKSYNC=1
当我按照Set TBCLKSYNC= 0后发现PWM1和PWM2都会停止运行 这怎么解决 我想单独停止任意一路PWM 谢谢!
你好,你截取的这段是描述如何设置PWM模块间同步的,所以应该不适用你描述的控制要求。
不知道你的控制要求里面PWM1和PWM2是否要求同步?如果要同步的话可以按照上面截取的那段进行同步。
另外,根据你的描述,我的理解是你需要在“SPWM波数据到零点的时候”对PWM1进行封波处理?这样的话你可以使用PWM的TZ模块,TZ保护模块就是用于对PWM进行封波处理的
那就不需要用到上述的同步了,直接用TZ模块就可以了。你可以通过TRM了解一下这个模块,也可以参考例程:
C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2802x\examples\structs\epwm_trip_zone