mikroC - C Compiler for Microchip PIC microcontrollers
Lcd8_Init
Prototype
void Lcd8_Init(char *ctrlport, char *dataport);
Description
Initializes LCD at Control port (ctrlport) and Data port (dataport) with default pin set-
tings (see the connection scheme at the end of the chapter):
E -> ctrlport.3, RS -> ctrlport.2, R/W -> ctrlport.0, D7 -> dataport.7, D6 -> dataport.6,
D5 -> dataport.5, D4 -> dataport.4, D3 -> dataport.3, D2 -> dataport.2, D1 -> dataport.1,
D0 -> dataport.0
Example
Lcd8_Init(PORTB, PORTC);
Lcd8_Out
Prototype
void Lcd8_Out(char row, char col, char *text);
Description
Prints
variables and literals can be passed as
Requires
Ports with LCD must be initialized. See
Example
Lcd8_Out(1, 3, "Hello!");
Lcd8_Out_Cp
Prototype
void Lcd8_Out_Cp(char *text);
Description
Prints
passed as
Requires
Ports with LCD must be initialized. See
Example
Lcd8_Out_Cp("Here!"); // Print "Here!" at current cursor position
page
204
on LCD at specified row and column (parameter
text
on LCD at current cursor position. Both string variables and literals can be
text
.
text
MikroElektronika: Development tools - Books - Compilers
row
.
text
or
Lcd8_Config
Lcd8_Init
// Print "Hello!" at line 1, char 3
or
Lcd8_Config
Lcd8_Init
mikroC
making it simple...
and
). Both string
col
.
.
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?