MC68302 Applications
MOTOROLA
MC68302 USER’S MANUAL
D-67
Rx BD = $5000 $xxxx $xxxx $xxxx (This Rx BD is not yet available.)
13.The final change is to set the ENT and ENR bits in the SCM2 register, causing the
transfers to begin.
SCM2 = $603F
With the above configuration, the data in the receive buffers will be as follows:
Buffer1: $FF, data1, data2, ..., datae, dataf.
Buffer2: data10, data11, ..., data17, data18, (and then 7 $FF bytes).
Four events in the SCCE2 event register will be set:
—RX—One or more receive buffers have been used (in this case two).
—TX—One or more buffers have been transmitted (in this case one).
—BSY—Receive data was discarded due to lack of receive buffers (occurred because
the third Rx BD was not empty).
—RCH—A word of data has been written to a receive buffer (occurred each time a word
was written).
D.8.12 Special Uses of Transparent Mode
The following paragraphs discuss two special cases where transparent mode can be used
to extend the capabilities of the MC68302 UART mode.
D.8.12.1 5- OR 6-BIT UART.
One special protocol of note that can be accomplished with
transparent mode is the building of a 5- or 6-bit UART. The UART on the SCCs offers 7- and
8-bit modes only.
A 5- or 6-bit UART can be accomplished with software and the transparent mode. Software
is responsible for inserting and deleting start and stop bits; the transparent mode provides
oversampling.
Select transparent mode for 8x the desired bit rate. For every bit of data to transmit, write a
byte of data to memory. A character will then be encoded as one byte of zeros for the start
bit, a byte of either zeros or ones for every bit in the character, and a byte of ones for each
stop bit. When there is no data to send, the transmitter will send out ones during the idle
period if the buffer had its L bit set.
Reception is more software intensive. The data is received at 8x the desired rate, and the
software must extract the start, stop, and character bits from the data stream. There is no
easy way to “byte align” the received data to byte boundaries in memory (as explained in
D.8.5 Transparent Mode with the NMSI Physical Interface) without some added external
hardware.
D.8.12.2 SYNCHRONOUS UART.
A synchronous UART may also be built with transpar-
ent mode. As with a 5- or 6-bit UART, all data including start and stop bits must be placed
into the transmit buffer and the true data extracted from the raw transparent data that in-
cludes start and stop bits. (V.14 applications would also require the detection of deleted stop
bits.)