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.

TMS320F2812 PWM输出强制低无法实现



我参照手册TMS320x281x Event Manager (EV) Reference Guide.pdf 102中以下这段文字:

The compare action control registers (ACTRA and ACTRB) control the action
that takes place on each of the six compare output pins (PWMx, where x = 1−6
for ACTRA, and x = 7−12 for ACTRB) on a compare event, if the compare operation
is enabled by COMCONx[15]. ACTRA and ACTRB are doublebuffered.
The condition on which ACTRA and ACTRB is reloaded is defined
by bits in COMCONx. ACTRA and ACTRB also contain the SVRDIR, D2, D1,
and D0 bits needed for space vector PWM operation. The bit configuration of
ACTRA is described in Figure 5−9 and that of ACTRB is described in
Figure 5−10.

将COMCONA[15]使能,然后对ACTRA进行设置,发现Force High可以实现,Foce Low无法实现,查了整个文档,没有找到解释,

亟待解决,请大家帮忙。

  • 你换个引脚试试,也许是硬件的问题。

  • 想知道你配置好的事件管理器正常情况下   能不能输出PWM波  

    这样好排除硬件上是不是被强制拉高了    

    无法输出低

  • 您好 感谢回复 

    当正常运行算法时 pwm波可以正常输出

    高有效、低有效、强制高都可以正常实现

    同样情况下,强制低设定无法实现,

    目前在沈阳出差,明日返京,我尽快确认。

  • 您好

    我的问题解决了

    还是对事件管理器工作方式理解有问题

    我要控制的是PWM1~6,这6个引脚是带片内上拉的,上电输出高,如果用之前的驱动电路是没有问题的,电路里加了反相器,会关闭IGBT

    但是现在驱动电路改了,上电以后6路PWM波要输出低电平,否则功率电路会报警。

    异步电机的算法是在事件管理器timer中做的,我之前在启动算法前没有启动timer,所以即便是ACTRA中设置PWM强制低也是无效的,其实强制高同样无效,只不过芯片内部有上拉,所以不会有问题。

    我现在改变了启动算法的方式,初始化就将T1CON中timer enable 位使能,就可以控制PWM输出强制低了