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 ms s The CPU then pulses an LED connected at the Pturns 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 Hz is connected to LFXT Could you estimate how long the LED will be on points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
