Lcd8 library (8-bit interface), Mikroc – ABL electronic PIC Microcontrollers PIC16 User Manual
Page 211

MikroElektronika: Development tools - Books - Compilers
203
page
mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
mikroC provides a library for communicating with commonly used 8-bit interface
LCD (with Hitachi HD44780 controller). Figures showing HW connection of PIC
and LCD are given at the end of the chapter.
Note: Be sure to designate Control and Data ports with LCD as output, before
using any of the following functions.
Lcd8_Config
Lcd8_Init
Lcd8_Out
Lcd8_Out_Cp
Lcd8_Chr
Lcd8_Chr_Cp
Lcd8_Cmd
LCD8 Library (8-bit interface)
Library Routines
Prototype
void
Lcd8_Config(char *ctrlport, char *dataport, char RS,
char
EN, char WR, char D7, char D6, char D5, char D4, char D3,
char
D2, char D1, char D0);
Description
Initializes LCD at Control port (
ctrlport
) and Data port (
dataport
) with pin settings
you specify: Parameters
RS
,
EN
, and
WR
need to be in range 0–7; Parameters
D7
..
D0
need to be a combination of values 0–7 (e.g. 3,6,5,0,7,2,1,4).
Example
Lcd8_Config(PORTC,PORTD,0,1,2,6,5,4,3,7,1,2,0);
Lcd8_Config