LCD problem with 16F628


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    n0oxv's Avatar
    n0oxv Guest


    Did you find this post helpful? Yes | No

    Default

    Melanie,
    You are tooo good !

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    >"Melanie, You are tooo good !"

    Yup, that's what all the boys say!


    You may or may not like what I'll report...

    1. Taking your posted LCD_HEX file and burning a PIC16F628 with it produces all Black Squares just as you say. So here I confirm the same result. I do notice one anomaly - your HEX of the same program is twice the size of mine.

    2. But, taking your posted LCD_BAS file, renamed it LCD1, compiled it (with absolutely NO changes) with PBP2.46, burned the same PIC and it WORKS!!!! See appended picture. Try it with my HEX which I named LCD1.HEX.

    I used the compile line...

    PBP -p16F628 LCD1 -v

    Therefore, either...

    1. Your posted HEX file is not a true compilation of the posted BAS file...
    2. You are using a very old compiler which may have problems...
    3. Your compiler is corrupt...
    4. You are using some external IDE (such as MCS) which is causing you a problem.
    5. If you are compiling using Microchips MPASM the version you have may be old or corrupt.
    6. Or any other reason such as alien invasion of your neighbourhood...
    Attached Images Attached Images  
    Attached Files Attached Files

  3. #3
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    Thanks Thanks....Thanks Melanie,

    I do not have words to thank you...

    I will try it and I will inform you.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,159


    Did you find this post helpful? Yes | No

    Default Re: LCD problem with 16F628

    Bumping an 10 year old tread....

    I also have problems with 16F628A and 1602 LCD

    Code:
    PCON=%00001011 'set intosc to 4mhz
    DEFINE OSC 4
    DEFINE LCD_DREG PORTB
    DEFINE LCD_DBIT 0
    DEFINE LCD_RSREG PORTB
    DEFINE LCD_RSBIT 4
    DEFINE LCD_EREG PORTB
    DEFINE LCD_EBIT 5
    DEFINE LCD_BITS 4 
    DEFINE LCD_LINES 2
    DEFINE LCD_COMMANDUS 1500
    DEFINE LCD_DATAUS 44 
    pause 500
    
    LCDOUT $FE, "SACDELI   "
    PAUSE 5000
    END
    PORTB.0 - PORTB.1 are connected to D4-D7 pins of LCD
    PORTB.5 is connected to RS pin
    PORTB.6 is connected to E pin.

    All hardware 100% verified and working. But still no display.

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,626


    Did you find this post helpful? Yes | No

    Default Re: LCD problem with 16F628

    Your code says RS is PortB.4 while you say it's PortB.5.
    Your code says E us PortB.5 while you say it's PortB.6.

    /Henrik.

  6. #6
    Join Date
    Feb 2013
    Posts
    1,159


    Did you find this post helpful? Yes | No

    Default Re: LCD problem with 16F628

    Thanks, fixed that, but still does not works...

  7. #7
    Join Date
    Jul 2008
    Location
    TURKIYE-KONYA
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: LCD problem with 16F628

    can you share your config settings?

Similar Threads

  1. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 20:48
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  3. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 12:43
  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. Gps with 16f628
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th June 2006, 04:38

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