Communications Processor (CP)
MOTOROLA
MC68302 USER’S MANUAL
4-65
BRK—Break Character Received
A break character was received.
CCR—Control Character Received
A control character was received (with reject (R) character = 1) and stored in the receive
control character register (RCCR).
BSY—Busy Condition
A character was received and discarded due to lack of buffers. The receiver automatically
enters hunt mode immediately if in the multidrop mode. The latest that an Rx BD can be
made empty (have its empty bit set) and still avoid the busy condition is the middle of the
stop bit of the first character to be stored in that buffer.
TX—Tx Buffer
A buffer has been transmitted over the UART channel. If CR = 1 in the Tx BD, this bit is
set no sooner than when the last data bit of the last character in the buffer begins to be
transmitted. If CR = 0, this bit is set after the last character was written to the transmit
FIFO.
RX—Rx Buffer
A buffer has been received over the UART channel. This event occurs no sooner than the
middle of the first stop bit of the character that causes the buffer to be closed.
4.5.11.17 UART MASK Register
The SCC mask register (SCCM) is referred to as the UART mask register when the SCC is
operating as a UART. It is an 8-bit read-write register with the same bit formats as the UART
event register. If a bit in the UART mask register is a one, the corresponding interrupt in the
event register will be enabled. If the bit is zero, the corresponding interrupt in the event reg-
ister will be masked. This register is cleared upon reset.
4.5.11.18 S-Records Programming Example
In the following paragraphs, an example of a downloading application is given that utilizes
an SCC channel as a UART controller. The application performs downloads and uploads of
S records between a host computer and an intelligent peripheral through a serial asynchro-
nous line.
The S records are strings of ASCII characters that begin with `S' and end in an end-of-line
character. This characteristic will be used to impose a message structure on the communi-
cation between the devices. Note that each device may also transmit XON and XOFF char-
acters for flow control, which do not form part of the program being uploaded or downloaded.
The UART mode register should be set as required, with the freeze (FRZ) bit cleared and
the enable transmitter/receiver (ENT, ENR) bits set. Receive buffers should be linked to the
receive buffer table with the interrupt (I) bit set. For simplicity, assume that the line is not
multidrop (no addresses are transmitted) and that each S record will fit into a single data
buffer.