delsig8_1.inc

来自「PSOC 电动自行车代码 器件采用CYPRESS新电动自行车器件CY8C245」· INC 代码 · 共 51 行

INC
51
字号
;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME: DELSIG8_1.inc
;;   Version: 3.2, Updated on 2006/02/23 at 15:43:04
;;
;;  DESCRIPTION: Assembler declarations for the 8-bit Delta-Sigma A/D Converter
;;               User Module with a 1st-order modulator.
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2000-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************

include "m8c.inc"


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

DELSIG8_1_INT_REG:                         equ  0e1h
DELSIG8_1_INT_MASK:                        equ  02h     ; Interrupt mask

DELSIG8_1_OFF:                      equ 00h
DELSIG8_1_LOWPOWER:                 equ 01h
DELSIG8_1_MEDPOWER:                 equ 02h
DELSIG8_1_HIGHPOWER:                equ 03h

DELSIG8_1_POLL_ENABLE:              equ 0
DELSIG8_1_DATA_READY_BIT:           equ 10h


;--------------------------------------------------
; Register Address Constants for DELSIG8_1
;--------------------------------------------------

DELSIG8_1_TimerDR0:            equ 0x24    ; Period reg
DELSIG8_1_TimerDR1:            equ 0x25    ; Down count reg
DELSIG8_1_TimerDR2:            equ 0x26    ; Compare reg
DELSIG8_1_TimerCR0:            equ 0x27    ; Control reg
DELSIG8_1_TimerFN:             equ 0x24    ; Function reg
DELSIG8_1_TimerSL:             equ 0x25    ; Input  select reg
DELSIG8_1_TimerOS:             equ 0x26    ; Output select reg

DELSIG8_1_AtoDcr0:             equ 0x94    ; SC Block Control Reg 0
DELSIG8_1_AtoDcr1:             equ 0x95    ; SC Block Control Reg 1
DELSIG8_1_AtoDcr2:             equ 0x96    ; SC Block Control Reg 2
DELSIG8_1_AtoDcr3:             equ 0x97    ; SC Block Control Reg 3


; end of file DELSIG8_1.inc

⌨️ 快捷键说明

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