19 UNIVERSAL SERIAL INTERFACE WITH LCD INTERFACE (USIL)
19-6
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
Parity bit
Use UPREN/USIL_UCFG register to select whether the parity function is enabled or not. Setting UPREN to 0
(default) disables the parity function. In this case, no parity bit will be added to transfer data and receive data
will not be checked for parity. Setting UPREN to 1 enables the parity function. In this case, a parity bit will be
added to transfer data and receive data will be checked for parity.
When the parity function is enabled, the parity mode should be selected using UPMD/USIL_UCFG register.
Setting UPMD to 0 (default) adds a parity bit and checks for odd parity. Setting UPMD to 1 adds a parity bit
and checks for even parity.
Sampling clock
UCHLN = 0, UPREN = 0, USTPB = 0
UCHLN = 0, UPREN = 1, USTPB = 0
UCHLN = 0, UPREN = 0, USTPB = 1
UCHLN = 0, UPREN = 1, USTPB = 1
UCHLN = 1, UPREN = 0, USTPB = 0
UCHLN = 1, UPREN = 1, USTPB = 0
UCHLN = 1, UPREN = 0, USTPB = 1
UCHLN = 1, UPREN = 1, USTPB = 1
s1
D0
D1
D2
D3
D4
D5
D6
s2
s1
D0
D1
D2
D3
D4
D5
D6
p
s2
s1
D0
D1
D2
D3
D4
D5
D6
s2
s3
s1
D0
D1
D2
D3
D4
D5
D6
p
s2
s3
s1
D0
D1
D2
D3
D4
D5
D6
D7
s2
s1
D0
D1
D2
D3
D4
D5
D6
D7
p
s2
s1
D0
D1
D2
D3
D4
D5
D6
D7
s2
s3
s1
D0
D1
D2
D3
D4
D5
D6
D7
p
s2
s3
s1: start bit, s2 & s3: stop bit, p: parity bit
4.4.1 Transfer Data Format in UART Mode (LSB first)
Figure 19.
Settings for SPI Mode
19.4.5
When the USIL is used in SPI mode (master or slave), configure the SPI clock polarity/phase. When used in SPI
master mode, select the clock mode.
Note that the data length in SPI mode is fixed at 8 bits.
SPI clock polarity and phase settings (master mode and slave mode)
Use SCPOL/USIL_SCFG register to select the SPI clock polarity. Setting SCPOL to 1 treats the SPI clock as
active low. Setting it to 0 (default) treats it as active high.
The SPI clock phase can be selected using SCPHA/USIL_SCFG register.
These control bits set transfer timing as shown in Figure 19.4.5.1.
Master mode
USIL_CK (SCPOL = 1, SCPHA = 1)
USIL_CK (SCPOL = 1, SCPHA = 0)
USIL_CK (SCPOL = 0, SCPHA = 1)
USIL_CK (SCPOL = 0, SCPHA = 0)
USIL_DI/USIL_DO
Fetching received data
into shift register
D7 (MSB)
D0 (LSB)