Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   read from serial port (http://www.go4expert.com/forums/read-serial-port-t9586/)

helz15 24Mar2008 17:05

read from serial port
 
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!


All times are GMT +5.5. The time now is 08:19.