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

📄 init.s

📁 用M16控制,定时器工作于计数方式,计数值同步显示在LCD上
💻 S
字号:
	.module init.c
	.area text(rom, con, rel)
	.dbfile E:\新建文件夹\conter_icc\cfile\init.c
	.dbfunc e InitIo _InitIo fV
	.even
_InitIo::
	.dbline -1
	.dbline 4
; #define INIT_C
; #include "includes.h"
; void InitIo(void)
; {
	.dbline 5
;     DDRA  = 0xff;
	ldi R24,255
	out 0x1a,R24
	.dbline 6
;     PORTA = 0xff;
	out 0x1b,R24
	.dbline 7
;     DDRB  = 0x00;
	clr R2
	out 0x17,R2
	.dbline 9
;     //PORTB = 0x00;
;     PORTB = 0xff;
	out 0x18,R24
	.dbline 10
;     DDRC  = 0xff;
	out 0x14,R24
	.dbline 11
;     PORTC = 0xff;    
	out 0x15,R24
	.dbline -2
L1:
	.dbline 0 ; func end
	ret
	.dbend
; }

⌨️ 快捷键说明

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