Understanding of Timer and Counter

  • Calculation of time period of single machine cycle execution.

time period of 1 MC

 

 

 

 

 

 

  • Same as

12 MHz

1 us

18 MHz

0.66 us

22 MHz

0.545 us

24 MHz

0.5 us

 

 

 

  •  Calculation of  delay using Timer.

delay

  •  Counter operation

Understanding of Timer and Counter

  • Counter operation is like stairs.
  • As the number of external events or pulse is marked on pin value of register is increased by 1 as shown in figure.