• No results found

MCU data color coding

4. Interface

4.1 System interface circuit

4.1.1 MCU data color coding

MCU Data Color Coding for RAM data Write

- Parallel 8-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0000”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Command Table 4.2: 8-bit parallel interface type I GRAM write table

- Parallel 16-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0001”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Command Table 4.3: 16-bit parallel interface type I GRAM write table

- Parallel 9-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0010”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Register Table 4.4: 9-bit parallel interface type I GRAM write table

- Parallel 18-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0011”)

DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Register Register

Command x x x x x x x x x x 0 0 1 0 1 1 0 0 2CH

3AH DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Color 06h R5 R4 R3 R2 R1 R0 G5 G4 G3 G2 G1 G0 B5 B4 B3 B2 B1 B0 262K-Color

Table 4.5: 18-bit parallel interface type I GRAM write table

- Parallel 8-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1001”) Table 4.6: 8-bit parallel interface type II GRAM write table

- Parallel 16-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1000”)

DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Command Table 4.7: 16-bit parallel interface type II GRAM write set table

- Parallel 9-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1011”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Register Table 4.8: 9-bit parallel interface set type II GRAM write table

- Parallel 18-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1010”)

DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Register Register

Command x x x x x x x x x 0 0 1 0 1 1 0 0 x 2CH

3AH DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Color 06h R5 R4 R3 R2 R1 R0 G5 G4 G3 G2 G1 G0 B5 B4 B3 B2 B1 B0 262K-Color

Table 4.9: 18-bit parallel interface type II GRAM write set table

8-bit parallel bus system interface

The I80-system 8-bit parallel bus interface type I in command-parameter interface mode can be used by setting external pins “IM3, IM2, IM1, IM0” pins to “0000”. And I80-system 8-bit parallel bus interface type II in command-parameter interface mode can be used by setting “IM3, IM2, IM1, IM0” pins to “1001”. Figure 4.3 is the example of type I interface with I80 microcomputer system interface. And Figure 4.4 is the example of type II interface with I80 microcomputer system interface.

/ HX HX8347 HX HX 8347 8347----IIII 8347

8

/

DB17- 8

10

MPU MPU MPU

MPU

NWR_SCLNRD

NCS

DB7-0 DNC_SCL

Figure 4.3: Example of I80- system 8-bit parallel bus interface type I

8

/

10

/

NWR_SCL NRD NCS

DB17-DB10 DNC_SCL

DB9-DB0

Figure 4.4: Example of I80-system 8-bit parallel bus interface type II

8-bits data bus for 12-bits/pixel (RGB 4-4-4-bits input), 4K-colors, 3AH=”03h”

There are 2-pixels (6 sub-pixels) per 3-bytes.

Figure 4.5: Write data for RGB 4-4-4 (4k colors) bits input in 8-bit parallel Interface

8-bits data bus for 16-bits/pixel (RGB 5-6-5-bits input), 65K-colors, 3AH=”05h”

There is 1-pixel (3 sub-pixels) per 2-bytes.

Pixel n Pixel n+1

0 0 1 0 1 1 0 0 DNC

NCS NRESET ‘1 ’

NWR

NRD ‘1 ’

16-bits 16-bits

DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 Type II Type I

16-bit Data

Figure 4.6: Write data for RGB 5-6-5 (65k colors) bits input in 8-bit parallel Interface(EPF[1:0] = 2’b00)

Note: If R[4:0] = B[4:0], R[5:0] = {R[4:0],G[0]}, B[5:0] = {B[4:0],G[0]} when EPF[1:0] = 2’b11

8-bits data bus for 18-bits/pixel (RGB 6-6-6-bits input), 262K-colors, 3AH=”06h”

There is 1-pixel (3 sub-pixels) per 3-bytes.

Figure 4.7: Write data for RGB 6-6-6-bits(262k colors) input in 8-bit parallel Interface

16-bit parallel bus system interface

The I80-system 16-bit parallel bus interface type I in command-parameter interface mode can be used by setting external pins ““IM3, IM2, IM1, IM0” pins to “0001”. And I80-system 16-bit parallel bus interface type II in command-parameter interface mode can be used by setting ““IM3, IM2, IM1, IM0” pins to “1000”. Figure 4.11 is the example of type I interface with I80 microcomputer system interface. And Figure 4.12 is the example of type II interface with I80 microcomputer system interface.

Figure 4.8: Example of I80 system 16-bit parallel bus interface type I

Figure 4.9: Example of I80 system 16-bit parallel bus interface type II

16-bits data bus for 12-bits/pixel (RGB 4-4-4-bits input), 4K-colors, 3AH=”03h”

There is 1-pixel (3 sub-pixels) per 1-byte

Figure 4.10: Write data for RGB 4-4-4 (4k colors) bits input in 16-bit parallel Interface

