PIC18F4520 – Interfacing LCD

Here PIC18F4520 Mini Development Board is interfaced with a LCD module (2×16) operating at 5V. The voltage at the third pin of the LCD used to adjusting contrast. Control lines (RS, R/W ,E) are connected to port pins (RS)RC0, (E)RC1  and data lines (D0-D7) to port pins RD0-RD7 where R/W is GND. For reliable Performance, LCD has to be initialized. On powering microcontroller send initialization commands to LCD for better working.  The sample code below gives LCD display output ” RhydoLABZ ” in line 1 and  “Dev Board” in line 2 .

Note: In default we may work out LCD in 8bit mode (jumpers are shorted from RD0 to RD3), where as if the jumpers are left open then LCD can be operated in 4 bit mode.

Schematic

Sample Code (8-bit)

Topics related to PIC18F4520 Mini Development Board

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

Resources

How to buy?

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

Leave a Reply