SEROUT LCD help!


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    21

    Default SEROUT LCD help!

    Hi all,
    how to write code,whit SEROUT command, for LCD seial 4x20 ?
    A example please..
    This code not work. Only X on display..
    --------------------------------------------
    pause 1000
    start:
    serout portb.1, 2, [254,1]
    pause 40
    serout portb.1, 2, ["Hello World"]
    pause 400
    goto start
    end
    --------------------------------------------

    pic 16f84a
    trasmit on port1
    9600

    THX
    chip

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Make sure you're using a higher crystal speed than 4 MHZ or use DEBUG instead

    If you're using >4MHZ, make sure you set HS_OSC mode in your config fuses (see the FAQ)

    Some serial LCD may need to receive CR AND LF before writing to the LCD. So change
    Code:
    serout portb.1, 2, ["Hello World"]
    to
    Code:
    serout portb.1, 2, ["Hello World",13,10]
    try this too
    Code:
    TRISB.1=0
    DEFINE DEBUG_REG PORTB 
    DEFINE DEBUG_BIT 1 
    DEFINE DEBUG_BAUD 9600 
    DEFINE DEBUG_MODE 0
    
    Start:
        debug  $FE,1
        pause 40
        debug "HELLO",13,10
        pause 1000
        goto start
    if it doesn't work, tell us more about your hardware : crystal speed, LCD model... etc etc etc
    <img src="http://www.mister-e.org/Pics/CrystalBall_Informations.gif">
    Last edited by mister_e; - 11th December 2006 at 23:18.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. LCD with serout command
    By azispn99 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th April 2006, 13:08

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