LCDOUT custom commands - how to?


Closed Thread
Results 1 to 40 of 69

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    964


    Did you find this post helpful? Yes | No

    Default

    Looking at your photos it looks as if Pin37 of the LCD R/W is connected via a blue/green wire to pin 13 of the PIC RB7. There also seems to be an additional brown wire flying off somewhere from this pin. Where does the other end of that connect to ?
    It is the DATA wire (brown) coming from ICSP programmer (AN589). I've attached a "full view". Green LED on programmer is for power presence and yellow one (between both black relays) is for connection/disconnection of MCLR-DATA-CLOCK.

    Wires:
    black = GND (Vss)
    red = +5V (Vdd)
    yellow = MCLR
    orange = Clock
    brown = Data

    One other point... I suggested putting LEDs on the PIC and observing it counting up to ensure that the count operated correctly. You said that you tested the pins with a logic probe, presumabley one pin at a time just to observe the two different states.
    You're right. The LED you are talking about is there and as you suggest, I use it as an optical check. Do you mean I should connect more LEDs just to make sure it works fine?

    Do you have access to a "normal" HD44780 display of any size just to test that your PIC is correctly configured. From what I have seen so far there shouldt be any real problems getting this display to work as it is 44780 compatible. If you try with a normal display and it still doesnt work then something isnt right with the PIC. Once you have that working it should just be a matter of swapping the displays.
    Yes. As mentionned earlier, I made this check too and with my other displays (have lots of them), no problem!!
    Attached Images Attached Images  
    Last edited by flotulopex; - 27th November 2006 at 21:16.
    Roger

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex
    It is the DATA wire (brown) coming from ICSP programmer (AN589).

    Wires:
    black = GND (Vss)
    red = +5V (Vdd)
    yellow = MCLR
    orange = Clock
    brown = Data
    Ok. might be worth trying with R/W just connected to 0V.

    You're right. The LED you are talking about is there and as you suggest, I use it as an optical check. Do you mean I should connect more LEDs just to make sure it works fine?
    Yes. Put 8 leds on there and observe the count eg
    Code:
    OFF OFF OFF OFF OFF OFF OFF OFF (0)
    OFF OFF OFF OFF OFF OFF OFF ON  (1)
    OFF OFF OFF OFF OFF OFF ON  OFF (2)
    OFF OFF OFF OFF OFF OFF ON  ON  (3)
    OFF OFF OFF OFF OFF ON  OFF OFF (4)
    OFF OFF OFF OFF OFF ON  OFF ON (5)
    ......
    ON  ON  ON  ON  ON  ON  OFF OFF (252)
    ON  ON  ON  ON  ON  ON  OFF ON (253)
    ON  ON  ON  ON  ON  ON  ON  OFF (254)
    ON  ON  ON  ON  ON  ON  ON  ON (255)
    If the sequence doesnt work then the port isnt being correctly set

    Yes. As mentionned earlier, I made this check too and with my other displays (have lots of them), no problem!!
    Sorry, missed that.

    Good luck !!!!

    Keith
    Keith

    www.diyha.co.uk
    www.kat5.tv

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    964


    Did you find this post helpful? Yes | No

    Default Hardware issue now: LEDs....

    I must wait unil tomorrow morning: missing a few LEDs...
    Roger

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    flotul,

    I've been looking at the pictures, and it appears that the data bus is reversed.

    There's 4 wires (2 geen, 2 white) on lcd pins 28-31. They are connected like this.

    <pre> LCD PIC <br> 31 (D4) 9 (B3)<br> 30 (D5) 8 (B2)<br> 29 (D6) 7 (B1)<br> 28 (D7) 6 (B0)<br></pre>Should be the other way around.
    <br>
    DT

  5. #5
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    flotul,

    I've been looking at the pictures, and it appears that the data bus is reversed.

    There's 4 wires (2 geen, 2 white) on lcd pins 28-31. They are connected like this.

    <pre> LCD PIC <br> 31 (D4) 9 (B3)<br> 30 (D5) 8 (B2)<br> 29 (D6) 7 (B1)<br> 28 (D7) 6 (B0)<br></pre>Should be the other way around.
    <br>
    You have better eyes than me. I cant tell from the photos.

    Would be a lot easier with 4 different colours though, or even GGWW instead of GWWG because at least you could tell it was reversed
    Keith

    www.diyha.co.uk
    www.kat5.tv

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yeah, I was going Bug-Eyed too trying to follow them all.

    PICT0003small.JPG in Post#34 helped.

    Had to save it to disk so I could zoom in and out with an Image Preview.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default Zoom

    Quote Originally Posted by Darrel Taylor
    Yeah, I was going Bug-Eyed too trying to follow them all.

    PICT0003small.JPG in Post#34 helped.

    Had to save it to disk so I could zoom in and out with an Image Preview.
    <br>
    I use Firefox and it's Zoom plugin, very helpful, Zoom in right in browser.
    JS

  8. #8
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    Yeah, I was going Bug-Eyed too trying to follow them all.

    PICT0003small.JPG in Post#34 helped.

    Had to save it to disk so I could zoom in and out with an Image Preview.
    <br>
    That did the trick, can see it now

    I do like the look of those displays. also found the following datasheet in English which makes things a bit clearer

    http://www.electronic-assembly.de/en...oma/dog-me.pdf

    I notice that initialisation is different for 3.3V and 5V working for the Power Control, Follower and Contrast registers.
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 08:56
  2. need help in coding..
    By daphne8888 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 19th March 2008, 08:31
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 03:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 16:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 13:22

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