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

📄 filter_timer.inc

📁 测量脉搏的源码 Cypress公司使用 CY27443 完成相关的功能
💻 INC
字号:
;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME: Filter_Timer.inc
;;   Version: 2.1, Updated on 2003/08/20 at 17:13:06
;;  Generated by PSoC Designer ver 4.0 b865 : 27 August, 2003
;;
;;  DESCRIPTION: Assembler declarations for the Timer8 user module interface
;;               for the 22/24/27/28xxx PSoC family of devices
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2000-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************

include "m8c.inc"


;--------------------------------------------------
; Constants for Filter_Timer API's.
;--------------------------------------------------

Filter_Timer_CONTROL_REG_START_BIT:        equ 0x01    ; Control register start bit
Filter_Timer_INT_REG:                      equ 0x0e1
Filter_Timer_INT_MASK:                     equ 0x02


;--------------------------------------------------
; Register Address Constants for Filter_Timer
;--------------------------------------------------

Filter_Timer_COUNTER_REG:              equ 0x24   ; DR0 Counter register
Filter_Timer_PERIOD_REG:               equ 0x25   ; DR1 Period register
Filter_Timer_COMPARE_REG:              equ 0x26   ; DR2 CompareValue register
Filter_Timer_CONTROL_REG:              equ 0x27   ; Control register
Filter_Timer_FUNC_REG:                 equ 0x24   ; Function register
Filter_Timer_INPUT_REG:                equ 0x25   ; Input register
Filter_Timer_OUTPUT_REG:               equ 0x26   ; Output register


;--------------------------------------------------
; Filter_Timer Macro 'Functions'
;--------------------------------------------------

   macro Filter_Timer_Start_M
   or    reg[Filter_Timer_CONTROL_REG],  Filter_Timer_CONTROL_REG_START_BIT
   endm

   macro Filter_Timer_Stop_M
   and   reg[Filter_Timer_CONTROL_REG], ~Filter_Timer_CONTROL_REG_START_BIT
   endm

   macro Filter_Timer_EnableInt_M
   M8C_EnableIntMask Filter_Timer_INT_REG, Filter_Timer_INT_MASK
   endm

   macro Filter_Timer_DisableInt_M
   M8C_DisableIntMask Filter_Timer_INT_REG, Filter_Timer_INT_MASK
   endm


; end of file Filter_Timer.inc

⌨️ 快捷键说明

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