I took a simple example program that output's PWM using Timer A based off a TI code example code and successfully compiled it in CCS 6.0.1.00040 as follows...
//*******************************************************************************
// MSP430FR57x Demo - Timer0_A3, PWM TA0.1-2, Up Mode, DCO SMCLK
//
// Description: This program generates two PWM outputs on P1.0,P1.1 using
// Timer0_A configured for up mode. The value in CCR0, 1000-1, defines the PWM
// period and the values in CCR1 and CCR2 the PWM duty cycles. Using ~1MHz
// SMCLK as TACLK, the timer period is ~1ms with a 75% duty cycle on P1.0
// and 25% on P1.1.
// ACLK = n/a, SMCLK = MCLK = TACLK = 1MHz
//
//
// MSP430FR5739
// ---------------
// /|\| |
// | | |
// --|RST |
// | |
// | P1.0/TA0.1|--> CCR1 - 75% PWM
// | P1.1/TA0.2|--> CCR2 - 25% PWM
//
// Priya Thanigai
// Texas Instruments Inc.
// August 2010
// Built with IAR Embedded Workbench Version: 5.10 & Code Composer Studio V4.0
//******************************************************************************
#include <msp430.h>
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
CSCTL0_H = 0xA5; // this is the passkey that allows writing to the CSxxx registers
CSCTL1 |= DCOFSEL0 + DCOFSEL1; // Set max. DCO setting =8MHz
CSCTL2 = SELA_3 + SELS_3 + SELM_3; // set ACLK = SMCLK = DCO/8
CSCTL3 = DIVA_3 + DIVS_3 + DIVM_3; // set all dividers
P1DIR |= BIT0+BIT1; // P1.0 and P1.1 output
P1DIR |= BIT0; // P1.0 output
P1SEL0 |= BIT0+BIT1; // P1.0 and P1.1 options select
P1SEL0 |= BIT0; // P1.0 select
TA0CCR0 = 256-1; // PWM Period
TA0CCTL1 = OUTMOD_7; // CCR1 reset/set
TA0CCR1 = 200; // CCR1 PWM duty cycle
TA0CCTL2 = OUTMOD_7; // CCR2 reset/set
TA0CCR2 = 50; // CCR2 PWM duty cycle
TA0CTL = TASSEL_2 + MC_1 + TACLR; // SMCLK, up mode, clear TAR
__bis_SR_register(LPM0_bits); // Enter LPM0
__no_operation(); // For debugger
}
It works but the draw is around 5 mA, I was running something very similar on a MSP-EXP430G2 board and drawing under 60 uA. Cleary 5 mA is WAAAAYYY more than I was expecting.
I'm measuring the current using the MSP_PWR jumper pins.
Any ideas?