Mikroelektronika MIKROE-738 Datenbogen
348
mikoC PRO for PIC32
MikroElektronika
Lcd Library
The mikroC PRO for PIC32 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 defined
in all projects using Lcd Library:
Description:
Example:
extern sfr sbit LCD_RS:
Register Select line.
sbit LCD_RS at LATD0_bit;
extern sfr sbit LCD_EN:
Enable line.
sbit LCD_EN at LATD1_bit;
extern sfr sbit LCD_D4;
Data 4 line.
sbit LCD_D4 at LATB0_bit;
extern sfr sbit LCD_D5;
Data 5 line.
sbit LCD_D5 at LATB1_bit;
extern sfr sbit LCD_D6;
Data 6 line.
sbit LCD_D6 at LATB2_bit;
extern sfr sbit LCD_D7;
Data 7 line.
sbit LCD_D7 at LATB3_bit
extern
sfr
sbit
LCD_RS_
Direction;
Register Select direction pin.
sbit LCD_RS_Direction at TRISD0_
bit;
extern
sfr
sbit
LCD_EN_
Direction;
Enable direction pin.
sbit LCD_EN_Direction at TRISD1_
bit;
extern
sfr
sbit
LCD_D4_
Direction;
Data 4 direction pin.
sbit LCD_D4_Direction at TRISB0_
bit;
extern
sfr
sbit
LCD_D5_
Direction;
Data 5 direction pin.
sbit LCD_D5_Direction at TRISB1_
bit;
extern
sfr
sbit
LCD_D6_
Direction;
Data 6 direction pin.
sbit LCD_D6_Direction at TRISB2_
bit;
extern
sfr
sbit
LCD_D7_
Direction;
Data 7 direction pin.
sbit LCD_D7_Direction at TRISB3_
bit;
Keypad_Key_Click
Library Routines
- Lcd_Init
- Lcd_Out
- Lcd_Out_Cp
- Lcd_Chr
- Lcd_Chr_Cp
- Lcd_Cmd