Timer
The timer is a module that consists of two internal registers:
- the
CONTregister (address10hin the I/O memory), - and the
COMPregister (address11hin the I/O memory).
When the clock ticks, the CONT register increments by one. It starts counting after the first write to the CONT register. When the CONT register matches the COMP register, an interrupt is triggered via the INT1 line of the PIC.
It is based on Intel's 8253 PIT, but with some modifications to simplify its operation.