encyclopegia.org

Intel 8253

The Intel 8253 and 8254 are programmable interval timers (PITs), which perform timing and counting functions using three 16-bit counters.[src] The 825x family was primarily designed for the Intel 8080/8085-processors, but were later used in x86 compatible systems.[src] The 825x chips, or an equivalent circuit embedded in a larger chip, are found in all IBM PC compatibles and Soviet computers like the Vector-06C.[src] In PC compatibles, Timer Channel 0 is assigned to IRQ-0 (the highest priority hardware interrupt).[src] Timer Channel 1 is assigned to DRAM refresh (at least in early models before the 80386).[src] Timer Channel 2 is assigned to the PC speaker.[src] The Intel 82c54 (c for CMOS logic) variant handles up to 10 MHz clock signals.[src]

The Intel 8253 and 8254 are programmable interval timers (PITs), which perform timing and counting functions using three 16-bit counters.[src] The 825x family was primarily designed for the Intel 8080/8085-processors, but were later used in x86 compatible systems.[src] The 825x chips, or an equivalent circuit embedded in a larger chip, are found in all IBM PC compatibles and Soviet computers like the Vector-06C.[src] In PC compatibles, Timer Channel 0 is assigned to IRQ-0 (the highest priority hardware interrupt).[src] Timer Channel 1 is assigned to DRAM refresh (at least in early models before the 80386).[src] Timer Channel 2 is assigned to the PC speaker.[src] The Intel 82c54 (c for CMOS logic) variant handles up to 10 MHz clock signals.[src] ==History== The 8253 is described in the 1980 Intel "Component Data Catalog" publication.[src] The 8254, described as a superset of the 8253 with higher clock speed ratings, has a "preliminary" data sheet in the 1982 Intel "Component Data Catalog".[src] The 8254 is implemented in HMOS and has a "Read Back" command not available on the 8253, and permits reading and writing of the same counter to be interleaved.[src] Modern PC compatibles, either when using SoC CPUs or southbridge typically implement full 8254 compatibility for backward compatibility and interoperability.[src] The Read Back command being a vital I/O feature for interoperability with multicore CPUs and GPUs.[src] Operation mode of the PIT is changed by setting the above hardware signals.[src] For example, to write to the Control Word Register, one needs to set =0, =1, =0, A1=A0=1.[src] The control word register contains the programmed information which will be sent (by the microprocessor) to the device.[src] It defines how each channel of the PIT logically works.[src] Each access to these ports takes about 1 μs.[src] To initialize the counters, the microprocessor must write a control word (CW) in this register.[src] This can be done by setting proper values for the pins of the Read/Write Logic block and then by sending the control word to the Data/Bus Buffer block.[src] The control word register contains 8 bits, labeled D7..D0 (D7 is the MSB).[src] The decoding is somewhat complex.[src] Most values set the parameters for one of the three counters: The most significant two bits (if not 11) select the counter register the command applies to.[src] The next two bits (if not 00) select the format that will be used for subsequent read/write access to the counter register.[src] This is commonly set to a mode where accesses alternate between the least-significant and most-significant bytes.[src] One difference between the 8253 and 8254 is that the former had one internal bit which affected both reads and writes, so if the format was set to 2-byte, a read of the lsbyte would cause a following write to be directed to the msbyte.[src] The 8254 used separate bits for reads and writes.[src] The next three bits select the mode that the counter will operate in.[src] The least significant bit selects whether the counter will operate in binary or BCD.[src] (BCD counting almost never used and may not be implemented properly in emulators or southbridges.) However, there are two other forms: Latch the count for a given timer.[src] The next read will, rather than returning the counter value at the moment of the read, return the counter value at the moment of the latch command.[src] After the read completes, later reads will return the current counter.[src] When the latch command is used, the mode and BCD status are not changed.[src] (8254 only) Latch the status and/or count for multiple timers.[src] This allows multiple simultaneous latch commands using a bitmap.[src] Also, the current channel configuration may be read back in addition to the count.[src] When setting the PIT, the microprocessor first sends a control message, then a count message to the PIT.[src] The counting process will start after the PIT has received these messages, and, in some cases, if it detects the rising edge from the GATE input signal.[src] Status byte format.[src] Bit 7 allows software to monitor the current state of the OUT pin.[src] Bit 6 indicates when the count can be read; when this bit is 1, the counting element has not yet been loaded and cannot be read back by the processor.[src] Bits 5 through 0 are the same as the last bits written to the control register.[src] Value to be loaded into counter = f_{\rm input}\over f_{\rm output} Note that the values in the COUNT register range from n to 1; the register never reaches zero.[src] All PC compatibles operate the PIT at a clock rate of 105/88 = 1.193  MHz, the NTSC color burst frequency which comes from dividing the system clock (14.31818 MHz) by 12.[src] This is a holdover of the very first CGA PCs – they derived all necessary frequencies from a single quartz crystal, and to make TV output possible, this oscillator had to run at a multiple of the NTSC color subcarrier frequency.[src] This frequency, divided by 2 16 (the largest divisor the 8253 is capable of) produces the ≈18.2 Hz timer interrupt used in MS-DOS and related operating systems.[src] In the original IBM PCs, Counter 0 is used to generate a timekeeping interrupt.[src] Counter 1 is used to trigger the refresh of DRAM memory.[src] Counter 2 is used to generate tones via the PC speaker.[src] Newer motherboards include additional counters through the Advanced Configuration and Power Interface (ACPI), a counter on the Local Advanced Programmable Interrupt Controller, and a High Precision Event Timer.[src] The CPU itself also provides the Time Stamp Counter facility.[src] On PCs the address for timer0 (chip) is at port 40h..43h and the second timer1 (chip) is at 50h..53h.[src] On x86 PCs, many video card BIOS and system BIOS will reprogram the second counter for their own use.[src] Reprogramming typically happens during video mode changes, when the video BIOS may be executed, and during system management mode and power saving state changes, when the system BIOS may be executed.[src] This prevents any serious alternative uses of the timer's second counter on many x86 systems.[src] As stated above, Channel 0 is implemented as a counter.[src] Typically, the initial value of the counter is set by sending bytes to the Control, then Data I/O Port registers (the value 36h sent to port 43h, then the low byte to port 40h, and port 40h again for the high byte).[src] The counter counts down to zero, then sends a hardware interrupt (IRQ 0, INT 8) to the CPU.[src] The counter then resets to its initial value and begins to count down again.[src] The fastest possible interrupt frequency is a little over a half of a megahertz.[src] The slowest possible frequency, which is also the one normally used by computers running MS-DOS or compatible operating systems, is about 18.2 Hz.[src] Under these real mode operating systems, the BIOS accumulates the number of INT 8 calls that it receives in real mode address 0040:006c, which can be read by a program.[src] As a timer counts down, its value can also be read directly by reading its I/O port twice, first for the low byte, and then for the high byte.[src] However, in free-running counter applications such as in the x86 PC, it is necessary to first write a latch command for the desired channel to the control register, so that both bytes read will belong to one and the same value.[src] According to a 2002 Microsoft document, "because reads from and writes to this hardware [8254] require communication through an IO port, programming it takes several cycles, which is prohibitively expensive for the OS.[src] Because of this, the aperiodic functionality is not used in practice."[src]

72 sentences · 72 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Intel 8253." encyclopegia.org, 2026, https://encyclopegia.org/wiki/intel-8253. Accessed 29 November 2026.

Chicago

"Intel 8253." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/intel-8253.

APA

encyclopegia.org. (2026). Intel 8253. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/intel-8253

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Intel Technology Journal

stub · references available

Intel Core 7

stub · references available

Mac transition to Intel processors

stub · references available

Intel 80286

stub · references available

Intel 80188

stub · references available

Intel 8284

stub · references available

Intel 8275

stub · references available

Intel 440BX

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1352499759 · 0.5 · snapshot enwiki-001352499759

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.