need serial 20x4 lcd code example


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2013
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: need serial 20x4 lcd code example

    Here is my code:
    main:
    pause 1000 ' wait for the LCD to startup
    serout PortA.0,0,[$FE,$01] ' clear the screen
    serout PortA.0,0,["Hello world !"] ' send string “Wherever you go”
    serout PortA.0,0,[$FE,$C0] ' move the cursor to the 2nd line
    serout PortA.0,0,[" Here we are "] ' send string “ there you are ”
    pause 1000 ' pause for a second
    goto main ' loop

    Picture what i see is bellow.

    Name:  serial 16x2 and 20x4 problem.jpg
Views: 1718
Size:  776.7 KB

  2. #2
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: need serial 20x4 lcd code example

    I don't see your configs or defines. That's usually where the issue lies.

    This linkhttp://www.picaxe.com/docs/axe134.pdf has a test program. Did that work?
    Last edited by AvionicsMaster1; - 7th October 2013 at 16:53. Reason: eliminated stupid comments by me

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: need serial 20x4 lcd code example

    Saulius,

    That has been done before by Darrel. Check this link

    http://www.picbasic.co.uk/forum/show...=2388#post2388
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Oct 2013
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: need serial 20x4 lcd code example

    It works fine with picaxe 08M2 and 20X2 i use. Also ok in parallel mode with pic. Only a problem conecting 20x4 to pic16f628a or 877a in serial.
    For 16x2 i do not use any config or define settings and it works ok. Maybe you know what settings shoud i try??

  5. #5
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: need serial 20x4 lcd code example

    Have you tried

    main:
    pause 1000 ' wait for the LCD to startup
    serout PortA.0,4,[$FE,$01] ' clear the screen
    serout PortA.0,4,["Hello world !"] ' send string “Wherever you go”
    serout PortA.0,4,[$FE,$C0] ' move the cursor to the 2nd line
    serout PortA.0,4,[" Here we are "] ' send string “ there you are ”
    pause 1000 ' pause for a second
    goto main ' loop

  6. #6
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: need serial 20x4 lcd code example

    Just curious if that actually worked?

Similar Threads

  1. Pic18f452 with 20x4 LCD Help
    By djmachine in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th November 2008, 22:43
  2. 20x4 LCD and P18F2680
    By microuser in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th June 2006, 19:26
  3. Serial GPS to 20x4 LCD via PIC16f628-04
    By Almightyrastus in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th May 2006, 22:35
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  5. LCD 20X4 connect with DS1820
    By jojokatada in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th March 2005, 11:04

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