timer

Timers/Counters


hourglass_top

AT89C51 Timer/Counter0

hourglass_bottom

AT89C51 Timer/Counter1

The AT89C51 is a low-power, high-performance CMOS 8-bit microcontroller from the 8051 family that uses a Harvard architecture. It includes a robust suite of features including 4KB of reprogrammable Flash memory, 128 bytes of RAM, 32 input/output (I/O) lines, two 16-bit timers/counters, five channels for interrupt processing, a full duplex serial port, an on-chip oscillator and clock circuitry.

In this context, we'll be focusing on the two timers/counters that are available in the AT89C51: Timer/Counter 0 and Timer/Counter 1.

Timer or Counter

Whether the timer/counters operate as timers or counters is determined by the C/T bit in the TMOD register. If the C/T bit is cleared (0), the timer mode is selected, in which the register increments every machine cycle.

If the C/T bit is set (1), the counter mode is selected, and the register increments on the falling edge of the pin designated for the timer (T0 for Timer 0 and T1 for Timer 1).
Loading...

hourglass_top

AT89C51 Timer/Counter0

The AT89C51 microcontroller comes equipped with two robust timers/counters, named Timer 0 and Timer 1. Here, we focus on Timer/Counter 0, its operational modes, and its range of applications.

Whether you're a professional developer, a student learning about microcontrollers, or a hobbyist building your next project, our guide is designed to equip you with the knowledge you need to make the most of this versatile timer/counter.

hourglass_bottom

AT89C51 Timer/Counter1

Uncover how Timer/Counter 1 intertwines with the broader system architecture of the AT89C51 microcontroller, familiarize yourself with its precise timing and counting capabilities, and delve into its myriad applications, which extend from generating precise time delays and frequencies to creating sophisticated real-time systems.

The AT89C51 microcontroller is embedded with two dynamic timers/counters, referred to as Timer 0 and Timer 1. This guide provides an extensive look into Timer/Counter 1, detailing its operation modes, and illustrating a broad spectrum of applications.

Search