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.

TMS320F28335 PWM Off state issue?

Other Parts Discussed in Thread: TMS320F28335

I've issue TMS320F28335 PWM Off setting,

There is no problem in case of PWM on state,


But PWM off case,

If setting to OFF when state of PWM high range,

the PWM output is not directly (promptly) terminated until done PWM duty cycle.

PWM OFF Process -> "EPwm5Regs.CMPB = 0"
PWM ON Process -> "EPwm5Regs.CMPB = 5500"

- Others -
EPwm5Regs.AQCTLB.bit.CBD = ?
EPwm5Regs.AQCTLB.bit.PRD = ?
EPwm5Regs.AQCTLB.bit.CBU = ?
EPwm5Regs.TBCTR = ?

Please let me know if you have the way of the register setting?

Thanks...

  • Hi Eric,

    Are you enabling the shadowing functionality for your compare register? When are the contents of shadow register loaded?

    Basically check the values of the following

    EPwmRegs.CMPCTL.bit.SHDWBMODE
    EPwmRegs.CMPCTL.bit.LOADBMODE

    If shadow mode is enabled for compare register, the value you load onto compare register will not be reflected until the instant you have set according to load mode

    Regards
    Nishant
  • Thank you Nishant,

    I've one more error message when downloading DSP;

    C28xx: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x338000: (Error -1066 @ 0x338000) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 5.1.232.0)  

    please reply if you know what kind of this error message?

    Thanks...

  • Hi,

    If you are debugging your code out of Flash, then you are allowed a maximum of 2 hardware breakpoints when working with F28xx devices. Since flash execution breakpoints are always H/w breakpoints, you should make sure there are no breakpoints enabled when you start the debug session and also disable the two breakpoints that CCS sets by default. Please refer to the below document as well.

    processors.wiki.ti.com/.../FAQs

    If you are debugging code out of RAM instead, you have the flexibility of using software breakpoints instead. There is no such limit to software breakpoints, as they are acheived by opcode replacement

    Regards
    Nishant