Write a C program that will output clock signals to port 4 of MSP430. Assume that clock inputs are as follows: ACLK = LFXT1 = 32768, MCLK = DCO Max, SMCLK = XT2. Solution #include <msp430x14x.h> void main(void) { // WDT 250ms, ACLK, interval timer WDTCTL = WDT_ADLY_250; IE1 |= WDTIE; // Enable WDT interrupt P1DIR |= 0x01; // Set P1.0 to output direction // Enter LPM3 w/interrupt _BIS_SR(LPM3_bits + GIE); } // Watchdog Timer i nterrupt service routine interrupt[WDT_TIMER] void watchdog_timer(void) { P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR } .