<?xml version="1.0" encoding="UTF-8"?>
<!--************************************************************************-->
<!--* Copyright (C) 2005-2007 Nicolas Hadacek <hadacek@kde.org>            *-->
<!--*                                                                      *-->
<!--* This program is free software; you can redistribute it and/or modify *-->
<!--* it under the terms of the GNU General Public License as published by *-->
<!--* the Free Software Foundation; either version 2 of the License, or    *-->
<!--* (at your option) any later version.                                  *-->
<!--************************************************************************-->
<device name="16F777" status="IP" memory_technology="FLASH" self_write="no" architecture="16X" id="0x0DE0"
        xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
        xsi:noNamespaceSchemaLocation='pic.xsd'>

<!--* Documents ************************************************************-->
  <documents webpage="010225" datasheet="30498" progsheet="30492" erratas="80177" />

<!--* Checksums ************************************************************-->
  <checksums>
    <checksum protected="Off"     bchecksum="0x1A42" cchecksum="0xE610" />
    <checksum protected="All"     bchecksum="0x3484" cchecksum="0x0052" />
  </checksums>

<!--* Operating characteristics ********************************************-->
  <frequency_range name="industrial" special="low_power" >
    <frequency start="0" end="4"  vdd_min="2"   vdd_max="5.5" />
    <frequency start="4" end="10" vdd_min="2.5" vdd_max="5.5" vdd_min_end="3" />
  </frequency_range>
  <frequency_range name="extended"   >
    <frequency start="0" end="20" vdd_min="4" vdd_max="5.5" />
  </frequency_range>

  <voltages name="vpp"           min="12.75" max="13.25" nominal="13" />
  <voltages name="vdd_prog"      min="4.75"  max="5.25"  nominal="5"  />

<!--* Memory ***************************************************************-->
  <memory name="code"      start="0x0000" end="0x1FFF" />
  <memory name="user_ids"     start="0x2000" end="0x2003" rmask="0x007F" />
  <memory name="device_id"    start="0x2006" end="0x2006" />
  <memory name="config"       start="0x2007" end="0x2008" />
  <memory name="debug_vector" start="0x2004" end="0x2004" />

<!--* Configuration bits ***************************************************-->
  <config offset="0x0" name="CONFIG1" wmask="0x3FFF" bvalue="0x39FF" >
    <mask name="WDT"    value="0x0004" >
      <value value="0x0000" name="Off" cname="_WDT_OFF" />
      <value value="0x0004" name="On"  cname="_WDT_ON"  />
    </mask>
    <mask name="PWRTE"  value="0x0008" >
      <value value="0x0000" name="On"  cname="_PWRTE_ON"  />
      <value value="0x0008" name="Off" cname="_PWRTE_OFF" />
    </mask>
    <mask name="FOSC"   value="0x0013" >
      <value value="0x0000" name="LP"           cname="_LP_OSC"       />
      <value value="0x0001" name="XT"           cname="_XT_OSC"       />
      <value value="0x0002" name="HS"           cname="_HS_OSC"       />
      <value value="0x0003" name="EC_IO"        cname="_EXTCLK"       />
      <value value="0x0010" name="INTRC_IO"     cname="_INTRC_IO"     />
      <value value="0x0011" name="INTRC_CLKOUT" cname="_INTRC_CLKOUT" />
      <value value="0x0012" name="EXTRC_IO"     cname="_EXTRC_IO"     />
      <value value="0x0013" name="EXTRC_CLKOUT" cname="_EXTRC_CLKOUT" />
    </mask>
    <mask name="MCLRE"  value="0x0020" >
      <value value="0x0000" name="Internal" cname="_MCLR_OFF" />
      <value value="0x0020" name="External" cname="_MCLR_ON"  />
    </mask>
    <mask name="BODEN"  value="0x0040" >
      <value value="0x0000" name="Off" cname="_BOREN_0" />
      <value value="0x0040" name="On"  cname="_BOREN_1" />
    </mask>
    <mask name="BORV"   value="0x0180" >
      <value value="0x0000" name="4.5" cname="_VBOR_4_5" />
      <value value="0x0080" name="4.2" cname="_VBOR_4_2" />
      <value value="0x0100" name="2.7" cname="_VBOR_2_7" />
      <value value="0x0180" name="2.0" cname="_VBOR_2_0" />
    </mask>
    <mask name="DEBUG"  value="0x0800" >
      <value value="0x0000" name="On"  cname="_DEBUG_ON"  />
      <value value="0x0800" name="Off" cname="_DEBUG_OFF" />
    </mask>
    <mask name="CCP2MX" value="0x1000" >
      <value value="0x0000" name="RB3" cname="_CCP2_RB3" />
      <value value="0x1000" name="RC1" cname="_CCP2_RC1" />
    </mask>
    <mask name="CP"     value="0x2000" >
      <value value="0x0000" name="All" cname="_CP_ALL" />
      <value value="0x2000" name="Off" cname="_CP_OFF" />
    </mask>
  </config>

  <config offset="0x1" name="CONFIG2" wmask="0x3FFF" bvalue="0x0043" >
    <mask name="FCMEN"  value="0x0001" >
      <value value="0x0000" name="Off" cname="_FCMEN_OFF" />
      <value value="0x0001" name="On"  cname="_FCMEN_ON"  />
    </mask>
    <mask name="IESO"   value="0x0002" >
      <value value="0x0000" name="Off" cname="_IESO_OFF" />
      <value value="0x0002" name="On"  cname="_IESO_ON"  />
    </mask>
    <mask name="BORSEN" value="0x0040" >
      <value value="0x0000" name="Off" cname="_BORSEN_0" />
      <value value="0x0040" name="On"  cname="_BORSEN_1" />
    </mask>
  </config>

