Question: Consider the following program. The main program is an infinite loop. The CPU enters a low power mode where the CPU, MCLK , SMCLK ,

Consider the following program. The main program is an infinite loop. The CPU enters a low power mode where the CPU, MCLK, SMCLK, and the DCO oscillator are all turned off, ACLK stays on. The WDT interrupt service routine should wake the CPU up every 1000 ms (1s). The CPU then pulses an LED connected at the P1.0(turns it on, keeps it on for some time, and then turns it off) and then enters the LPM mode again. Write a simple program at the beginning of the main routine as well as what needs to be done in the WDT interrupt service routine. Assume that a watch crystal of 32768 Hz is connected to LFXT1. Could you estimate how long the LED will be on?(25 points)
Consider the following program. The main program

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 Programming Questions!