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

📄 intr_i0.a30

📁 一个瑞萨单片机的程序。。。供大家学习用。。。。。。。。。。。。。。。。。。
💻 A30
字号:
;""FILE COMMENT""**************************************************************
;  System Name : for eduction (NO TRANSFERRING)
;  File Name   : intr_i0.a30
;  Contents    : interrupt processing
;  Model       : for OAKS8-LCD Board
;  CPU         : R8C/Tiny series
;  Compiler    : NC30WA	V.5.30 Release 1
;  OS          : not be used
;  Programer   : RENESAS Semiconductor Training Center
;  Note        : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
;******************************************************************************
; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
;******************************************************************************
; History      : ---
;""FILE COMMENT END""*********************************************************

;fill the blank (___) below with suitable word,
;complete the program

;""SUBR COMMENT""**************************************************************
; ID              : ---
; subroutine name : INT0
; function        : control INT0 interrupt by edge input to INT0 port
; input           : none
; output          : none
; subroutine used : _INTint0
; stack           : 16 bytes
; notice          : interrupt program
;                 : it is necessary to register the interrupt program address
;                 : in interrupt vector table in section definition file
;                 : (sect_i0.inc) that is included in start up program(startup_i0.a30)
;                 : it is possible to occur chattering
; History         : ---
;""SUBR COMMENT END""**********************************************************
        .section        program		; same section as C program
        .glb            int0		; define interrupt program
                                    ; label globally
        .glb            _INTint0	; define INT0 interrupt function globally
;
;(question)
____:								; label to show
;									; interrupt program address
									; set this label
									; to interrupt vector table
;
;(question)
	_____   __,__,__,__,__,__,__    ; save register value used in interrupt 
;									; program in stack
;
;(question)
	___		________				; call INT0 interrupt function
int0_10:
;(question)
	____    __,__,__,__,__,__,__    ; revest register value from stack
;									; before return to interrupted program
int0_end:
;(question)
	____                            ; turn back to interrupted program


;""SUBR COMMENT""**************************************************************
; ID              : ---
; subroutine name : _ei
; function        : set interrupt permission flag(I flag)(interrupt permission)
; input           : none 
; output          : none
; subroutine used : none
; stack           : 0 byte
; notice          : none
; History         : ---
;""SUBR COMMENT END""**********************************************************
        .section        program		; same section as C program
        .glb			_ei			; define globally
_ei:
;(question)
	____    _                       ; set interrupt permission flag as "permission"
_ei_end:
	rts								; return from function


;""SUBR COMMENT""**************************************************************
; ID              : ---
; subroutine name : _di
; function        : clear interrupt permission flag(I flag)(interrupt deny)
; input           : none
; output          : none
; subroutine used : none
; stack           : 0 byte
; notice          : none
; History         : ---
;""SUBR COMMENT END""**********************************************************
        .section        program		; same section as C program
        .glb			_di			; define globally
_di:
;(question)
	____    _                       ; set interrupt permission flag as "deny"
_di_end:
	rts								; return from function


        .end
;******************************************************************************
;       end of file
;******************************************************************************

⌨️ 快捷键说明

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