SPI Protocol¶
SPI commands are used to communicate between the MCU and the COG Driver. The SPI format used differs from the standard in that two-way communications are not used, and CS is pulled high then low between clocks. When setting up the SPI timing, PDI recommends verify both the SPI command format and SPI command timing in this section.
The maximum clock speed of the display is 5 MHz (write).
SPI timing format¶
SPI(0xI, 0xD0, 0xD1, 0xD2, …, csDS)
Where
- I is the Register Index and the length is 1 byte
- D0~n is the Register Data. The Data length is variable by different Register Index.
- The csDS indicates this command is delivered to which driver or both.
csMaster : only deliver to Master driver
csSlave : only deliver to Slave driver
csBoth : deliver to both Master and Slave
- When SPI sends the Index, the A0 has to pull LOW.
- When SPI sends the Data, A0 must be pulled HIGH.