// defs_25k.h
//
// Register definitions for PIC18F25K22 and similar
//
// copyright, Peter H Anderson, Baltimore, MD, April, '11

#define byte int

#nolist



#byte TOSU      = 0xFFF
#byte TOSH      = 0xFFE
#byte TOSL      = 0xFFD
#byte STKPTR    = 0xFFC
#byte PCLATU    = 0xFFB
#byte PCLATH    = 0xFFA
#byte PCL       = 0xFF9
#byte TBLPTRU   = 0xFF8
#byte TBLPTRH   = 0xFF7
#byte TBLPTRL   = 0xFF6
#byte TABLAT    = 0xFF5
#byte PRODH     = 0xFF4
#byte PRODL     = 0xFF3

#byte INTCON    = 0xFF2
#byte INTCON1   = 0xFF2
#byte INTCON2   = 0xFF1
#byte INTCON3   = 0xFF0

#byte INDF0     = 0xFEF
#byte POSTINC0  = 0xFEE
#byte POSTDEC0  = 0xFED
#byte PREINC0   = 0xFEC
#byte PLUSW0    = 0xFEB
#byte FSR0H     = 0xFEA
#byte FSR0L     = 0xFE9
#byte WREG      = 0xFE8

#byte INDF1     = 0xFE7
#byte POSTINC1  = 0xFE6
#byte POSTDEC1  = 0xFE5
#byte PREINC1   = 0xFE4
#byte PLUSW1    = 0xFE3
#byte FSR1H     = 0xFE2
#byte FSR1L     = 0xFE1
#byte BSR       = 0xFE0

#byte INDF2     = 0xFDF
#byte POSTINC2  = 0xFDE
#byte POSTDEC2  = 0xFDD
#byte PREINC2   = 0xFDC
#byte PLUSW2    = 0xFDB
#byte FSR2H     = 0xFDA
#byte FSR2L     = 0xFD9
#byte STATUS    = 0xFD8

#byte TMR0H	=0xFD7
#byte TMR0L	=0xFD6
#byte T0CON	=0xFD5

#byte OSCCON	=0xFD3
#byte OSCCON2	=0xFD2
#byte WDTCON	=0xFD1
#byte RCON	=0xFD0
#byte TMR1H	=0xFCF
#byte TMR1L	=0xFCE
#byte T1CON	=0xFCD
#byte T1GCON	=0xFCC
#byte SSP1CON3	=0xFCB
#byte SSP1MSK	=0xFCA
#byte SSP1BUF	=0xFC9
#byte SSP1ADD	=0xFC8
#byte SSP1STAT	=0xFC7
#byte SSP1CON1	=0xFC6
#byte SSP1CON2	=0xFC5
#byte ADRESH	=0xFC4
#byte ADRESL	=0xFC3
#byte ADCON0	=0xFC2
#byte ADCON1	=0xFC1
#byte ADCON2	=0xFC0
#byte CCPR1H	=0xFBF
#byte CCPR1L	=0xFBE
#byte CCP1CON	=0xFBD
#byte TMR2	=0xFBC
#byte PR2	=0xFBB
#byte T2CON	=0xFBA
#byte PSTR1CON	=0xFB9
#byte BAUDCON1	=0xFB8
#byte PWM1CON	=0xFB7
#byte ECCP1AS	=0xFB6

#byte T3GCON	=0xFB4
#byte TMR3H	=0xFB3
#byte TMR3L	=0xFB2
#byte T3CON	=0xFB1
#byte SPBRGH1	=0xFB0
#byte SPBRG1	=0xFAF
#byte RCREG1	=0xFAE
#byte TXREG1	=0xFAD
#byte TXSTA1	=0xFAC
#byte RCSTA1	=0xFAB

#byte EEADR	=0xFA9
#byte EEDATA	=0xFA8
#byte EECON2	=0xFA7
#byte EECON1	=0xFA6
#byte IPR3	=0xFA5
#byte PIR3	=0xFA4
#byte PIE3	=0xFA3
#byte IPR2	=0xFA2
#byte PIR2	=0xFA1
#byte PIE2	=0xFA0
#byte IPR1	=0xF9F
#byte PIR1	=0xF9E
#byte PIE1	=0xF9D
#byte HLVDCON	=0xF9C
#byte OSCTUNE	=0xF9B

