######################################################################
#
# MPLAB IDE .dev File Generated by `pic2dev.py'
#
# Device: MCV201B
# Family: 16c5x
# Date: Tue Apr 30 09:40:04 2013
#
######################################################################


######################################################################
#
# Memory Regions & Other General Device Information
#
######################################################################

vpp (range=10.000-12.000 dflt=11.000)
vdd (range=2.000-5.500 dfltrange=3.000-5.500 nominal=5.000)
pgming (memtech=ee tries=1 lvpthresh=0)
    wait (pgm=3000 eedata=2000 cfg=2000 userid=2000 erase=10000 lvpgm=2000)
    latches (pgm=1 eedata=1 cfg=1 userid=1)
EraseAlg=3
HWStackDepth=4
NumHWBP=1
testmem (region=0x440-0x49f)
calmem (region=0x3ff-0x3ff)
flashdata (region=0x400-0x43f)
cfgmem (region=0xfff-0xfff)
userid (region=0x440-0x443)
pgmmem (region=0x0-0x3ff)
NumBanks=4
MirrorRegs (0x0-0xb 0x40-0x4b)
MirrorRegs (0x2a-0x2a 0x6a-0x6a)
MirrorRegs (0x2-0x4 0x22-0x24 0x62-0x64)
MirrorRegs (0xb-0xb 0x2b-0x2b 0x6b-0x6b)
MirrorRegs (0x0-0x0 0x20-0x20 0x60-0x60)
MirrorRegs (0xc-0xf 0x2c-0x2f 0x4c-0x4f 0x6c-0x6f)

######################################################################
#
# Special Function Registers
#
######################################################################

sfr (key=INDF addr=0x0 size=1 flags=i access='u u u u u u u u')
    reset (por='--------' mclr='--------')
    bit (names='INDF' width='8')
sfr (key=TMR0 addr=0x1 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='xxxxxxxx' mclr='uuuuuuuu')
    bit (names='TMR0' width='8')
    stimulus (scl=rwb pcfiles=w regfiles=w type=int)
sfr (key=PCL addr=0x2 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='11111111' mclr='11111111')
    bit (names='PCL' width='8')
    stimulus (scl=rwb pcfiles=rw regfiles=w)
sfr (key=STATUS addr=0x3 size=1 access='u rw rw rw rw rw rw rw')
    reset (por='-0011xxx' mclr='-0011uuu')
    bit (names='- PA1 PA0 nTO nPD Z DC C' width='1 1 1 1 1 1 1 1')
sfr (key=FSR addr=0x4 size=1 access='u rw rw rw rw rw rw rw')
    reset (por='0xxxxxxx' mclr='0xxxxxxx')
    bit (names='- FSR' width='1 7')
    stimulus (scl=rwb pcfiles=rw regfiles=w)
sfr (key=OSCCAL addr=0x5 size=1 access='rw rw rw rw rw rw rw u')
    reset (por='1111111-' mclr='1111111-')
    bit (names='CAL -' width='7 1')
sfr (key=PORTA addr=0x6 size=1 access='u u rw rw rw rw rw rw')
    reset (por='--xxxxxx' mclr='--xxxxxx')
    bit (names='- - RA' width='1 1 6')
    bit (tag=scl names='RA' width='8')
sfr (key=PORTB addr=0x7 size=1 access='rw rw rw rw u u u u')
    reset (por='xxxx----' mclr='xxxx----')
    bit (names='RB - - - -' width='4 1 1 1 1')
    bit (tag=scl names='RB' width='8')
    stimulus (scl=rwb pcfiles=rw regfiles=rw)
sfr (key=PORTC addr=0x8 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='xxxxxxxx' mclr='xxxxxxxx')
    bit (names='RC' width='8')
    bit (tag=scl names='RC' width='8')
    stimulus (scl=rwb pcfiles=rw regfiles=rw)
sfr (key=ADCON0 addr=0x9 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='11111100' mclr='11111100')
    bit (names='ADCS CHS GO/nDONE ADON' width='2 4 1 1')
    stimulus (scl=rwb regfiles=w)
sfr (key=ADRES addr=0xa size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='xxxxxxxx' mclr='uuuuuuuu')
    bit (names='ADRES' width='8')
    stimulus (scl=rwb regfiles=r type=int)
