2x16 LCD Module with HD44780 + 16F877A


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1

    Default 2x16 LCD Module with HD44780 + 16F877A

    i've just baught the above LCD from a well known auction site (not sure if i'm allowed to say what)...

    All the searches i've done point to LCD data lines on portA and IO on portB...
    on the 16F877A, PortA and PortE are analogue and i'm using the analogue ports...

    Can i change (somewhere) what pins the LCD is connected to and still use LCDOUT and LCDIN?

    Thanks

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yes, look in your PBP manual and read about defining the LCD.
    Here is an example (for a different PIC)
    Code:
        DEFINE LCD_DREG     PORTG 
        DEFINE LCD_DBIT     0
        DEFINE LCD_RSREG    PORTE 
        DEFINE LCD_RSBIT    0
        DEFINE LCD_EREG     PORTE 
        DEFINE LCD_EBIT     1
        DEFINE LCD_BITS     4 
        DEFINE LCD_LINES    4
        DEFINE LCD_COMMANDUS    3000 
        DEFINE LCD_DATAUS   150
    DREG has to be all on the same port, either upper or lower. DT has a LCD ANY PIN trick someplace if if you are adventurous
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    ahhh, yes, i remember reading about those now...

    thanks dave

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Is their any speed advantage to using 8 bits instead of 4?

    thanks

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Yes, it's twice as fast!

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Twice as many pins used or twice as fast. Take your pick.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. 2x16 lcd not working with pic16f72
    By vu2iia in forum Schematics
    Replies: 4
    Last Post: - 16th February 2011, 14:59
  2. 2x16 lcd problem
    By k3v1nP in forum mel PIC BASIC
    Replies: 11
    Last Post: - 30th October 2008, 04:46
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. PIC16F684 + 8*2 LCD module
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th March 2008, 23:38
  5. Lcd 16f877a Heeeeelp!!!
    By chip15 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd December 2005, 11:51

Members who have read this thread : 0

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