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.

HRPWM TBPHS:TBPHSHR register concatenation

Other Parts Discussed in Thread: TMS320F28027

Hello all,

Is it normal that the high resolution register TBPHSHR is decreased in order to increase phase as opposed to simply being a concatenation TBPHS:TBPHSHR?

I am using the TMS320F28027 Piccolo and for me the phase register values are as below with a higher phase angle going up and lower going down:

0x0003FF00
0x00020000
0x00020100
0x00020200
.
.
.
0x0002FE00
0x0002FF00
0x00010000
0x00010100
0x00010200
.
.
.
0x0001FE00
0x0001FF00
0x00000000
0x00000100
0x00000200
.
.
.

This does not seem to be the case with the CMPA and CMPAHR registers. Why the difference?

Thanks,

Kelly

  • Hello Kelly,

    I am working on providing High resolution to my phase control using TMS320f28027.So i am also facing the same problem.

    I observed on DSO when value is increasing in TBPHSHR register the phase is decreasing while the reverse is happening in TBPHS. So in order to have consistent increasing effect on Phase I am complementing the value of TBPHSHR register.A

    Are you having any reasons why increased value of TBPHSHR is causing decrease in Phase?

    Thanks

    Regards

    Deepak

  • Hi Deepak,


    TBPHSHR always acts as a delay to the PWM. Hence you would see it as decreasing phase for an increased value of TBPHSHR.
    While the regular TBPHS advances the phase for increasing it's value, the TBPHSHR would move it in the opposite direction.
    I'm assuming that your PWM waveform configuration is such that as an example: you sync between PWM1 and 2, operating in up/down, and you load a phase into PWM2 on PWM1 CNT Zero event.

    -Bharathi.