Results 1 to 4 of 4

Thread: PIC uC to hd44780 LCD

  1. #1
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Oshawa
    Posts
    81

    PIC uC to hd44780 LCD

    Hello all, i'm having some troubles interfacing between a hd44780 compatible LCD and a PIC microcontroller, all I ever see on the LCD is those white blocks! I cant figure it out, my code works on the PIC simulator I am using, but in the real world it doesnt work, maybe I am hooking it up wrong.

    Its a 4x20 Character LCD, I'm running it in 4bit mode, I have pins 4-7 on PORTB as the Data Pins and they are connected to pins 10-14 on the LCD, I have PORTB pin 1 as RS, PORTB pin 2 as RW, and PORTB pin 3 as E, they are connected to pins 4-6 on the LCD.

    As far as I know its all connected right, I hope its not the LCD though, thats the only thing I can think of since it worked in the simulator but not with the actual LCD.
    Hey Laserlips, your momma was a snowblower!!

  2. #2
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Oshawa
    Posts
    81
    nevermind, i figured it out, in 4bit mode, I shouldnt have connected R/W to the uC, I tied it to ground and now it all works
    Hey Laserlips, your momma was a snowblower!!

  3. #3
    Newbie
    Join Date
    Nov 2005
    Location
    Riga, Latvia
    Posts
    21
    Good to hear you succeeded.
    What are you displaying on that LCD?

  4. #4
    Low Bitrate
    Join Date
    Oct 2005
    Location
    Oshawa
    Posts
    81
    I'm not sure, I am thinking of getting data from my OBD-I computer and displaying that on the LCD using the PIC's A/D and an analogue multiplexer
    Hey Laserlips, your momma was a snowblower!!

Similar Threads

  1. HD44780 LCD problem in cf 1.5
    By AngryMan in forum Centrafuse
    Replies: 15
    Last Post: 05-09-2006, 12:22 PM
  2. USB -> Parallel -> HD44780 LCD
    By Zip-Lock in forum General Hardware Discussion
    Replies: 5
    Last Post: 03-09-2005, 06:31 AM
  3. Replies: 5
    Last Post: 08-20-2002, 09:32 PM
  4. Replies: 8
    Last Post: 05-03-2001, 05:42 AM
  5. LCD and pic programs
    By cyber_mage in forum Software & Software Development
    Replies: 1
    Last Post: 03-15-2000, 09:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •