Lcd


Closed Thread
Results 1 to 11 of 11

Thread: Lcd

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Thank you for your answer.
    PIC clock is 4 MHZ. Sometimes only when power up the pic the Lcd is not show correct.

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


    Did you find this post helpful? Yes | No

    Default

    you may need to add a LCD start up delay. Something between 500mSec to 2Sec in worst case.

    Be sure that your PIC don't have any Analog stuff on the pins you're using. If so, you must disable it.

    That could be the issue
    Steve

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

  3. #3
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    you may need to add a LCD start up delay. Something between 500mSec to 2Sec in worst case.

    Be sure that your PIC don't have any Analog stuff on the pins you're using. If so, you must disable it.

    That could be the issue
    MY code is:

    DEFINE LCD_DREG PORTB 'Selection of the port B
    DEFINE LCD_DBIT 0 'Selection one RB0 with RB3
    DEFINE LCD_RSREG PORTA 'RS on port A
    DEFINE LCD_RSBIT 2 'RS on RA2
    DEFINE LCD_EREG PORTA 'E on port A
    DEFINE LCD_EBIT 3 'E on RA3
    DEFINE LCD_BITS 4 'Mode 4 bits
    DEFINE LCD_LINES 2 '2 lines

    ADDR1=$C2

    PAUSE 100

    LCDOUT $FE, 1 ' Clear LCD screen
    LCDOUT "TUNER VHF - UHF" ' post text during 2 second
    LCDOUT $FE,$C0
    LCDOUT " LESVOS "
    PAUSE 2000



    EEPROM 0,[$0,$0]

    How to add start up delay for the LCD;

  4. #4
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    any help ;

  5. #5
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    How to add start up delay for the LCD;
    It REALLY is as simple as what Mister_E said... where you have your "pause 100" command at the moment, change it to "pause 500". This SHOULD allow enought time for the LCD to settle. If this still does not help, change it to "Pause 2000" and try that. If that still does not work, your problem is unlikely to be LCD settle time. Post back if these do not work

    Regards

    Rob

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


    Did you find this post helpful? Yes | No

    Default

    also we don't know your PIC model, it can have analog stuff on any port. If they're not disabled .. it will never work.
    Steve

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

  7. #7
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    also we don't know your PIC model, it can have analog stuff on any port. If they're not disabled .. it will never work.
    I use pic16f84a and pic16f628a

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. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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