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.
Tool/software: Code Composer Studio
Dear all,
I'm getting stuck with the external power with the launchpad. When I used the debugger tool to supply power to the kit just for testing the on-board LED, everything was okay. But when I connected an external 3.6VDC to the kit, the MCU did not work. The power was taken from a DC signal generator. Jumper J10 was set to "External". VCC on J12, J1, and J4 were measured to be 3.6V.
Below is my code for testing the kit. I do not understand why this happened, because the code was perfect with the power from USB (jumper J10 set to "Debugger").
#include <msp430fr5969.h> /** * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer PM5CTL0 &= ~LOCKLPM5; P1DIR = 0xFF; P1OUT = 0x00; P2DIR = 0xFF; P2OUT = 0x00; P3DIR = 0xFF; P3OUT = 0x00; P1DIR |= 0x01; P1OUT |= BIT0; TA0CCTL0 = CCIE; // CCR0 interrupt enabled TA0CCR0 = 50000; TA0CTL = TASSEL__SMCLK | MC__CONTINOUS; // SMCLK, continuous mode __bis_SR_register(LPM0_bits + GIE); // Enter LPM0 w/ interrupt } // Timer A0 interrupt service routine; Blinking LED for debugging #pragma vector = TIMER0_A0_VECTOR __interrupt void Timer0_A0_ISR (void) { P1OUT ^= 0x01; // Toggle P1.0 TA0CCR0 += 50000; // Add Offset to CCR0 }
Thank you in advance for any comment.
**Attention** This is a public forum