<!--* Packages *************************************************************-->
  <package types="pdip" nb_pins="40" >
    <pin index="1"  name="MCLR/VPP/RE3"           />
    <pin index="2"  name="RA0/AN0"                />
    <pin index="3"  name="RA1/AN1"                />
    <pin index="4"  name="RA2/AN2/VREF-/CVREF"    />
    <pin index="5"  name="RA3/AN3/VREF+"          />
    <pin index="6"  name="RA4/T0CKI/C1OUT"        />
    <pin index="7"  name="RA5/SS/AN4/LVDIN/C2OUT" />
    <pin index="8"  name="RE0/RD/AN5"             />
    <pin index="9"  name="RE1/WR/AN6"             />
    <pin index="10" name="RE2/CS/AN7"             />
    <pin index="11" name="VDD"                    />
    <pin index="12" name="VSS"                    />
    <pin index="13" name="OSC1/CLKIN/RA7"         />
    <pin index="14" name="OSC2/CLKOUT/RA6"        />
    <pin index="15" name="RC0/T1OSO/T1CKI"        />
    <pin index="16" name="RC1/T1OSI/CCP2"         />
    <pin index="17" name="RC2/CCP1"               />
    <pin index="18" name="RC3/SCK/SCL"            />
    <pin index="19" name="RD0/PSP0"               />
    <pin index="20" name="RD1/PSP1"               />
    <pin index="21" name="RD2/PSP2"               />
    <pin index="22" name="RD3/PSP3"               />
    <pin index="23" name="RC4/SDI/SDA"            />
    <pin index="24" name="RC5/SDO"                />
    <pin index="25" name="RC6/TX/CK"              />
    <pin index="26" name="RC7/RX/DT"              />
    <pin index="27" name="RD4/PSP4"               />
    <pin index="28" name="RD5/PSP5"               />
    <pin index="29" name="RD6/PSP6"               />
    <pin index="30" name="RD7/PSP7"               />
    <pin index="31" name="VSS"                    />
    <pin index="32" name="VDD"                    />
    <pin index="33" name="RB0/INT/AN12"           />
    <pin index="34" name="RB1/AN10"               />
    <pin index="35" name="RB2/AN8"                />
    <pin index="36" name="RB3/CCP2/AN9"           />
    <pin index="37" name="RB4/AN11"               />
    <pin index="38" name="RB5/AN13/CCP3"          />
    <pin index="39" name="RB6/PGC"                />
    <pin index="40" name="RB7/PGD"                />
  </package>

  <package types="tqfp" nb_pins="44" >
    <pin index="1"  name="" />
    <pin index="2"  name="" />
    <pin index="3"  name="" />
    <pin index="4"  name="" />
    <pin index="5"  name="" />
    <pin index="6"  name="" />
    <pin index="7"  name="" />
    <pin index="8"  name="" />
    <pin index="9"  name="" />
    <pin index="10" name="" />
    <pin index="11" name="" />
    <pin index="12" name="" />
    <pin index="13" name="" />
    <pin index="14" name="" />
    <pin index="15" name="" />
    <pin index="16" name="" />
    <pin index="17" name="" />
    <pin index="18" name="" />
    <pin index="19" name="" />
    <pin index="20" name="" />
    <pin index="21" name="" />
    <pin index="22" name="" />
    <pin index="23" name="" />
    <pin index="24" name="" />
    <pin index="25" name="" />
    <pin index="26" name="" />
    <pin index="27" name="" />
    <pin index="28" name="" />
    <pin index="29" name="" />
    <pin index="30" name="" />
    <pin index="31" name="" />
    <pin index="32" name="" />
    <pin index="33" name="" />
    <pin index="34" name="" />
    <pin index="35" name="" />
    <pin index="36" name="" />
    <pin index="37" name="" />
    <pin index="38" name="" />
    <pin index="39" name="" />
    <pin index="40" name="" />
    <pin index="41" name="" />
    <pin index="42" name="" />
    <pin index="43" name="" />
    <pin index="44" name="" />
  </package>

</device>
