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.

TMS320F28035: cannot turn on PWM

Part Number: TMS320F28035

Hi,

I'm able to turn off PWM through the code below:

But then when I try to turn on the PWM with code below, it doesn't work

Anything wrong with the code?

Thanks.

  • Howard Zou said:
    But then when I try to turn on the PWM with code below, it doesn't work

    The value of ForcePwmDisabled is zero, and therefore the OR *XAR7,#ForcePwmDisabled instructions won't modify the AQCSFRC registers. I.e. a bit-wise OR of a literal zero doesn't change any bits.

    Based upon the posted code assume that both the CSFB and CSFA fields in the AQCSFRC registers, in which case shouldn't the OR instructions be move instructions instead?