6.7 mikroC Pro for PIC LCD Functions

The mikroC Pro for PIC language provides a library of LCD functions for the HD44780 type controller. The library functions are based on using 4-bit interface. A list of the offered functions and their usage are described in this section.

6.7.1 Lcd_Init

This function initialises the LCD module and it must be called before any of the other LCD functions are called. The function is called with no arguments. Before the function is called, the interface between the microcontroller and the LCD must be defined using statements of the following format:

img

img

The configuration above assumes that the connection between the LCD and the microcontroller is as follows:

img

6.7.2 Lcd_Out

This function displays text on the LCD starting from specified row and column positions. Both string variables and literals can be passed as a text.

img

6.7.3 Lcd_Out_Cp

This function displays text at the current cursor position. Both string variables and literals can be passed as text.

6.7.4 Lcd_Chr

This function displays a single character at the specified row and column positions. ...

Get Using LEDs, LCDs and GLCDs in Microcontroller Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.