Question: A [ 1 0 ] Assume the processor consumes 3 2 mA during normal operation, 8 mA at the idle mode, and 8 0 nA

A [10] Assume the processor consumes 32 mA during normal operation, 8 mA at the idle mode, and 80 nA at the sleep mode. Assume the watchdog timeout is 50 ms . Consider the code on the right side.
i - What percentage of time the processor is in the sleep mode, idle mode and doze mode?
ii- Compute the average current consumption.
(You may write your solution on the back of this page)
main (){
uint8 i;
_SWDTEN =1; // Enable watchdog timer for (i=0;i10;i++){
asm("pwrsav#0"); // sleep mode }
asm("pwrsav#1"); // idle mode
CLKDIVbits.DOZE =7;
CLKDIVbits.DOZEN =1;
while (1) ;
}
A [ 1 0 ] Assume the processor consumes 3 2 mA

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!