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

📄 interrupt.s

📁 AVR单片机C语言程序设计实例精粹
💻 S
字号:
	.module interrupt.c
	.area vector(rom, abs)
	.org 12
	jmp _Timer2_Interrupt
	.area text(rom, con, rel)
	.dbfile E:\Steaven2000\AVR\AVR_Book\PROGRA~1\SOURCE~1\Code\多任务模拟系统设计\interrupt.c
	.dbfunc e Timer2_Interrupt _Timer2_Interrupt fV
	.even
_Timer2_Interrupt::
	xcall push_lset
	.dbline -1
	.dbline 19
; //***************************************************************
; // File Name : Interrupt.c
; // Author    : Steaven
; // Created   : 2008-06-09
; // Modified  : 
; // Revision  : V0.0
; //***************************************************************
; 
; #include "app.h"
; 
; //***************************************************************
; // Function    : Timer2_Interrupt
; // Input       : none
; // Output      : none
; // Description : Kernel Clock Interrupt Service Routine
; //***************************************************************
; #pragma interrupt_handler Timer2_Interrupt:4
; void Timer2_Interrupt(void)
; {
	.dbline 21
; 	//Clear Timer2 OCIF Flag
; 	TIFR  |= 0x80;
	in R24,0x38
	ori R24,128
	out 0x38,R24
	.dbline 22
;     TCNT2 = 0x00;
	clr R2
	out 0x24,R2
	.dbline 24
; 	//Key Detection
; 	Key_Detection();
	xcall _Key_Detection
	.dbline 26
; 	//Update Task Status
; 	OS_Task_Update();
	xcall _OS_Task_Update
	.dbline -2
	.dbline 27
; }
L1:
	xcall pop_lset
	.dbline 0 ; func end
	reti
	.dbend

⌨️ 快捷键说明

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