TEV-LB2

The TEV-LB2 carries a 176x220 AMPIRE AM176220 TFT panel. This panel is based on a HIMAX HX8309 controller. There is also a control line for panel's backlight. The image displayed on the panel is not visible unless the backlight is turned on.


Interconnection Between the EM1000 and the Panel/Backlight Control

Pin #(1)

EM1000 I/O line

Panel

5

GPIO48

---

6

GPIO47

BL(2)

7

GPIO46

---

8

GPIO39/P4.7

D7

9

GPIO38/P4.6

D6

10

GPIO37/P4.5

D5

11

GPIO36/P4.4

D4

12

GPIO35/P4.3

D3

13

GPIO34/P4.2

D2

14

GPIO33/P4.1

D1

15

GPIO32/P4.0

D0

16

GPIO44

RST

17

GPIO43

DC

18

GPIO42

WR

19

GPIO41

RD

20

GPIO40

CS

  1. Pin number on the TEV-LB2 connector.
  2. Backlight control line.

Required Tibbo BASIC/C Initialization Code

This section assumes that you are familiar with Tibbo BASIC/C and Tibbo IDE (TIDE).

For correct panel operation, click Project-> Settings, and select the EM1000 or EM1000G platform. Additionally, click Customize to open a Customize Project dialog. In the dialog, double-click the Display Panel Type line and choose Himax HX8309 (Ampire AM176220).

The following initialization code should also be added to your project:


Tibbo BASIC
lcd.iomapping="44,43,42,41,40,4" 'RST,DC,WR,RD,CS,data_bus
   
io.num=PL_IO_NUM_44
io.enabled=YES
   
io.num=PL_IO_NUM_43
io.enabled=YES
 
io.num=PL_IO_NUM_42
io.enabled=YES
 
io.num=PL_IO_NUM_41
io.enabled=YES
 
io.num=PL_IO_NUM_40
io.enabled=YES
 
lcd.width=176
lcd.height=220
lcd.rotated=NO
lcd.inverted=NO
lcd.enabled=YES

Use the following code to turn on the backlight:


Tibbo BASIC
io.num=PL_IO_NUM_47
io.enabled=YES
io.state=LOW

TEV-LB2

Interconnection Between the EM1000 and the Panel/Backlight Control

Required Tibbo BASIC/C Initialization Code