User manual

00066_MCP402XEV.ASM Source Code
© 2005 Microchip Technology Inc. DS51546B-page 30
;**********************************************************************************************
; Connections/Schematic
;**********************************************************************************************
;
; MCP pin MCP4021 MCP4022 MCP4023 MCP4024
; _______ _______ _______ _______ _______
; 1 Vdd Vdd Vdd Vdd
; 2 Vss Vss Vss Vss
; 3 A U/D U/D U/D
; 4 W CS CS CS
; 5 CS W W W
; 6 B A A -
; 7 - - - -
; 8 U/D - - -
;
; MCP402x PIC10F206 Ext Components
; _______ _________ ______________
; Vdd Vdd 0.1uF - Vss
; Vss Vss -
; A - 2.5k - Vdd
; W - -
; B - 2.5k - Vss
; CS GP0/ICSPDAT (int pu) 2.5k - DECR - Vss, 7.5k - CS & BAV99
; U/D GP1/ICSPCLK (int pu) 2.5k - INCR - Vss
; - GP2/OSCOUT 0.01uF - BAV99 - 0.01uF - Vss
; - GP3/Vpp (int pu) optional SW or Jumper put on BFMP header pins 4 & 6
;
;**********************************************************************************************
; Assemble Time Variables
SaveWiper equ 1 ; comment this line prevent LV commands from Saving the Wiper
;
;**********************************************************************************************
; Configure the PIC
;**********************************************************************************************
list p=10F206 ; list directive to define processor
#include <p10F206.inc> ; processor specific variable definitions
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_ON
ERRORLEVEL -302
TABLE E-1: 00066_MCP402XEV.ASM SOURCE CODE (CONTINUED)