Question: Read the following function mTimer (), evaluate the period when it works as a timer. How many seconds are delayed in the function main()?

Read the following function mTimer (), evaluate the period when it works as a timer. How many seconds are delayed in the function main()? Assume the frequency of the system clock is 8.0MHz. void main() { CLKPR = 0x80; CLKPR = 0x01: /* Clock Prescaler Select */ mTimer (20); return; void mTimer(int count) { int i,k; TCCRIB BV (CS12); TCCRIB /* set the prescale to be (1/256) */ BV (WGM12); /* CTC mode */ OCRIA = 0x0384: TCNTI = 0x0000; TIMSKI TIMSKI | 0b00000010; TIFRI BV (OCFIA); for (k=1;k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
