pga_adc.inc

来自「测量脉搏的源码 Cypress公司使用 CY27443 完成相关的功能」· INC 代码 · 共 66 行

INC
66
字号
;;*****************************************************************************
;;*****************************************************************************
;;  FILENAME:   PGA_ADC.inc  ( PGA )
;;  Version: 3.0, Updated on 2003/08/27 at 14:03:13
;;  Generated by PSoC Designer ver 4.0 b865 : 27 August, 2003
;;
;;  DESCRIPTION:  Assembler declarations for the PGA user module interface for
;;                the 22/24/27xxx PSoC family of devices.
;;-----------------------------------------------------------------------------
;;  Copyright (c) Cypress MicroSystems 2001-2003. All Rights Reserved.
;;*****************************************************************************
;;*****************************************************************************

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

PGA_ADC_OFF:         equ 0
PGA_ADC_LOWPOWER:    equ 1
PGA_ADC_MEDPOWER:    equ 2
PGA_ADC_HIGHPOWER:   equ 3

PGA_ADC_G48_0:       equ 0Ch
PGA_ADC_G24_0:       equ 1Ch
PGA_ADC_G16_0:       equ 08h
PGA_ADC_G8_00:       equ 18h
PGA_ADC_G5_33:       equ 28h
PGA_ADC_G4_00:       equ 38h
PGA_ADC_G3_20:       equ 48h
PGA_ADC_G2_67:       equ 58h
PGA_ADC_G2_27:       equ 68h
PGA_ADC_G2_00:       equ 78h
PGA_ADC_G1_78:       equ 88h
PGA_ADC_G1_60:       equ 98h
PGA_ADC_G1_46:       equ A8h
PGA_ADC_G1_33:       equ B8h
PGA_ADC_G1_23:       equ C8h
PGA_ADC_G1_14:       equ D8h
PGA_ADC_G1_06:       equ E8h
PGA_ADC_G1_00:       equ F8h
PGA_ADC_G0_93:       equ E0h
PGA_ADC_G0_87:       equ D0h
PGA_ADC_G0_81:       equ C0h
PGA_ADC_G0_75:       equ B0h
PGA_ADC_G0_68:       equ A0h
PGA_ADC_G0_62:       equ 90h
PGA_ADC_G0_56:       equ 80h
PGA_ADC_G0_50:       equ 70h
PGA_ADC_G0_43:       equ 60h
PGA_ADC_G0_37:       equ 50h
PGA_ADC_G0_31:       equ 40h
PGA_ADC_G0_25:       equ 30h
PGA_ADC_G0_18:       equ 20h
PGA_ADC_G0_12:       equ 10h
PGA_ADC_G0_06:       equ 00h


;--------------------------------------------------
; Register Address Constants used by PGA_ADC
;--------------------------------------------------
PGA_ADC_GAIN_CR0:   equ 79h
PGA_ADC_GAIN_CR1:   equ 7ah
PGA_ADC_GAIN_CR2:   equ 7bh
PGA_ADC_GAIN_CR3:   equ 78h

⌨️ 快捷键说明

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