User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
561
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 PIC32 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 dened 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