Interfacing 16x2 LCD to PIC18F2520


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2011
    Posts
    4

    Default Interfacing 16x2 LCD to PIC18F2520

    Hi,

    I have issues to run LCD (HITACHI based) with 18F2520.
    The LCD data are connected to PORT.A0...A3
    Enable & RS -> PORTA.4 & PORTA.5

    When trying to write, nothing happens.

    No impulses are read via oscilloscope on data pins, I see pulses only on E and RS pins.

    How to initialize the PORTA to work correct as digital in/out?

    I have ADCON1=7 included.
    What else to initialize?
    Also tried with CMCON=7, but nothing changes!

    Also have 10k pull-up resistors on PORTA.4 & PORTA.5


    Please advice?

    THX

  2. #2
    Join Date
    Apr 2011
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: Interfacing 16x2 LCD to PIC18F2520

    FIXED!

    Just corrected like this:

    ADCON1 = %00001111

    Now it works!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts