LCD defines?


Closed Thread
Results 1 to 19 of 19

Thread: LCD defines?

Hybrid View

  1. #1
    RUBiksCUbe's Avatar
    RUBiksCUbe Guest


    Did you find this post helpful? Yes | No

    Default

    I put the LCDOUT $FE,$C0,“Hello” into the program but it did not work either. This LCD must be busted.

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


    Did you find this post helpful? Yes | No

    Default

    They use samsung controller KS0066 wich is really compatible with Hitachi, in fact i have some LCD here with the same controller and i used the same code... as is and it's work...mmm weird

    Yuk, probably not really handy but, worth a try...
    Code:
    @ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H
    @ __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
    @ __CONFIG _CONFIG4L, _LVP_OFF_4L
    
    Define OSC 10
    
    TRISA=0
    TRISB=0
    Define LCD_BITS 4   ' 4-bit interface
    Define LCD_LINES 2 ' 2 line LCD
    
    ' LCD should be connected as follows:
    ' LCD PIC
    ' DB4 PortA.0
    ' DB5 PortA.1
    ' DB6 PortA.2
    ' DB7 PortA.3
    Define  LCD_DREG  PORTA
    Define  LCD_DBIT  0
    
    ' RS PortA.4 (add 4.7K pullup resistor to 5 volts)
    Define  LCD_RSREG  PORTA
    Define  LCD_RSBIT  4
    
    ' E PortB.3
    Define  LCD_EREG  PORTB
    Define  LCD_EBIT  3
    
    ' RW Ground
    ' Vdd 5 volts
    ' Vss Ground
    ' Vo 20K potentiometer (wire wiper to Vo, adjust for contrast)
    ' DB0-3 No connect
    
    Define LCD_COMMANDUS  2000 ' Adjust for slower LCD modules
    Define LCD_DATAUS 50
    
    ADCON1 = 7 ' portA digital
    Pause 1000
    FLAGS=0
    Pause 1000 
    loop: 
        Lcdout $fe, 1,"Hello"
        Pause 500 ' Wait .5 second
    
        Lcdout $fe, 1,"World"
        Pause 500 ' Wait .5 second
    
        Goto loop ' Do it forever
    I heard few time, but never encouter the problem, that some LCDs are noise sensitive, what about if you add a 0.1uF and a 10uF(or higher) on the VDD line close to the LCD(as close as you can)???

    Now if nothing works... it could be a blowed one... On EBay... not a surprise
    Steve

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

  3. #3
    RUBiksCUbe's Avatar
    RUBiksCUbe Guest


    Did you find this post helpful? Yes | No

    Default

    I tried capacitors with no success, so Im going to try to get another. Thanks for all the diagnostic help!

  4. #4
    Daniel's Avatar
    Daniel Guest


    Did you find this post helpful? Yes | No

    Default UNIQ/eVision 16x2 LCD

    Hello RUBiksCUbe,

    I have just bought the same display as you and I was searching the net for datasheet and found this page.

    I have not received this display and I hope I will get it working.
    But it doesnt sound good to read your problem.

    I hope to get it in a week or two, then I will test it and come back to you guys.

    Good luck now...

  5. #5
    Daniel's Avatar
    Daniel Guest


    Did you find this post helpful? Yes | No

    Default

    I have tested same display...
    WORKING GREAT!

  6. #6
    RUBiksCUbe's Avatar
    RUBiksCUbe Guest


    Did you find this post helpful? Yes | No

    Default

    Yep. I got a replacement and it worked fine. I mustve had a defective one

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. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Configuring Defines For 8-bit LCD
    By lerameur in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 1st November 2006, 09:59

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