ORG 0000H
MOV TMOD, # 20H ;timer 1, mode 2(auto reload)
MOV TH1, # -3 ;9600 baud rate for Crystal 11.0592MHz
MOV SCON, # 50H ;8-bit, 1 stop, REN enabled
SETB TR1 ;start timer 1
AGAIN: MOV SBUF, # 'S' ;letter “S” to transfer
HERE: JNB TI, HERE ;wait for the last bit
CLR TI ;clear TI for next char
SJMP AGAIN ;keep sending 'S'
END
Comments
Post a Comment