MCP402XEV Microchip Technology, MCP402XEV Datasheet - Page 37

BOARD EVAL FOR MCP402X

MCP402XEV

Manufacturer Part Number
MCP402XEV
Description
BOARD EVAL FOR MCP402X
Manufacturer
Microchip Technology
Datasheet

Specifications of MCP402XEV

Main Purpose
Digital Potentiometer
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
MCP4021
Primary Attributes
1 Single Pot, 10 kOhm, 64 Tap, Non Volatile
Secondary Attributes
2.7 ~ 5.5 V, 150 ppm/°C
Processor To Be Evaluated
MCP402X
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP402XEV
Manufacturer:
MICROCHIP
Quantity:
12 000
TABLE E-1:
© 2005 Microchip Technology Inc.
Loop1_2sec
;
;
LV_IncrExit
State2
Loop2_2sec
undesired U/D commands
;
;
LV_DecrExit
State3
call
movlw
call
btfss
retlw
call
movlw
call
btfsc
retlw
decfsz
goto
call
movlw
call
movlw
call
call
clrwdt
btfss
goto
clrf
retlw
movlw
movwf
call
movlw
call
btfss
retlw
call
movlw
call
btfsc
retlw
decfsz
goto
call
movlw
call
movlw
call
call
clrwdt
btfss
goto
clrf
retlw
call
movlw
call
clrf
retlw
GPIO_TestDOWN
.5
VAR1000TcyDELAY
DOWN
.1
GPIO_TestUP
.5
VAR1000TcyDELAY
UP
.1
Exit,f
Loop1_2sec
InitGPIO
.64
LV_Increment
.4
VAR1000TcyDELAY
GPIO_TestUP
UP
LV_IncrExit
State
.1
.200
Exit
GPIO_TestUP
.5
VAR1000TcyDELAY
UP
.2
GPIO_TestDOWN
.5
VAR1000TcyDELAY
DOWN
.2
Exit,f
Loop2_2sec
InitGPIO
.64
LV_Decrement
.4
VAR1000TcyDELAY
GPIO_TestDOWN
DOWN
LV_DecrExit
State
.2
InitGPIO
.1
LV_Increment
State
.3
00066_MCP402XEV.ASM SOURCE CODE (CONTINUED)
; make GP0/DECR/CS & GP1/INCR/UD outputs, block undesired U/D commands
; make GP0/DECR/CS & GP1/INCR/UD outputs, block undesired U/D commands
; make GP0/DECR/CS & GP1/INCR/UD outputs, block undesired U/D commands
00066_MCP402XEV.ASM Source Code
; add a 4mS delay for E/W cycle
; make GP0/DECR/CS an input (w/pu enabled)
; if DOWN gets released, exit
; LV Increment
; make GP0/DECR/CS an input (w/pu enabled)
; 5ms delay
; if DOWN gets pressed, exit
; make GP1/INCR/UD an input (w/pu enabled)
; 5ms delay
; if UP gets released, exit
; add a 4mS delay for E/W cycle
; make GP1/INCR/UD an input (w/pu enabled)
; if UP gets released, exit
; DOWN button pressed
; 200x10mS = 2s
; make GP1/INCR/UD an input (w/pu enabled)
; 5ms delay
; if UP gets pressed, exit
; make GP0/DECR/CS an input (w/pu enabled)
; 5ms delay
; if DOWN gets released, exit
DS51546B-page 33

Related parts for MCP402XEV