SCI/LIN Control Registers
1695
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Serial Communication Interface (SCI)/ Local Interconnect Network (LIN)
Module
29.7.11 SCI Format Control Register (SCIFORMAT)
and
illustrate this register.
Figure 29-38. SCI Format Control Register (SCIFORMAT) (offset = 28h)
31
19
18
16
Reserved
LENGTH
R-0
R/W-0
15
3
2
0
Reserved
CHAR
R-0
R/WC-0
LEGEND: R/W = Read/Write; R = Read only; WC = Write in SCI-compatible mode only; -
n
= value after reset
Table 29-23. SCI Format Control Register (SCIFORMAT) Field Descriptions
Bit
Field
Value
Description
31-19
Reserved
0
Reads return 0. Writes have no effect.
18-16
LENGTH
0-3h
Frame length control bits. In
LIN mode
, these bits indicate the number of bytes in the response
field from 1 to 8 bytes. In
buffered SCI mode
, these bits indicate the number of characters, with the
number of bits per character specified in CHAR (SCIFORMAT[2:0]).
When these bits are used to indicate LIN response length (SCIGCR1[0] = 1), then when there is
an ID RX match, this value should be updated with the expected length of the response. In
buffered SCI mode, these bits indicate the transmitter/receiver format for the number of characters:
1 to 8. There can be up to eight characters with eight bits each.
0
The response field has 1 byte/character.
1h
The response field has 2 bytes/characters.
2h
The response field has 3 bytes/characters.
3h
The response field has 4 bytes/characters.
4h
The response field has 5 bytes/characters.
5h
The response field has 6 bytes/characters.
6h
The response field has 7 bytes/characters.
7h
The response field has 8 bytes/characters.
15-3
Reserved
0
Reads return 0. Writes have no effect.
2-0
CHAR
0-7h
Character length control bits. These bits are effective in non-buffered SCI and buffered SCI modes
only. These bits set the SCI character length from 1 to 8 bits.
In non-buffered SCI and buffered SCI mode, when data of fewer than eight bits in length is
received, it is left justified in SCIRD/RDy and padded with trailing zeros. Data read from the
SCIRD should be shifted by software to make the received data right justified.
Data written to the SCITD should be right justified but does not need to be padded with
leading zeros.
0
The character is 1 bit long.
1h
The character is 2 bits long.
2h
The character is 3 bits long.
3h
The character is 4 bits long.
4h
The character is 5 bits long.
5h
The character is 6 bits long.
6h
The character is 7 bits long.
7h
The character is 8 bits long.