Lcdout multiple variables issue


Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Nov 2014
    Posts
    16

    Default Lcdout multiple variables issue

    Having a problem with the LCDOUT Command on a PIC18F46K22 at 16MHz with a Vishay 4x20 LCD Display.

    If I use LCDOUT this way:
    Code:
    LINE1 = $80
    LCDOUT $FE, LINE1, "01234567890123456789"
    It will work every time flawlessly.

    But if I use:
    Code:
    LINE1 = $80
    X1 = 10
    X2 = 11
    X3 = 12
    X4 = 13
    X5 = 14
    LCDOUT $FE, LINE1, #X1, " ", #X2, " ", #X3, " ", #X4, " ", #X5
    The display will show
    10 11 12 garbage.....


    If I do this:
    Code:
    LINE1 = $80
    X1 = 10
    X2 = 11
    X3 = 12
    X4 = 13
    X5 = 14
    LCDOUT $FE, LINE1, #X1, " ", #X2, " ", #X3, " "
    LINE1 = LINE1 + 9
    GOSUB DELAY30    '30 msec delay
    LCDOUT $FE, LINE1, #X4, " ", #X5
    then everything is correct
    10 12 13 14 15

    I tried changing these parameters to no avail
    DEFINE LCD_COMMANDUS 1500 ; Set command delay time in us
    DEFINE LCD_DATAUS 44 ; Set data delay time in us

    Any suggestions?
    Last edited by Archangel; - 20th February 2015 at 19:56.

Similar Threads

  1. DT Multiple Software PWM and 18F2321 issue
    By microuser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2012, 08:23
  2. Reading/writing arrays from eeprom to variables to lcdout
    By DDDvvv in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th August 2010, 18:51
  3. External Eeprom - trying to store multiple variables
    By bluesmoke in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th April 2010, 02:07
  4. Multiple Variables - Pins
    By GatorGuy in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st February 2010, 01:08
  5. LCDOUT variables?
    By RUBiksCUbe in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd September 2005, 01:25

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