Data Sheet
www.waveshare.com
15/25
[在此处键入]
SDIN is shifted into an 8-bit shift register in the order of D7, D6, ... D0. The data byte in the shift register is
written to the Graphic Display Data RAM (RAM) or command register in the same clock.
Under serial mode, only write operations are allowed.
CS#
D/C#
SDIN/
SCLK
DB1 DB2 DBn
SCLK(D0)
SDIN(D1) D7 D6 D5 D4 D3 D2 D1 D0
Figure 7-1: Write procedure in 4-wire Serial Peripheral Interface mode
7-3-2-3) MCU Serial Interface (3-wire SPI)
The 3-wire serial interface consists of serial clock SCLK, serial data ADIN and CS#.
In 3-wire SPI mode,D0 acts as SCLK, D1 acts as SDIN, The pin D/C# can be connected to an external
ground.
The operation is similar to 4-wire serial interface while D/C# pin is not used. There are altogether 9-bits will
be shifted into the shift register on every ninth clock in sequence : D/C# bit, D7 to D0 bit. The D/C# bit (first bit
of the sequential data ) will determine the following data byte in shift register is written to the Display Data
RAM (D/C# bit = 1) or the command register (D/C# bit = 0).Under serial mode ,only write operations are
allowed.
Function
CS#
D/C#
SCLK
Write Command
L
Tie LOW
↑
Write data
L
Tie LOW
↑
Table 7-3: Control pins of 3-wire Serial Peripheral Interface
Note 7-5: ↑stands for rising edge of signal