SEROUT2 and multiple WORDS


Results 1 to 2 of 2

Threaded View

  1. #1
    atomski's Avatar
    atomski Guest

    Post SEROUT2 and multiple WORDS

    Hello everyone,

    I've decided to start a new thread
    regarding my 16F628 project problem
    (solved thanks to Melanie)...

    I have another question. Is there a way
    to send/receive several consecutive
    WORD sized variables over rs-232 (SW
    USART) using single SEROUT2/SERIN2
    command?
    For example, can I send this using a
    single SEROUT2 command:

    SEROUT2 tx,16780,["ENTER T1",13,10]
    SEROUT2 tx,16780,["ENTER T2",13,10]
    SEROUT2 tx,16780,["ENTER T3",13,10]
    SEROUT2 tx,16780,["ENTER T4",13,10]
    SEROUT2 tx,16780,["ENTER T5",13,10]

    I'm pretty sure I coud do it this way:

    SEROUT2 tx,16780,["ENTER T1","T2","T3","T4","T5",13,10]

    However, how can I receive and store 5
    consecutive values to variables with
    one SERIN2 command? I would
    appreciate if someone could give a clue
    as to what I should do to make this
    happen.
    Attached Files Attached Files

Similar Threads

  1. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  2. Problem reading multiple ADC ports
    By jswayze in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th November 2004, 16:46

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