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

    Quote Originally Posted by richard View Post

    its also possible that the default config settings in your pic16f887.inc file don't match your setup

    can you blink a led at defined rate correctly ?
    I added the address for good measure. No luck. I increased the start up wait time. No luck still. I added a blinking LED and that works - on for half a second, off for 1 second. Stuff highlighted in RED is what was added/changed.

    Code:
    TRISB = %00000000
    pause 500
    mainloop:   
         Lcdout $fe, 1                                 ' Clear screen   
         Pause 500                                     ' Wait .5 second   
         Lcdout $fe, $80, "Hello"                                ' Display "Hello"  
         PORTB.7 = 1                                      'LED on 
         Pause 500                                     ' Wait .5 second   
         Lcdout $fe, $c0, "World"                 ' Move to line 2  and display "World"  
         PORTB.7 = 0                                      'LED off 
         Pause 500                                     ' Wait .5 second   
    Goto mainloop                                    ' Do it forever   
    End

  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

    wiring ?
    contrast setting ?
    unused data pins on lcd are grounded not left floating ?
    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