element14 LCD8000-43T-EX1 manual
Add to my manuals
21 Pages
The element14 LCD8000-43T-EX1 is a portable LCD solution designed for the Atmel SAMA5D3 Xplained board. It supports 16-bit and 24-bit driving modes for LCD displays, up to a resolution of 800x480 pixels. It also includes a touch controller chip to provide touchscreen functionality. The module is powered by a 3.3V supply and has a backlight control feature. The element14 LCD8000-43T-EX1 is ideal for use in embedded systems, industrial automation, and other applications that require a high-quality display with touchscreen capabilities.
advertisement
LCD8000-43T-EX1/ LCD8000-70T-EX1
A Portable LCD Solution for Atmel SAMA5D3 Xplained
By
User Manual
Version 1
Jul 2014
DISCLAIMER
This product is intended to be used for ENGINEERING DEVELOPMENT,
DEMONSTRATION OR EVALUATION PURPOSES ONLY and is not considered by element14 to be a finished end product fit for general consumer use. Persons handling the product(s) must have electronics training and observe good engineering practice standards.
The goods being provided are not intended to be complete in terms of required design and/or manufacturing related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards.
Revision History:
Version
1.0
Date
30/7/2014
Description
Original Version
Table of Contents
1 Product Overview ....................................................................... 1
1.1 Brief Introduction ........................................................................ 1
1.2 Block Diagrams ........................................................................... 1
2 Interfaces on LCD-EX ................................................................. 3
2.1 Locations and Types of Interfaces ................................................. 3
2.2 Pin Definitions of Interfaces .......................................................... 4
3 Use of LCD-EX ........................................................................... 12
3.1 Configuring the Kernel ............................................................... 12
3.1.1 Configuration File for 4.3” LCD ........................................................... 12
3.1.2 Remove IRQ Register Information ....................................................... 14
3.1.3 Configuring the kernel to include drivers for TSC2045. .......................... 15
3.2 Connections and Tests ............................................................... 16
4 Troubleshooting ....................................................................... 18
1 Product Overview
1.1 Brief Introduction
LCD-EX is a 16/24-bit RGB parallel conversion module designed for
TFT-LCD displays. The module integrates a TSC2046 chip to provide touch functionality and a 3.3V regulation chip with the capability to implement I
2
C control and PWM backlight control. It supports 16-bit and 24-bit driving modes for LCD displays, as well as the connection of
SPI 4-wire resistive touch-screens.
1.2 Block Diagrams
Figure 1 shown below, is a block diagram demonstrating how the
LCD-EX works when using a 16-bit logic interface.
Controller
RIoT
POWER
LCD_PWM
I
2
C
TP_BUSY
TP_INT
TP_SPI
SPI Touch INF
DISP0_DEN
DISP0_HSY
16bit RGB
DISP0_VSY
DISP0_CLK
(
565)
DB0 ~ DB15
Figure 1
16-Bit Logic Interface
LCD
Interface
Page | 1
Figure 2 shown below, is a block diagram demonstrating how LCD-EX
works when using 24-bit logic interface.
Controller
A5
POWER
LCD_PWM
I
2
C
TP_BUSY
TP_INT
TP_SPI
SPI Touch INF
DISP0_DEN
DISP0_HSY
DISP0_VSY
DISP0_DEN
DISP0_HSY
DISP0_VSY
24 bit RGB INF
Figure 2
24-Bit Logic Interface
A5
LCD
Interface
Page | 2
2 Interfaces on LCD-EX
2.1 Locations and Types of Interfaces
The following images show the locations of the interfaces on LCD-EX.
J1
1 J14 3 2 1
2 J15 3 2 1
3 J12 3 2 1
4 J11 3 2 1
J2
Figure 3
J1/J2 Interfaces
J13
Figure 4
J13 Interface
Page | 3
The following table lists the descriptions of the interfaces on LCD-EX.
J11
J12
J14
J15
Name
J1
J2
J13
Description
50-Pin interface for coloured display
24-bit RGB A5 interface
16-bit 565 RIoT interface
SPI line module Select
2.2 Pin Definitions of Interfaces
The following tables contain detailed information about the interfaces on LCD-EX.
2.2.1 Pin Definitions of J1
Pin Definition Description
4
5
6
1
2
3
7
8
9
B3
B4
B5
B0
B1
B2
B6
B7
GND
Blue Data0
Blue Data1
Blue Data2
Blue Data3
Blue Data4
Blue Data5
Blue Data6
Blue Data7
GND
Page | 4
28
29
30
31
32
25
26
27
22
23
24
19
20
21
16
17
18
13
14
15
Pin
10
11
12
R0
R1
R2
G6
G7
GND
Definition
G0
G1
G2
Description
Green Data0
Green Data1
Green Data2
G3
G4
G5
Green Data3
Green Data4
Green Data5
Green Data6
Green Data7
GND
Red Data0
Red Data1
Red Data2
R3
R4
R5
R6
R7
GND
Red Data3
Red Data4
Red Data5
Red Data6
Red Data7
GND
DEN
HSYNC
Pixel data enable (TFT)
LCD Horizontal Synchronization
VSYNC LCD Vertical Synchronization
GND
CLK
GND
LCD Pixel Clock
Page | 5
42
43
44
39
40
41
36
37
38
Pin
33
34
35
48
49
50
45
46
47
Definition
GND
X+ x-
Description
GND
X+ Position Input
X- Position Input
Y+
Y-
Y+ Position Input
Y - Position Input
SPI_CLK SPI serial clock
SPI_MOSI SPI Master Output, Slave Input
SPI_MISO SPI Master Input, Slave Output
SPI_CS SPI Chip Select
IIC_CLK IIC master serial clock
IIC_DAT IIC serial bidirectional data
GND GND
VDD1
VDD2
VDD3
3.3V
3.3V
5V
VDD3
RESET
5V
Reset
PWREN Backlight enable
Page | 6
10
11
12
7
8
9
4
5
6
1
2
3
2.2.2 Pin Definitions of J2
Pin Definition
GND
5V
5V
NC
LCD_PWM
TP_BUSY
GND
VCC Input
VCC Input
NC
Description
Backlight enable
Touch Pad Busy Signal
TP_INT
I2C_CLK
I2C_DAT
Touch Pad Interrupt
IIC master serial clock
GND
NC
CSPI_CLK
VCC Input
VCC Input
CSPI_MOSI NC
16
17
18
13
14
15
19
20
21
22
CSPI_MISO Backlight enable
TP_SPI_SCSn Touch Pad Busy Signal
DISP0_DEN Touch Pad Interrupt
DISP0_HSYNC IIC master serial clock
DISP0_VSYNC IIC serial bidirectional data
DISP0_CLK NC
GND SPI serial clock
DISP0_DAT23 SPI Master Output, Slave Input
DISP0_DAT22 SPI Master Input, Slave Output
DISP0_DAT21 SPI Chip Select
Page | 7
42
43
44
45
46
39
40
41
36
37
38
33
34
35
30
31
32
27
28
29
23
24
25
26
DISP0_DAT20 Data enable (TFT)
GND LCD Horizontal Synchronization
DISP0_DAT19 LCD Vertical Synchronization
DISP0_DAT18 DISP0_DAT18
DISP0_DAT17 DISP0_DAT17
DISP0_DAT16 DISP0_DAT16
GND GND
DISP0_DAT15 DISP0_DAT15
DISP0_DAT14 DISP0_DAT14
DISP0_DAT13 DISP0_DAT13
DISP0_DAT12 DISP0_DAT12
GND GND
DISP0_DAT11 DISP0_DAT11
DISP0_DAT10 DISP0_DAT10
DISP0_DAT9 DISP0_DAT9
DISP0_DAT8 DISP0_DAT8
GND
DISP0_DAT7
DISP0_DAT6
GND
DISP0_DAT7
DISP0_DAT6
DISP0_DAT5
DISP0_DAT4
GND
DISP0_DAT3
DISP0_DAT2
DISP0_DAT5
DISP0_DAT4
GND
DISP0_DAT3
DISP0_DAT2
Page | 8
47
48
49
DISP0_DAT1
DISP0_DAT0
GND
DISP0_DAT1
DISP0_DAT0
GND
50
ID_SYS
2.2.3 Pin Definitions of J13
Pin Definition
ID_SYS
5
6
7
1
2
3
4
NC
5VIN
GND
GND
DISP0_CLK
DISP0_DAT3
DISP0_DEN
Description
NC
VCC Input
GND
GND
LCD Pixel Clock
DISP0_DAT3
Data enable (TFT)
11
12
13
8
9
10
14
15
16
17
DISP0_DAT4 DISP0_DAT4
DISP0_HSYNC Horizontal Synchronization
DISP0_DAT5 DISP0_DAT5
DISP0_VSYNC Vertical Synchronization
DISP0_DAT6 DISP0_DAT6
DISP0_DAT7 DISP0_DAT7
DISP0_DAT23 DISP0_DAT23
DISP0_DAT15 DISP0_DAT15
NC NC
DISP0_DAT19 DISP0_DAT19
Page | 9
34
35
36
31
32
33
37
38
39
40
28
29
30
25
26
27
22
23
24
18
19
20
21
NC NC
DISP0_DAT20 DISP0_DAT20
TBD TBD
DISP0_DAT21 DISP0_DAT21
TBD TBD
DISP0_DAT22 DISP0_DAT22
TP_BUSY Touch Pad Busy Signal
DISP0_DAT10 DISP0_DAT10
TP_INT Touch Pad Interrupt
DISP0_DAT11 DISP0_DAT11
CSPI_MOSI SPI Master Output, Slave Input
DISP0_DAT12 DISP0_DAT12
CSPI_CLK SPI Master Input, Slave Output
NC NC
TP_SPI_SCSn DISP0_DAT6
NC NC
CSPI_MISO
I2C4_SCL
DISP0_DAT5
IIC master serial clock
DISP0_DAT13 DISP0_DAT13
I2C4_SDA IIC serial bidirectional data
DISP0_DAT14 DISP0_DAT14
GND
LCD_PWM
GND
Backlight Enable
Page | 10
2.2.4 SPI Line Module Select module Application
V 1
V 2
Jumper cap select
The SPI module of
SAMA5D3 Xplained (J22)
J11 PIN3------PIN2 PIN 37 = SPI0_NPCS3
PIN 38 = SPI0_MISO
SAMA5D3
Xplained
Version A
J12 PIN3------PIN2
J14 PIN3------PIN2
J15 PIN3------PIN2
PIN 39 = SPI0_MOSI
PIN 40 = SPI0_SPCK
J11 PIN1------PIN2 PIN 37 = SPI0_SPCK
SAMA5D3
Xplained
Version B
J12 PIN1------PIN2
J14 PIN1------PIN2
PIN 38 = SPI0_MOSI
PIN 39 = SPI0_MISO
J15 PIN1------PIN2 PIN 40 = SPI0_NPCS3
Page | 11
3 Use of LCD-EX
Hereafter the SAMA5D3 Xplained development board and a 4.3” LCD module will be used as the example devices working with LCD-EX.
Note:
If using a 7” LCD module, it is recommended to use a mains power supply, do
not use a PC based USB power supply.
3.1 Configuring the Kernel
1. The Linux kernel includes many DTS files suited for different kinds of chips and platforms. Assuming a 4.3” LCD display is used, the configuration file should be selected accordingly. (Different sizes of
LCDs need different DTS files, but with similar configuration.)
Note:
The code marked in blue in the following examples can be modified to cater for different configurations.
3.1.1 Configuration File for 4.3” LCD
cd linux-3.10.0 vim arch/arm/boot/dts/ at91-sama5d3_xplained_pda4.dts ahb {
apb {
mmc0: mmc@f0000000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3
&pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
status = "okay";
slot@0 {
reg = <0>;
Page | 12
bus-width = <8>;
cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
};
};
spi0: spi@f0004000 {
cs-gpios = <&pioD 13 0>, < &pioD 16 0 >, <0>, <0>;
status = "okay"; ads7846: touchscreen@0 {
compatible = "ti,tsc2046";
reg = <1>;
spi-max-frequency = <1000000>;
pinctrl-names = "default";
pendown-gpio = <&pioE 7 0>;
irq = <&pioE 7 0>;
ti,settle-delay-usec = /bits/ 16 <150>;
ti,debounce-max = /bits/ 16 <10>;
ti,debounce-tol = /bits/ 16 <5>;
ti,debounce-rep = /bits/ 16 <1>;
ti,keep-vref-on = /bits/ 16 <1>;
ti,x-min = /bits/ 16 <0>;
ti,x-max = /bits/ 16 <8000>;
ti,y-min = /bits/ 16 <0>;
ti,y-max = /bits/ 16 <4800>;
ti,x-plate-ohms = /bits/ 16 <40>;
ti,pressure-max = /bits/ 16 <255>;
linux,wakeup;
status = "okay";
};
};
can0: can@f000c000 {
status = "okay";
};
Page | 13
The IRQ register information of mxt needs to be removed when connecting a resistive touch-screen, because the atmel_mxt_ts IRQ pin of the display would be used by module driver too.
3.1.2 Remove IRQ Register Information
vim arch/arm/boot/dts/at91-sama5d3_xplained_dm_pda4.dtsi ahb {
apb {
i2c1: i2c@f0018000 {
qt1070: keyboard@1b {
compatible = "qt1070";
reg = <0x1b>;
interrupt-parent = <&pioE>;
interrupts = <8 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qt1070_irq>;
wakeup-source;
};
atmel_mxt_ts@4a {
compatible = "atmel,atmel_mxt_ts";
reg = <0x4a>;
/*
interrupt-parent = <&pioE>;
interrupts = <7 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mxt_ts>;
*/
status = "okay";
};
};
Page | 14
3.1.3 Configuring the kernel to include drivers for TSC2045.
make ARCH=arm menuconfig
Device Drivers --->
Input device support --->
[*] Touchscreens --->
<*> ADS7846/TSC2046/AD7873 and AD(S)7843 based touchscreens
2. Execute the following instructions to recompile the kernel
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- dtbs
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
3. The image files generated can be found under the following directories:
DTB image: arch/arm/boot/dts/at91-sama5d3_xplained_pda4.dtb
uImage: arch/arm/boot/uImage
Page | 15
3.2 Connections and Tests
1.
Use two flat ribbon cables with pins on same side to connect the conversion module, SAMA5D3 Xplained and LCD module together as shown below.
Figure 5
Hardware Connections
2.
Connect the debugging serial interface of the SAMA5D3 Xplained to a
PC and then power on the development board.
3.
Update the system with the new uImage and at91-sama5d3_xplained_pda4.dtb, and then reboot to enter the
Linux system.
4.
Execute the following instruction to view the device node of the touch-screen.
root@sama5d3_xplained:~# dmesg |grep -ir ads7846
Page | 16
The terminal window shows the following information: ads7846 spi0.1: touchscreen, irq 52 input: ADS7846 Touchscreen as
/devices/ahb.0/apb.1/f0004000.spi/spi_master/spi0/spi0.1/input/ input0
Note:
The characters above marked in blue represent the device node.
input0 is associated to /dev/input/event0, input1 is associated to
/dev/input/event1, and so on.
5.
Execute the following instruction to set environment variable for tslib:
root@sama5d3_xplained:~# export TSLIB_TSDEVICE=/dev/input/event0
6.
Execute the following instruction to run a calibration on touch-screen:
root@sama5d3_xplained:~# ts_calibrate
7.
Execute the following instruction to test touch-screen:
root@sama5d3_xplained:~# ts_test
Page | 17
4 Troubleshooting
Please note the following common issues which can be encountered when connecting hardware to LCD-EX:
1.
If the touch-screen is not as precise as it should be after screen calibration, please check the connection between the module and the flat ribbon cable to ensure that the 4 touch interface pins on the module are correctly connected to the pins of the touch-screen.
2.
There are two 50-pin PFC interfaces on the module named J1 and J2 respectively. J1 is a flip-lock connector used to connect LCDs, J2 is a slide-lock connector used to connect controllers. LCD displays will not function correctly if connected to the wrong interface.
Page | 18
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project