PIC16F877A – Interfacing LCD

PIC16F877A Mini Development Board comes with an LCD module (2×16) operating at 5V. Control lines (RS, R/W, E) are connected to port pins RC0(RS), RC1(E) and data lines (D0-D7) to port pins RD0-RD7 whereas R/W is directly grounded. The board has a potentiometer to adjust LCD contrast. For reliable performance, LCD has to be initialized with certain commands. 

Note: By default, LCD works in 8-bit mode (jumpers J11-J14 are shorted, connecting D0-D7 to port pins RD0-RD7). If these jumpers are left open, then LCD can be operated in 4-bit mode with data lines D4-D7.

Schematic

Sample Code (8-bit)

The sample code below gives LCD display output ” RhydoLABZ ” in line 1 and  “Cochin” in line 2 .

Topics related to PIC16F877A Development Board-Mini

  1. PIC16F877A Mini Development Board – Overview
  2. PIC16F877A Mini Development Board – Interfacing LED
  3. PIC16F877A Mini Development Board – Interfacing LCD
  4. PIC16F877A Mini Development Board – Serial communication(USART)
  5. PIC16F877A Mini Development Board – Interfacing Switch
  6. PIC16F877A Mini Development Board – Interfacing Buzzer
  7. PIC16F877A Mini Development Board – Interfacing  POT(ADC)
  8. PIC16F877A Mini Development Board – Interfacing Temperature sensor
  9. PIC 16F877A Mini Development Board – Interfacing Servo Motor
  10. PIC 16F877A Mini Development Board – Interfacing μRFID Reader

Resources

How to buy?

SupportPlease share your ideas with us, visit our forum for discussion

Leave a Reply