#byte TRISE	=0xF96

#byte TRISC	=0xF94
#byte TRISB	=0xF93
#byte TRISA	=0xF92

#byte LATC	=0xF8B
#byte LATB	=0xF8A
#byte LATA	=0xF89

#byte PORTE	=0xF84

#byte PORTC	=0xF82
#byte PORTB	=0xF81
#byte PORTA	=0xF80
#byte IPR5	=0xF7F
#byte PIR5	=0xF7E
#byte PIE5	=0xF7D
#byte IPR4	=0xF7C
#byte PIR4	=0xF7B
#byte PIE4	=0xF7A
#byte CM1CON0	=0xF79
#byte CM2CON0	=0xF78
#byte CM2CON1	=0xF77
#byte SPBRGH2	=0xF76
#byte SPBRG2	=0xF75
#byte RCREG2	=0xF74
#byte TXREG2	=0xF73
#byte TXSTA2	=0xF72
#byte RCSTA2	=0xF71
#byte BAUDCON2	=0xF70
#byte SSP2BUF	=0xF6F
#byte SSP2ADD	=0xF6E
#byte SSP2STAT	=0xF6D
#byte SSP2CON1	=0xF6C
#byte SSP2CON2	=0xF6B
#byte SSP2MSK	=0xF6A
#byte SSP2CON3	=0xF69
#byte CCPR2H	=0xF68
#byte CCPR2L	=0xF67
#byte CCP2CON	=0xF66
#byte PWM2CON	=0xF65
#byte ECCP2AS	=0xF64
#byte PSTR2CON	=0xF63
#byte IOCB	=0xF62
#byte WPUB	=0xF61
#byte SLRCON	=0xF60
#byte CCPR3H	=0xF5F
#byte CCPR3L	=0xF5E
#byte CCP3CON	=0xF5D
#byte PWM3CON	=0xF5C
#byte ECCP3AS	=0xF5B
#byte PSTR3CON	=0xF5A
#byte CCPR4H	=0xF59
#byte CCPR4L	=0xF58
#byte CCP4CON	=0xF57
#byte CCPR5H	=0xF56
#byte CCPR5L	=0xF55
#byte CCP5CON	=0xF54
#byte TMR4	=0xF53
#byte PR4	=0xF52
#byte T4CON	=0xF51
#byte TMR5H	=0xF50
#byte TMR5L	=0xF4F
#byte T5CON	=0xF4E
#byte T5GCON	=0xF4D
#byte TMR6	=0xF4C
#byte PR6	=0xF4B
#byte T6CON	=0xF4A
#byte CCPTMRS0	=0xF49
#byte CCPTMRS1	=0xF48
#byte SRCON0	=0xF47
#byte SRCON1	=0xF46
#byte CTMUCONH	=0xF45
#byte CTMUCONL	=0xF44
#byte CTMUICON	=0xF43
#byte VREFCON0	=0xF42
#byte VREFCON1	=0xF41
#byte VREFCON2	=0xF40
#byte PMD0	=0xF3F
#byte PMD1	=0xF3E
#byte PMD2	=0xF3D
#byte ANSELE	=0xF3C
#byte ANSELD	=0xF3B
#byte ANSELC	=0xF3A
#byte ANSELB	=0xF39
#byte ANSELA	=0xF38

#bit rbif	=INTCON.0
#bit int0if	=INTCON.1
#bit tmr0if	=INTCON.2
#bit rbie	=INTCON.3
#bit int0ie	=INTCON.4
#bit tmr0ie	=INTCON.5
#bit peie	=INTCON.6
#bit giel	=INTCON.6
#bit gie	=INTCON.7
#bit gieh	=INTCON.7

#bit rbip	=INTCON2.0
#bit tmr0ip	=INTCON2.2
#bit intedg2	=INTCON2.4
#bit intedg1	=INTCON2.5
#bit intedg0	=INTCON2.6
#bit rbpu	=INTCON2.7

