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.

MSP430F5508 TimerA Out0 for PWM

Am I correct in assuming that the Out0 for TimerA is not usable for PWM since outmodes 2,3,6,7 are not useful for output unit 0 (from user manual) and therefore can't change the duty cycle?

  • For the majority of configurations, you are correct, the CCR0 is not usable as a PWM.  It is typically used to define the frequency of the PWM signals, rather than the duty cycle of an output.

    The one exception is if you configure the Timer for count up mode to a fixed value 0xFFFF.  In this instance, CCR0 can then be used to modulate the duty cycle.  However, this tends to be a limiting use case as you have very little flexibility in the frequency.

  • In addition to what Brandon has said, you can use OUT.0 to generate a 1-clock-cycle pulse that can be used for synchronization purposes. Or, if you use up/down mode (e.g. generating PWM pulse patterns with 'dead time' for driving complementary output drivers), OUT.0 can generate a square wave output with 50% DC.
    So it is not completely useless. But you cannot have both, DC modulation on OUT.0 and PWM frequency control by CCR0.

**Attention** This is a public forum