📄 pwm8_1int.lis
字号:
0000 ;------------------------------------------------------------------------------
0000 ; FILENAME: PWM8_1int.asm
0000 ; VERSION: Rev B, 2002 Mar 30
0000 ;------------------------------------------------------------------------------
0000 ; DESCRIPTION:
0000 ; Interrupt handler routine for PWM8 user module instance:
0000 ; PWM8_1.
0000 ;------------------------------------------------------------------------------
0000 ; Copyright (c) Cypress MicroSystems 2000-2002. All Rights Reserved.
0000 ;------------------------------------------------------------------------------
0000
0010 bPWM8_1_INT_MASK: equ 10h
0000 ;PWM8 interrupt address
00E1 PWM8_1_INT_REG: equ 0e1h
0000
0000
0000 ;---------------------------------
0000 ; Registers used by PWM8
0000 ;---------------------------------
0033 PWM8_1_CONTROL_REG: equ 33h ;Control register
0030 PWM8_1_COUNTER_REG: equ 30h ;Counter register
0031 PWM8_1_PERIOD_REG: equ 31h ;Period value register
0032 PWM8_1_PWIDTH_REG: equ 32h ;PulseWidth register
0030 PWM8_1_FUNC_REG: equ 30h ;Function register
0031 PWM8_1_INPUT_REG: equ 31h ;Input register
0032 PWM8_1_OUTPUT_REG: equ 32h ;Output register
0000
0000 ; end of file
0000
0000 ;-----------------------------------------------------
0000 ; Export interrupt handler
0000 ; NOTE that interrupt handler is NOT exported
0000 ; for access by C function. Interrupt handlers
0000 ; are not callable by C functions.
0000 ;-----------------------------------------------------
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.
;
;-----------------------------------------------------------------------------
0000 PWM8_1INT:
0000 ;--------------------------
0000 ; Place user code here!!!
0000 ;--------------------------
0000 7600 inc [minute]
0002 3C003C cmp [minute],60
0005 B025 jnz end
0007
0007 550000 mov [minute],00
000A 7600 inc [hour]
000C 3C0018 cmp [hour],24
000F B01B jnz end
0011
0011 550000 mov [hour],00
0014 7600 inc [day]
0016
0016 5100 mov A,[month]
0018 F012 index month_table
001A 3A00 cmp A,[day]
001C B00E jnz end
001E
001E 550001 mov [day],01
0021 7600 inc [month]
0023 3C000C cmp [month],12
0026 B004 jnz end
0028 550001 mov [month],1
002B
002B
002B
002B end:
002B 7E reti
002C
002C month_table:
002C 00201D201F201F20201F201F20 db 00,32,29,32,31,32,31,32,32,31,32,31,32
0039
0039 ; end of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -