1 #include<msp430g2553.h>
11 WDTCTL = WDTPW|WDTHOLD;
33 void hled(
unsigned char numled)
42 unsigned volatile sig;
43 if ((P1IN &
BOTAO) == BOTAO)
84 volatile unsigned int count1 = 0, count2 = 0;
86 for (count1 = 0; count1< numcic; count1++)
88 for(count2 = 0; count2 < 1000; count2++)
100 BCSCTL1 = CALBC1_1MHZ;
101 DCOCTL = CALDCO_1MHZ;
124 UCA0CTL1 |= UCSSEL_2;
128 UCA0CTL1 &= ~UCSWRST;
134 while(!(IFG2 & UCA0RXBUF));
140 UCA0TXBUF = caracter;
147 volatile int cont = 0, len =
strlen(st);
149 for(cont=0; cont<len; cont++)
161 TACTL = TASSEL_2 + MC_2;
void dly_coxa(int numcic)
__END_NAMESPACE_STD char char __BEGIN_NAMESPACE_STD size_t strlen(const char *__s) __THROW __attribute_pure__ __nonnull((1))
void hled(unsigned char numled)
Enable LED.
void waitbton(unsigned char sinal)
void alterled(unsigned volatile numled)
void botao()
Enable the button.
void desabWDT()
Desable Watchdog.
int putchar(int caracter)