Problem with serin2 serout2


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    DEC causes numbers to be sent in ASCII format. 1 to 9 will work fine since each number will
    be a single ASCII character. When you get to 10, it sends an ASCII 1 followed by an ASCII
    0, which requires two bytes. DEC 100 will be 3 ASCII bytes, etc.

    Try something like this;
    Code:
    T9600 CON 84
    
    MAIN:
    FOR B0=4 T0 200
    SEROUT2 0,T9600,[B0] ' without modifier, sends the unformatted byte value of 4 to 200
    PAUSE 10
    NEXT BO
    
    SERIN2 0,T9600,[B0] ' can receive a value from 0 to 255
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Dec 2008
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    hi all my friends

    thank you for your reply

    yes Mr ARATTI it's works good with

    SEROUT2 Pin,84,[DEC b0]
    Pause 100
    SERIN2 Pin,84,[b0]

    thank you very much and thanks for Mr Bruce
    Although I don't try yet his code

    good luck

Similar Threads

  1. Serout and 18F87J50
    By Glenn_Webber in forum Serial
    Replies: 8
    Last Post: - 20th November 2009, 15:26
  2. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 03:38
  3. Serout2 and Serin2 problem
    By MrSafe in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th July 2007, 05:33
  4. SEROUT2 and SERIN2 commands
    By bangunprayogi in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th August 2005, 10:03
  5. Simple PC Menu System with Serin2
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd April 2005, 09:27

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