Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/00 05:31
Read: times


 
#3073 - Recieve serial data using a simulator
Hi,
I am finding problem in recieving data
I am at present using keil software demo version of the assembler.
The codes are written in assembly language .
my doubt is
1: How to recieve a serial data i.e simulate it?
the code used by me is as follows


ORG 0000H
JMP START
ORG 0023H
JMP Serialport
ORG 0040H
START: MOVIE,#90H
MOV TMOD,#20H
MOV SCON,#50H
MOV IE,#90H
MOV TMOD,#20H
MOV TH1,#FDH
MOV TCON,#40H
SETB RI
JMP START
RET
SERIALPORT:
JBC TI, TRANSMIT
JB RI, RECIEVE
MOV IE,#90H
RETI
TRANSMIT:
MOV IE,#90H
RETI
RECIEVE:
MOV A,SBUF ; DOES NOT WORK HERE SBUF =00
CLR RI
MOV IE,#90H
RETI




List of 2 messages in thread
TopicAuthorDate
Recieve serial data using a simulator            01/01/70 00:00      
RE: Recieve serial data using a simulator            01/01/70 00:00      

Back to Subject List