cant get my Lcd to work using Pic18f452


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default follow up

    i could not access the inc file due to access is denied due to school computer. So i tried config 4l by the use of config4l= 0x81

    ; Default settings
    ; ================
    KB_ROW = 4 ; 4 ROW keypad
    KB_ROW_PORT = PORTC ; Keypad ROW on PORTC
    KB_ROW_BIT = 0 ; ROW0 = PORTB.0
    KB_COL = 4 ; 4 COL keypad
    KB_COL_PORT = PORTC ; Keypad Col on PORTC
    KB_COL_BIT = 4 ; COL0 = PORTB.4
    DebounceDelay = d'200' ; debounce delay 200mSec
    CONFIG4L =0x81

  2. #2
    Join Date
    Apr 2007
    Location
    Southern Ontario
    Posts
    50


    Did you find this post helpful? Yes | No

    Default

    I had the same problem and it drove me crazy untill I turned the lcd off an noticed for a spit second my message appear. Really look at that contrast pin and make sure you can fade the boxes on and off. This might not be the solution but it was in my case.
    Snap
    Beer is proof that God loves us and wants us to be happy.

  3. #3


    Did you find this post helpful? Yes | No

    Unhappy still having the same issues

    im still trying to get the lcd to work.. i dont know how to configure the lpv to disable and i looked at the contrast and it was fine since i used someones else program using the same pic that im using which is the pic18f452 and it came out working just fine. Im up for anymore ideas or anwsers to solve the problem at hand

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


    Did you find this post helpful? Yes | No

    Default

    Read this, http://www.picbasic.co.uk/forum/showthread.php?t=543 it tells how to set the config fuses from inside the program. As mister_e points out in post #5 of that thread, you could still have problems. If you do it will be time to talk to your instructor.

    Now about the contrast pin. You said that you are using the same PIC as someone else. Do you mean PIC or project board?

    What happens when you adjust the pot tied to the LCD's contrast pin?

    It could be either one, LVP or contrast. If it is the same program as your friend , was your friend using the school's system.

    Let us know.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Could be interesting to have your whole schematic.
    Steve

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

  6. #6


    Did you find this post helpful? Yes | No

    Red face updated

    there is no pot on the board that i got. The lcd and keypad was preassembled by my instructor. trying to get a picture and or the schematic but dont have that at the momentThe pic he used was his daughters and it was the same as mine Pic18f452 and was demostrated that it work on the board that i have trouble with.

    I would like to take the time and say thank you for helping. Its some of the most help i got so far with this.

    so thank you
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    I have ran across LCD that does not need an adjusting pot, the contrast pin could be connected directly to 0 volt (ground) and would work. So it is possible your instructor was using one. But not very possible! I would say this happens maybe 1 out of 100 times. You need the adjusting POT.

    Questions that I am still not clear on:

    1- Are you using the exact same board and LCD as your instructor?

    2- Is the board and LCD a copy of the one your instructor has?

    3- Did you instructor compile his/her program on the same computer you are using? ( this is to test the LVP config)

    4- What does you instructor say about the problem?

    Please provide a drawing showing how the LCD is connected (draw it on paper and scan it if you have to)

    Go here http://www.microengineeringlabs.com/support/index.htm and you and the instructor look at the manual under LCDOUT, it shows the correct way to wire a LCD using PORTA as a default. I am not saying to use PORTA, but look at how the contrast is set up.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Pic18f452 with 20x4 LCD Help
    By djmachine in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th November 2008, 22:43
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  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. Why doesn't my code for 18f452 work on 18f252?
    By senojlr in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 23rd December 2005, 02:42
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

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