Greetings.
I am using a MSP430FR2355 LaunchPad board, and trying to set up a PWM output on P6.0 and P6.1
I found some example code in another forum post. It had to be modified to use different timer instances, so there is probably an error here.
Here is the code I am using:
P6DIR = 0x03; // make P6.0 and P6.1 as outputs. Values from table 6-68 in DS. P6SEL0 = 0x03; // Connect P6.0 with TB3.1. Connect P6.1 with TB3.2 // set-up from E2E support forum // e2e.ti.com/.../614877 TB3CCR0 = 0; TB3CCR1 = 0; //TB0CCTL1 = CCLD_1 | OUTMOD 6; TB0CCTL1 = 0x02C0; //TB0CTL = TBSSEL_SMCLK + MC_UP + ID_2 + TBCLR; TB0CTL = 0x0254; TB3CCR0 = 100; TB3CCTL0 = CLLD_3; TB3CCR1 = 50;
The compiler was not seeing the definitions for items such as CCLD_1, OUTMOD6, ... so I hard-coded these on the line below
Thanks in advance for the help!