bit 3 of the command register at base + 7). The integrity of the latched count is guaranteed by the logic design.
The timer port is allocated at base + 10 (low byte) and base + 11 (high byte). The 16 bit reload register is accessed when writing to the port, while the
Bit 4 of the auxiliary control register selects the timer clock source. The 1 MHz internal clock source will be selected if the bit is set to “0”. The external clock source (or the counter pulse input) is selected if the bit is set to “1”. Because of the I/O pin confinement, the timer external clock input is shared with the pacer clock external input (also shared as digital input bit 2).
Bits 3 and 2 in the auxiliary control register (base + 15) control the timer operation. There are four modes (modes 0, 1, 2 and 3 corresponding to 00, 01, 10 and 11 respectively). In mode 0, the counter will stop and reload the initial value when it detects the rising edge of the selected clock source. In mode 1, the counter will pause counting, but not reload as it does in mode 0. Mode 2 is the counting mode in which the counter will count up each time it detects the rising edge of the selected clock source. In mode 3, the counter will be controlled by the external gate signal. Counting proceeds when the gate signal is high and pauses when it is low.
Three I/O pins are associated with the timer: the external clock source input (shared with the pacer clock), external gate control (shared with the D/A) and the timer overflow pulse output (TTL) which goes high when the timer reaches its final count (hexadecimal FFFF).
The reload register can be set up for both counting and timing operations. The value written into the reload register, referred to as X for the sake of discussion, determines the divisor or modulus for timing and counting. Since the final count before reloading is always 65535 (hexadecimal FFFF) for the
Bit 5 in the auxiliary control register (base + 15) enables (when set to 1) or disables (when set to 0) the timer interrupt. When enabled, an interrupt will be sent each time the
36 |