Chapter 13 Serial Communications Interface (S12SCIV2) Block Description
Freescale Semiconductor
MC9S12C-Family / MC9S12GC-Family
409
Rev 01.24
13.4.5
Single-Wire Operation
Normally, the SCI uses two pins for transmitting and receiving. In single-wire operation, the RXD pin is
disconnected from the SCI. The SCI uses the TXD pin for both receiving and transmitting.
Figure 13-22. Single-Wire Operation (LOOPS = 1, RSRC = 1)
Enable single-wire operation by setting the LOOPS bit and the receiver source bit, RSRC, in SCI control
register 1 (SCICR1). Setting the LOOPS bit disables the path from the
Rx Input
signal to the receiver.
Setting the RSRC bit connects the receiver input to the output of the TXD pin driver. Both the transmitter
and receiver must be enabled (TE = 1 and RE = 1).The TXDIR bit (SCISR2[1]) determines whether the
TXD pin is going to be used as an input (TXDIR = 0) or an output (TXDIR = 1) in this mode of operation.
13.4.6
Loop Operation
In loop operation the transmitter output goes to the receiver input. The
Rx Input
signal is disconnected
from the SCI
.
Figure 13-23. Loop Operation (LOOPS = 1, RSRC = 0)
Enable loop operation by setting the LOOPS bit and clearing the RSRC bit in SCI control register 1
(SCICR1). Setting the LOOPS bit disables the path from the
Rx Input
signal to the receiver. Clearing the
RSRC bit connects the transmitter output to the receiver input. Both the transmitter and receiver must be
enabled (TE = 1 and RE = 1).
13.5
Initialization Information
13.5.1
Reset Initialization
The reset state of each individual bit is listed in
Section 13.3, “Memory Map and Registers”
which details
the registers and their bit fields. All special functions or modes which are initialized during or just
following reset are described within this section.
RXD
TRANSMITTER
RECEIVER
Tx OUTPUT SIGNAL
Tx INPUT SIGNAL
RXD
TRANSMITTER
RECEIVER
Tx OUTPUT SIGNAL
Summary of Contents for MC9S12C Family
Page 689: ......