?? begin-s.asm
字號:
*****************************************************************************
; Function: uart.asm
; Version : 1.00
; Description: uart
;
; Copyright Texas instruments Inc, 2000
;*****************************************************************************
.mmregs
; .global _sample_buff
;*****************************************************************************
.def _tranini
.global _t8251
dr8251 .set 08000h
cr8251 .set 08001h
icr .set 0ffech
.text
_tranini: ;setc intm
nop
MAR *,AR1
sst #1,*+
sst #0,*+
sar ar0,*+
sar ar1,*+
SAR AR3,*+
sar ar4,*+
SAR AR5,*+
sacl *+
sach *+ ;以上為保護寄存器
ldp #0h
lar ar3,#(_t8251)
mar *,ar3 ;啟動串口發送
out *,dr8251
splk #001eh,60h
nop
out 60h,icr
MAR *,AR1
mar *-
lacc *-,16
add *-
LAR AR5,*-
nop
LAR AR4,*-
nop
LAR AR3,*-
nop
lar ar1,*
nop
mar *-
lar ar0,*-
nop
lst #0,*-
nop
lst #1,*
nop
; clrc intm
ret
; .endif
;end of file. please do not remove. it is left here to ensure that no lines of code are removed by any editor
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -