OP7100
44 Hardware
The serial ports can be polled or interrupt-driven.
A
polling
driver tests the ready flags (TDRE and RDRF) until a ready
condition appears (transmitter data register empty or receiver data register
full). If an error condition occurs on receive, the routine must clear the
error flags and take appropriate action, if any. If the
/CTS
line is used for
flow control, transmission of data is automatically stopped when
/CTS
goes high because the TDRE flag is disabled. This prevents the driver from
transmitting more characters because it thinks the transmitter is not ready.
The transmitter will still function with
/CTS
high, but exercise care
because TDRE is not available to synchronize loading the data register
(TDR) properly.
An
interrupt-driven
port works as follows. The program enables the
receiver interrupt as long as it wants to receive characters. The transmitter
interrupt is enabled only while characters are waiting in the output buffer.
When an interrupt occurs, the interrupt routine must determine the cause:
receiver data register full, transmitter data register empty, receiver error, or
/DCD0
pin high (channel 0 only). None of these interrupts is edge-
triggered. Another interrupt will occur immediately if interrupts are re-
enabled without disabling the condition causing the interrupt. The signal
/DCD0
is grounded on the OP7100.
Table 3-3 lists the interrupt vectors.
Table 3-3. Serial Port Interrupt Vectors
Address
Name
Description
0E
SER0_VEC
Z180 Serial Port 0 (higher priority)
10
SER1_VEC
Z180 Serial Port 1
Содержание OP7100
Страница 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 070831 O ...
Страница 10: ...OP7100 x About This Manual ...
Страница 16: ...OP7100 16 Overview ...
Страница 51: ...OP7100 Software 51 CHAPTER 4 SOFTWARE Chapter 4 describes the Dynamic C functions used with the OP7100 ...
Страница 74: ...OP7100 74 Software ...
Страница 82: ...OP7100 82 Graphics Programming ...
Страница 88: ...OP7100 88 Installation ...
Страница 98: ...OP7100 98 Specifications ...
Страница 108: ...OP7100 108 Memory I O Map and Interrupt Vectors ...
Страница 112: ...112 Serial Interface Board 2 OP7100 ...
Страница 113: ...OP7100 Backup Battery 113 APPENDIX E BACKUP BATTERY ...
Страница 116: ...OP7100 116 Backup Battery ...
Страница 124: ...OP7100 124 Index ...
Страница 126: ...XX0000 Schematics ...