Turn off HRPWM

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,

I use the HRPWM App in DAVE 4 to control a half bridge. Here i use two output pins to connected the switches, so i use one noninverted and one inverted output.
During the normal operation everything works fine. But if i try to stop the HRPWM i use the command HRPWM_Stop(&HRPWM_0). If this command is executed there is always the inverted output left at "high".
Is there any other way to stop the HRPWM in software in which both (inverterd and noninverted) output is pulled low?
I thought to change the passive level of the inverted output through the command HRC2PL.PSL=1 , but the compiler outputs an error.

So can anyone help me and explain how i can change the register entry of HRC2PL.PSL or explain another way to stop the HRPWM in software?

Thanks
Maik
0 Likes
0 Replies