counter and timers in 8051

timers in 8051

___________________________________________________________________________________________________

  • What is Timer ?-  Timer is used to calculating the amounts of time between events.

timers in 8051

  • What is Counter ?-  Counter is used to count external events.

timers in 8051

  • About Timer & Counter-  Timer is fully depend upon the oscillator that attached externally to the microcontroller because it uses the frequency of oscillator to run. When we trigger timer it start from initial value and run up to decided value stored by user in special function registers. When it reach its maximum value, it overflows and a certain bit is decided to show over flow in SFR(special function register). Some timers also used prescalar technique to enhance its limits. AT89C51 contain two timer/counter T0 and T1 and which can be used in different mode like 8bit ,13bit and 16 bit. Maximum value that can be achieved by timer is depending upon its size. Suppose a timer is of 16 bit so it can achieved up to = 65536
  • Applications- Generating rectangular pulses (signal modulation), Watchdog timers, Counting objects, Measuring intervals, generating delay, etc.

Click Here : Understanding of counter and timers in 8051 

1.  Generating delay of 1 sec using Timer 1 mode 0 and blink all LEDs using this delay.

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)   ____________________________________________________________________________________________________

2.  Generating square ware of  100 us.

 

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)   ____________________________________________________________________________________________________

Content for the tab VIDEO