Hello Team,
One of my customers got several MSP430G2744 burned (one is even smoked), so evidently too much current flows into MCU.
Attached is a schematics (as customer states, GPIOs are not connected, RT and R3 are not mounted, 32kHz crystall is not mounted), only LED is connected to port1. At default frequency 1MHz it works, but as soon as he modifies it to 10MHz, MCU gets burned.
Here is his code:
********************************************************************
#include "io430.h"
#include "in430.h"
#include "math.h"
#define PWM (1<<2)
#define LED1 (1<<7)
int main( void )
{
unsigned short n,n1;
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
//Init all pins
P1DIR = 0; // P1 as input
P2DIR = 0; // P2 as input
P3DIR = 0; // P3 as input
P4DIR = 0; // P4 as input
//main loop
BCSCTL2 = 0;
DCOCTL = 0; //DCOx=0, MODx=0
BCSCTL1 = 0x87; //RSELx = 7
BCSCTL1 = 0x8D; // RSELx = 13 // intermediate value
BCSCTL1 = 0x8E; // RSELx = 14 // frequency set to 10MHz
DCOCTL = (3<<5)+0x10; // DCOx = 3, MODx=16
P1DIR |= LED1; // LED pin as output
P1OUT &= ~LED1; // LED ON
P2DIR |= PWM; // pin is not connected
P2OUT &= ~PWM;
//мигаем
while(1)
{
P1OUT |= LED1; // LED OFF
for(n=0;n<65000;n++); //delay
P1OUT &= ~LED1; // LED ON
for(n=0;n<65000;n++); //delay
}
return 0;
}
***************************************************************
Could you please help to understand where ports are misconfigured? Or frequency change is wrong?
Best regards,
Ilya