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.

28035的TZ封波功能

专家您好:

我们在做TZ保护功能的时候,遇到个问题,请解答一下:

我们复用GPIO12与GPIO15两个IO口的TZ功能:

EALLOW;

GpioCtrlRegs.GPAMUX1.bit.GPIO12 = 1;  // Configure GPIO12 as TZ1

GpioCtrlRegs.GPAMUX1.bit.GPIO15 = 1;   // Configure GPIO15 as TZ1

EDIS;

硬件上,GPIO15悬空,GPIO12连接到比较器上(过流保护的比较输出端)

EALLOW;

EPwm1Regs.TZSEL.bit.OSHT1 = TZ_ENABLE; //Enable TZ1 as a CBC trip source

EPwm2Regs.TZSEL.bit.OSHT1 = TZ_ENABLE; //Enable TZ1 as a CBC trip source

EPwm3Regs.TZSEL.bit.OSHT1 = TZ_ENABLE; //Enable TZ1 as a CBC trip source

EPwm1Regs.TZCTL.bit.TZA = TZ_FORCE_LO; //OST generate.out LOW 

EPwm1Regs.TZCTL.bit.TZB = TZ_FORCE_LO; //OST generate.out LOW 

EDIS;

 

实验时,当GPIO12引脚上有低电平触发时,发现PWM波并没有封死,还是照常发波!!

 

想请教下,在PWM内部设计时,GPIO12与GPIO15复用功能是什么关系?因为当我们只复用GPIO12的TZ功能,是可以正常封波的。

谢谢