#include <msp430g2553.h>
void main()
{
WDTCTL = WDTHOLD + WDTPW; // Stop watchdog timer
P2DIR |= BIT6; // Chon chuc nang TA0.1 cho chan P1.6
P2SEL &= ~BIT6;
P2SEL2 &= ~BIT6;
// Setup timer1
while(1)
{
TA0CTL |= TASSEL_0 + MC_1;
TA0CCTL1 = OUTMOD_3...