Read registers, Table 50, Read register 0 rx and tx buffers – Zilog Z08470 User Manual

Page 312: Read register 0

Advertising
background image

< %27 2GTKRJGTCNU

7UGT /CPWCN

UM008101-0601

Serial Input/Output

292

Read Registers

The Z80 SIO contains three registers, RR2-RR0 (Figure 122 through
Figure 124), that are read to obtain the status information for each channel,
with the exception of RR2-Channel B. The status information includes error
conditions, interrupt vector, and standard communications-interface signals.

To read the contents of a selected read register other than RRD, the system
program must first write the pointer byte to WR0, in exactly the same way
as a write register operation. Then, by executing an input instruction, the
contents of the addressed read register can be read by the CPU.

The status bits of RR0 and RR1 are carefully grouped to simplify status
monitoring. For example, when the interrupt vector indicates that a Special
Receive Condition interrupt occurred, all the appropriate error bits can be
read from a single register (RR1).

Read Register 0

This register contains the status of the receive and transmit buffers; the
DCD, CTS, and SYNC inputs; the Transmit Underrun/EOM latch; and the
Break/Abort latch.

Receive Character Available (DO)

This bit is set when at least one character is available in the receive buffer;
it is reset when the receive FIFO is empty.

Table 31. Read Register 0 Rx and Tx Buffers

D7

D6

IDS

D4

D3

D2

D1

D0

Break/

Abort

Transmit

Underrun

EOM

CTS

Sync/

Hunt

Buffer
Empty

DCD

Transmit

Pending

Interrupt

Pending

(Ch.A

only)

Receive

Character

available

Advertising
This manual is related to the following products: