Expand description
The Programmable Interval Timer (PIT) chip (Intel 8253/8254) basically consists of an oscillator, a prescaler and 3 independent frequency dividers. Each frequency divider has an output, which is used to allow the timer to control external circuitry (for example, IRQ 0).
Reference: https://wiki.osdev.org/Programmable_Interval_Timer
EnumsΒ§
- Access
Mode π - This bits tell the PIT what access mode is used for the selected channel.
- Channel π
- Used to select the configured channel in the
MODE_COMMAND_PORT
of the PIT. - Operating
Mode - PIT Operating Mode.
ConstantsΒ§
- TIMER_
INTERRUPT π - TIMER_
RATE π
StaticsΒ§
- CHANNE
L0_ πPORT - The output from PIT channel 0 is connected to the PIC chip and generate βIRQ 0β. If connected to PIC, the IRQ0 will generate by the rising edge of the output voltage.
- CHANNE
L1_ πPORT - The output from PIT channel 1 was once used for refreshing the DRAM or RAM so that the capacitors donβt forget their state.
- CHANNE
L2_ πPORT - The output from PIT channel 2 is connected to the PC speaker, so the frequency of the output determines the frequency of the sound produced by the speaker. For more information, check https://wiki.osdev.org/PC_Speaker.
- MODE_
COMMAND_ πPORT - PIT command port.
FunctionsΒ§
- enable_
interrupt π - Enables the interrupt line that is connected to the PIT.
- init π