Question: Computer Science I need help with Embedded system class. C code only not assembly . 5. The following code is executed in a PIC24H processor
Computer Science
I need help with Embedded system class. C code only not assembly .

5. The following code is executed in a PIC24H processor with Fosc=25MHz: void ISRFAST T2Interrupt (void) { update state ( ) ; T2IF = 0; } int main (void) { T2CON= 0x0020; PR2 = 1562; TMR2 = 0; T2IF = 0; T2IP = 1; T2IE = 1; T2CONbits . TON = 1; while (1) { // ... . other code in the program Compute the percentage of CPU time taken by the ISR. Assume the function call update_state() consumes 50 instruction cycles and all other statements consume one instruction cycle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
