Question: / / Main thread / / / / while ( 1 ) { / / 1 cycle to loop / / if ( 1 =
Main thread
while cycle to loop
if pProcessInterrupt cycle to check the flag
process; cycles to run the processing
pProcessInterrupt ; cycle to set the flag back to
assume cycles for this line
assume cycles for this line
Assume cycle to transition to the interrupt
void interrupthandler
interrupt takes cycles
pProcessInterrupt ;
interruptPending ;
Assume cycle to transition back to the main program
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
