Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
589
TFT Library
Thin film transistor liquid crystal display (TFT-LCD) is a variant of liquid crystal display (LCD) which uses thin-film 
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  mikroBasic  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 defined 
in all projects using TFT library:
Description: 
Example:
dim  TFT_DataPort  as  byte  sfr 
external
TFT Data Port.
dim TFT_DataPort as byte at LATE
dim  TFT_DataPort_Direction  as 
byte sfr external
Direction of the TFT Data Port.
dim  TFT_DataPort_Direction  as 
byte at TRISE
dim TFT_WR as byte sfr external
Write signal.
dim TFT_WR as sbit at LATD13_bit
dim TFT_RD as byte sfr external
Read signal.
dim TFT_RD as sbit at LATD12_bit
dim TFT_CS as byte sfr external
Chip Select signal.
dim TFT_CS as sbit at LATC3_bit
dim TFT_RS as byte sfr external
Command/Register Select 
signal.
dim TFT_RS as sbit at LATB15_bit
dim TFT_RST as byte sfr external
Reset signal.
dim TFT_RST as sbit at LATC1_bit
dim TFT_WR_Direction as byte sfr 
external
Direction of the Write pin.
dim  TFT_WR_Direction  as  sbit  at 
TRISD13_bit
dim TFT_RD_Direction as byte sfr 
external
Direction of the Read pin.
dim  TFT_WR_Direction  as  sbit  at 
TRISD12_bit
dim TFT_CS_Direction as byte sfr 
external
Direction of the Chip Select 
pin.
dim  TFT_CS_Direction  as  sbit  at 
TRISC3_bit
dim TFT_RS_Direction as byte sfr 
external
Direction of the Register Select 
pin.
dim  TFT_RS_Direction  as  sbit  at 
TRISB13_bit
dim TFT_RST_Direction as byte sfr 
external
Direction of the Reset pin.
dim TFT_RST_Direction as sbit at 
TRISC1_bit
External dependencies of TFT Library