#bit int1if	=INTCON3.0
#bit int2if	=INTCON3.1
#bit int1ie	=INTCON3.3
#bit int2ie	=INTCON3.4
#bit int1ip	=INTCON3.6
#bit int2ip	=INTCON3.7

#bit psa	=T0CON.3
#bit t0se	=T0CON.4
#bit t0cs	=T0CON.5
#bit t08bit	=T0CON.6
#bit tmr0on	=T0CON.7

#bit scs0	=OSCCON.0
#bit scs1	=OSCCON.1
#bit hfiofs	=OSCCON.2
#bit osts	=OSCCON.3
#bit idlen	=OSCCON.7

#bit lfiofs	=OSCCON2.0
#bit mfiofs	=OSCCON2.1
#bit prisd	=OSCCON2.2
#bit soscgo	=OSCCON2.3
#bit mfiosel	=OSCCON2.4
#bit soscrun	=OSCCON2.6
#bit pllrdy	=OSCCON2.7

#bit swdten	=WDTCON.0

#bit bor_	=RCON.0
#bit por_	=RCON.1
#bit pd		=RCON.2
#bit to		=RCON.3
#bit ri_	=RCON.4
#bit sboren	=RCON.6
#bit ipen	=RCON.7

#bit tmr1on	=T1CON.0
#bit t1rd16	=T1CON.1
#bit t1sync_	=T1CON.2
#bit t1soscen	=T1CON.3
#bit t1ckps0	=T1CON.4
#bit t1ckps1	=T1CON.5
#bit tmr1cs0	=T1CON.6
#bit tmr1cs1	=T1CON.7

#bit t1gss0	=T1GCON.0
#bit t1gss1	=T1GCON.1
#bit t1gval	=T1GCON.2
#bit t1ggo	=T1GCON.3
#bit t1gspm	=T1GCON.4
#bit t1gtm	=T1GCON.5
#bit t1gpol	=T1GCON.6
#bit tmr1ge	=T1GCON.7

#bit dhen	=SSP1CON3.0
#bit ahen	=SSP1CON3.1
#bit sbcde	=SSP1CON3.2
#bit sdaht	=SSP1CON3.3
#bit boen	=SSP1CON3.4
#bit scie	=SSP1CON3.5
#bit pcie	=SSP1CON3.6
#bit acktim	=SSP1CON3.7

#bit bf		=SSP1STAT.0
#bit ua		=SSP1STAT.1
#bit rw_	=SSP1STAT.2
#bit s		=SSP1STAT.3
#bit p		=SSP1STAT.4
#bit da_	=SSP1STAT.5
#bit cke	=SSP1STAT.6
#bit smp	=SSP1STAT.7

#bit ckp	=SSP1CON1.4
#bit sspen	=SSP1CON1.5
#bit sspov	=SSP1CON1.6
#bit wcol	=SSP1CON1.7

#bit sen	=SSP1CON2.0
#bit rsen	=SSP1CON2.1
#bit pen	=SSP1CON2.2
#bit rcen	=SSP1CON2.3
#bit acken	=SSP1CON2.4
#bit ackdt	=SSP1CON2.5
#bit ackstat	=SSP1CON2.6
#bit gcen	=SSP1CON2.7

#bit adon	=ADCON0.0
#bit go		=ADCON0.1
#bit chs0	=ADCON0.2
#bit chs1	=ADCON0.3
#bit chs2	=ADCON0.4
#bit chs3	=ADCON0.5
#bit chs4	=ADCON0.6

#bit nvcfg0	=ADCON1.0
#bit nvcfg1	=ADCON1.1
#bit pvcfg0	=ADCON1.2
#bit pvcfg1	=ADCON1.3
#bit trigsel	=ADCON1.7

#bit adcs0	=ADCON2.0
#bit adcs1	=ADCON2.1
#bit adcs2	=ADCON2.2
#bit adfm	=ADCON2.7

#bit dc1b0	=CCP1CON.4
#bit dc1b1	=CCP1CON.5
#bit p1m0	=CCP1CON.6
#bit p1m1	=CCP1CON.7

#bit t2ckps0	=T2CON.0
#bit t2ckps1	=T2CON.1
#bit tmr2on	=T2CON.2

