What is Timer 1 (T1) ?
Timer 1 is also one of the main timers/counters in the 8051 microcontroller, used for doing timing operations and counting events. It is also divided into two 8-bit registers they are TL1 (Timer 1 Low byte) and TH1 (Timer 1 High byte). By combining both, these form a 16-bit timer/counter
TL1 (Timer 1 Low Byte)
- Timer 1’s bottom 8-bit register is designated as TL1.
- It contains the count value’s bottom byte.
- When using a 16-bit timer, TL1 increases first and then TH1 by 1 once TL1 reaches its maximum value of 255.
TH1 (Timer 1 High Byte)
- Timer 1’s upper 8-bit register is designated as TH1.
- It contains the count value’s higher byte.
- When TL1 overflows, TH1 increments, allowing Timer 1 to count up to 65,535 (FFFFH) before overflowing.
Structure of Timer 1
Given below is the Structure of Timer 1.
8051 Timers and Counters
8051 microcontrollers are mainly used to speed up our tasks because they are very easy to use and they are also fast to complete tasks easily. These microcontrollers have one main feature which is Timers and counters. This feature is widely used in microcontrollers to measure the time and as well as to count the events or tasks. By learning about these timers and counters ,we can make good embedded systems. In this article let us see how these counters and timers work in microcontrollers.
Table of Content
- 8051 Timers and Counters
- Types
- What is Timer 0 (T0) ?
- What is Timer 1 (T1) ?
- TCON and TMOD
- Timer Counter Modes
- What is Counter Mode ?