Question: Complete the following block of code to toggle LED2 on the G2553 every 16ms. 1 #include 2 3 void main (void) 41 5 WDTCTL =

Complete the following block of code to toggle LED2 on the G2553 every 16ms. 1 #include 2 3 void main (void) 41 5 WDTCTL = // USING ACLK WITH 16ms DELAY. 6 // CAN ALSO BE SOURCED FROM DCOCLK. 7 1 = // SET LED4 AS OUTPUT 8 IE1 = WDTIE; / / ENABLE WDT INTERRUPT 9 BIS SR(LPMO_bits + GIE); // ENABLE LPMO WITH INTERRUPTS ENABLED 10} 11 12 / /WDT ISR TOGGLE LED1 13 #pragmavector=WDT_VECTOR 14 _interrupt void watchdog_timer (void) 15{ / TOGGLE LED4 USING XOR EVERYTIME ISR IS CALLED. 16 17} Line #5: Line #7: Line #16

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!