Serial LCD is Killing Me! Just garbage


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    mslaney's Avatar
    mslaney Guest


    Did you find this post helpful? Yes | No

    Default

    OK, this is what I came up with to write the line number on their repective lines. How do I make this more elegant/neater? A counter loop for the line number maybe?


    'Chip registers and inits
    cmcon = 7
    trisa = %00000000
    trisb = %00000000
    porta = $00
    portb = $00

    'Vars and Cons
    screen var portb.0


    main:

    pause 500 'wait for the LCD to startup

    serout screen,n9600,[$FE,12,4,1] 'clear the screen position and hide cursor
    serout screen,n9600,["Line 1"] 'Print on line 1
    pause 500
    serout screen,n9600,[$FE,12,4,1,10] 'Clear screen and position to line 1
    serout screen,n9600,["Line 2"] 'print on line 2
    pause 500
    serout screen,n9600,[$FE,12,4,1,10,10] 'Clear screen and position cursor to line3
    serout screen,n9600,["Line 3"] 'Print on line 3
    pause 500
    serout screen,n9600,[$FE,12,4,1,10,10,10] 'Go to line 4
    serout screen,n9600,["Line 4"] 'Print on line 4


    ''Just make sure the chip is running:
    'high portb.3
    'pause 100
    'low portb.3
    'pause 100

    goto main ' loop

  2. #2
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    I also have had problems with serial LCD coms. I have tried serial modules form 4 different manufacturers and have spent hours trying to make the buggers work. Well, NO MORE!!!
    In utter frustration, I tried the setup exactly as listed in the MEL manual for connecting to an LCD direct. First time success. I know there is a lot of talk about the extra lines required, but, is it cheaper to move up 1 size in PIC for a cuppla bucks, or add a serial adaptor for a cuppla bucke. No arguement. I will be using the book's example from here on in. It really is so simple.

  3. #3
    mslaney's Avatar
    mslaney Guest


    Did you find this post helpful? Yes | No

    Default

    Well, it certainly was not a cuppla bucks for the display and backpack!! Seetron.com ~$50.

    However, the reason I got it was to learn how to use it. Now that I figured it out, I can use smaller packages even if it doesn't matter. I think of it as tuition!

    I was using a parallel display and the LCD out commands and it *was* much easier after adjusting the defines. Oh, and the display was as cheap as the pic!!

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Mike Slaney,

    MS>>Well, it certainly was not a cuppla bucks for the display and backpack!! Seetron.com ~$50. <<

    Yeah... I couldn't see myself paying that much for a backpack...For less than 15 dollars. Used a cheapo LCD and a 648A for the driver.

    MS>>However, the reason I got it was to learn how to use it.<<

    Thats the fun part.... I have a very good friend...He has a quote...that goes something like this:

    "We purchase and put together 5 and 10 dollar PIC projects to learn to use our 1000s of dollars equipment."

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. LCD serial backpacks
    By Archangel in forum Serial
    Replies: 67
    Last Post: - 30th December 2010, 05:51
  2. Please help with EDE702 - Serial to LCD interface
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2008, 03:48
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 17:56
  4. Serial LCD
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2007, 09:31
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 27th June 2007, 00:07

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