Home /
Expert Answers /
Computer Science /
this-is-the-full-question-a-pic-24h-processor-with-fosc-40mhz-with-the-following-paramete-pa286
(Solved):
This is the full question
A PIC 24H processor with Fosc=40MHz with the following paramete ...
This is the full question
A PIC 24H processor with Fosc=40MHz with the following parameters: - WDTPRE=0,WDTPOST=11102 - It consumes 40mA during normal operation - It consumes 10mA in idle mode, - It consumes 30nA in sleep mode. main () 1 uint 8 count =0; T2CON=0×0030; PR2 =65535; T2IE =0; while (1) 1 SWDTEN =1; asm("pwrsan \#1") ; SWDTEN =0;T2CONB1ts.TON=1; while (count<10) ( if ( count <4){ DOZEN =1; DO2E =0×02;} elsie { DOZEN =0; if (_T2IF==1)I−T2IF =0; count t+ ; 1 T2CONBI t s. TON=0; 1 I (a) What is the WDT timeout? (b) What is the doze mode current? (c) What is the total time of a single iteration of the outer while loop? (d) What percentage of the time the PlC24 runs in idle mode? (c) What percentage of the time the PIC24 runs in doze mode? (t) What percentage of the time the PIC24 runs in normal mode? (g) What is the average current consumption? (h) Estimate how long a full 500mA.h battery operates the processor before the battery becomes empt.