MOD54415 mcPWM stays stuck high output

Discussion to talk about hardware related topics only.
Post Reply
yfisher2017
Posts: 1
Joined: Wed Jan 25, 2017 10:30 am

MOD54415 mcPWM stays stuck high output

Post by yfisher2017 »

I am following the demo project for the PWM control ( MOD54415-PWM ).
I have made a small modification to the program so I can call the function to set up for Edge Aligned PWM pulses with different parameters.

EdgeAlignedPWM(pin, reset , pwmOff);

Occasionally calling this function will set the output high, and nothing I do restarts the PWM. I have to reset the board completely.
I am looking at Pin 35 (PWM_A2).

I have tried not calling the EdgeAligned function and to set these two registers directly:
sim1.mcpwm.sm[submod].val[1] = reset;
sim1.mcpwm.sm[submod].val[3] = pwmOff; //PWM_A Off = 256
InitializeModule();

But the same condition occurs.

I have inspected the fault register:
sim1.mcpwm.fsr
just in case a fault is occurring, but the value is 0, (and faults are disabled in the demo program anyways).


Anyone have any idea what is going on - or what would cause the output to go high and stay high?

- Yoram -
Post Reply