SEROUT2 and SERIN2 commands


Closed Thread
Results 1 to 2 of 2
  1. #1
    bangunprayogi's Avatar
    bangunprayogi Guest

    Default SEROUT2 and SERIN2 commands

    Hi, I have some quetions about the use of serin2 and serout2 commands:
    1). I have circuit with master-slave connection (both are PIC16F84A),

    The slave will send characters in string format just like:
    SEROUT2, So, 396,("13201150")
    And the master will receive that characters with SERIN2, such:
    SERIN2, Si, 396,[wait ("13201150"), B0)
    Then I want to display the value of B0 (should is "13201150") with

    command:
    LCDOUT $fe,1
    LCDOUT #B0
    But it is failed. The result on display is just like the ASCII value.

    Do i make some mistakes here?
    2). I have find out that the SEROUT2 and SERIN2 command can send and

    receive one character only.If in slave I use command:
    SEROUT2, So, 396,("a")
    Then in master I use command:
    SERIN2, Si, 396,[wait ("a"), B0]
    And on LCD I use:
    LCDOUT $fe,1
    LCDOUT B0 ------->>> WITHOUT #
    Then it does work well. Can someone explain it?
    3) I want an example of the using of WAITSTR ArrayVar command....
    4) Can the master received some characters only?Such us: if I want

    that the master received the value of characters from "a" to "j" only,

    so while the slave send character that out of range the value, then it

    will be denied, and viceversa.what the SERIN2 command in master will

    gonna be?
    Thanks guys....

  2. #2
    Join Date
    May 2005
    Posts
    49


    Did you find this post helpful? Yes | No

    Red face yes a beginner explain

    I am a beginner too but i can explain what # do
    if u put a # infront of a value or a String the chip will send the characters in ASII format.See the ASII format table.
    Asking is not a shame but not learning is a SHAME!!!

Similar Threads

  1. About USB
    By dias11 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2009, 20:41
  2. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 02:38
  3. Syntax SEROUT2 and SERIN2 commands
    By crocodilebobbie in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th October 2005, 15:35
  4. Simple PC Menu System with Serin2
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd April 2005, 08:27
  5. Serin2 and Serout2 with or without level converter
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st May 2004, 07:10

Members who have read this thread : 1

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