📄 pwm8_1int.asm
字号:
;------------------------------------------------------------------------------
; FILENAME: PWM8_1int.asm
; VERSION: Rev B, 2002 Mar 30
;------------------------------------------------------------------------------
; DESCRIPTION:
; Interrupt handler routine for PWM8 user module instance:
; PWM8_1.
;------------------------------------------------------------------------------
; Copyright (c) Cypress MicroSystems 2000-2002. All Rights Reserved.
;------------------------------------------------------------------------------
include "PWM8_1.inc"
;-----------------------------------------------------
; Export interrupt handler
; NOTE that interrupt handler is NOT exported
; for access by C function. Interrupt handlers
; are not callable by C functions.
;-----------------------------------------------------
export PWM8_1INT
;-----------------------------------------------------------------------------
; FUNCTION NAME: PWM8_1Int
;
; DESCRIPTION:
; Counter8 interrupt handler for instance PWM8_1.
;
; This is a place holder function. If the user requires use of an interrupt
; handler for this function, then place code where specified.
;
; ARGUMENTS:
; none.
;
; RETURNS:
; none.
;
; SIDE EFFECTS:
; none.
;
; THEORY of OPERATION:
; none.
;
;-----------------------------------------------------------------------------
PWM8_1INT:
;--------------------------
; Place user code here!!!
;--------------------------
inc [minute]
cmp [minute],60
jnz end
mov [minute],00
inc [hour]
cmp [hour],24
jnz end
mov [hour],00
inc [day]
mov A,[month]
index month_table
cmp A,[day]
jnz end
mov [day],01
inc [month]
cmp [month],12
jnz end
mov [month],1
end:
reti
month_table:
db 00,32,29,32,31,32,31,32,32,31,32,31,32
; end of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -