411
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
For the TEV-LB0 board, lcd.iomapping should be set to "44,43,42,41,40,4".
Code example -- TEV-LB1
This code will properly setup and enable this controller/panel (we assume that the
testing is done using the TEV-LB1 board):
lcd.iomapping="44,43,42,41,40,4"
'RST,D/C,R/W,E,CS,D7-0
'configure control lines as outputs
io.num=PL_IO_NUM_44
'RST
io.enabled=YES
io.num=PL_IO_NUM_43
'D/C
io.enabled=YES
io.num=PL_IO_NUM_42
'R/W
io.enabled=YES
io.num=PL_IO_NUM_41
'E
io.enabled=YES
io.num=PL_IO_NUM_40
'CS
io.enabled=YES
'set resolution
lcd.width=128
lcd.height=96
'optionally set lcd.rotated here
lcd.enabled=YES
'done!
Himax HX8309 (Ampire AM176220)
Controller: Himax HX8309.
Panel: Ampire AM176220 and similar panels.
Type: TFT, color, 16 bits/pixel.
Locking: Supported, display picture stays stable for at least 1 second after the
display is
. Unfortunately, there appears to be a hardware bug in the
HX8309. This bug causes one of the horizontal lines of the panel (usually, the top
or bottom line) to display random garbage while the display is locked. We have
some ideas for workaround -- contact us if you encounter this problem.
Test hardware: TEV-LB2 test board. This board is a part of the EM1000-TEV
development system. See Programmable Hardware Manual for details.
I/O mapping for AM176220
The panel requires 5 I/O lines and a 17-bit data bus, of which only bits DB7-0 are
used (8-bit interface mode). Control lines are RESET, RS, WR, RD, and CS. Each
control line can be connected to any I/O pin of your device, and each such I/O pin
must be configured as an output (if your device requires explicit I/O line buffer
configuration). The data bus can be connected to any 8-bit port. DO NOT configure
this port for output.
The controller also has IM0 and IM3 interface type selection pin. For proper
operation, tie IM0 to Vcc, IM3 - to the ground.
The value of the
property must be set correctly for the display to
work (see
Preparing the Display for Operation
). For this particular display, the
mapping string consists of 6 comma-separated decimal values:
1. Number of the I/O line connected to RESET.
411
422
395