sfr (key=INTCON0 addr=0xb size=1 access='rw rw rw rw u u u rw')
    reset (por='0000---0' mclr='0000---0')
    bit (names='ADIF CWIF T0IF RAIF - - - GIE' width='1 1 1 1 1 1 1 1')
    stimulus (scl=rwb regfiles=w)
sfr (key=EECON addr=0x21 size=1 access='u u u rw rw rw rs rs')
    reset (por='---00000' mclr='---00000')
    bit (names='- - - FREE WRERR WREN WR RD' width='1 1 1 1 1 1 1 1')
    stimulus (scl=rwb pcfiles=rw regfiles=w)
sfr (key=EEDATA addr=0x25 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='xxxxxxxx' mclr='uuuuuuuu')
    bit (names='EEDATA' width='8')
    stimulus (scl=rwb pcfiles=rw regfiles=rw)
sfr (key=EEADR addr=0x26 size=1 access='u u rw rw rw rw rw rw')
    reset (por='--xxxxxx' mclr='--xxxxxx')
    bit (names='- - EEADR' width='1 1 6')
    stimulus (scl=rwb pcfiles=rw regfiles=w)
sfr (key=CM1CON0 addr=0x27 size=1 access='r rw rw rw rw rw rw rw')
    reset (por='11111111' mclr='11111111')
    bit (names='C1OUT nC1OUTEN C1POL nC1T0CS C1ON C1NREF C1PREF nC1WU' width='1 1 1 1 1 1 1 1')
    stimulus (scl=rwb regfiles=w)
sfr (key=CM2CON0 addr=0x28 size=1 access='r rw rw rw rw rw rw rw')
    reset (por='11111111' mclr='11111111')
    bit (names='C2OUT nC2OUTEN C2POL C2PREF2 C2ON C2NREF C2PREF1 nC2WU' width='1 1 1 1 1 1 1 1')
    stimulus (scl=rwb regfiles=w)
sfr (key=VRCON addr=0x29 size=1 access='rw rw rw u rw rw rw rw')
    reset (por='001-1111' mclr='001-1111')
    bit (names='VREN VROE VRR - VR' width='1 1 1 1 4')
    stimulus (scl=rwb regfiles=w)
sfr (key=ANSEL addr=0x2a size=1 access='r rw rw rw rw rw rw rw')
    reset (por='11111111' mclr='11111111')
    bit (names='ANS7 ANS6 ANS5 ANS4 ANS3 ANS2 ANS1 ANS0' width='1 1 1 1 1 1 1 1')
    stimulus (scl=rwb regfiles=w)
sfr (key=IW addr=0x61 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='qqqqqqqq' mclr='qqqqqqqq')
    bit (names='IWREG' width='8')
sfr (key=INTCON1 addr=0x65 size=1 access='rw rw rw rw u u u rw')
    reset (por='0000---0' mclr='0000---0')
    bit (names='ADIE CWIE T0IE RAIE - - - WUR' width='1 1 1 1 1 1 1 1')
sfr (key=ISTATUS addr=0x66 size=1 access='u rw rw rw rw rw rw rw')
    reset (por='-0011xxx' mclr='-0011uuu')
    bit (names='- PA1 PA0 nTO nPD Z DC C' width='1 1 1 1 1 1 1 1')
sfr (key=IFSR addr=0x67 size=1 access='u rw rw rw rw rw rw rw')
    reset (por='0xxxxxxx' mclr='0xxxxxxx')
    bit (names='- IFSR' width='1 7')
sfr (key=IBSR addr=0x68 size=1 access='u u u u u u rw rw')
    reset (por='------00' mclr='------00')
    bit (names='- - - - - - IBSR' width='1 1 1 1 1 1 2')
sfr (key=OPACON addr=0x69 size=1 access='u u u u u u rw rw')
    reset (por='------00' mclr='------00')
    bit (names='- - - - - - OPA2ON OPA1ON' width='1 1 1 1 1 1 1 1')

######################################################################
#
# Non Memory-Mapped Registers
#
# (Conditionally visible SFRs appear as NMMRs in the "Special Function
# Registers" section.)
#
######################################################################

HasNMMR=1
nmmr (key=WREG addr=0x0 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='qqqqqqqq' mclr='qqqqqqqq')
    bit (names='WREG' width='8')
