?? interrupt.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\多任務(wù)模擬系統(tǒng)設(shè)計\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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -