User manual
mikroC PRO for dsPIC
MikroElektronika
615
TFT Library
Thin lm transistor liquid crystal display (TFT-LCD) is a variant of liquid crystal display (LCD) which uses thin-lm
transistor (TFT) technology to improve image quality (e.g., addressability, contrast).
TFT LCD is one type of active matrix LCD, though all LCD-screens are based on TFT active matrix addressing.
TFT LCDs are used in television sets, computer monitors, mobile phones, handheld video game systems, personal
digital assistants, navigation systems, projectors, etc.
The mikroC PRO for dsPIC30/33 and PIC24 provides a library for working with HX8347-D 320x240 TFT Lcd controller.
The HX8347-D is designed to provide a single-chip solution that combines a gate driver, a source driver, power supply
circuit for 262,144 colors to drive a TFT panel with 320x240 dots at maximum.
The HX8347-D is suitable for any small portable battery-driven and long-term driving products, such as small PDAs,
digital cellular phones and bi-directional pagers.
The following variables
must be dened in all
projects using TFT
library:
Description : Example :
extern sfr char TFT_
DataPort;
TFT Data Port.
char TFT_DataPort at
LATE;
extern sfr char TFT_
DataPort_Direction;
Direction of the TFT Data
Port.
char TFT_DataPort_
Direction at TRISE;
extern sfr sbit TFT_
WR;
Write signal.
sbit TFT_WR at LATD13_
bit;
extern sfr sbit TFT_
RD;
Read signal.
sbit TFT_RD at LATD12_
bit;
extern sfr sbit TFT_
CS;
Chip Select signal.
sbit TFT_CS at LATC3_
bit;
extern sfr sbit TFT_
RS;
Command/Register Select
signal.
sbit TFT_RS at LATB15_
bit;
extern sfr sbit TFT_
RST;
Reset signal.
sbit TFT_RST at LATC1_
bit;
extern sfr sbit TFT_
WR_Direction;
Direction of the Write pin.
sbit TFT_WR_Direction
at TRISD13_bit;
extern sfr sbit TFT_
RD_Direction;
Direction of the Read pin.
sbit TFT_RD_Direction
at TRISD12_bit;
extern sfr sbit TFT_
CS_Direction;
Direction of the Chip Select
pin.
sbit TFT_CS_Direction
at TRISC3_bit;
extern sfr sbit TFT_
RS_Direction;
Direction of the Register
Select pin.
sbit TFT_RS_Direction
at TRISB13_bit;
extern sfr sbit TFT_
RST_Direction;
Direction of the Reset pin.
sbit TFT_RST_Direction
at TRISC1_bit;
External dependencies of TFT Library