参数资料
型号: MCP402XEV
厂商: Microchip Technology
文件页数: 35/46页
文件大小: 0K
描述: BOARD EVAL FOR MCP402X
标准包装: 1
主要目的: 数字电位器
嵌入式: 是,MCU,8 位
已用 IC / 零件: MCP4021
主要属性: 1 个单路电位器,10 千欧,64 抽头,非易失
次要属性: 2.7 ~ 5.5 V,150 ppm/°C
已供物品: 2 板,样品,CD
产品目录页面: 677 (CN2011-ZH PDF)
相关产品: MCP4021T-503E/MCDKR-ND - IC DGTL POT 50K 1CH 8DFN
MCP4021T-502E/MCDKR-ND - IC DGTL POT 5K 1CH 8DFN
MCP4021T-202E/MCDKR-ND - IC DGTL POT 2.1K 1CH 8DFN
MCP4021T-103E/MCDKR-ND - IC DGTL POT 10K 1CH 8DFN
MCP4021T-502E/MS-ND - IC DGTL POT 5K 1CH 8MSOP
MCP4021T-202E/MS-ND - IC DGTL POT 2.1K 1CH 8MSOP
MCP4021T-503E/MS-ND - IC DGTL POT 50K 1CH 8MSOP
MCP4021T-103E/MS-ND - IC DGTL POT 10K 1CH 8MSOP
MCP4021T-103E/SN-ND - IC DGTL POT 10K 1CH 8SOIC
MCP4021T-202E/SN-ND - IC DGTL POT 2.1K 1CH 8SOIC
更多...
00066_MCP402XEV.ASM Source Code
TABLE E-1:
00066_MCP402XEV.ASM SOURCE CODE (CONTINUED)
;**********************************************************************************************
; General Pupose Register Definitions
;**********************************************************************************************
GPRS UDATA
State res 1 ; variable to track the “state” value
; this code functions as a state machine
; bits 3:0 stores the state 0-15 indicator
; bits 7:6 stores the debounced button states
OldState res 1 ; allows program to see if State changed
Exit res 1 ; variable to count the number ms to test for a button press
DebounceUP res 1 ; variable to count the number of ms UP was pressed
DebounceDOWN res 1 ; variable to count the number of ms DOWN was pressed
DLYCNT1 res 1 ; variable for the delay subroutines
DLYCNT2 res 1 ; variable for the delay subroutines
#define
#define
#define
#define
#define
#define
UD GPIO,1
CS GPIO,0
UP GPIO,1
DOWN GPIO,0
CP GPIO,2
PowerDown GPIO,3
;
;
;
;
;
;
GP1 tied to UD & has “INCR” switch connected via 2.2k resistor
GP0 tied to CS & has “DECR” switch connected via 2.2k resistor
Momentary switch UP
Momentary switch DOWN
OSCOUT pin for Charge Pump
Vpp for programming & PowerDown input to put uC to SLEEP
#define
HV_CS
OSCCAL,FOSC4
; Drives CS to HVDD (drive CS high first)
#define
#define
UP_State State,7
DOWN_State State,6
; Debounced UP State - using bits 5:4 are critical
; Debounced DOWN State - using bits 5:4 are critical
;***********************************************************************************************
; Reset Code
;***********************************************************************************************
RESET CODE ; processor reset vector + 1
;ResetVector ; Device resets to 0x1FF to get the factory calibration
goto Start ; Lower half of memory reserved for subroutines
;***********************************************************************************************
; Main Code
;***********************************************************************************************
MAIN CODE
Start
Init_Oscillator
; Internal RC calibration value is placed at location 0xFF by Microchip
; as a movlw k, where the k is a literal value.
movwf OSCCAL ; update register with factory cal value
; bcf OSCCAL,FOSC4 ; make sure the FOSC4 is disabled to shut charge pump off
StateMachineReset
movlw b’11110011’ ; Disable the Comparator & make inputs digital
movwf CMCON0
; bcf CMCON0, CMPON ; needs to be on to get GP2 as a General Purpose Output
movlw b’10011010’ ; disable Wake-Up on Pin Change,
; enable weak pullups for button inputs
; T0CS must be 0 for GP2 TRIS to be active
; set up for 72ms WDT
option
Init
clrf State
clrf OldState
call InitGPIO ; make GP0/DECR/CS & GP1/INCR/UD outputs, block undesired U/D commands
? 2005 Microchip Technology Inc.
DS51546B-page 31
相关PDF资料
PDF描述
MCP42XXEV BOARD EVALUATION MCP42XX
MCP43XXEV BOARD EVALUATION MCP43XX
MCP46XXDM-PTPLS BOARD PICTAIL DIGI POT MCP4XXX
MCP46XXEV EVAL BOARD FOR MCP46XX
MCP4XXXDM-DB BOARD DAUGHTER DIGIPOT MCP4XXX
相关代理商/技术参数
参数描述
MCP40D17 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:7-Bit Single I2C? (with Command Code) Digital POT with Volatile Memory in SC70
MCP40D17-103AE/LT 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:7-Bit Single I2C? (with Command Code) Digital POT with Volatile Memory in SC70
MCP40D17-103E/LT 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:7-Bit Single I2C? (with Command Code) Digital POT with Volatile Memory in SC70
MCP40D17-104AE/LT 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:7-Bit Single I2C? (with Command Code) Digital POT with Volatile Memory in SC70
MCP40D17-104E/LT 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:7-Bit Single I2C? (with Command Code) Digital POT with Volatile Memory in SC70