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.

MSP430FR2533: Timber B problem " identifier "TB0CCR2" is undefined"

Part Number: MSP430FR2533

So I'm trying to create pwm on MSP430FR2533. My code is below. When I try to compile the code, identifier "TB0CCR1" is undefined" and identifier "TB0CCR2" is undefined" errors show up. Checked examples online and didn't see anything. Checked the datasheet and TB0CCR1 and 2 are valid register names. I have no clue what is going on. Any help would be greatly appreciated. 

static void PWM1(uint16_t PWMValue)
{
if (PWMValue > MaxPWM)
{
PWMValue = MaxPWM;
}
TB0CCR1 = PWMValue;
}

static void PWM2(uint16_t PWMValue)
{
if (PWMValue > MaxPWM)
{
PWMValue = MaxPWM;
}
TB0CCR2 = PWMValue;
}

**Attention** This is a public forum