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.

Compiler/RM48L952: HET Pwm signal updates

Part Number: RM48L952

Tool/software: TI C/C++ Compiler

Hello,

i have a question regarding the pwm signal generation on the HET. Actually i am using a PCNT instruction to perform the pin action on the specific pin (action=PULSELO), followed by a DJZ instruction to count down. In general the DJZ instruction represents the pwm period, the PCNT instruction the pwm width. When the DZJ counter reachs "0" I am performing an update via MOV64 instructions to update both fields for the period and the width. 

When I apply this pattern on the HET IDE, I can verify the correct behavior of the pwm output. But when I put "0" in both MOV64 instructions in order to update the PWM data fields, I would expect to see the PWM output of the specific pin to be on a constant "0", but this is not the case, it is staying to "1".

How can I change this behavior when I perform the update of the pwm instructions via MOV64 instructions to put the pwm pin to 0 (without introducing new instructions or forcing the C-application to write a 0 into the pin HETCLR field )?