User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
373
Lcd Library
mikroPascal PRO for dsPIC30/33 and PIC24 provides a library for communication with Lcds (with HD44780 compliant
controllers) through the 4-bit interface. An example of Lcd connections is given on the schematic at the bottom of this
page.
For creating a set of custom Lcd characters use Lcd Custom Character Tool.
Library Dependency Tree
The following variables must be dened in
all projects using Lcd Library :
Description: Example:
var LCD_RS : sbit; sfr; external;
Register Select line.
var LCD_RS : sbit at LATD0_bit;
var LCD_EN : sbit; sfr; external;
Enable line.
var LCD_EN : sbit at LATD1_bit;
var LCD_D7 : sbit; sfr; external;
Data 7 line.
var LCD_D7 : sbit at LATB3_bit;
var LCD_D6 : sbit; sfr; external;
Data 6 line.
var LCD_D6 : sbit at LATB2_bit;
var LCD_D5 : sbit; sfr; external;
Data 5 line.
var LCD_D5 : sbit at LATB1_bit;
var LCD_D4 : sbit; sfr; external;
Data 4 line.
var LCD_D4 : sbit at LATB0_bit;
var LCD_RS_Direction : sbit; sfr;
external;
Register Select direction pin.
var LCD_RS_Direction : sbit at
TRISD0_bit;
var LCD_EN_Direction : sbit; sfr;
external;
Enable direction pin.
var LCD_EN_Direction : sbit at
TRISD1_bit;
var LCD_D7_Direction : sbit; sfr;
external;
Data 7 direction pin.
var LCD_D7_Direction : sbit at
TRISB3_bit;
var LCD_D6_Direction : sbit; sfr;
external;
Data 6 direction pin.
var LCD_D6_Direction : sbit at
TRISB2_bit;
var LCD_D5_Direction : sbit; sfr;
external;
Data 5 direction pin.
var LCD_D5_Direction : sbit at
TRISB1_bit;
var LCD_D4_Direction : sbit; sfr;
external;
Data 4 direction pin.
var LCD_D4_Direction : sbit at
TRISB0_bit;
External dependencies of Lcd Library
Library Routines
- Lcd_Init
- Lcd_Out
- Lcd_Out_Cp
- Lcd_Chr
- Lcd_Chr_Cp
- Lcd_Cmd