2.0 CPU Description (Continued)
Another control bit in the
À
ACRÓregister is the Clock Out
Disable bit,[COD]. When[COD]is asserted, the buffered
clock output at pin CLK-OUT is tri-stated.
2.1.1.3 Interrupt Control Registers
The configuration bank (Alternate Bank A) includes an Interrupt Base Register,
À
IBRÓ, which defines the high byte of all
interrupt and trap vector addresses. Thus, the interrupt vector table can be located in any 256 byte page of the 64k
range of instruction addresses. The interrupt base is normally initialized once on reset before interrupts are enabled
or any traps are executed. Since NMI
is nonmaskable and
may occur before
À
IBRÓis initialized, the power-up/reset
value of
À
IBRÓ(00h) should be used to accommodate NMI
during initialization. In other words, if NMI is used in the
system, the absolute address 001Ch (the NMI
vector)
should contain a jump to an NMI
service routine.
The Interrupt Control Register,ÀICRÓ, provides individual
masks[IM4–0]for each of the maskable interrupts. The
Global Interrupt Enable bit,[GIE], located in
À
ACRÓworks
in conjunction with these individual masks to control each of
the maskable interrupts.
The external pin called BIRQ
is a Bidirectional Interrupt
ReQuest. BIRQ
is defined as an input or an output by the
Bidirectional Interrupt Control bit,[BIC],in
À
ACRÓ.[IM3
]
functions as BIRQ’s interrupt mask if BIRQ
is an input as
defines by[BIC]. When[BIC]defines BIRQ as an output,
[
IM3]controls the output state of BIRQ
.
Section 2.2.3, Interrupts provides a further description of
these registers.
2.1.1.4 Timer Registers
The timer block interfaces with the CPU via two registers,
TimeR Low byte,
À
TRLÓ, and TimeR High byte,ÀTRHÓ,
which form the input/output ports to the timer. Writing to
À
TRLÓandÀTRHÓstores the low and high byte, respectively, of a 16-bit time-out value into two holding registers. The
word stored in the holding registers is the value that the
timer will be loaded with via[TLD]. Also, the timer will automatically reload this word upon timing out. Reading
À
TRL
Ó
andÀTRHÓprovides access to the count down status of the
timer.
Control of timer operation is maintained via three bits in the
Auxiliary Control Register
À
ACRÓ. Timer STart[TST], bit 7
in
À
ACRÓ, is the start/stop control bit. Writing a one to
[
TST]allows the timer to start counting down from its current value. When low, the timer stops and the timer interrupt
is cleared. Timer Load[TLD],bit6in
À
ACRÓ, is the load
control of the timer. After writing the desired values into
À
TRLÓandÀTRHÓ, writing a one to[TLD]will load the 16-bit
word in the holding registers into the timer and initialize the
timer clock to zero in preparation to start counting. Upon
completing the load operation,[TLD]is automatically
cleared. Timer Clock Selection[TCS],bit5in
À
ACRÓ, determines the clock frequency of the timer count down. When
low, the timer divides the CPU clock by sixteen to form the
clock for the down counter. When[TCS]is high, the timer
divides the CPU clock by two. The input clock to the timer is
the CPU clock and should not be confused with the oscillator clock, OCLK. The rate of the CPU clock will be either
equal to OCLK or one-half of OCLK depending on the value
of bit 7 in the Device Control Register,
À
DCRÓ.
When the timer reaches a count of zero, the timer interrupt
is generated, the Time Out flag,[TO], (bit 7 in the Condition
Code Register
À
CCRÓ), goes high, and the timer reloads the
16-bit word stored in the holding registers to recycle through
a count down. The timer interrupt and[TO]can be cleared
by either writing a one to[TO]in
À
CCRÓor stopping the
timer by writing a zero to[TST]in
À
ACRÓ. Refer to Section
2.1.2, Timer for more information on the timer operation.
2.1.1.5 Transceiver Registers
Two registers in the Alternate A bank initialize transceiver
functions. The Auxiliary Transceiver Register,
À
ATRÓ, specifies a station address used by the address recognition logic
within the transceiver when using the non-promiscuous
5250 and 8-bit protocol modes. In 5250 modes,
À
ATRÓalso
defines how long the TX-ACT pin stays asserted after the
end of a transmitted message. The Fill Bit Register,
À
FBRÓ,
specifies the number of optional fill bits inserted between
frames in a multiframe 5250 message.
À
ICRÓcontains the Receiver Interrupt Select bits,[RIS1,0].
These bits determine the receiver interrupt source selection.
The source may be either Receiver FIFO Full, Data Available, or Receiver Active.
The Receive/Transmit Register,
À
RTRÓ, is the input/output
port to both the transmitter and receiver FIFO’s. It appears
to the BCP CPU like any other register. The
À
RTRÓregister
provides the least significant eight bits of data in both received and transmitted messages.
The Transceiver Mode Register,
À
TMRÓ, contains bits used
to set the configuration of the transceiver. As long as the
Transceiver RESet bit,[TRES], is high, the transceiver remains in reset. Internal LOOP-back operation of the transceiver can be selected by asserting[LOOP]. The RePeat
ENable bit,[RPEN], allows the receiver to be active at the
same time as the transmitter. When the Receiver INvert bit,
[
RIN], is set, all data sent to the receiver is inverted. The
Transmitter INvert bit,[TIN], is analogous to[RIN]except it
is for the transmitter. The protocol that the transceiver is
using is selected with the Protocol Select bits,[PS2–0].
The Transceiver Command Register,
À
TCRÓ, controls the
workings of the transmitter. To generate 5.5 line quiesce
pulses at the start of a transmission rather than 5, the Advance Transmitter Active bit,[ATA], must be set high. Parity
is automatically generated on a transmission and the Odd
Word Parity bit,[OWP], determines whether that parity is
even or odd. Bits 2– 0 of
À
TCRÓmake up part of the Trans-
mitter FIFO[TF10–8]along with
À
RTRÓ. Whenever a write
is made to
À
RTRÓ,[TF10–8]are automatically pushed on
the FIFO with the 8 bits written to
À
RTRÓ.
Other bits inÀTCRÓcontrol the operation of the on-chip
receiver. The number of line quiesce bits the receiver must
detect to recognize a valid message is determined by the
Receive Line Quiesce bit,[RLQ]. The BCP has its own internal analog comparator, but an off-chip one may be connected to DATA-IN. The receiver source is determined by the
Select Line Receiver bit,[SLR]. To view transceiver errors
in the Error Code Register,
À
ECRÓ, the Select Error Codes,
[
SEC], bit in
À
TCRÓmust be set high. When[SEC]is high,
Alternate Bank B R4 is remapped from
À
RTRÓtoÀECRÓso
that
À
ECRÓcan be read.
15