MC68HC16R1/916R1
USER’S MANUAL
MULTICHANNEL COMMUNICATION INTERFACE
MOTOROLA
11-13
11.4 Serial Communication Interface (SCI)
The SCI submodule contains two independent SCI systems. Each is a full-duplex
universal asynchronous receiver transmitter (UART). This SCI system is fully
compatible with SCI systems found on other Motorola devices, such as the M68HC11
and M68HC05 families.
The SCI uses a standard non-return to zero (NRZ) transmission format. An on-chip
baud-rate generator derives standard baud-rate frequencies from the MCU oscillator.
Both the transmitter and the receiver are double buffered, so that back-to-back
characters can be handled easily even if the CPU is delayed in responding to the
completion of an individual character. The SCI transmitter and receiver are functionally
independent but use the same data format and baud rate.
Figure 11-5
shows a block diagram of the SCI transmitter.
Figure 11-6
shows a block
diagram of the SCI receiver.
The two independent SCI systems are called SCIA and SCIB. These SCIs are
identical in register set and hardware configuration, providing an application with full
flexibility in using the dual SCI system. References to SCI registers in this section do
not always distinguish between the two SCI systems. A reference to SCCR1, for
example, applies to both SCCR1A (SCIA control register 1) and SCCR1B (SCIB
control register 1).
11.4.1 SCI Registers
The SCI programming model includes the MCCI global and pin control registers and
eight SCI registers. Each of the two SCI units contains two SCI control registers, one
status register, and one data register. Refer to
D.6.9 SCI Control Register 0
,
D.6.11
SCI Status Register
, and
D.6.12 SCI Data Register
for register bit and field defini-
tions.
All registers may be read or written at any time by the CPU. Rewriting the same value
to any SCI register does not disrupt operation; however, writing a different value into
an SCI register when the SCI is running may disrupt operation. To change register val-
ues, the receiver and transmitter should be disabled with the transmitter allowed to fin-
ish first. The status flags in the SCSR may be cleared at any time.
When initializing the SCI, set the transmitter enable (TE) and receiver enable (RE) bits
in SCCR1 last. A single word write to SCCR1 can be used to initialize the SCI and en-
able the transmitter and receiver.
11.4.1.1 SCI Control Registers
SCCR0 contains the baud rate selection field. The baud rate must be set before the
SCI is enabled. The CPU16 can read and write this register at any time.