#bit str1a	=PSTR1CON.0
#bit str1b	=PSTR1CON.1
#bit str1c	=PSTR1CON.2
#bit str1d	=PSTR1CON.3
#bit str1sync	=PSTR1CON.4

#bit abden	=BAUDCON1.0
#bit wue	=BAUDCON1.1
#bit brg16	=BAUDCON1.3
#bit cktxp	=BAUDCON1.4
#bit dtrxp	=BAUDCON1.5
#bit rcidl	=BAUDCON1.6
#bit abdovf	=BAUDCON1.7

#bit p1rsen	=PWM1CON.7

#bit pss1bd0	=ECCP1AS.0
#bit pss1bd1	=ECCP1AS.1
#bit pss1ac0	=ECCP1AS.2
#bit pss1ac1	=ECCP1AS.3
#bit ccp1as0	=ECCP1AS.4
#bit ccp1as1	=ECCP1AS.5
#bit ccp1as2	=ECCP1AS.6
#bit ccp1ase	=ECCP1AS.7

#bit t3gss0	=T3GCON.0
#bit t3gss1	=T3GCON.1
#bit t3gval	=T3GCON.2
#bit t3ggo	=T3GCON.3
#bit t3gspm	=T3GCON.4
#bit t3gtm	=T3GCON.5
#bit t3gpol	=T3GCON.6
#bit tmr3ge	=T3GCON.7

#bit tmr3on	=T3CON.0
#bit t3rd16	=T3CON.1
#bit t3sync_	=T3CON.2
#bit t3soscen	=T3CON.3
#bit t3ckps0	=T3CON.4
#bit t3ckps1	=T3CON.5
#bit tmr3cs0	=T3CON.6
#bit tmr3cs1	=T3CON.7

#bit tx9d1	=TXSTA1.0
#bit trmt1	=TXSTA1.1
#bit brgh1	=TXSTA1.2
#bit sendb1	=TXSTA1.3
#bit sync1	=TXSTA1.4
#bit txen1	=TXSTA1.5
#bit tx9_1	=TXSTA1.6
#bit csrc1	=TXSTA1.7

#bit rx9d1	=RCSTA1.0
#bit oerr1	=RCSTA1.1
#bit ferr1	=RCSTA1.2
#bit adden1	=RCSTA1.3
#bit cren1	=RCSTA1.4
#bit sren1	=RCSTA1.5
#bit rx9_1	=RCSTA1.6
#bit spen1	=RCSTA1.7

#bit rd		=EECON1.0
#bit wr		=EECON1.1
#bit wren	=EECON1.2
#bit wrerr	=EECON1.3
#bit free	=EECON1.4
#bit cfgs	=EECON1.6
#bit eepgd	=EECON1.7

#bit tmr1gip	=IPR3.0
#bit tmr3gip	=IPR3.1
#bit tmr5gip	=IPR3.2
#bit ctmuip	=IPR3.3
#bit tx2ip	=IPR3.4
#bit rc2ip	=IPR3.5
#bit bcl2ip	=IPR3.6
#bit ssp2ip	=IPR3.7

#bit tmr1gif	=PIR3.0
#bit tmr3gif	=PIR3.1
#bit tmr5gif	=PIR3.2
#bit ctmuif	=PIR3.3
#bit tx2if	=PIR3.4
#bit rc2if	=PIR3.5
#bit bcl2if	=PIR3.6
#bit ssp2if	=PIR3.7

#bit tmr1gie	=PIE3.0
#bit tmr3gie	=PIE3.1
#bit tmr5gie	=PIE3.2
#bit ctmuie	=PIE3.3
#bit tx2ie	=PIE3.4
#bit rc2ie	=PIE3.5
#bit bcl2ie	=PIE3.6
#bit ssp2ie	=PIE3.7

#bit ccp2ip	=IPR2.0
#bit tmr3ip	=IPR2.1
#bit hlvdip	=IPR2.2
#bit bcl1ip	=IPR2.3
#bit eeip	=IPR2.4
#bit c2ip	=IPR2.5
#bit c1ip	=IPR2.6
#bit oscfip	=IPR2.7

