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

📄 pwm8_fan.inc

📁 带触摸按键的高端电磁炉设计 该方案采用CYPRESS的新器件CY8C22545,是一款专门针对中高端的家电触摸产品设计。除了集成触摸按键功能外
💻 INC
字号:
;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME: PWM8_FAN.inc
;;   Version: 2.5, Updated on 2008/12/13 at 10:58:7
;;  Generated by PSoC Designer ???
;;
;;  DESCRIPTION: Assembler declarations for the PWM8 user module interface
;;               for the 22/24/27/29xxx PSoC family of devices
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2000-2004. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************

include "m8c.inc"


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

PWM8_FAN_CONTROL_REG_START_BIT:            equ 0x01    ; Control register start bit
PWM8_FAN_INT_REG:                          equ 0x0e1
PWM8_FAN_INT_MASK:                         equ 0x10


;--------------------------------------------------
; Constants for PWM8_FAN user defined values
;--------------------------------------------------

PWM8_FAN_PERIOD:                           equ 0xb2
PWM8_FAN_PULSE_WIDTH:                      equ 0x59


;--------------------------------------------------
; Register Address Constants for PWM8_FAN
;--------------------------------------------------

PWM8_FAN_COUNTER_REG:                  equ 0x30   ; DR0 Count register
PWM8_FAN_PERIOD_REG:                   equ 0x31   ; DR1 Period register
PWM8_FAN_COMPARE_REG:                  equ 0x32   ; DR2 Compare register
PWM8_FAN_CONTROL_REG:                  equ 0x33   ; Control register
PWM8_FAN_FUNC_REG:                     equ 0x30   ; Function register
PWM8_FAN_INPUT_REG:                    equ 0x31   ; Input register
PWM8_FAN_OUTPUT_REG:                   equ 0x32   ; Output register


;--------------------------------------------------
; PWM8_FAN Macro 'Functions'
;--------------------------------------------------

   macro PWM8_FAN_Start_M
   or    reg[PWM8_FAN_CONTROL_REG],  PWM8_FAN_CONTROL_REG_START_BIT
   endm

   macro PWM8_FAN_Stop_M
   and   reg[PWM8_FAN_CONTROL_REG], ~PWM8_FAN_CONTROL_REG_START_BIT
   endm

   macro PWM8_FAN_EnableInt_M
   M8C_EnableIntMask PWM8_FAN_INT_REG, PWM8_FAN_INT_MASK
   endm

   macro PWM8_FAN_DisableInt_M
   M8C_DisableIntMask PWM8_FAN_INT_REG, PWM8_FAN_INT_MASK
   endm


; end of file PWM8_FAN.inc

⌨️ 快捷键说明

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