Running an LCD on different port


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Change this
    Code:
    DEFINE LCD_DBIT 4 ' 4 bit selected
    to
    Code:
    DEFINE LCD_DBIT 0 ' Databit start at PORTB.0
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jun 2005
    Location
    Penang
    Posts
    40


    Did you find this post helpful? Yes | No

    Thumbs down I tried...

    Thanks for Instant reply but...


    Although i have changed the bit size from 4 to 0,it still remains the same.It does nothing.I even switch compiling from MPASM to standard compiler and it didn't show any effect at all.All the display line shows blank.


    It's a cheap LCD ( LM044L) and it's buggin me a lot.I still wonder why the PIC never do anything.I had no problem compiling other program but not this one.


    Any idea?.Pls help.Thanks a lot mister_e

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Make sure the R/W pin is set to GND & play with the contrast Pot

    What happen?

    What is your PIC #?

    Could be the the config fuses as well, make sure you set HS_OSC and LVP_OFF

    Did you tied your unused LCD data pin (DB0, DB1, DB2, DB3) to gnd?

    And it's suppose to be a 4X20 LCD type.. you may try to add
    Code:
    DEFINE LCD_LINES 4
    Last edited by mister_e; - 18th December 2006 at 07:26.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jun 2005
    Location
    Penang
    Posts
    40


    Did you find this post helpful? Yes | No

    Question Gonna give a try..

    I never tie the unused pin to ground as i belive it can be left floating?.Anyhow i will do it.I use PIC16F877.HS_OSC is set .I always set LVP_OFF (Low Voltage Programming) as it always does.Ok.I will insert : DEFINE LCD_LINES 4 :and see what happens.Not today but for sure tomorrow.



    Thanks a lot Steve.You are great.Hope you can help me tommorow too =>.




    NatureTech.
    Make thing simple,but not simpler.

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, 20:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  3. LCD R/S works on Port A but not Port B
    By TDonBass in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th February 2009, 13:41
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07
  5. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27

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