code for LCD-4x20 HD44780....HELP


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    16

    Question code for LCD-4x20 HD44780....HELP

    Hi

    My English is not that good....Iīm from Germany...
    Has anybody written a Code in Pic Basic to use an
    LCD-Display 4x20 with the controller HD44780.
    I would like to use the lcd command but itīs only available in the pro version.
    Where can I get it? And how much is it? I build an roboter with Steppermotors and a display. Everything is working except the diplay.
    Please post some Code.......I gonna try to understand it.
    My pic is the 16f627 or 16f627A But the code just nedds to be in pic basic
    I can change it for my pic if itīs not working.thx

    Martin

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Martin,

    About the only way I think you can get an LCD to work in PicBasic is to either get an assembly code routine OR get a serial LCD. With a serial LCd you simply use the SerOut command. A 4 line display isn't hard to use at all compared to a 2 line display. You simply set up the Constants for the other 2 lines and send the appropriate commands to the display.

    As far as PicBasicPro, you can get the upgrade from MELabs, Rentron, or many other places that sell PICs and microcontroller items. Bruce from Rentron has an awesome web site with alot of valuable devices and how to use them. He even lists PBP and PBC code to help you get started.

    It is worth the price for the upgrade.

    BobK

  3. #3
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Martin,

    It appears I gave you the wrong information in my previous post. Yes you can use a 4x20 LCD in PicBasic. Chuck Hellebyck's book "Programming PIC Microcontrollers in Basic" has several examples in Chapter 7. This book is available from Amazon.com or from Chuck's website www.elproducts.com.

    Check it out.

    BobK

  4. #4
    Join Date
    Jun 2006
    Posts
    16


    Did you find this post helpful? Yes | No

    Red face thx

    Is this book also online available? Itīs pretty expensive or has anybody copyed the code? I found a demo version of an pro compiler but it can only compile 30 lines. Does anybody know where i can get one for free.......bittorent or sth like that

    Martin

  5. #5
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Here's sample code for the PICBASIC Compiler, including a LCD demo:
    http://www.melabs.com/resources/samples.htm#pbc

    Steve

  6. #6
    Join Date
    May 2006
    Posts
    13


    Did you find this post helpful? Yes | No

    Talking

    hi:
    Parallax has a very good code example and aplication in their documentation. I have included a link for you and with a few modifications you can get this working very very well. Just look through the pdf and find the aplication note that shows the interface of a key pad and LCD.

    http://www.parallax.com/dl/appnt/stamps/bs1Appnotes.pdf

    If you have any question let me know as i did this once before switching to the pic basic pro.


    latter


    sam

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  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. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  5. LCD 4x20 HD44780
    By inteco in forum mel PIC BASIC
    Replies: 13
    Last Post: - 27th June 2006, 16:52

Members who have read this thread : 1

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