nmmr (key=STKPTR addr=0x1 size=1 flags=h access='rw rw rw rw rw rw rw rw')
    reset (por='00000000' mclr='00000000')
    bit (names='STKPTR' width='8')
nmmr (key=TRISA addr=0x2 size=1 access='u u rw rw u rw rw rw')
    reset (por='--111111' mclr='--111111')
    bit (names='- - TRISA5 TRISA4 - TRISA2 TRISA1 TRISA0' width='1 1 1 1 1 1 1 1')
nmmr (key=TRISB addr=0x3 size=1 access='rw rw rw rw u u u u')
    reset (por='1111----' mclr='1111----')
    bit (names='TRISB7 TRISB6 TRISB5 TRISB4 - - - -' width='1 1 1 1 1 1 1 1')
nmmr (key=TRISC addr=0x4 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='11111111' mclr='11111111')
    bit (names='TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0' width='1 1 1 1 1 1 1 1')
nmmr (key=OPTION_REG addr=0x5 size=1 access='rw rw rw rw rw rw rw rw')
    reset (por='11111111' mclr='11111111')
    bit (names='nRAWU nRAPU T0CS T0SE PSA PS' width='1 1 1 1 1 3')
nmmr (key=BSR addr=0x6 size=1 access='u u u u u u rw rw')
    reset (por='------00' mclr='------00')
    bit (names='- - - - - - BSR' width='1 1 1 1 1 1 2')
NMMRObjSize=7

######################################################################
#
# Configuration Registers
#
######################################################################

cfgbits (key=CONFIG addr=0xfff unused=0x0)
    field (key=FOSC mask=0x7 desc="Oscillator Selection")
        setting (req=0x7 value=0x0 desc="LP oscillator and automatic 18 ms DRT (DRTEN ignored)")
        setting (req=0x7 value=0x1 desc="XT oscillator and automatic 18 ms DRT (DRTEN ignored)")
        setting (req=0x7 value=0x2 desc="HS oscillator and automatic 18 ms DRT (DRTEN ignored)")
        setting (req=0x7 value=0x3 desc="EC oscillator with I/O function on OSC2/CLKOUT and 10 us startup time")
        setting (req=0x7 value=0x4 desc="INTRC with I/O function on OSC2/CLKOUT and 10 us startup time")
        setting (req=0x7 value=0x5 desc="INTRC with CLKOUT function on OSC2/CLKOUT and 10 us startup time")
        setting (req=0x7 value=0x6 desc="EXTRC with I/O function on OSC2/CLKOUT and 10 us startup time")
        setting (req=0x7 value=0x7 desc="EXTRC with CLKOUT function on OSC2/CLKOUT and 10 us startup time")
    field (key=WDTE mask=0x8 desc="Watchdog Timer Enable")
        setting (req=0x8 value=0x8 desc="Enabled")
        setting (req=0x8 value=0x0 desc="Disabled")
    field (key=CP mask=0x10 desc="Code Protection - User Program Memory")
        setting (req=0x10 value=0x10 desc="Disabled")
            checksum (type=0x0 protregion=0x0-0x0)
        setting (req=0x10 value=0x0 desc="Enabled")
            checksum (type=0x20 protregion=0x40-0x3fe)
    field (key=MCLRE mask=0x20 desc="Master Clear Enable")
        setting (req=0x20 value=0x20 desc="Enabled")
        setting (req=0x20 value=0x0 desc="Disabled")
    field (key=IOSCFS mask=0x40 desc="Internal Oscillator Frequency Select")
        setting (req=0x40 value=0x40 desc="8 MHz INTOSC Speed")
        setting (req=0x40 value=0x0 desc="4 MHz INTOSC Speed")
    field (key=CPSW mask=0x80 desc="Code Protection - Self Writable Memory")
        setting (req=0x80 value=0x80 desc="Disabled")
        setting (req=0x80 value=0x0 desc="Enabled")
    field (key=BOREN mask=0x100 desc="Brown-out Reset Enable")
        setting (req=0x100 value=0x100 desc="Enabled")
        setting (req=0x100 value=0x0 desc="Disabled")
    field (key=DRTEN mask=0x200 desc="Device Reset Timer Enable")
        setting (req=0x200 value=0x200 desc="Enabled")
        setting (req=0x200 value=0x0 desc="Disabled")
