In this project the PIC16F887 microcontroller runs with its internal oscillator @ 8 MHz, MCLR pin is configured as an input pin. after the download, add the library file ( LCD_Lib.c) to project folder. LCD_Begin (); // must be called before any other function, it initializes the LCD module.

What microcontroller will be used for xc8 and mikroC pro?

For MPLAB XC8 Compiler, we will use the PIC18F4550 microcontroller. For MikroC Pro for PIC, we will use the PIC16F877A microcontroller. In the case of MPLAB XC8, we will develop our own LCD library.

Which pins of the PIC microcontroller should connect with LCD?

These lines define which pins of the pic microcontroller should connect with LCD. For instance, in this example, we used the PORTD of PIC18F4550 microcontroller. Connect RD0-RD3 pins with D4-D7 pins of LCD respectively and other pins with RW, EN, RS and Power pins.

What is the use of LCD_init() and LCD_clear() functions?

Lcd_Init () : This function will initialize the LCD Module connected to the following defined pins. These connections must be defined for the proper working of LCD. Lcd_Clear () : To clear the display. Lcd_Set_Cursor (int row, int column) : This function is used to set row and column of the cursor on the LCD screen.

Which pins are used to control the contrast of the LCD?

Example circuit schematic diagram is shown below. VEE pin is used to control the contrast of the LCD. A (anode) and K (cathode) are the back light LED pins. In this project the PIC16F887 microcontroller runs with its internal oscillator @ 8 MHz, MCLR pin is configured as an input pin.

How to use LCD_com() function?

The following commands can be used with LCD_Com function (example: LCD_Com (LCD_CLEAR); ): Return cursor to home position, returns a shifted display to its original position. Display data RAM is unaffected