#bit ccp2if	=PIR2.0
#bit tmr3if	=PIR2.1
#bit hlvdif	=PIR2.2
#bit bcl1if	=PIR2.3
#bit eeif	=PIR2.4
#bit c2if	=PIR2.5
#bit c1if	=PIR2.6
#bit oscfif	=PIR2.7

#bit ccp2ie	=PIE2.0
#bit tmr3ie	=PIE2.1
#bit hlvdie	=PIE2.2
#bit bcl1ie	=PIE2.3
#bit eeie	=PIE2.4
#bit c2ie	=PIE2.5
#bit c1ie	=PIE2.6
#bit oscfie	=PIE2.7

#bit tmr1ip	=IPR1.0
#bit tmr2ip	=IPR1.1
#bit ccp1ip	=IPR1.2
#bit ssp1ip	=IPR1.3
#bit tx1ip	=IPR1.4
#bit rc1ip	=IPR1.5
#bit adip	=IPR1.6

#bit tmr1if	=PIR1.0
#bit tmr2if	=PIR1.1
#bit ccp1if	=PIR1.2
#bit ssp1if	=PIR1.3
#bit tx1if	=PIR1.4
#bit rc1if	=PIR1.5
#bit adif	=PIR1.6

#bit tmr1ie	=PIE1.0
#bit tmr2ie	=PIE1.1
#bit ccp1ie	=PIE1.2
#bit ssp1ie	=PIE1.3
#bit tx1ie	=PIE1.4
#bit rc1ie	=PIE1.5
#bit adie	=PIE1.6

#bit hlvden	=HLVDCON.4
#bit irvst	=HLVDCON.5
#bit bgvst	=HLVDCON.6
#bit vdirmag	=HLVDCON.7

#bit pllen	=OSCTUNE.6
#bit intsrc	=OSCTUNE.7

#bit tmr4ip	=IPR5.0
#bit tmr5ip	=IPR5.1
#bit tmr6ip	=IPR5.2

#bit tmr4if	=PIR5.0
#bit tmr5if	=PIR5.1
#bit tmr6if	=PIR5.2

#bit tmr4ie	=PIE5.0
#bit tmr5ie	=PIE5.1
#bit tmr6ie	=PIE5.2

#bit ccp3ip	=IPR4.0
#bit ccp4ip	=IPR4.1
#bit ccp5ip	=IPR4.2

#bit ccp3if	=PIR4.0
#bit ccp4if	=PIR4.1
#bit ccp5if	=PIR4.2

#bit ccp3ie	=PIE4.0
#bit ccp4ie	=PIE4.1
#bit ccp5ie	=PIE4.2

#bit c1ch0	=CM1CON0.0
#bit c1ch1	=CM1CON0.1
#bit c1r	=CM1CON0.2
#bit c1sp	=CM1CON0.3
#bit c1pol	=CM1CON0.4
#bit c1oe	=CM1CON0.5
#bit c1out	=CM1CON0.6
#bit c1on	=CM1CON0.7

#bit c2ch0	=CM2CON0.0
#bit c2ch1	=CM2CON0.1
#bit c2r	=CM2CON0.2
#bit c2sp	=CM2CON0.3
#bit c2pol	=CM2CON0.4
#bit c2oe	=CM2CON0.5
#bit c2out	=CM2CON0.6
#bit c2on	=CM2CON0.7

#bit c2sync	=CM2CON1.0
#bit c1sync	=CM2CON1.1
#bit c2hys	=CM2CON1.2
#bit c1hys	=CM2CON1.3
#bit c2rsel	=CM2CON1.4
#bit c1rsel	=CM2CON1.5
#bit mc2out	=CM2CON1.6
#bit mc1out	=CM2CON1.7

#bit tx9d2	=TXSTA2.0
#bit trmt2	=TXSTA2.1
#bit brgh2	=TXSTA2.2
#bit sendb2	=TXSTA2.3
#bit sync2	=TXSTA2.4
#bit txen2	=TXSTA2.5
#bit tx9_2	=TXSTA2.6
#bit csrc2	=TXSTA2.7

