<parts>
  <port name="PORTP" pins="6" outreg="GPIO" dirreg="!TRISIO" 
                     inpmask="00110111"
                     pullups="WPU"
                     clockpins="PORTP4,PORTP5" 
                     resetpin="PORTP3">

        <interrupt name="IOC" mask="IOC"/>
        <extint    name="INT" pin="PORTP2" configbits="INTEDG"/>
  </port>

  <timer name="TIMER0" type="800" configregsA="OPTION"
                       counter="TMR0"
                       clockpin="PORTP2"
                       interrupt="T0_OVF"
                       prescalers="2,4,8,16,32,64,128,256">
  </timer>

  <timer name="TIMER1" type="160" configregsA="T1CON"
                       counter="TMR1L,TMR1H"
                       clockpin="PORTP5"
                       interrupt="T1_OVF"
                       prescalers="1,2,4,8">
  </timer>

  <vref name="Vref" configregsA="VRCON" />

  <comp name="COMP" type="03" configregsA="CMCON"
                    interrupt="ACOMP"
                    pins="PORTP1,PORTP0,PORTP2" />

  <wdt name="WDT" configregsA="OPTION"
                  prescalers="1,2,4,8,16,32,64,128"/>
                  
  <rom name="ROM" configregsA="EECON1" configregsB="EECON2"
                  dataregs="EEDATA" 
                  addressreg="EEADR" 
                  interrupt="EEPR" />

</parts>
