help with 4 x 20 LCD


Results 1 to 15 of 15

Threaded View

  1. #8
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    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 00: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, 01:56
  2. Replies: 36
    Last Post: - 14th March 2011, 18:38
  3. Replies: 2
    Last Post: - 5th November 2009, 17:07
  4. LCD and PIC18F2685 - Weird LCD behavior
    By Castor in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th April 2008, 09:55
  5. to convert LCD // hd 44780 --> serial LCD
    By in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th March 2003, 12: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