113
place since the last read of the status register. When the status register is read, these bits
are cleared. No bit will be lost. Either it will be read by the status register read or it will be
set after the status register read is complete. If a bit is on and the corresponding interrupt is
enabled, an interrupt will occur when priorities allow. However, a separate interrupt is not
guaranteed for each bit with an enabled interrupt. If the bit is read in the status register, it
is cleared and no further interrupt corresponding to that bit will be requested. It is possible
that one bit will cause an interrupt, and then one or more additional bits will be set before
the status register is read. After these bits are cleared, they cannot cause an interrupt. If
any bits are on, and the corresponding interrupt is enabled, then the interrupt will take
place as soon as priorities allow. However, if the bit is cleared before the interrupt is
latched, the bit will not cause an interrupt. The proper rule to follow is for the interrupt
routine to handle all bits that it sees set.
11.1.1 Timer A I/O Registers
The I/O registers for Timer A are listed in
Table 11-1.The control/status register for Timer A (TACSR) is laid out as shown in
Table 11-2.Bits 1, 4–7—Read/write, terminal count reached on timers A1 and A4–A7. Reading this
status register clears any bits (bits 1 and 4–7) that are on. Writing to these bits enables the
interrupts for the corresponding timer.
Bit 0—Write, set to a "1" to enable the clock (perclk/2) for Timer A, set to "zero" to dis-
able the clock (perclk/2 in
Figure 11-1). Bits 1 and 4–7 are written (write only) to enable
the interrupt for the corresponding timer.
Table 11-1. Timer A I/O Registers
Register Name
Register Mnemonic
I/O address (hex)
R/W
Timer A Control/Status Register
TACSR
A0
R/W
Timer A Control Register
TACR
A4
W
Timer A1 Time Constant 1 Register
TAT1R
A3
W
Timer A4 Time Constant 4 Register
TAT4R
A9
W
Timer A5 Time Constant 5 Register
TAT5R
AB
W
Timer A6 Time Constant 6 Register
TAT6R
AD
W
Timer A7 Time Constant 7 Register
TAT7R
AF
W
Table 11-2. Timer A Control and Status Register (adr = 0x0A0)
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Read
A7 count
done
A6 count
done
A5 count
done
A4 count
done
00
A1 count
done
This bit is
write only.
Write
A7 interrupt
enable
A6 interrupt
enable
A5 interrupt
enable
A4 interrupt
enable
xx
A1 interrupt
enable
1—enable
Timer A