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

📄 chuankou.s

📁 AVR单片机mega16的串口通信程序下载。
💻 S
字号:
	.module chuankou.c
	.area text(rom, con, rel)
	.dbfile E:\刘滨\程序\串口\chuankou.c
	.dbfunc e SETB _SETB fV
;              k -> R20
	.even
_SETB::
	rcall push_gset1
	mov R20,R16
	.dbline -1
	.dbline 10
; #include <iom16v.h> 
; #define CS 0 
; #define CLK 1 
; #define DIO 2 
; #define KEY 3
; unsigned int count,i; 
; unsigned int j;  
; 
; void SETB(unsigned char k) 
; {//这里的PORTB根据自己的程序修改 
	.dbline 11
; PORTB=PORTB|(1<<k); 
	ldi R16,1
	mov R17,R20
	rcall lsl8
	in R2,0x18
	or R2,R16
	out 0x18,R2
	.dbline -2
L1:
	rcall pop_gset1
	.dbline 0 ; func end
	ret
	.dbsym r k 20 c
	.dbend
	.dbfunc e CLRS _CLRS fV
;              l -> R0
	.even
_CLRS::
	.dbline 0 ; func end
	ret
	.dbsym l l 0 c
	.dbend
	.dbfunc e Display _Display fV
;       position -> R1
;           Data -> R0
	.even
_Display::
	.dbline 0 ; func end
	ret
	.dbsym l position 2 c
	.dbsym l Data 0 c
	.dbend
	.dbfunc e ADC_Conv _ADC_Conv fi
	.even
_ADC_Conv::
	.dbline 0 ; func end
	ret
	.dbend
	.dbfunc e main _main fV
	.even
_main::
	.dbline 0 ; func end
	ret
	.dbend
	.area bss(ram, con, rel)
	.dbfile E:\刘滨\程序\串口\chuankou.c
_j::
	.blkb 2
	.dbsym e j _j i
_i::
	.blkb 2
	.dbsym e i _i i
_count::
	.blkb 2
	.dbsym e count _count i

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -