Need idea hove to..?


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by phoenix_1 View Post
    I was probe on 2x16 chr and work fine with 4x20 don't want work .
    I dont know what is problem becouse i was never use 4x20!
    Any sugest
    Sorry for my bad english!
    Regards
    Yes, a good suggestion is to re-read the PBP manual...as suggested in my last post. The define's you need are there.
    Between that and the datasheet for the 16F877(a?), you should be able to figure out what is wrong.
    We haven't seen any of the code you may (or may not) have written, no idea of your schematic (except for a vague idea of how you have connected your LCD, which leaves a bit to be desired), and not really much of an idea what you have tried so far.

    For example, my truck's 'Check Engine' lamp is illuminated. What's wrong with it?
    Not a lot of information is there?
    And your English, while not perfect, is fine.

  2. #2
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Yes, a good suggestion is to re-read the PBP manual...as suggested in my last post. The define's you need are there.
    Between that and the datasheet for the 16F877(a?), you should be able to figure out what is wrong.
    We haven't seen any of the code you may (or may not) have written, no idea of your schematic (except for a vague idea of how you have connected your LCD, which leaves a bit to be desired), and not really much of an idea what you have tried so far.

    For example, my truck's 'Check Engine' lamp is illuminated. What's wrong with it?
    Not a lot of information is there?
    And your English, while not perfect, is fine.
    Here are defines:

    define OSC 20
    ADCON0.0 = 0
    ADCON1 = 7
    DEFINE LCD_DREG PORTA
    DEFINE LCD_DBIT 0
    DEFINE LCD_RSREG PORTC
    DEFINE LCD_RSBIT 0
    DEFINE LCD_EREG PORTC
    DEFINE LCD_EBIT 1
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 4 ******************when is 2 and I use 2x16 it work 100%
    DEFINE LCD_COMMANDUS 2000
    DEFINE LCD_DATAUS 50

    As you see:

    LCD Wire PIC
    RS --------------portc.0 -----> 4K7 pullup to +5V
    E----------------portc.1
    D4---------------porta.0
    D5---------------porta.1
    D6---------------porta.2
    D7---------------porta.3

    And that work 100% fine with 2x16 when I redefine No:. of lines of LCD.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Try increasing the 'startup pause', give the LCD more time to start itself before you start sending data. Double check your contrast wiring/voltage.

  4. #4
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Exclamation

    Quote Originally Posted by skimask View Post
    Try increasing the 'startup pause', give the LCD more time to start itself before you start sending data. Double check your contrast wiring/voltage.
    Hi skimask I was probe 1000 ms pause on startup and was probe on same pcb 2x16 chr it work and last solution is to lcd is fabric dead or bad ?!

    pinout is same on 2x16 and that 4x20 and when 2x16 work and that not must be something with 4x20 wrong or maybe is problem in pbp2.50 maybe some bug ????

    Really it is big problem for me...
    Many thanks to all who was and will probe to help me !

    Regards

    p.s " The diference is only in define of no:. of lines betwin 2x16 and 4x20. and with same hardware 2x16 work and 4x20 have after reset time back all chr on screen !"
    Last edited by phoenix_1; - 14th May 2008 at 15:46. Reason: tiping error

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


    Did you find this post helpful? Yes | No

    Default

    Do you have pin #3 on the display going to a pot as a voltage divider for contrast?
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Cool

    Quote Originally Posted by mackrackit View Post
    Do you have pin #3 on the display going to a pot as a voltage divider for contrast?
    You have 100% good question !!!!
    When I was use 2x16chr display it have bad contrast and I was see TEST on it,but 4x20 have extra contrast and with same value all poligons are black at these oment I was reduce fix resistors on network on pin 3 and problem go out I can look normaly and 4x20 work fine.

    The best thing is have mentors out of personal laboratory !
    Other can find what you cant in your project ;-)).

    The best regards to all

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    So, can we infer that all is well now and is working ok?
    (a few things are getting lost in the English translation )

Similar Threads

  1. How do they do this? Any idea?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 28th August 2011, 17:17
  2. Giving power to MCU upon button press - Good Idea?
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st July 2009, 07:34
  3. Idea of master/slave serial comm.
    By sirvo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th December 2007, 08:36
  4. Replies: 5
    Last Post: - 18th July 2007, 10:43
  5. Replies: 10
    Last Post: - 17th July 2006, 02:23

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