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;
}
