read from serial port

Discussion in 'Assembly Language Programming (ALP) Forum' started by helz15, Mar 24, 2008.

  1. helz15

    helz15 New Member

    Joined:
    Mar 24, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I am new to this site, but i am looking for help in using assembly language to read from the serial port.
    To write the program i am using Raisionance (Ride) software, i have pretty basic knowledge of assembly language but am hoping to crack this anyway.

    So far i have got:

    MOV SCON,#50H
    MOV TMOD,#20H
    MOV TH1,#253
    SETB TR1

    SLOOP: JNB RI,$
    MOV A,SBUF
    CLR RI
    CLR TI
    MOV SBUF,A
    JNB TI,$
    SJMP SLOOP

    The problem occurs when it gets to JNB TI,$, it all seems to stop.
    I am using this to read data from one of those mulitmeters that plug into the serial port, it did come with its own software, but i am not using that.

    Please Help! Thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice