Zilog Z08470 Manual de usuario Pagina 312

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 330
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 311
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
D7D6IDSD4D3D2D1D0
Break/
Abort
Transmit
Underrun
EOM
CTS Sync/
Hunt
Buffer
Empty
DCD Transmit
Pending
Interrupt
Pending
(Ch.A
only)
Receive
Character
available
Vista de pagina 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 329 330

Comentarios a estos manuales

Sin comentarios