Programmable Interval Timer

From Wikipedia, the free encyclopedia

A Programmable Interval Timer (PIT) provides one or more counters which trigger an interrupt when they reach their programmed count.

Contents

[edit] Common Features

PITs counters may be one-shot or periodic. One-shot timers interrupt only once, and then stop counting. Periodic timers interrupt every time they reach a specific value.

Counters are usually programmed with fixed increment intervals which determine how long the counter counts before it triggers an interrupt. The interval increments therefore determine the resolution for which the counter may be programmed to generate its one-shot or periodic interrupt.

[edit] Well Known PITs

One of the best known PITs is the Intel 8253 and Intel 8254 family.

[edit] IBM PC compatible

PITs are the oldest timer devices used on IBM PC compatibles. They use a 1.193182 MHz crystal oscillator (one third of NTSC color burst) and contain three timers. Timer 0 is used by Microsoft Windows (uniprocessor) and Linux to as system timer, timer 1 was historically used for RAM refreshes and timer 2 for the PC speaker.

[edit] See also