The Intel 8051 is a classic 8-bit microcontroller architecture that includes several standard hardware peripherals integrated directly onto the chip to support various timing and counting tasks.
1. Timer/Counter Resources:
Standard 8051 microcontrollers are equipped with
two 16-bit Timer/Counter modules.
• Timer 0: A 16-bit register (accessed as two 8-bit registers, TH0 and TL0).
• Timer 1: A 16-bit register (accessed as two 8-bit registers, TH1 and TL1).
2. Modes of Operation:
These timers can operate in four different modes (Mode 0 to Mode 3), allowing them to function as interval timers (counting internal clock cycles) or as event counters (counting external pulses applied to the T0 and T1 pins).
3. Application:
Timer 1 is frequently utilized for generating the baud rate for serial communication via the UART, while Timer 0 is often used for general-purpose timing delays or frequency measurement in embedded applications.