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

    • Hello, works with this. Instead of communication speed "4" i used "2" - and ok, works.
      Interesting, but it works only in simulation software i use.
      I programed pic16f628a and pic16f877a with the same sample - still nothing.
      Maybe i use wrong settings for programing pic (watchdog and others) or picaxe oled display inside has something protected....
      A few days ago i ordered serial display from ebay, just to be sure, what is wrong.

      main:

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

  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

    Well, what is nothing. Nothing is not hieroglyphs.

    You do realize the 16f628 and the 16f877a have different footprints? Port a.0 on the 16f877a is pin 2 and on the 16f628 it's pin 17. They both are both analog so must be set to digital. I don't think serout setting it to output sets pin as digital.

    It would be best if you posted entire code and not snippet.

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