How to upon receiving data via RS232, MCU immediately sends it back to the sender?


Results 1 to 8 of 8

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: How to upon receiving data via RS232, MCU immediately sends it back to the send

    Remove the ENDIF and add the square parentesis it will compile.

    Main:
    PORTA = $00
    SERIN PORTA.3,N2400,Primi
    pause 3000
    IF Primi <> 0 Then Prati
    Goto Main


    Prati:
    Primi = Isprati
    Serout PORTA.2,N2400,[Isprati]
    Goto Main

    Cheers

    Al.
    Last edited by aratti; - 21st February 2011 at 21:12.
    All progress began with an idea

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