I am using a MSP430F5529 and I am trying to use PWM from Timer_B. I have no problem with PWM TB0,1 to TB0.6. In the documentation it says that when the timer is use in continuous mode, the compare latch TBCL0 works the same way as the other compare registers.
P7DIR |= GPIO_PIN5 + GPIO_PIN4;
P7SEL |= GPIO_PIN5 + GPIO_PIN4 ;
P7DS |= GPIO_PIN5 + GPIO_PIN4;
P5DIR |= GPIO_PIN6 + GPIO_PIN7;
P5SEL |= GPIO_PIN6 + GPIO_PIN7 ;
P5DS |= GPIO_PIN6 + GPIO_PIN7 ;
TB0CTL = TBCLGRP_0 + CNTL__12 + TBSSEL__SMCLK + MC__CONTINUOUS + ID__8 ;// 12 Bits, SMCLK, Continuous Counter, /8
TB0EX0 = TBIDEX__8; // Divide by 8
TB0CCR0 = 0x100 ;
TB0CCR1 = 0x400;
TB0CCR2 = 0x600;
TB0CCR3 = 0x800;
TB0CCTL0 = CLLD_0 + OUTMOD_7 ;
TB0CCTL1 = CLLD_0 + OUTMOD_7 ;
TB0CCTL2 = CLLD_0 + OUTMOD_7 ;
TB0CCTL3 = CLLD_0 + OUTMOD_7 ;
This is my code to test, it works fine when I comment TB0CCR0 and TB0CCTL0 . It is a self running PWM, no interrupt.
I am using: Code Composer V6 ; Compiler TI v4.3.4