16-bits data bus for 16-bits/pixel (RGB 5-6-5-bits input), 65K-colors, 3AH=”05h”

There is 1-pixel (3 sub-pixels) per 1-byte

Figure 4.11: Write data for RGB 5-6-5 (65k colors) bits input in 16-bit parallel Interface(EPF[1:0] = 2’b00)

Note: If R[4:0] = B[4:0], R[5:0] = {R[4:0],G[0]}, B[5:0] = {B[4:0],G[0]} when EPF[1:0] = 2’b11

16-bits data bus for 18-bits/pixel (RGB 6-6-6-bits input), 262K-colors, 3AH=”06h”

There are 2-pixels (6 sub-pixels) per 3-bytes

DNC

Figure 4.12: Write data for RGB 6-6-6 (262k colors) bits input in 16-bit parallel Interface

9-bit parallel bus system interface

The I80-system 9-bit parallel bus interface type I in command-parameter interface mode can be used by setting external pins “IM3, IM2, IM1, IM0” pins to “0010”. And I80-system 9-bit parallel bus interface type II in command-parameter interface mode can be used by setting ““IM3, IM2, IM1, IM0” pins to “1011”. Figure 4.19 is the example of type I interface with I80 microcomputer system interface. And Figure 4.20 is the example of type II interface with I80 microcomputer system interface.

/ HX HX8347 HX HX 8347 8347 8347----IIII

9

/

DB17-9

9

MPU MPU MPU

MPU

NWR_SCLNRD

NCS

DB8 -0 DNC_SCL

Figure 4.13: Example of I80 system 9-bit parallel bus interface type I

Figure 4.14: Example of I80 system 9-bit parallel bus interface type II

9-bits data bus for 18-bits/pixel (RGB 6-6-6-bits input), 262K-colors, 3AH=”06h”

There is 1-pixel (3 sub-pixels) per 2-bytes

DNC NCS NRESET ‘1 ’

NWR

NRD ‘1 ’

Pixel n Pixel n+1

R1 G1 B1 R2 G2 B2 R3G3 B3 Frame

Memory

18-bits 18-bits

DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Type I

DB8

Figure 4.15: Write data for RGB 6-6-6 (262k colors) bits input in 8-bit parallel Interface type I

DNC NCS NRESET ‘1 ’

NWR

NRD ‘1 ’

Pixel n Pixel n+1

R1 G1 B1 R2 G2 B2 R3G3 B3 Frame

Memory

18-bits 18-bits

DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 Type II

DB17

Figure 4.16: Write data for RGB 6-6-6 (262k colors) bits input in 9-bit parallel Interface type II

18-bit parallel bus system interface

The I80-system 18-bit parallel bus interface type I in command-parameter interface mode can be used by setting external pins “IM3, IM2, IM1, IM0” pins to “0011”. And the I80-system 18-bit parallel bus interface type II in command-parameter interface mode can be used by setting ““IM3, IM2, IM1, IM0” pins to “1010”. Figure 4.17 is the example of interface with I80 microcomputer system interface.

/

HX HX

HX HX8347 8347 8347----IIII 8347

18

MPU MPU MPU

MPU

NWR_SCLNRD

NCS

DB17-0 DNC_SCL

Figure 4.17: Example of I80- system 18-bit parallel bus interface

18-bits data bus for 18-bits/pixel (RGB 6-6-6-bits input), 262K-colors, 3AH=”06h”

There is 1-pixel (6 sub-pixels) per 1-byte

Figure 4.18: Input data bus and GRAM data mapping in 18-bit bus system interface I with 18-bit-data Input (“IM3, IM2, IM1, IM”=”0011” )

Figure 4.19: Input data bus and GRAM data mapping in 18-bit bus system interface II with 18-bit-data Input (“IM3, IM2, IM1, IM”= “1010”)

MCU Data Color Coding for RAM data Read

- Parallel 8-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0000”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Command Table 4.10: 8-bit parallel interface type I GRAM read table

- Parallel 16-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0001”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Command Table 4.11: 16-bit parallel interface type I GRAM read table

- Parallel 9-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0010”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Register Table 4.12: 9-bit parallel interface type I GRAM read table

- Parallel 18-Bits Bus Interface type I (IM3,IM2,IM1,IM0=”0011”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Register Table 4.13: 18-bit parallel interface type I GRAM read table

- Parallel 8-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1001”) Table 4.14: 8-bit parallel interface type II GRAM read table

- Parallel 16-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1000”)

DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Command Table 4.15: 16-bit parallel interface type II GRAM read table

- Parallel 9-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1011”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Register Table 4.16: 9-bit parallel interface type II GRAM read table

- Parallel 18-Bits Bus Interface type II (IM3,IM2,IM1,IM0=”1010”)

D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Register Table 4.17: 18-bit parallel interface type II GRAM read table

Related documents