Electronic Components Datasheet Search
  English  ▼

X  

MCP402XEV Datasheet(PDF) 41 Page - Microchip Technology

Part # MCP402XEV
Description  Digital Potentiometer Evaluation Board User?셲 Guide
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP402XEV Datasheet(HTML) 41 Page - Microchip Technology

Back Button MCP402XEV Datasheet HTML 37Page - Microchip Technology MCP402XEV Datasheet HTML 38Page - Microchip Technology MCP402XEV Datasheet HTML 39Page - Microchip Technology MCP402XEV Datasheet HTML 40Page - Microchip Technology MCP402XEV Datasheet HTML 41Page - Microchip Technology MCP402XEV Datasheet HTML 42Page - Microchip Technology MCP402XEV Datasheet HTML 43Page - Microchip Technology MCP402XEV Datasheet HTML 44Page - Microchip Technology MCP402XEV Datasheet HTML 45Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 41 / 46 page
background image
00066_MCP402XEV.ASM Source Code
© 2005 Microchip Technology Inc.
DS51546B-page 37
S13_10
retlw
.0
; shouldn’t be here, reset state
S13_11
retlw
.0
; shouldn’t be here, reset state
S14_00
retlw
.0
; shouldn’t be here, reset state
S14_01
retlw
.0
; shouldn’t be here, reset state
S14_10
retlw
.0
; shouldn’t be here, reset state
S14_11
retlw
.0
; shouldn’t be here, reset state
S15_00
retlw
.0
; shouldn’t be here, reset state
S15_01
retlw
.0
; shouldn’t be here, reset state
S15_10
retlw
.0
; shouldn’t be here, reset state
S15_11
retlw
.0
; shouldn’t be here, reset state
PerformState
movf
State,w
andlw
b’00001111’
; mask all states >15
addwf
PCL,f
; jump to desired State
retlw
.0
; State 0, no action
goto
State1
; (2s for repeating LV increment)
goto
State2
; (2s for repeating LV decrement)
goto
State3
goto
State4
goto
State5
; (2s for repeating HV increment)
goto
State6
; (2s for repeating HV decrement)
retlw
.7
; State 7, no action
retlw
.8
; State 8, no action
retlw
.9
; State 9, no action
retlw
.10
; State 10, no action
goto
State11
goto
State12
goto
State13
goto
State14
goto
StateMachineReset ; State 15... shouldn’t be here
;***********************************************************************************************
InitGPIO
movlw
b’00001011’
; initialize UP and DOWN switches to be high & CP to be low.
movwf
GPIO
movlw
b’11111100’
; make GP0/DECR/CS & GP1/INCR/UD outputs, block undesired U/D commands
tris
GPIO
retlw
b’11000000’
GPIO_TestUP
movlw
b’00001011’
; initialize UP and DOWN switches to be high & CP to be low.
movwf
GPIO
movlw
b’11111100’
; make both GP0/DECR/CS & GP1/INCR/UD outputs, prevent undesired U/D
commands
tris
GPIO
movlw
b’11111110’
; make GP1/INCR/UD an input (w/pu enabled)
tris
GPIO
retlw
b’10000000’
GPIO_TestDOWN
movlw
b’00001011’
; initialize UP and DOWN switches to be high & CP to be low.
movwf
GPIO
movlw
b’11111100’
; make both GP0/DECR/CS & GP1/INCR/UD outputs, prevent undesired U/D
commands
tris
GPIO
movlw
b’11111101’
; make GP0/DECR/CS an input (w/pu enabled)
tris
GPIO
retlw
b’01000000’
TABLE E-1:
00066_MCP402XEV.ASM
SOURCE CODE (CONTINUED)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com