English
Language : 

HD66789 Datasheet, PDF (81/156 Pages) Renesas Technology Corp – 528-channel, One-chip Driver for Amorphous TFT Panels with 262,144-color display RAM, Power Supply Circuit, and Gate Circuit
HD66789
Preliminary
Serial Peripheral interface (SPI)
The Serial Peripheral Interface (SPI) becomes operable by setting IM3/2/1 pins to GND/IOVcc/GND levels
respectively. The SPI is available through the chip select line (CS*), serial transfer clock line (SCL), serial
data input (SDI), and serial data output (SDO). In the SPI mode, the IM0/ID pin functions as ID pin. In the
SPI mode, the unused DB15-2 pins must be fixed at either IOVcc or GND level.
The HD66789 recognizes the start of data transfer at the falling edge of CS* input to initiate the transfer of
start byte. It recognizes the end of data transfer at the rising edge of CS* input. The HD66789 is selected
when the 6-bit chip address in the start byte transferred from the transmission device and the 6-bit device
identification code assigned to the HD66789 are compared and both 6-bit data correspond. When selected,
the HD66789 starts taking in the subsequent data string. The setting for the least significant bit of the
identification code is made with the ID pin. The five upper bits of the identification code must be 01110.
Two different chip addresses must be assigned to the HD66789 because the seventh bit of the start byte is
assigned to a register select bit (RS). When RS = 0, index register write or status read is executed. When
RS = 1, instruction write or RAM read/write is executed. The eighth bit of the start byte is to specify read
or write (R/W bit). The data are received when the R/W bit is 0, and are transmitted when the R/W bit is 1.
In the SPI mode, the data are written to GRAM after two-byte data transmission. The data are expanded
into 18 bits by adding one bit (the same data as the MSB of RB) next to the LSB of RB data.
After receiving the start byte, the HD66789 starts to transmit or receive data by byte. The data transmission
adopts a format by which the MSB is first transmitted. All HD66789 instructions consist of 16 bits and
they are executed internally after two bytes are transmitted with the MSB first (DB15 to 0). The data to
write to RAM are expanded into 18-bit data. After the start byte is received, the first byte is always fetched
as the upper eight bits of the instruction and the second byte is fetched as the lower eight bits of the
instruction. The 4-byte data that are read from RAM right after the start byte are made invalid. The
HD66789 reads as valid data from the 5th-byte data.
Start Byte Format
Transmitted bits
S
1
2
3
4
5
6
7
8
Start byte format
Transmission Device ID code
start
RS R/W
0
1
1
1
0
ID
Note 1) ID bit is selected with the IM0/ID pin.
RS and R/W Bit Function
RS R/W Function
0
0
Set index register
0
1
Read status
1
0
Write instruction or RAM data
1
1
Read instruction or RAM data
Rev.0.12, May 09 2003, page 81 of 156