Uart Control Characters And Flow Control; Figure 4-19. Uart Control Characters Table - Motorola MC68302 User Manual

Integrated multiprotocol processor
Hide thumbs Also See for MC68302:
Table of Contents

Advertisement

4.5.11.7 UART Control Characters and Flow Control

The UART has the capability to recognize special control characters. These characters may
be used when the UART functions in a message-oriented environment. Up to eight control
characters may be defined by the user in the control characters table. Each of these char-
acters may be either stored (written to the receive buffer, after which the current buffer is
closed and a new receive buffer taken) or rejected. If rejected, the character is written to the
received control character register (RCCR) in internal RAM, and a maskable interrupt is gen-
erated. This method is useful for notifying the user of the arrival of control characters (e.g.,
XOFF) that are not part of the received messages.
The UART uses a table of 16-bit entries to support control-character recognition. Each entry
consists of the control character, an end-of-table bit, and a reject character bit. The control
characters table is shown in Figure 4-19.
To disable all functions of the control characters and flow control
table, initialize CHARACTER1 to $8000 and CHARACTER8 to
$0000.
RCCR—Received Control Character Register
Upon a control character match for which the reject bit is set, the UART will write the con-
trol character into the RCCR and generate a maskable interrupt. The M68000 core must
process the interrupt and read the RCCR before a second control character arrives. Fail-
ure to do so will result in the UART overwriting the first control character.
15
14
OFFSET + 0
OFFSET + 2
E
R
OFFSET + 4
E
R
OFFSET + 6
E
R
OFFSET +
E
R
10
CHARACTER7–CHARACTER1—Control Character Value
These fields define control characters that should be compared to the incoming character.
For 7-bit characters, the eighth bit (bit 7) should be zero.
MOTOROLA
13
12
11
10
REA
I
CT
0

Figure 4-19. UART Control Characters Table

MC68302 USER'S MANUAL
Communications Processor (CP)
NOTE
9
8
7
0
A
RCCR
CHARACTER1
CHARACTER2
CHARACTER3
CHARACTER8
0
4-51

Advertisement

Table of Contents
loading

Table of Contents