help with 4 x 20 LCD


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: help with 4 x 20 LCD

    Just FYI, this is the LCD Module I'm using.

    I've got it connected just like the LAB-1X:

    VSS > ground
    VDD > +5v
    V0 > ground
    RS > RE0
    R/W > RE2
    E > RE1
    D0 > RD4
    D1 > RD5
    D2 > RD6
    D3 > RD7
    D4 > RD0
    D5 > RD1
    D6 > RD2
    D7 > RD3
    A > +5V
    K > ground

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,695


    Did you find this post helpful? Yes | No

    Default Re: help with 4 x 20 LCD

    seems a strange way to connect it
    I would
    D0 > gnd
    D1 > gnd
    D2 > gnd
    D3 > gnd

    plus r/w can be grounded
    it you connect it to e2 then that needs to be defined for correct operation
    Define LCD_DREG PORTD
    Define LCD_DBIT 4
    Define LCD_RSREG PORTE
    Define LCD_RSBIT 0
    Define LCD_EREG PORTE
    Define LCD_EBIT 1
    Define LCD_LINES 4 'code works in LAB-X1 without this line
    DEFINE LCD_RWREG PORTE 'LCDOUT/IN read/write port
    DEFINE LCD_RWBIT 2 'LCDOUT/IN read/write bit

    and vo is connected to wiper of contrast pot (10k) that's connected between vcc-gnd

    with vo grounded thats max contrast and display shows all black squares
    Last edited by richard; - 23rd February 2018 at 01:10. Reason: defines added
    Warning I'm not a teacher

Similar Threads

  1. Using a parallel LCD(44780 based) as a serial LCD
    By mikejp56 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 30th October 2015, 02:56
  2. Replies: 36
    Last Post: - 14th March 2011, 19:38
  3. Replies: 2
    Last Post: - 5th November 2009, 18:07
  4. LCD and PIC18F2685 - Weird LCD behavior
    By Castor in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th April 2008, 10:55
  5. to convert LCD // hd 44780 --> serial LCD
    By in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th March 2003, 13:37

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