SEROUT WORD variable problem


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    after drinking heavily I think I am getting this sorted out. I tried this part of code

    read 38, Test.LowByte
    read 39, Test.highbyte

    and then used 'test' as a variable to SEROUT. If there is a better way to do this let me know
    Thanks again
    Toby

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


    Did you find this post helpful? Yes | No

    Default

    Tobias,

    Try reading one variable at a time and see what's the value. Anyways I can see that you have in your program
    PreOn = Stage10On
    PreOff =Stage10Off
    but you defined Stagexxxxx as word but defined PreOn and PreOff as bytes. This might be a problem if the Stagexxxxx variables go above 255. I would define PreOn and PreOff as words and see what happens.

    Robert

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 21:58
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 02:51
  3. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th July 2008, 00:19
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 21:36
  5. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 16:23

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