#bit rx9d2	=RCSTA2.0
#bit oerr2	=RCSTA2.1
#bit ferr2	=RCSTA2.2
#bit adden2	=RCSTA2.3
#bit cren2	=RCSTA2.4
#bit sren2	=RCSTA2.5
#bit rx9_2	=RCSTA2.6
#bit spen2	=RCSTA2.7

#bit abden2	=BAUDCON2.0
#bit wue2	=BAUDCON2.1
#bit brg16_2	=BAUDCON2.3
#bit cktxp2	=BAUDCON2.4
#bit dtrxp2	=BAUDCON2.5
#bit rcidl2	=BAUDCON2.6
#bit abdovf2	=BAUDCON2.7

#bit bf2	=SSP2STAT.0
#bit ua2	=SSP2STAT.1
#bit rw2_	=SSP2STAT.2
#bit s2		=SSP2STAT.3
#bit p2		=SSP2STAT.4
#bit da2_	=SSP2STAT.5
#bit cke2	=SSP2STAT.6
#bit smp2	=SSP2STAT.7

#bit ckp2	=SSP2CON1.4
#bit sspen2	=SSP2CON1.5
#bit sspov2	=SSP2CON1.6
#bit wcol2	=SSP2CON1.7

#bit sen2	=SSP2CON2.0
#bit rsen2	=SSP2CON2.1
#bit pen2	=SSP2CON2.2
#bit rcen2	=SSP2CON2.3
#bit acken2	=SSP2CON2.4
#bit ackdt2	=SSP2CON2.5
#bit ackstat2	=SSP2CON2.6
#bit gcen2	=SSP2CON2.7

#bit dhen2	=SSP2CON3.0
#bit ahen2	=SSP2CON3.1
#bit sbcde2	=SSP2CON3.2
#bit sdaht2	=SSP2CON3.3
#bit boen2	=SSP2CON3.4
#bit scie2	=SSP2CON3.5
#bit pcie2	=SSP2CON3.6
#bit acktim2	=SSP2CON3.7

#bit dc2b0	=CCP2CON.4
#bit dc2b1	=CCP2CON.5
#bit p2m0	=CCP2CON.6
#bit p2m1	=CCP2CON.7

#bit p2rsen	=PWM2CON.7

#bit pss2bd0	=ECCP2AS.0
#bit pss2bd1	=ECCP2AS.1
#bit pss2ac0	=ECCP2AS.2
#bit pss2ac1	=ECCP2AS.3
#bit ccp2as0	=ECCP2AS.4
#bit ccp2as1	=ECCP2AS.5
#bit ccp2as2	=ECCP2AS.6
#bit ccp2ase	=ECCP2AS.7

#bit str2a	=PSTR2CON.0
#bit str2b	=PSTR2CON.1
#bit str2c	=PSTR2CON.2
#bit str2d	=PSTR2CON.3
#bit str2sync	=PSTR2CON.4

#bit slra	=SLRCON.0
#bit slrb	=SLRCON.1
#bit slrc	=SLRCON.2

#bit dc3b0	=CCP3CON.4
#bit dc3b1	=CCP3CON.5
#bit p3m0	=CCP3CON.6
#bit p3m1	=CCP3CON.7

#bit p3rsen	=PWM3CON.7

#bit pss3bd0	=ECCP3AS.0
#bit pss3bd1	=ECCP3AS.1
#bit pss3ac0	=ECCP3AS.2
#bit pss3ac1	=ECCP3AS.3
#bit ccp3as0	=ECCP3AS.4
#bit ccp3as1	=ECCP3AS.5
#bit ccp3as2	=ECCP3AS.6
#bit ccp3ase	=ECCP3AS.7

#bit str3a	=PSTR3CON.0
#bit str3b	=PSTR3CON.1
#bit str3c	=PSTR3CON.2
#bit str3d	=PSTR3CON.3
#bit str3sync	=PSTR3CON.4

#bit dc4b0	=CCP4CON.4
#bit dc4b1	=CCP4CON.5

#bit dc5b0	=CCP5CON.4
#bit dc5b1	=CCP5CON.5

#bit t4ckps0	=T4CON.0
#bit t4ckps1	=T4CON.1
#bit tmr4on	=T4CON.2

