ABL electronic PIC16 Personal Computer User Manual


 
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
20 4
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
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_Init
Prototype
void Lcd8_Out(char row, char col, char *text);
Description Prints text on LCD at specified row and column (parameter row and col). Both string
variables and literals can be passed as text.
Requires Ports with LCD must be initialized. See Lcd8_Config or Lcd8_Init.
Example
Lcd8_Out(1, 3, "Hello!");
// Print "Hello!" at line 1, char 3
Lcd8_Out
Prototype
void Lcd8_Out_Cp(char *text);
Description Prints text on LCD at current cursor position. Both string variables and literals can be
passed as
text.
Requires Ports with LCD must be initialized. See Lcd8_Config or Lcd8_Init.
Example
Lcd8_Out_Cp("Here!");
// Print "Here!" at current cursor position
Lcd8_Out_Cp