Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 367 Code Snippets

Operating an External LCD

Microchip Technology

In this code example, XLCD library support for PIC18F4685 is used to interface the device with LCD module available on PICDEM2+ board.

About this Code Example

In this code example,  XLCD library support for PIC18F4685 is used to interface the device with LCD module
available on PICDEM2+ board. The software implementation makes use of the following connections described below.

HARDWARE CONNECTION DETAILS:

**DATA_PORT defines the port to which the LCD data lines are connected */
                DATA_PORT         <-------->      PORTD
                TRIS_DATA_PORT    <-------->        TRISD

* CTRL_PORT defines the port where the control lines are connected.
* These are just samples, change to match your application.

                RW_PIN             <-------->        PORTA<2>   /* PORT for RW */
                RS_PIN           <-------->        PORTA<3>   /* PORT for RS */
                E_PIN            <-------->        PORTA<1>   /* PORT for D  */

Categories

Release History

  • Jul 22, 2011

    Version: 1.0.0

    first upload to ECS

Download Contact the Developer

*Required Fields


  • Current Version:1.0.0
  • Created:Jul 22, 2011
  • Updated:Feb 26, 2015
  • Downloads:12023
  • MPLAB Version:latest
  • C Compiler:MCC18 v3.30 or above
  • Development Tools:PICDEM 2+ Development Board with PIC18F4685 controller
  • Supported Devices:PIC18F4685

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.