lcd not working


Closed Thread
Results 1 to 7 of 7

Thread: lcd not working

  1. #1
    Join Date
    Aug 2009
    Posts
    63

    Default lcd not working

    im using a pc1602aru-h lcd with a pic18f2431

    ive coded my pic with
    Code:
    define osc 20
    
    Define lcd_dreg portc
    define lcd_dbit 4
    define lcd_rsreg portc
    define lcd_rsbit 0 
    Define lcd_ereg portb
    define lcd_ebit 3
    define lcd_bits 4
    define lcd_lines 2
    define LCD_commandus 1500
    define lcd_dataus 44
    
    
    pause 1000
    main:
    lcdout $FE,1,"hello"
    lcdout $FE,$C0,"world"
    
    pause 1000
    goto main
    
    end
    there is probably something wrong with my code... but however it doesnt stop the fact that im getting abolsutely nothing coming up on my lcd. its stays as blank as it ever has been.

    im pretty sure all my wiring is correct and ive checked there is 5 volts across vss and vdd. anyone help me with this one? dont worry ive checked pretty much every thread i could find on this but to no avail

    thanks

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    IF LCD Blank

    1) check supply

    2) check there is .5 to.6 v on the contrast pin ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    check contrast......... maybe everything is ok.

    is there a datasheet for the lcd?

    and is it compatable with picbasic -> check melabs site.

    could be flogging a dead horse...


    .....

  4. #4
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    there is a supply voltage, checked that with multimeter...

    im not getting any contrast change at all. whatever voltage i put through the contrast pin. went from 0 - 5 volts and nothing happens.

  5. #5
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    Did you check the datasheet yet?

    Does it have a 44780 controller or equivalent.


    TTHA

    ..

  6. #6
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    it didnt say anything about the controller apart from lcd controller lsi.
    checked the data sheeet before i came on here :P didnt wanna post till i had exausted all other options really

    it seems to be pretty much same setup with 4databits default and 14-16 pins etc..

    im gonna try and hook it up to a negative voltage across the variable pin to see if it makes a difference,

    just wondering... should i be able to see pulses coming out of any of the databits on my pin? if i just hook it up to a thing that shows me pwm etc...
    Last edited by robertpeach; - 4th September 2009 at 15:36.

  7. #7
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    being the idiot i was i realised my defines werent in capitals haha...
    Last edited by robertpeach; - 4th September 2009 at 16:32.

Similar Threads

  1. 2x16 lcd not working with pic16f72
    By vu2iia in forum Schematics
    Replies: 4
    Last Post: - 16th February 2011, 14:59
  2. My LCD code is not working...
    By kvrajasekar in forum mel PIC BASIC
    Replies: 2
    Last Post: - 7th December 2008, 05:41
  3. Simple LCD code not working..
    By davewanna in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2008, 13:55
  4. SOUND makes LCD quit working
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th April 2008, 14:12
  5. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 07:35

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