#bit tmr5on	=T5CON.0
#bit t5rd16	=T5CON.1
#bit t5sync_	=T5CON.2
#bit t5soscen	=T5CON.3
#bit t5ckps0	=T5CON.4
#bit t5ckps1	=T5CON.5
#bit tmr5cs0	=T5CON.6
#bit tmr5cs1	=T5CON.7

#bit t5gss0	=T5GCON.0
#bit t5gss1	=T5GCON.1
#bit t5gval	=T5GCON.2
#bit t5ggo	=T5GCON.3
#bit t5gspm	=T5GCON.4
#bit t5gtm	=T5GCON.5
#bit t5gpol	=T5GCON.6
#bit tmr5ge	=T5GCON.7

#bit t6ckps0	=T6CON.0
#bit t6ckps1	=T6CON.1
#bit tmr6on	=T6CON.2
#bit t6outps0	=T6CON.3
#bit t6outps1	=T6CON.4
#bit t6outps2	=T6CON.5
#bit t6outps3	=T6CON.6

#bit c1tsel0	=CCPTMRS0.0
#bit c1tsel1	=CCPTMRS0.1
#bit c2tsel0	=CCPTMRS0.3
#bit c2tsel1	=CCPTMRS0.4
#bit c3tsel0	=CCPTMRS0.6
#bit c3tsel1	=CCPTMRS0.7

#bit c4tsel0	=CCPTMRS1.0
#bit c4tsel1	=CCPTMRS1.1
#bit c5tsel0	=CCPTMRS1.2
#bit c5tsel1	=CCPTMRS1.3

#bit srpr	=SRCON0.0
#bit srps	=SRCON0.1
#bit srnqen	=SRCON0.2
#bit srqen	=SRCON0.3
#bit srclk0	=SRCON0.4
#bit srclk1	=SRCON0.5
#bit srclk2	=SRCON0.6
#bit srlen	=SRCON0.7

#bit srrc1e	=SRCON1.0
#bit srrc2e	=SRCON1.1
#bit srrcke	=SRCON1.2
#bit srrpe	=SRCON1.3
#bit srsc1e	=SRCON1.4
#bit srsc2e	=SRCON1.5
#bit srscke	=SRCON1.6
#bit srspe	=SRCON1.7

#bit cttrig	=CTMUCONH.0
#bit idissen	=CTMUCONH.1
#bit edgseqen	=CTMUCONH.2
#bit edgen	=CTMUCONH.3
#bit tgen	=CTMUCONH.4
#bit ctmusidl	=CTMUCONH.5
#bit ctmuen	=CTMUCONH.7

#bit edg1stat	=CTMUCONL.0
#bit edg2stat	=CTMUCONL.1
#bit edg1sel0	=CTMUCONL.2
#bit edg1sel1	=CTMUCONL.3
#bit edg1pol	=CTMUCONL.4
#bit edg2sel0	=CTMUCONL.5
#bit edg2sel1	=CTMUCONL.6
#bit edg2pol	=CTMUCONL.7

#bit irng0	=CTMUICON.0
#bit irng1	=CTMUICON.1

#bit fvrs0	=VREFCON0.4
#bit fvrs1	=VREFCON0.5
#bit fvrst	=VREFCON0.6
#bit fvren	=VREFCON0.7

#bit dacnss	=VREFCON1.0
#bit dacpss0	=VREFCON1.2
#bit dacpss1	=VREFCON1.3
#bit dacoe	=VREFCON1.5
#bit daclps	=VREFCON1.6
#bit dacen	=VREFCON1.7

#bit uart1md	=PMD0.6
#bit uart2md	=PMD0.7

#bit ccp1md	=PMD1.0
#bit ccp2md	=PMD1.1
#bit ccp3md	=PMD1.2
#bit ccp4md	=PMD1.3
#bit ccp5md	=PMD1.4
#bit mssp1md	=PMD1.6
#bit mssp2md	=PMD1.7

#bit adcmd	=PMD2.0
#bit cmp1md	=PMD2.1
#bit cmp2md	=PMD2.2
#bit ctmumd	=PMD2.3

#list