LCD setup


Closed Thread
Results 1 to 12 of 12

Thread: LCD setup

Hybrid View

  1. #1

    Default LCD setup

    Hi guys,

    i'm changing my lcd wires from the stardard configuration but i'm not getting this to work ( maybe it's too late and cant think right ) !!!

    The idea is to:
    lcd RS to pic RA4
    lcd E to pic RB4
    lcd DB to pic RB0,RB1,RB2,RB3

    i'm using these defines:

    Define LCD_DREG PORTB
    Define LCD_DBIT 0
    Define LCD_RSREG PORTA
    Define LCD_RSBIT 4
    Define LCD_EREG PORTB
    Define LCD_EBIT 4

    thanks
    Last edited by ruijc; - 17th November 2007 at 00:42.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    you show RS on pin ra4 but define says rsbit 3. also typically ra4 is open collector or open drain as an output and will need a pullup resistor. which pic are you using?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    hey no fair you changed it while i was posting. lol. ok so that leaves the pullup issue.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    hehehe...

    sorry nomad,

    right now i'm slow thinking, but i got there

    i'm using a 16F628.
    Also have a pullup 100K resistor...but still not working...

    .

  5. #5


    Did you find this post helpful? Yes | No

    Default

    100k might be to large. too weak a pullup. i usually see 10k or even 4.7k as the pullup. check your input/output trisA settings and disable comparators, cmcon=7? ra4 is tied to cmp2.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    oh yeah, also make sure the R/W line isn't left floating. needs to be grounded i believe. did you set 4 bit mode? DEFINE LCD_BITS 4. thats all i can think of without having the data sheet here or seeing the code. hope that helps.
    Last edited by nomad; - 17th November 2007 at 01:15. Reason: weeee too late to think.

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14:44

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