serial_tr.asm
来自「serial communication with 89c51」· 汇编 代码 · 共 29 行
ASM
29 行
org 0000h
sjmp main
org 0030h
main: mov tmod,#20h
mov th1,#0fah
mov scon,#50h
setb tr1
again1: mov dptr,#sdata
again:
clr a
movc a,@a+dptr
acall send
sjmp again
send: mov sbuf,a
here: jnb ti,here
clr ti
inc dptr
cjne a,#00h,again
sjmp again1
ret
sdata: db "Welcome to the world of Microcontroller"
db "This is program for serial transmission from Microcontroller to PC"
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?