mikroC
making it simple...
LCD8 Library (8-bit interface)
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.
Library Routines
Lcd8_Config
Lcd8_Init
Lcd8_Out
Lcd8_Out_Cp
Lcd8_Chr
Lcd8_Chr_Cp
Lcd8_Cmd
Lcd8_Config
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 (
you specify: Parameters
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);
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
) and Data port (
ctrlport
,
, and
need to be in range 0–7; Parameters
RS
EN
WR
) with pin settings
dataport
..
D7
D0
203
page
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?