Working with the TPS2L LCD

Top  Previous  Next

The TPP2 board can be supplied as a part of the size 2 Tibbo Project System with LCD/keys (TPS2L, see Programmable Hardware Manual). This device features a 320x240 TFT LCD panel model number LCD-P0005. The panel has a built in Solomon SSD1963 controller.

Two drivers are available for working with this panel. We recommend to use the "fixed" driver "Solomon SSD1963 (fixed I/O-2)". See the Solomon SSD1963 (LCD-P0005) topic for more information.

 

Here is the complete initialization code for the LCD. It enables the LCD control lines, sets correct display resolution, and defines the display orientation as "up side down" (yes, this is correct, inside the TPS2L box the LCD is mounted up side down). Note that the lcd.iomapping line is essential even for the "fixed" driver.

 

Tibbo BASIC:

'backlight
io.num=PL_IO_NUM_54
io.enabled=YES
io.state=LOW
 
'RST
io.num=PL_IO_NUM_55
io.enabled=YES
 
'DC
io.num=PL_IO_NUM_43
io.enabled=YES
 
'WR
io.num=PL_IO_NUM_42
io.enabled=YES
 
'RD
io.num=PL_IO_NUM_41
io.enabled=YES
 
'CS
io.num=PL_IO_NUM_40
io.enabled=YES
 
lcd.iomapping="55,43,42,41,40,0" 'RST,DC,WR,RD,CS,data_bus
lcd.width=320
lcd.height=240
lcd.rotated=YES 'yes, the LCD is installed up side down
lcd.enabled=YES