19 UNIVERSAL SERIAL INTERFACE WITH LCD INTERFACE (USIL)
19-8
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
The 18-bit mode supports four data formats and one of them can be selected using LS18DFM[1:0]/USIL_LSD-
CFG register.
4.7.2 LCD SPI 18-bit Data Format
Table 19.
LS18DFM[1:0]
Data format
0x3
Format 3
0x2
Format 2
0x1
Format 1
0x0
Format 0
(Default: 0x0)
To send data prefixed with a CMD (command) bit, set LSCMDEN/USIL_LSCFG register to 1. The command
bit is used for controlling the SPI LCD driver/panel connected to the USIL. The command bit value to be sent
can be specified using LSCMD/USIL_LSCFG register. Setting LSCMD to 1 configures the command bit to
high. Setting LSCMD to 0 configures the command bit to low.
When using an LCD driver/panel that supports the A0 signal (command/data select signal), set LSCMDEN to 0
(default) to disable sending the CMD bit on the data line. In this case, the USIL_DI pin is used as the A0 signal
output pin. The USIL_DI pin goes high when LSCMD is set to 1, and it goes low when LSCMD is set to 0.
LSCMDEN = 0
LSCMDEN = 1
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
CMD
TD[7:0]
4.7.2 8-bit Data Format
Figure 19.
LSCMDEN = 0
LSCMDEN = 1
(RGB mode)
(BGR mode)
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
TD[7:0]
R5 R4 R3 R2 R1 G5 G4 G3 G2 G1 G0 B5 B4 B3 B2 B1
B5 B4 B3 B2 B1 G5 G4 G3 G2 G1 G0 R5 R4 R3 R2 R1
TD[7:0]
CMD
4.7.3 16-bit Data Format
Figure 19.
LSCMDEN = 0
LSCMDEN = 1
(RGB mode)
(BGR mode)
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
TD[7:0]
R5 R4 R3 R2 R1 G5 G4 G3 G2 G1 G0 B5 B4 B3 B2 B1
B5 B4 B3 B2 B1 G5 G4 G3 G2 G1 G0 R5 R4 R3 R2 R1
R0 B0
B0 R0
TD[7:0]
CMD
18-bit Format 0
LSCMDEN = 0
LSCMDEN = 1
(RGB mode)
(BGR mode)
D7 D6 D5 D4 D3
D2 D1 D0
D7 D6 D5 D4 D3
D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
TD[7:0]
R5 R4 R3 R2
R0 G5 G4 G3 G2 G1 G0 B5 B4 B3 B2 B1
B5 B4 B3 B2 B1
G5 G4 G3 G2 G1 G0 R5 R4 R3 R2 R1
R1
B0
B0
R0
TD[7:0]
CMD
18-bit Format 1