need help on display problem


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sixty9sandals View Post
    sory for the misunderstanding..what i mean for the screen slowly turn into black row is when im trying to adjust the pot value which is the lcd contrast value..as ive learn from the online tutorial, it mention to adjust the pot for the contrast by turn off, adjust and turn it on back..so the result is the box become darkest every time im increase the pot value... LCD_INITMS? this define was advice to me by some other expert people like u..which use to give some delay during initialise. even i never see it on any tutorial but amazingly its been recognize by microcode..n as an addition he had advice me that by compiling my source using Micro, i have to chop off the ADC section.
    DEFINE LCD_INITMS...if you think that's recognizable by the compiler, try:

    DEFINE LCD_LOADOFCRAPFORTROUBLESHOOTINGMS 1

    Now what?

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi sixty9sandals,
    Did you ground the RW pin ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi sixty9sandals,
    Did you ground the RW pin ?
    hi joe..
    ya..ive ground it..together with the vss pin.,

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    DEFINE LCD_INITMS...if you think that's recognizable by the compiler, try:

    DEFINE LCD_LOADOFCRAPFORTROUBLESHOOTINGMS 1

    Now what?
    hi skimask...
    ya..u absolutely rite..my bad..by reading the previous tread send by others..is it possibly coz by using the port d as the data lines?

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sixty9sandals View Post
    hi skimask...
    ya..u absolutely rite..my bad..by reading the previous tread send by others..is it possibly coz by using the port d as the data lines?
    Nah, Port D is what everybody uses by default unless they've got some reason to use another port.

    Which LCD module are you using, part number?

    And is this correct:

    LCD D0-D7 on PortD.0-PortD.7 (make sure you've got the order correct 0-0, 1-1, 2-2, etc)

    LCD A0 on PortC.2

    LCD E on PortC.3

    LCD R/W grounded

    You aren't setting C.2 and C.3 to outputs directly, but PBP should handle that for you.

    You did say you were using the 16F877. Are you sure your programmer is set for the 16F877 and not the F877A? Can you rewrite the code and make an LED blink or anything. Who knows...maybe the thing isn't even running.

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


    Did you find this post helpful? Yes | No

    Default Just a chance

    i ve recheck all the wiring..n its all just like the diagram..
    I have not upgraded to the latest version of PBP, but my GREEN BOOK shows the example "diagram" for a 4 bit set up.

    The code I see is for 8 bit.

    It is very late for me so maybe I am missing something.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I have not upgraded to the latest version of PBP, but my GREEN BOOK shows the example "diagram" for a 4 bit set up.

    The code I see is for 8 bit.

    It is very late for me so maybe I am missing something.
    <b> Nice Catch</b>
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I have not upgraded to the latest version of PBP, but my GREEN BOOK shows the example "diagram" for a 4 bit set up.

    The code I see is for 8 bit.

    It is very late for me so maybe I am missing something.
    If you're wiring is for 4 bit, and your code is for 8 bit, then you need to add:
    DEFINE LCD_BITS 4
    otherwise PBP defaults to 8 bits

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 21:07
  2. Replies: 14
    Last Post: - 26th September 2007, 06:41
  3. 7-segment display blinking problem?
    By serdar_ozcan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th March 2006, 15:43
  4. 7 segment digit problem (using Mister E's code)
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th September 2005, 21:25
  5. 4x20 LCD Display Problem
    By kayki in forum mel PIC BASIC
    Replies: 0
    Last Post: - 24th August 2005, 16:42

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