Simple LCD code not working..


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Still not working

    Thanks all for the replies.. I originally had the TRISB = 0, but removed it to simplify, added it back in, no difference. Added the cammandus & dataus lines, still no difference.

    I'm using the 16F84a for now, so no A/D, no LVP, I've made sure it has XT OSC.

    And have fiddled the contrast pot, I know it's right now tho, as the blocks come up on the first line, and then when I LCDOUT $fe,1.... The screen clears.

    I even measured continuity between the data pins on my pic, and the pins on the LCD incase I had a problem on my breadboard.

    I think I'm going to have to get another LCD panel to rule that out as being the problem...

    Any more suggestions I'd be happy to hear, but I now presume it's a hardware fault, seeings how it doesn't seem I stuffed up any of the code.

    Thanks again,

    Dave

    edit - R/W is also tied low... I know this as when I first connected it, I tied it high, and nothing happened, when I tied it low, it now clears...

  2. #2
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Fixed It

    Just a follow up...

    I got another LCD the same, connected it, it came up with crazy characters on the screen... In desperation I swapped the cable I was using (IDE HDD cable) and low and behold it works.

    On closer inspection, the cable I was using originally, has more conductors in it than pins on the plug. I pulled the plug apart, and there is a big copper bus-bar that connects certain pins to each other, and also I assume to ground. Must give some kind of shielding effect.

    Anyway all sorted.

    Thanks to everyone that helped...

    Cheers
    Dave

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by davewanna View Post
    On closer inspection, the cable I was using originally, has more conductors in it than pins on the plug. I pulled the plug apart, and there is a big copper bus-bar that connects certain pins to each other, and also I assume to ground. Must give some kind of shielding effect.
    Info you: Older IDE cables had 40 pins, newer ones have 80 pins, 40 normal + 40 grounds/shields, for use with the higher DMA speeds and transfer rates in the newer ATA spec's.

Similar Threads

  1. Simple LCD code not working!...WHY?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th November 2009, 19:48
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. My LCD code is not working...
    By kvrajasekar in forum mel PIC BASIC
    Replies: 2
    Last Post: - 7th December 2008, 05:41
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. LCD issue with EasyPIC5
    By manwolf in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 15th June 2008, 09:17

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