Part Number: MSP430FR5994
Tool/software: Code Composer Studio
Good morning,
I'm using the fr5994 to generate pwm through TA4 with TA4.0 output. That doesn't works with both pins according to TA4.0 (P7.4 and P5.6).
Following config. code:
P7DIR |= BIT4;
P7SEL1 |= BIT4;
P7SEL0 &= ~BIT4;
// Configure Timer1_A
TA4CCR0 = pwm_period; // PWM Period
TA4CCR1 = constant; // Tensão constante
TA4CCTL1 = OUTMOD_7; // CCR1 reset/set
TA4CTL = TASSEL__SMCLK | MC__UP | TACLR; // SMCLK, up mode, clear TAR
Checked signal with scope alternating pwm_period from 0~1k DTC (duty cycle) from 0-100% and nothing happen.
When I change to TA4.1 with this config:
P5DIR |= BIT7; // P1.2 output PWM
P5SEL1 |= BIT7; // P1.2 and P1.3 options select
P5SEL0 &= ~BIT7; // Clear P1.2 output latch for a defined power-on state
Same as previously, checked signal with scope with DTC ok. (Both pins of TA4.1 works well)