pwm16_2int.asm

来自「Application Note Abstract This Applicat」· 汇编 代码 · 共 66 行

ASM
66
字号
;------------------------------------------------------------------------------
;  FILENAME:   PWM16_2int.asm
;   VERSION:   Rev B, 2002 Mar 30
;------------------------------------------------------------------------------
;  DESCRIPTION:
;     Interrupt handler routine for PWM16 user module instance:
;        PWM16_2.
;------------------------------------------------------------------------------
;	Copyright (c) Cypress MicroSystems 2000-2002. All Rights Reserved.
;------------------------------------------------------------------------------

include  "PWM16_2.inc"
include  "m8c.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   PWM16_2INT

;-----------------------------------------------------------------------------
;  FUNCTION NAME: PWM16_2Int
;
;  DESCRIPTION:
;     PWM16 interrupt handler for instance PWM16_2.  
;
;     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.
;
;-----------------------------------------------------------------------------
PWM16_2INT:
   ;--------------------------
   ; Place user code here!!!
   ;--------------------------
  inc [te_second]
  cmp [te_second],60
  jnz end
  
  mov [te_second],00
  inc [te_minute]
  cmp [te_minute],FFh
  jnz end
  mov [te_minute],00
  

end:

  reti
	

; end of file

⌨️ 快捷键说明

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