And here is the peripherals file with the pull up control and Digital/Analog selection registers added as Configreg to their respective port.
- Code:
<parts>
<port name="PORTA" pins="8" outreg="PORTA" dirreg="!TRISA" configregsA="ANSELA" configregsB="WPUA"
inpmask="11011111" opencol="00000000"
clockpins="PORTA6,PORTA7" resetpin="PORTA5">
</port>
<port name="PORTB" pins="8" outreg="PORTB" dirreg="!TRISB" configregsA="ANSELB" configregsB="WPUB" >
<interrupt name="PB_INT" mask="11111111"/>
<extint name="INT" pin="PORTB0" configbits="INTEDG"/>
</port>
<timer name="TIMER0" counter="TMR0" configregsA="OPTION">
<prescaler values="2,4,8,16,32,64,128,256"/>
<extclock type="PIN" source="PORTA4"/>
<interrupt name="T0_OVF" />
</timer>
<timer name="TIMER1" counter="TMR1L,TMR1H" configregsA="T1CON">
<prescaler values="1,2,4,8"/>
<extclock type="PIN" source="PORTB6"/>
<interrupt name="T1_OVF" />
</timer>
<timer name="TIMER2" counter="TMR2" configregsA="T2CON" configregsB="PR2">
<prescaler values="1,4,16,64"/>
<interrupt name="T2_MATCH" />
</timer>
<ccpunit name="ECCP1" type="01" pin="PORTB3" ccpreg="CCPR1L,CCPR1H" configregsA="CCP1CON">
<interrupt name="CCP1" />
</ccpunit>
<usart name="EUSART" number="1" configregsA="TXSTA" configregsB="RCSTA" configregsC="BAUDCON">
<trunit type="tx" pin="PORTB2,PORTB5" configbits="RXDTSEL" register="TXREG">
</trunit>
<trunit type="rx" pin="PORTB1,PORTB2" configbits="TXCKSEL" register="RCREG">
<interrupt name="USART_R" />
</trunit>
<interrupt name="USART_T" />
</usart>
<vref name="Vref" configregsA="ADCON1" pinout="PORTA2,PORTA3">
</vref>
<acomp name="COMP01" configregsA="CM1CON0" configregsB="CM1CON1" pins="PORTA0,PORTA3,PORTA2">
<interrupt name="ACOMP" />
</acomp>
<acomp name="COMP02" configregsA="CM2CON0" configregsB="CM2CON1" pins="PORTA1,PORTA2,PORTA4">
<interrupt name="ACOMP" />
</acomp>
<wdt name="WatchDog" configregsA="WDTCON">
<prescaler select="" values="32,64,128,256,512,1024,2048,4096,8192,16384,32768,6553,131072,262144,524288,1048576,2097152,4194304,8388608"/>
</wdt>
</parts>