⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 begin-s.asm

📁 F206中通过8251外扩串口程序 已调试通过
💻 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 + -