beautypg.com

3 stop bit select (sbs), 4 data size select (dss), 5 sample clock enable (sce) – Intel STRONGARM SA-1100 User Manual

Page 282: 6 receive clock edge select (rce)

background image

11-132

SA-1100

Developer’s Manual

Peripheral Control Module

The transmit logic sets or clears the parity bit to make the total number of ones transmitted
(including the parity bit) match the parity type programmed using OES
(if even parity is selected (OES=1) and there is an odd number of ones in the data to be
transmitted, the parity bit is set). The receive data logic counts the number of ones encountered in
the incoming data stream (including the parity bit), then strips the parity bit from the data. If the
parity type of the frame does not match the parity selected by OES, the parity error bit is set (bit 8)
within the FIFO entry corresponding to the data that produced the parity error.

11.11.3.3

Stop Bit Select (SBS)

The stop bit select (SBS) bit selects whether one or two stop bits should be used in transmission.
When SBS=0, one stop bit is inserted in the transmit frame for each character. When SBS=1, two
stop bits are inserted. SBS does not affect the UART’s receive logic. The receiver always checks to
make sure there is at least one stop bit per character.

11.11.3.4

Data Size Select (DSS)

The data size select (DSS) bit is programmed to select the size of the data transmitted and received
within each frame. Data can be 7 or 8 bits in length. When 7-bit data is programmed, the data is
right justified within the FIFOs. The unused bit is zero filled within the receive FIFO, and is
ignored within the transmit FIFO. Note that the user must right justify data supplied to the transmit
FIFO when 7-bit data is selected.

11.11.3.5

Sample Clock Enable (SCE)

The sample clock enable (SCE) bit is used to enable or disable the use of a clock input from a
GPIO pin to synchronously sample and drive data to and from the UART. When SCE=0, the
on-chip 3.6864-MHz PLL, the UART’s programmable baud rate generator, and the receive logic’s
digital PLL are used. When SCE=1, a clock is input from a GPIO pin and is used to synchronously
drive both the transmit and receive logic. Note that the user must configure the GPIO pin as an
input by clearing the corresponding bit in the GPIO pin direction register (GPDR) and switch
control of the GPIO pin to the UART by setting the corresponding bit in the GPIO alternate
function register (GAFR). See

Chapter 9, “System Control Module”

.

For the receive logic, the RCE bit is decoded to select which edge of the input clock is used to latch
each bit of the incoming frame. Note that the clock is not embedded within the data stream and the
digital PLL is shut down to conserve power. For the transmit logic, the TCE bit is decoded to select
which edge of the input clock is used to drive each bit of the outgoing frame. Note that the clock
driving the programmable baud rate generator is shut down when SCE=1 to conserve power. Also
note that SCE does not affect the frame format of data being transmitted and received by the
UART.

The SA-1100 has a total of three UARTs (serial ports 1, 2 and 3). When the external sample clock
function is enabled, serial port 1 uses the GPIO<18> pin and serial port 3 uses GPIO<19>. Serial
port 2 does not support the sample clock function.

11.11.3.6

Receive Clock Edge Select (RCE)

When SCE=1, the receive clock edge select (RCE) bit is used to select which edge of the clock
input from the GPIO pin to use (rising or falling) to synchronously sample data from the receive
pin. When RCE=0, each bit received is sampled on the rising edge of the sample input clock; when
RCE=1, bits are sampled on the clock’s falling edge. Note that the internal baud rate generator and
receive logic’s digital PLL are not used in this mode. RCE is ignored when SCE=0.