Professional Documents
Culture Documents
#include <msp430g2553.h>
volatile unsigned int i = 0;
void main(void)
{
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= 00000001;
for (;;)
{
P1OUT ^= 0x01;
for(i=0; i< 20000; i++);
}
}
https://embedds.com/blinking-the-led-with-msp430/