In computing and in embedded systems, a programmable interval timer (PIT) is a counter that generates an output signal when it reaches a programmed count. The output signal may trigger an interrupt.

Common features

edit

PITs may be one-shot or periodic. One-shot timers will signal only once and then stop counting. Periodic timers signal every time they reach a specific value and then restart, thus producing a signal at periodic intervals. Periodic timers are typically used to invoke activities that must be performed at regular intervals.

Counters are usually programmed with fixed intervals that determine how long the counter will count before it will output a signal.

IBM PC compatible

edit

The Intel 8253 PIT was the original timing device used on IBM PC compatibles. It used a 1.193182 MHz clock signal (one third of the color burst frequency used by NTSC, one twelfth of the system clock crystal oscillator,[1] therefore one quarter of the 4.77 MHz CPU clock) and contains three timers. Timer 0 is used by Microsoft Windows (uniprocessor) and Linux as a system timer, timer 1 was historically used for dynamic random-access memory refreshes and timer 2 for the PC speaker.[2]

The LAPIC in newer Intel systems offers a higher-resolution (one microsecond) timer.[3] This is used in preference to the PIT timer in Linux kernels starting with 2.6.18.[4]

See also

edit

References

edit
  1. ^ "Bran's Kernel Development Tutorial: The Programmable Interval Timer". Osdever.net. Retrieved 2013-10-30.
  2. ^ "Programmable Interval Timer - OSDev Wiki". Wiki.osdev.org. 2012-06-26. Retrieved 2013-10-30.
  3. ^ Uwe Walter, Vincent Oberle μ-second precision timer support for the Linux kernel
  4. ^ Determining and changing the rate of timer interrupts a guest operating system requests (1005802)
edit

📚 Artikel Terkait di Wikipedia

High Precision Event Timer

HPET device can only use older timing facilities, such as the programmable interval timer (PIT) or the real-time clock (RTC). Windows XP, when fitted with

Watchdog timer

restart. Watchdog timers may have either fixed or programmable time intervals. Some watchdog timers allow the time interval to be programmed by selecting from

Intel 8253

The Intel 8253 and 8254 are programmable interval timers (PITs), which perform timing and counting functions using three 16-bit counters. The 825x family

Pomodoro Technique

1980s. It uses a kitchen timer to break work into intervals, typically 25 minutes in length, separated by short breaks. Each interval is known as a pomodoro

Timer coalescing

Advanced Programmable Interrupt Controller (APIC) High Precision Event Timer (HPET) HLT (x86 instruction) Interrupt coalescing Programmable interval timer Time

KIM-1

MCS6530 comprises a mask programmable 1024 × 8 ROM, a 64 × 8 RAM, two eight-bit bi-directional ports, and a programmable interval timer. The KIM-1 brochure

Timer

electronic timers have become more advantageous. Nowadays, many timers are implemented in software. Modern controllers use a programmable logic controller

MOS Technology 6532

bidirectional 8-bit digital input/output ports, and an 8-bit Programmable interval timer (with pre-divider). This high degree of integration made it popular