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 PWMxB

Hi Folks,

I am aware that the PWMxB channel of a C2000 Piccolo when in HRPWM mode is not specified as a valid output with regard to the HR waveform, unless configured to be the inverted form of the PWMxA channel. However, having observed the operation of the demo code on the scope I note that the PWMxB channel does seem to have a signal on it, it would seem to be a similar signal to that on PWMxA, varying in related fashion. However, I note that it's of a different duration.

 What is the definition of the signal that shows on PWMxB when in HRPWM mode? Does this signal have a formal definition or it just an escaped internal signal of multitudinous possible definitions? IF I knew that it had a formal definition related to the HRPWM on PWMxA, I may be able to use it...

 

Cheers

 

Rob

  • Rob,

    For Piccolo, the B channel is, except for in the exceptions you've mentioned, a standard PWM (non-HR) output.  Therefore:

    1) If you are using the HRPWM to generate a high-resolution duty cycle only, the B channel should be a standard PWM output.  The output should be easily definable.

    2) If you are using the HRPWM to generate high-resolution period outputs, the B channel output is undefined.

    Note that in case (1), assuming your have a spare PWM module, you can always synchronize the timers of two PWM modules and get two synchronized HR duty cycle outputs.


    Thank you,
    Brett