Serin serout problem


Results 1 to 40 of 337

Threaded View

  1. #11
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default methinks

    Quote Originally Posted by lerameur View Post
    Ok now I used your pogram and changed the serin line :

    serin portB.2 , t2400 , temp1 -----works

    It takes in the value,IT is NOW working. BUT For some odd reason it do not take multiple input..

    serin portB.2 , t2400 , [ temp1 , temp2 , temp3 , temp4 ] ------------- do not work
    Hi leramuer.
    I think you need to store and retrieve those values in an array. I am not experienced enough to have confidence with this statement, but methinks it is so.
    Anyone, ring in here with an opinion!
    JS
    edit:
    try this
    Temp var byte[4]
    Temp[0] = n ' your first temp value
    Temp[1] = n1 ' your second value
    Temp[2] = n2 ' your third value
    Temp[3] = n3 ' your fourth value
    serout portB.2 , t2400,[# temp[0],# temp[1], # Temp[2], # Temp[3]]
    it displays on my backpack display.
    JS
    Last edited by Archangel; - 25th December 2006 at 07:56. Reason: add possible solution

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. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  3. serout and serin problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th April 2006, 19:44
  4. Replies: 11
    Last Post: - 13th July 2005, 19:26
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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