#ifndef MC32P7082_H
#define MC32P7082_H

#include <mc32-common.h>

//
// Register addresses.
//
#define INDF0_ADDR      	0x0180
#define INDF1_ADDR      	0x0181
#define INDF2_ADDR      	0x0182
#define HIBYTE_ADDR     	0x0183
#define FSR0_ADDR       	0x0184
#define FSR1_ADDR       	0x0185
#define PCL_ADDR        	0x0186
#define PFLAG_ADDR      	0x0187
#define MCR_ADDR        	0x0188
#define INDF3_ADDR      	0x0189
#define INTE0_ADDR      	0x018A
#define INTF0_ADDR      	0x018B
#define OSCMR_ADDR      	0x018C
#define HIRCCAL_ADDR    	0x018D
#define INTE1_ADDR      	0x018E
#define INTF1_ADDR      	0x018F
#define IOP0_ADDR       	0x0190
#define OEP0_ADDR       	0x0191
#define PUP0_ADDR       	0x0192
#define PDP0_ADDR       	0x0193
#define IOP1_ADDR       	0x0194
#define OEP1_ADDR       	0x0195
#define PUP1_ADDR       	0x0196
#define PDP1_ADDR       	0x0197
#define IOP2_ADDR       	0x0198
#define OEP2_ADDR       	0x0199
#define PUP2_ADDR       	0x019A
#define PDP2_ADDR       	0x019B
#define P1KBCR_ADDR     	0x019C
#define OPACR0_ADDR     	0x019D
#define OPACR1_ADDR     	0x019E
#define OPACLR_ADDR     	0x019F
#define T0CR_ADDR       	0x01A0
#define T0CNT_ADDR      	0x01A1
#define T0LOAD_ADDR     	0x01A2
#define LVDCR_ADDR      	0x01A4
#define CMPCR0_ADDR     	0x01A5
#define CMPCR1_ADDR     	0x01A6
#define CMPCLR_ADDR     	0x01A7
#define T1CR0_ADDR      	0x01A8
#define T1CR1_ADDR      	0x01A9
#define T1CNTH_ADDR     	0x01AA
#define T1CNTL_ADDR     	0x01AB
#define T1LOADH_ADDR    	0x01AC
#define T1LOADL_ADDR    	0x01AD
#define T2CR_ADDR       	0x01B0
#define T2CNT_ADDR      	0x01B1
#define T2LOAD_ADDR     	0x01B2
#define T2DATA_ADDR     	0x01B3
#define PWM2CR0_ADDR    	0x01B4
#define PWM2CR1_ADDR    	0x01B5
#define PWM2CR2_ADDR    	0x01B6
#define T3CR_ADDR       	0x01B8
#define T3CNT_ADDR      	0x01B9
#define T3LOAD_ADDR     	0x01BA
#define T3DATA_ADDR     	0x01BB
#define T3DATB_ADDR     	0x01BC
#define T3DATC_ADDR     	0x01BD
#define PWM3CR0_ADDR    	0x01BE
#define PWM3CR1_ADDR    	0x01BF
#define PWM3CR2_ADDR    	0x01C0
#define PWM3CR3_ADDR    	0x01C1
#define PWM3CR4_ADDR    	0x01C2
#define EECR_ADDR       	0x01C4
#define EEPR_ADDR       	0x01C5
#define EEAR_ADDR       	0x01C6
#define EEDR_ADDR       	0x01C7
#define ADCR0_ADDR      	0x01C8
#define ADCR1_ADDR      	0x01C9
#define ADRH_ADDR       	0x01CA
#define ADRL_ADDR       	0x01CB
#define OSADJCR_ADDR    	0x01CC
#define P0ADCR_ADDR     	0x01CD
#define P1ADCR_ADDR     	0x01CE
#define P2ADCR_ADDR     	0x01CF

//----- Register Files -----------------------------------------------------

extern __sfr __at (INDF0_ADDR)    	INDF0;
extern __sfr __at (INDF1_ADDR)    	INDF1;
extern __sfr __at (INDF2_ADDR)    	INDF2;
extern __sfr __at (HIBYTE_ADDR)   	HIBYTE;
extern __sfr __at (FSR0_ADDR)     	FSR0;
extern __sfr __at (FSR1_ADDR)     	FSR1;
extern __sfr __at (PCL_ADDR)      	PCL;
extern __sfr __at (PFLAG_ADDR)    	PFLAG;
extern __sfr __at (MCR_ADDR)      	MCR;
extern __sfr __at (INDF3_ADDR)    	INDF3;
extern __sfr __at (INTE0_ADDR)    	INTE0;
extern __sfr __at (INTF0_ADDR)    	INTF0;
extern __sfr __at (OSCMR_ADDR)    	OSCMR;
extern __sfr __at (HIRCCAL_ADDR)  	HIRCCAL;
extern __sfr __at (INTE1_ADDR)    	INTE1;
extern __sfr __at (INTF1_ADDR)    	INTF1;
extern __sfr __at (IOP0_ADDR)     	IOP0;
extern __sfr __at (OEP0_ADDR)     	OEP0;
extern __sfr __at (PUP0_ADDR)     	PUP0;
extern __sfr __at (PDP0_ADDR)     	PDP0;
extern __sfr __at (IOP1_ADDR)     	IOP1;
extern __sfr __at (OEP1_ADDR)     	OEP1;
extern __sfr __at (PUP1_ADDR)     	PUP1;
extern __sfr __at (PDP1_ADDR)     	PDP1;
extern __sfr __at (IOP2_ADDR)     	IOP2;
extern __sfr __at (OEP2_ADDR)     	OEP2;
extern __sfr __at (PUP2_ADDR)     	PUP2;
extern __sfr __at (PDP2_ADDR)     	PDP2;
extern __sfr __at (P1KBCR_ADDR)   	P1KBCR;
extern __sfr __at (OPACR0_ADDR)   	OPACR0;
extern __sfr __at (OPACR1_ADDR)   	OPACR1;
extern __sfr __at (OPACLR_ADDR)   	OPACLR;
extern __sfr __at (T0CR_ADDR)     	T0CR;
extern __sfr __at (T0CNT_ADDR)    	T0CNT;
extern __sfr __at (T0LOAD_ADDR)   	T0LOAD;
extern __sfr __at (LVDCR_ADDR)    	LVDCR;
extern __sfr __at (CMPCR0_ADDR)   	CMPCR0;
extern __sfr __at (CMPCR1_ADDR)   	CMPCR1;
extern __sfr __at (CMPCLR_ADDR)   	CMPCLR;
extern __sfr __at (T1CR0_ADDR)    	T1CR0;
extern __sfr __at (T1CR1_ADDR)    	T1CR1;
extern __sfr __at (T1CNTH_ADDR)   	T1CNTH;
extern __sfr __at (T1CNTL_ADDR)   	T1CNTL;
extern __sfr __at (T1LOADH_ADDR)  	T1LOADH;
extern __sfr __at (T1LOADL_ADDR)  	T1LOADL;
extern __sfr __at (T2CR_ADDR)     	T2CR;
extern __sfr __at (T2CNT_ADDR)    	T2CNT;
extern __sfr __at (T2LOAD_ADDR)   	T2LOAD;
extern __sfr __at (T2DATA_ADDR)   	T2DATA;
extern __sfr __at (PWM2CR0_ADDR)  	PWM2CR0;
extern __sfr __at (PWM2CR1_ADDR)  	PWM2CR1;
extern __sfr __at (PWM2CR2_ADDR)  	PWM2CR2;
extern __sfr __at (T3CR_ADDR)     	T3CR;
extern __sfr __at (T3CNT_ADDR)    	T3CNT;
extern __sfr __at (T3LOAD_ADDR)   	T3LOAD;
extern __sfr __at (T3DATA_ADDR)   	T3DATA;
extern __sfr __at (T3DATB_ADDR)   	T3DATB;
extern __sfr __at (T3DATC_ADDR)   	T3DATC;
extern __sfr __at (PWM3CR0_ADDR)  	PWM3CR0;
extern __sfr __at (PWM3CR1_ADDR)  	PWM3CR1;
extern __sfr __at (PWM3CR2_ADDR)  	PWM3CR2;
extern __sfr __at (PWM3CR3_ADDR)  	PWM3CR3;
extern __sfr __at (PWM3CR4_ADDR)  	PWM3CR4;
extern __sfr __at (EECR_ADDR)     	EECR;
extern __sfr __at (EEPR_ADDR)     	EEPR;
extern __sfr __at (EEAR_ADDR)     	EEAR;
extern __sfr __at (EEDR_ADDR)     	EEDR;
extern __sfr __at (ADCR0_ADDR)    	ADCR0;
extern __sfr __at (ADCR1_ADDR)    	ADCR1;
extern __sfr __at (ADRH_ADDR)     	ADRH;
extern __sfr __at (ADRL_ADDR)     	ADRL;
extern __sfr __at (OSADJCR_ADDR)  	OSADJCR;
extern __sfr __at (P0ADCR_ADDR)   	P0ADCR;
extern __sfr __at (P1ADCR_ADDR)   	P1ADCR;
extern __sfr __at (P2ADCR_ADDR)   	P2ADCR;

//==========================================================================
//
//	Configuration Bits
//
//==========================================================================

//OPBIT1

//OPBIT0

// ----- INDF0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char INDF00:1;
		unsigned char INDF01:1;
		unsigned char INDF02:1;
		unsigned char INDF03:1;
		unsigned char INDF04:1;
		unsigned char INDF05:1;
		unsigned char INDF06:1;
		unsigned char INDF07:1;
	};
} __INDF0bits_t;
extern volatile __INDF0bits_t __at(INDF0_ADDR) INDF0bits;

#define INDF00    	INDF0bits.INDF00    	/* bit 0 */
#define INDF01    	INDF0bits.INDF01    	/* bit 1 */
#define INDF02    	INDF0bits.INDF02    	/* bit 2 */
#define INDF03    	INDF0bits.INDF03    	/* bit 3 */
#define INDF04    	INDF0bits.INDF04    	/* bit 4 */
#define INDF05    	INDF0bits.INDF05    	/* bit 5 */
#define INDF06    	INDF0bits.INDF06    	/* bit 6 */
#define INDF07    	INDF0bits.INDF07    	/* bit 7 */

// ----- INDF1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char INDF10:1;
		unsigned char INDF11:1;
		unsigned char INDF12:1;
		unsigned char INDF13:1;
		unsigned char INDF14:1;
		unsigned char INDF15:1;
		unsigned char INDF16:1;
		unsigned char INDF17:1;
	};
} __INDF1bits_t;
extern volatile __INDF1bits_t __at(INDF1_ADDR) INDF1bits;

#define INDF10    	INDF1bits.INDF10    	/* bit 0 */
#define INDF11    	INDF1bits.INDF11    	/* bit 1 */
#define INDF12    	INDF1bits.INDF12    	/* bit 2 */
#define INDF13    	INDF1bits.INDF13    	/* bit 3 */
#define INDF14    	INDF1bits.INDF14    	/* bit 4 */
#define INDF15    	INDF1bits.INDF15    	/* bit 5 */
#define INDF16    	INDF1bits.INDF16    	/* bit 6 */
#define INDF17    	INDF1bits.INDF17    	/* bit 7 */

// ----- INDF2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char INDF20:1;
		unsigned char INDF21:1;
		unsigned char INDF22:1;
		unsigned char INDF23:1;
		unsigned char INDF24:1;
		unsigned char INDF25:1;
		unsigned char INDF26:1;
		unsigned char INDF27:1;
	};
} __INDF2bits_t;
extern volatile __INDF2bits_t __at(INDF2_ADDR) INDF2bits;

#define INDF20    	INDF2bits.INDF20    	/* bit 0 */
#define INDF21    	INDF2bits.INDF21    	/* bit 1 */
#define INDF22    	INDF2bits.INDF22    	/* bit 2 */
#define INDF23    	INDF2bits.INDF23    	/* bit 3 */
#define INDF24    	INDF2bits.INDF24    	/* bit 4 */
#define INDF25    	INDF2bits.INDF25    	/* bit 5 */
#define INDF26    	INDF2bits.INDF26    	/* bit 6 */
#define INDF27    	INDF2bits.INDF27    	/* bit 7 */

// ----- HIBYTE Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char HIBYTE0:1;
		unsigned char HIBYTE1:1;
		unsigned char HIBYTE2:1;
		unsigned char HIBYTE3:1;
		unsigned char HIBYTE4:1;
		unsigned char HIBYTE5:1;
		unsigned char HIBYTE6:1;
		unsigned char HIBYTE7:1;
	};
} __HIBYTEbits_t;
extern volatile __HIBYTEbits_t __at(HIBYTE_ADDR) HIBYTEbits;

#define HIBYTE0   	HIBYTEbits.HIBYTE0  	/* bit 0 */
#define HIBYTE1   	HIBYTEbits.HIBYTE1  	/* bit 1 */
#define HIBYTE2   	HIBYTEbits.HIBYTE2  	/* bit 2 */
#define HIBYTE3   	HIBYTEbits.HIBYTE3  	/* bit 3 */
#define HIBYTE4   	HIBYTEbits.HIBYTE4  	/* bit 4 */
#define HIBYTE5   	HIBYTEbits.HIBYTE5  	/* bit 5 */
#define HIBYTE6   	HIBYTEbits.HIBYTE6  	/* bit 6 */
#define HIBYTE7   	HIBYTEbits.HIBYTE7  	/* bit 7 */

// ----- FSR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char FSR00:1;
		unsigned char FSR01:1;
		unsigned char FSR02:1;
		unsigned char FSR03:1;
		unsigned char FSR04:1;
		unsigned char FSR05:1;
		unsigned char FSR06:1;
		unsigned char FSR07:1;
	};
} __FSR0bits_t;
extern volatile __FSR0bits_t __at(FSR0_ADDR) FSR0bits;

#define FSR00     	FSR0bits.FSR00      	/* bit 0 */
#define FSR01     	FSR0bits.FSR01      	/* bit 1 */
#define FSR02     	FSR0bits.FSR02      	/* bit 2 */
#define FSR03     	FSR0bits.FSR03      	/* bit 3 */
#define FSR04     	FSR0bits.FSR04      	/* bit 4 */
#define FSR05     	FSR0bits.FSR05      	/* bit 5 */
#define FSR06     	FSR0bits.FSR06      	/* bit 6 */
#define FSR07     	FSR0bits.FSR07      	/* bit 7 */

// ----- FSR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char FSR10:1;
		unsigned char FSR11:1;
		unsigned char FSR12:1;
		unsigned char FSR13:1;
		unsigned char FSR14:1;
		unsigned char FSR15:1;
		unsigned char FSR16:1;
		unsigned char FSR17:1;
	};
} __FSR1bits_t;
extern volatile __FSR1bits_t __at(FSR1_ADDR) FSR1bits;

#define FSR10     	FSR1bits.FSR10      	/* bit 0 */
#define FSR11     	FSR1bits.FSR11      	/* bit 1 */
#define FSR12     	FSR1bits.FSR12      	/* bit 2 */
#define FSR13     	FSR1bits.FSR13      	/* bit 3 */
#define FSR14     	FSR1bits.FSR14      	/* bit 4 */
#define FSR15     	FSR1bits.FSR15      	/* bit 5 */
#define FSR16     	FSR1bits.FSR16      	/* bit 6 */
#define FSR17     	FSR1bits.FSR17      	/* bit 7 */

// ----- PCL Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char PC0:1;
		unsigned char PC1:1;
		unsigned char PC2:1;
		unsigned char PC3:1;
		unsigned char PC4:1;
		unsigned char PC5:1;
		unsigned char PC6:1;
		unsigned char PC7:1;
	};
} __PCLbits_t;
extern volatile __PCLbits_t __at(PCL_ADDR) PCLbits;

#define PC0       	PCLbits.PC0         	/* bit 0 */
#define PC1       	PCLbits.PC1         	/* bit 1 */
#define PC2       	PCLbits.PC2         	/* bit 2 */
#define PC3       	PCLbits.PC3         	/* bit 3 */
#define PC4       	PCLbits.PC4         	/* bit 4 */
#define PC5       	PCLbits.PC5         	/* bit 5 */
#define PC6       	PCLbits.PC6         	/* bit 6 */
#define PC7       	PCLbits.PC7         	/* bit 7 */

// ----- PFLAG Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char C:1;
		unsigned char DC:1;
		unsigned char Z:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PFLAGbits_t;
extern volatile __PFLAGbits_t __at(PFLAG_ADDR) PFLAGbits;

#define C         	PFLAGbits.C         	/* bit 0 */
#define DC        	PFLAGbits.DC        	/* bit 1 */
#define Z         	PFLAGbits.Z         	/* bit 2 */

// ----- MCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char INT0M0:1;
		unsigned char INT0M1:1;
		unsigned char INT1M0:1;
		unsigned char INT1M1:1;
		unsigned char PD:1;
		unsigned char TO:1;
		unsigned char :1;
		unsigned char GIE:1;
	};
} __MCRbits_t;
extern volatile __MCRbits_t __at(MCR_ADDR) MCRbits;

#define INT0M0    	MCRbits.INT0M0      	/* bit 0 */
#define INT0M1    	MCRbits.INT0M1      	/* bit 1 */
#define INT1M0    	MCRbits.INT1M0      	/* bit 2 */
#define INT1M1    	MCRbits.INT1M1      	/* bit 3 */
#define PD        	MCRbits.PD          	/* bit 4 */
#define TO        	MCRbits.TO          	/* bit 5 */
#define GIE       	MCRbits.GIE         	/* bit 7 */

// ----- INDF3 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char INDF30:1;
		unsigned char INDF31:1;
		unsigned char INDF32:1;
		unsigned char INDF33:1;
		unsigned char INDF34:1;
		unsigned char INDF35:1;
		unsigned char INDF36:1;
		unsigned char INDF37:1;
	};
} __INDF3bits_t;
extern volatile __INDF3bits_t __at(INDF3_ADDR) INDF3bits;

#define INDF30    	INDF3bits.INDF30    	/* bit 0 */
#define INDF31    	INDF3bits.INDF31    	/* bit 1 */
#define INDF32    	INDF3bits.INDF32    	/* bit 2 */
#define INDF33    	INDF3bits.INDF33    	/* bit 3 */
#define INDF34    	INDF3bits.INDF34    	/* bit 4 */
#define INDF35    	INDF3bits.INDF35    	/* bit 5 */
#define INDF36    	INDF3bits.INDF36    	/* bit 6 */
#define INDF37    	INDF3bits.INDF37    	/* bit 7 */

// ----- INTE0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T0IE:1;
		unsigned char T1IE:1;
		unsigned char INT0IE:1;
		unsigned char INT1IE:1;
		unsigned char KBIE:1;
		unsigned char T2IE:1;
		unsigned char ADIE:1;
		unsigned char LVDIE:1;
	};
} __INTE0bits_t;
extern volatile __INTE0bits_t __at(INTE0_ADDR) INTE0bits;

#define T0IE      	INTE0bits.T0IE      	/* bit 0 */
#define T1IE      	INTE0bits.T1IE      	/* bit 1 */
#define INT0IE    	INTE0bits.INT0IE    	/* bit 2 */
#define INT1IE    	INTE0bits.INT1IE    	/* bit 3 */
#define KBIE      	INTE0bits.KBIE      	/* bit 4 */
#define T2IE      	INTE0bits.T2IE      	/* bit 5 */
#define ADIE      	INTE0bits.ADIE      	/* bit 6 */
#define LVDIE     	INTE0bits.LVDIE     	/* bit 7 */

// ----- INTF0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T0IF:1;
		unsigned char T1IF:1;
		unsigned char INT0IF:1;
		unsigned char INT1IF:1;
		unsigned char KBIF:1;
		unsigned char T2IF:1;
		unsigned char ADIF:1;
		unsigned char LVDIF:1;
	};
} __INTF0bits_t;
extern volatile __INTF0bits_t __at(INTF0_ADDR) INTF0bits;

#define T0IF      	INTF0bits.T0IF      	/* bit 0 */
#define T1IF      	INTF0bits.T1IF      	/* bit 1 */
#define INT0IF    	INTF0bits.INT0IF    	/* bit 2 */
#define INT1IF    	INTF0bits.INT1IF    	/* bit 3 */
#define KBIF      	INTF0bits.KBIF      	/* bit 4 */
#define T2IF      	INTF0bits.T2IF      	/* bit 5 */
#define ADIF      	INTF0bits.ADIF      	/* bit 6 */
#define LVDIF     	INTF0bits.LVDIF     	/* bit 7 */

// ----- OSCMR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char HFEN:1;
		unsigned char LFEN:1;
		unsigned char CLKS:1;
		unsigned char :1;
		unsigned char STBH:1;
		unsigned char STBL:1;
		unsigned char :1;
		unsigned char :1;
	};
} __OSCMRbits_t;
extern volatile __OSCMRbits_t __at(OSCMR_ADDR) OSCMRbits;

#define HFEN      	OSCMRbits.HFEN      	/* bit 0 */
#define LFEN      	OSCMRbits.LFEN      	/* bit 1 */
#define CLKS      	OSCMRbits.CLKS      	/* bit 2 */
#define STBH      	OSCMRbits.STBH      	/* bit 4 */
#define STBL      	OSCMRbits.STBL      	/* bit 5 */

// ----- HIRCCAL Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char HIRCCAL0:1;
		unsigned char HIRCCAL1:1;
		unsigned char HIRCCAL2:1;
		unsigned char HIRCCAL3:1;
		unsigned char HIRCCAL4:1;
		unsigned char HIRCCAL5:1;
		unsigned char HIRCCAL6:1;
		unsigned char HIRCCAL7:1;
	};
} __HIRCCALbits_t;
extern volatile __HIRCCALbits_t __at(HIRCCAL_ADDR) HIRCCALbits;

#define HIRCCAL0  	HIRCCALbits.HIRCCAL0	/* bit 0 */
#define HIRCCAL1  	HIRCCALbits.HIRCCAL1	/* bit 1 */
#define HIRCCAL2  	HIRCCALbits.HIRCCAL2	/* bit 2 */
#define HIRCCAL3  	HIRCCALbits.HIRCCAL3	/* bit 3 */
#define HIRCCAL4  	HIRCCALbits.HIRCCAL4	/* bit 4 */
#define HIRCCAL5  	HIRCCALbits.HIRCCAL5	/* bit 5 */
#define HIRCCAL6  	HIRCCALbits.HIRCCAL6	/* bit 6 */
#define HIRCCAL7  	HIRCCALbits.HIRCCAL7	/* bit 7 */

// ----- INTE1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char CMPIE:1;
		unsigned char OPAIE:1;
		unsigned char T3IE:1;
		unsigned char T1CIE:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __INTE1bits_t;
extern volatile __INTE1bits_t __at(INTE1_ADDR) INTE1bits;

#define CMPIE     	INTE1bits.CMPIE     	/* bit 0 */
#define OPAIE     	INTE1bits.OPAIE     	/* bit 1 */
#define T3IE      	INTE1bits.T3IE      	/* bit 2 */
#define T1CIE     	INTE1bits.T1CIE     	/* bit 3 */

// ----- INTF1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char CMPIF:1;
		unsigned char OPAIF:1;
		unsigned char T3IF:1;
		unsigned char T1CIF:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __INTF1bits_t;
extern volatile __INTF1bits_t __at(INTF1_ADDR) INTF1bits;

#define CMPIF     	INTF1bits.CMPIF     	/* bit 0 */
#define OPAIF     	INTF1bits.OPAIF     	/* bit 1 */
#define T3IF      	INTF1bits.T3IF      	/* bit 2 */
#define T1CIF     	INTF1bits.T1CIF     	/* bit 3 */

// ----- IOP0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P00D:1;
		unsigned char P01D:1;
		unsigned char P02D:1;
		unsigned char P03D:1;
		unsigned char P04D:1;
		unsigned char P05D:1;
		unsigned char P06D:1;
		unsigned char P07D:1;
	};
} __IOP0bits_t;
extern volatile __IOP0bits_t __at(IOP0_ADDR) IOP0bits;

#define P00D      	IOP0bits.P00D       	/* bit 0 */
#define P01D      	IOP0bits.P01D       	/* bit 1 */
#define P02D      	IOP0bits.P02D       	/* bit 2 */
#define P03D      	IOP0bits.P03D       	/* bit 3 */
#define P04D      	IOP0bits.P04D       	/* bit 4 */
#define P05D      	IOP0bits.P05D       	/* bit 5 */
#define P06D      	IOP0bits.P06D       	/* bit 6 */
#define P07D      	IOP0bits.P07D       	/* bit 7 */

// ----- OEP0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P00OE:1;
		unsigned char P01OE:1;
		unsigned char P02OE:1;
		unsigned char P03OE:1;
		unsigned char P04OE:1;
		unsigned char P05OE:1;
		unsigned char P06OE:1;
		unsigned char P07OE:1;
	};
} __OEP0bits_t;
extern volatile __OEP0bits_t __at(OEP0_ADDR) OEP0bits;

#define P00OE     	OEP0bits.P00OE      	/* bit 0 */
#define P01OE     	OEP0bits.P01OE      	/* bit 1 */
#define P02OE     	OEP0bits.P02OE      	/* bit 2 */
#define P03OE     	OEP0bits.P03OE      	/* bit 3 */
#define P04OE     	OEP0bits.P04OE      	/* bit 4 */
#define P05OE     	OEP0bits.P05OE      	/* bit 5 */
#define P06OE     	OEP0bits.P06OE      	/* bit 6 */
#define P07OE     	OEP0bits.P07OE      	/* bit 7 */

// ----- PUP0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P00PU:1;
		unsigned char P01PU:1;
		unsigned char P02PU:1;
		unsigned char P03PU:1;
		unsigned char P04PU:1;
		unsigned char P05PU:1;
		unsigned char P06PU:1;
		unsigned char P07PU:1;
	};
} __PUP0bits_t;
extern volatile __PUP0bits_t __at(PUP0_ADDR) PUP0bits;

#define P00PU     	PUP0bits.P00PU      	/* bit 0 */
#define P01PU     	PUP0bits.P01PU      	/* bit 1 */
#define P02PU     	PUP0bits.P02PU      	/* bit 2 */
#define P03PU     	PUP0bits.P03PU      	/* bit 3 */
#define P04PU     	PUP0bits.P04PU      	/* bit 4 */
#define P05PU     	PUP0bits.P05PU      	/* bit 5 */
#define P06PU     	PUP0bits.P06PU      	/* bit 6 */
#define P07PU     	PUP0bits.P07PU      	/* bit 7 */

// ----- PDP0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P00PD:1;
		unsigned char P01PD:1;
		unsigned char P02PD:1;
		unsigned char P03PD:1;
		unsigned char P04PD:1;
		unsigned char P05PD:1;
		unsigned char P06PD:1;
		unsigned char P07PD:1;
	};
} __PDP0bits_t;
extern volatile __PDP0bits_t __at(PDP0_ADDR) PDP0bits;

#define P00PD     	PDP0bits.P00PD      	/* bit 0 */
#define P01PD     	PDP0bits.P01PD      	/* bit 1 */
#define P02PD     	PDP0bits.P02PD      	/* bit 2 */
#define P03PD     	PDP0bits.P03PD      	/* bit 3 */
#define P04PD     	PDP0bits.P04PD      	/* bit 4 */
#define P05PD     	PDP0bits.P05PD      	/* bit 5 */
#define P06PD     	PDP0bits.P06PD      	/* bit 6 */
#define P07PD     	PDP0bits.P07PD      	/* bit 7 */

// ----- IOP1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P10D:1;
		unsigned char P11D:1;
		unsigned char P12D:1;
		unsigned char P13D:1;
		unsigned char P14D:1;
		unsigned char P15D:1;
		unsigned char P16D:1;
		unsigned char P17D:1;
	};
} __IOP1bits_t;
extern volatile __IOP1bits_t __at(IOP1_ADDR) IOP1bits;

#define P10D      	IOP1bits.P10D       	/* bit 0 */
#define P11D      	IOP1bits.P11D       	/* bit 1 */
#define P12D      	IOP1bits.P12D       	/* bit 2 */
#define P13D      	IOP1bits.P13D       	/* bit 3 */
#define P14D      	IOP1bits.P14D       	/* bit 4 */
#define P15D      	IOP1bits.P15D       	/* bit 5 */
#define P16D      	IOP1bits.P16D       	/* bit 6 */
#define P17D      	IOP1bits.P17D       	/* bit 7 */

// ----- OEP1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P10OE:1;
		unsigned char P11OE:1;
		unsigned char P12OE:1;
		unsigned char P13OE:1;
		unsigned char P14OE:1;
		unsigned char P15OE:1;
		unsigned char P16OE:1;
		unsigned char P17OE:1;
	};
} __OEP1bits_t;
extern volatile __OEP1bits_t __at(OEP1_ADDR) OEP1bits;

#define P10OE     	OEP1bits.P10OE      	/* bit 0 */
#define P11OE     	OEP1bits.P11OE      	/* bit 1 */
#define P12OE     	OEP1bits.P12OE      	/* bit 2 */
#define P13OE     	OEP1bits.P13OE      	/* bit 3 */
#define P14OE     	OEP1bits.P14OE      	/* bit 4 */
#define P15OE     	OEP1bits.P15OE      	/* bit 5 */
#define P16OE     	OEP1bits.P16OE      	/* bit 6 */
#define P17OE     	OEP1bits.P17OE      	/* bit 7 */

// ----- PUP1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P10PU:1;
		unsigned char P11PU:1;
		unsigned char P12PU:1;
		unsigned char P13PU:1;
		unsigned char P14PU:1;
		unsigned char P15PU:1;
		unsigned char P16PU:1;
		unsigned char P17PU:1;
	};
} __PUP1bits_t;
extern volatile __PUP1bits_t __at(PUP1_ADDR) PUP1bits;

#define P10PU     	PUP1bits.P10PU      	/* bit 0 */
#define P11PU     	PUP1bits.P11PU      	/* bit 1 */
#define P12PU     	PUP1bits.P12PU      	/* bit 2 */
#define P13PU     	PUP1bits.P13PU      	/* bit 3 */
#define P14PU     	PUP1bits.P14PU      	/* bit 4 */
#define P15PU     	PUP1bits.P15PU      	/* bit 5 */
#define P16PU     	PUP1bits.P16PU      	/* bit 6 */
#define P17PU     	PUP1bits.P17PU      	/* bit 7 */

// ----- PDP1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P10PD:1;
		unsigned char P11PD:1;
		unsigned char P12PD:1;
		unsigned char P13PD:1;
		unsigned char P14PD:1;
		unsigned char P15PD:1;
		unsigned char P16PD:1;
		unsigned char P17PD:1;
	};
} __PDP1bits_t;
extern volatile __PDP1bits_t __at(PDP1_ADDR) PDP1bits;

#define P10PD     	PDP1bits.P10PD      	/* bit 0 */
#define P11PD     	PDP1bits.P11PD      	/* bit 1 */
#define P12PD     	PDP1bits.P12PD      	/* bit 2 */
#define P13PD     	PDP1bits.P13PD      	/* bit 3 */
#define P14PD     	PDP1bits.P14PD      	/* bit 4 */
#define P15PD     	PDP1bits.P15PD      	/* bit 5 */
#define P16PD     	PDP1bits.P16PD      	/* bit 6 */
#define P17PD     	PDP1bits.P17PD      	/* bit 7 */

// ----- IOP2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P20D:1;
		unsigned char P21D:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __IOP2bits_t;
extern volatile __IOP2bits_t __at(IOP2_ADDR) IOP2bits;

#define P20D      	IOP2bits.P20D       	/* bit 0 */
#define P21D      	IOP2bits.P21D       	/* bit 1 */

// ----- OEP2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P20OE:1;
		unsigned char P21OE:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __OEP2bits_t;
extern volatile __OEP2bits_t __at(OEP2_ADDR) OEP2bits;

#define P20OE     	OEP2bits.P20OE      	/* bit 0 */
#define P21OE     	OEP2bits.P21OE      	/* bit 1 */

// ----- PUP2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P20PU:1;
		unsigned char P21PU:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PUP2bits_t;
extern volatile __PUP2bits_t __at(PUP2_ADDR) PUP2bits;

#define P20PU     	PUP2bits.P20PU      	/* bit 0 */
#define P21PU     	PUP2bits.P21PU      	/* bit 1 */

// ----- PDP2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P20PD:1;
		unsigned char P21PD:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PDP2bits_t;
extern volatile __PDP2bits_t __at(PDP2_ADDR) PDP2bits;

#define P20PD     	PDP2bits.P20PD      	/* bit 0 */
#define P21PD     	PDP2bits.P21PD      	/* bit 1 */

// ----- P1KBCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P10KE:1;
		unsigned char P11KE:1;
		unsigned char P12KE:1;
		unsigned char P13KE:1;
		unsigned char P14KE:1;
		unsigned char P15KE:1;
		unsigned char P16KE:1;
		unsigned char P17KE:1;
	};
} __P1KBCRbits_t;
extern volatile __P1KBCRbits_t __at(P1KBCR_ADDR) P1KBCRbits;

#define P10KE     	P1KBCRbits.P10KE    	/* bit 0 */
#define P11KE     	P1KBCRbits.P11KE    	/* bit 1 */
#define P12KE     	P1KBCRbits.P12KE    	/* bit 2 */
#define P13KE     	P1KBCRbits.P13KE    	/* bit 3 */
#define P14KE     	P1KBCRbits.P14KE    	/* bit 4 */
#define P15KE     	P1KBCRbits.P15KE    	/* bit 5 */
#define P16KE     	P1KBCRbits.P16KE    	/* bit 6 */
#define P17KE     	P1KBCRbits.P17KE    	/* bit 7 */

// ----- OPACR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char OPAOF:1;
		unsigned char OPAIM:1;
		unsigned char OPAOE:1;
		unsigned char OPANV:1;
		unsigned char OPADB0:1;
		unsigned char OPADB1:1;
		unsigned char OPADB2:1;
		unsigned char OPAEN:1;
	};
} __OPACR0bits_t;
extern volatile __OPACR0bits_t __at(OPACR0_ADDR) OPACR0bits;

#define OPAOF     	OPACR0bits.OPAOF    	/* bit 0 */
#define OPAIM     	OPACR0bits.OPAIM    	/* bit 1 */
#define OPAOE     	OPACR0bits.OPAOE    	/* bit 2 */
#define OPANV     	OPACR0bits.OPANV    	/* bit 3 */
#define OPADB0    	OPACR0bits.OPADB0   	/* bit 4 */
#define OPADB1    	OPACR0bits.OPADB1   	/* bit 5 */
#define OPADB2    	OPACR0bits.OPADB2   	/* bit 6 */
#define OPAEN     	OPACR0bits.OPAEN    	/* bit 7 */

// ----- OPACR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char OPAVS0:1;
		unsigned char OPAVS1:1;
		unsigned char OPAVS2:1;
		unsigned char OPAPS0:1;
		unsigned char OPAPS1:1;
		unsigned char OPAMD:1;
		unsigned char :1;
		unsigned char :1;
	};
} __OPACR1bits_t;
extern volatile __OPACR1bits_t __at(OPACR1_ADDR) OPACR1bits;

#define OPAVS0    	OPACR1bits.OPAVS0   	/* bit 0 */
#define OPAVS1    	OPACR1bits.OPAVS1   	/* bit 1 */
#define OPAVS2    	OPACR1bits.OPAVS2   	/* bit 2 */
#define OPAPS0    	OPACR1bits.OPAPS0   	/* bit 3 */
#define OPAPS1    	OPACR1bits.OPAPS1   	/* bit 4 */
#define OPAMD     	OPACR1bits.OPAMD    	/* bit 5 */

// ----- OPACLR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char OPACLR0:1;
		unsigned char OPACLR1:1;
		unsigned char OPACLR2:1;
		unsigned char OPACLR3:1;
		unsigned char OPACLR4:1;
		unsigned char OPACLR5:1;
		unsigned char OPACLRS:1;
		unsigned char OPACLRE:1;
	};
} __OPACLRbits_t;
extern volatile __OPACLRbits_t __at(OPACLR_ADDR) OPACLRbits;

#define OPACLR0   	OPACLRbits.OPACLR0  	/* bit 0 */
#define OPACLR1   	OPACLRbits.OPACLR1  	/* bit 1 */
#define OPACLR2   	OPACLRbits.OPACLR2  	/* bit 2 */
#define OPACLR3   	OPACLRbits.OPACLR3  	/* bit 3 */
#define OPACLR4   	OPACLRbits.OPACLR4  	/* bit 4 */
#define OPACLR5   	OPACLRbits.OPACLR5  	/* bit 5 */
#define OPACLRS   	OPACLRbits.OPACLRS  	/* bit 6 */
#define OPACLRE   	OPACLRbits.OPACLRE  	/* bit 7 */

// ----- T0CR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T0PRS0:1;
		unsigned char T0PRS1:1;
		unsigned char T0PRS2:1;
		unsigned char T0CKS0:1;
		unsigned char T0CKS1:1;
		unsigned char BUZ0OE:1;
		unsigned char :1;
		unsigned char T0EN:1;
	};
} __T0CRbits_t;
extern volatile __T0CRbits_t __at(T0CR_ADDR) T0CRbits;

#define T0PRS0    	T0CRbits.T0PRS0     	/* bit 0 */
#define T0PRS1    	T0CRbits.T0PRS1     	/* bit 1 */
#define T0PRS2    	T0CRbits.T0PRS2     	/* bit 2 */
#define T0CKS0    	T0CRbits.T0CKS0     	/* bit 3 */
#define T0CKS1    	T0CRbits.T0CKS1     	/* bit 4 */
#define BUZ0OE    	T0CRbits.BUZ0OE     	/* bit 5 */
#define T0EN      	T0CRbits.T0EN       	/* bit 7 */

// ----- T0CNT Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T0CNT0:1;
		unsigned char T0CNT1:1;
		unsigned char T0CNT2:1;
		unsigned char T0CNT3:1;
		unsigned char T0CNT4:1;
		unsigned char T0CNT5:1;
		unsigned char T0CNT6:1;
		unsigned char T0CNT7:1;
	};
} __T0CNTbits_t;
extern volatile __T0CNTbits_t __at(T0CNT_ADDR) T0CNTbits;

#define T0CNT0    	T0CNTbits.T0CNT0    	/* bit 0 */
#define T0CNT1    	T0CNTbits.T0CNT1    	/* bit 1 */
#define T0CNT2    	T0CNTbits.T0CNT2    	/* bit 2 */
#define T0CNT3    	T0CNTbits.T0CNT3    	/* bit 3 */
#define T0CNT4    	T0CNTbits.T0CNT4    	/* bit 4 */
#define T0CNT5    	T0CNTbits.T0CNT5    	/* bit 5 */
#define T0CNT6    	T0CNTbits.T0CNT6    	/* bit 6 */
#define T0CNT7    	T0CNTbits.T0CNT7    	/* bit 7 */

// ----- T0LOAD Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T0LOAD0:1;
		unsigned char T0LOAD1:1;
		unsigned char T0LOAD2:1;
		unsigned char T0LOAD3:1;
		unsigned char T0LOAD4:1;
		unsigned char T0LOAD5:1;
		unsigned char T0LOAD6:1;
		unsigned char T0LOAD7:1;
	};
} __T0LOADbits_t;
extern volatile __T0LOADbits_t __at(T0LOAD_ADDR) T0LOADbits;

#define T0LOAD0   	T0LOADbits.T0LOAD0  	/* bit 0 */
#define T0LOAD1   	T0LOADbits.T0LOAD1  	/* bit 1 */
#define T0LOAD2   	T0LOADbits.T0LOAD2  	/* bit 2 */
#define T0LOAD3   	T0LOADbits.T0LOAD3  	/* bit 3 */
#define T0LOAD4   	T0LOADbits.T0LOAD4  	/* bit 4 */
#define T0LOAD5   	T0LOADbits.T0LOAD5  	/* bit 5 */
#define T0LOAD6   	T0LOADbits.T0LOAD6  	/* bit 6 */
#define T0LOAD7   	T0LOADbits.T0LOAD7  	/* bit 7 */

// ----- LVDCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char LVDF:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char LVDVS0:1;
		unsigned char LVDVS1:1;
		unsigned char LVDVS2:1;
		unsigned char :1;
		unsigned char LVDEN:1;
	};
} __LVDCRbits_t;
extern volatile __LVDCRbits_t __at(LVDCR_ADDR) LVDCRbits;

#define LVDF      	LVDCRbits.LVDF      	/* bit 0 */
#define LVDVS0    	LVDCRbits.LVDVS0    	/* bit 3 */
#define LVDVS1    	LVDCRbits.LVDVS1    	/* bit 4 */
#define LVDVS2    	LVDCRbits.LVDVS2    	/* bit 5 */
#define LVDEN     	LVDCRbits.LVDEN     	/* bit 7 */

// ----- CMPCR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char CMPOF:1;
		unsigned char CMPIM:1;
		unsigned char CMPOE:1;
		unsigned char CMPNV:1;
		unsigned char CMPDB0:1;
		unsigned char CMPDB1:1;
		unsigned char CMPDB2:1;
		unsigned char CMPEN:1;
	};
} __CMPCR0bits_t;
extern volatile __CMPCR0bits_t __at(CMPCR0_ADDR) CMPCR0bits;

#define CMPOF     	CMPCR0bits.CMPOF    	/* bit 0 */
#define CMPIM     	CMPCR0bits.CMPIM    	/* bit 1 */
#define CMPOE     	CMPCR0bits.CMPOE    	/* bit 2 */
#define CMPNV     	CMPCR0bits.CMPNV    	/* bit 3 */
#define CMPDB0    	CMPCR0bits.CMPDB0   	/* bit 4 */
#define CMPDB1    	CMPCR0bits.CMPDB1   	/* bit 5 */
#define CMPDB2    	CMPCR0bits.CMPDB2   	/* bit 6 */
#define CMPEN     	CMPCR0bits.CMPEN    	/* bit 7 */

// ----- CMPCR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char CMPNS0:1;
		unsigned char CMPNS1:1;
		unsigned char CMPPS0:1;
		unsigned char CMPPS1:1;
		unsigned char CMPPS2:1;
		unsigned char CMPPS3:1;
		unsigned char :1;
		unsigned char :1;
	};
} __CMPCR1bits_t;
extern volatile __CMPCR1bits_t __at(CMPCR1_ADDR) CMPCR1bits;

#define CMPNS0    	CMPCR1bits.CMPNS0   	/* bit 0 */
#define CMPNS1    	CMPCR1bits.CMPNS1   	/* bit 1 */
#define CMPPS0    	CMPCR1bits.CMPPS0   	/* bit 2 */
#define CMPPS1    	CMPCR1bits.CMPPS1   	/* bit 3 */
#define CMPPS2    	CMPCR1bits.CMPPS2   	/* bit 4 */
#define CMPPS3    	CMPCR1bits.CMPPS3   	/* bit 5 */

// ----- CMPCLR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char CMPCLR0:1;
		unsigned char CMPCLR1:1;
		unsigned char CMPCLR2:1;
		unsigned char CMPCLR3:1;
		unsigned char CMPCLR4:1;
		unsigned char CMPCLR5:1;
		unsigned char CMPCLRS:1;
		unsigned char CMPCLRE:1;
	};
} __CMPCLRbits_t;
extern volatile __CMPCLRbits_t __at(CMPCLR_ADDR) CMPCLRbits;

#define CMPCLR0   	CMPCLRbits.CMPCLR0  	/* bit 0 */
#define CMPCLR1   	CMPCLRbits.CMPCLR1  	/* bit 1 */
#define CMPCLR2   	CMPCLRbits.CMPCLR2  	/* bit 2 */
#define CMPCLR3   	CMPCLRbits.CMPCLR3  	/* bit 3 */
#define CMPCLR4   	CMPCLRbits.CMPCLR4  	/* bit 4 */
#define CMPCLR5   	CMPCLRbits.CMPCLR5  	/* bit 5 */
#define CMPCLRS   	CMPCLRbits.CMPCLRS  	/* bit 6 */
#define CMPCLRE   	CMPCLRbits.CMPCLRE  	/* bit 7 */

// ----- T1CR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T1PRS0:1;
		unsigned char T1PRS1:1;
		unsigned char T1PRS2:1;
		unsigned char T1CKS0:1;
		unsigned char T1CKS1:1;
		unsigned char BUZ1OE:1;
		unsigned char T1MOD:1;
		unsigned char T1EN:1;
	};
} __T1CR0bits_t;
extern volatile __T1CR0bits_t __at(T1CR0_ADDR) T1CR0bits;

#define T1PRS0    	T1CR0bits.T1PRS0    	/* bit 0 */
#define T1PRS1    	T1CR0bits.T1PRS1    	/* bit 1 */
#define T1PRS2    	T1CR0bits.T1PRS2    	/* bit 2 */
#define T1CKS0    	T1CR0bits.T1CKS0    	/* bit 3 */
#define T1CKS1    	T1CR0bits.T1CKS1    	/* bit 4 */
#define BUZ1OE    	T1CR0bits.BUZ1OE    	/* bit 5 */
#define T1MOD     	T1CR0bits.T1MOD     	/* bit 6 */
#define T1EN      	T1CR0bits.T1EN      	/* bit 7 */

// ----- T1CR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T1CCT0:1;
		unsigned char T1CCT1:1;
		unsigned char T1CSTP:1;
		unsigned char T1CSTR:1;
		unsigned char T1CINS0:1;
		unsigned char T1CINS1:1;
		unsigned char T1CINS2:1;
		unsigned char T1CEOC:1;
	};
} __T1CR1bits_t;
extern volatile __T1CR1bits_t __at(T1CR1_ADDR) T1CR1bits;

#define T1CCT0    	T1CR1bits.T1CCT0    	/* bit 0 */
#define T1CCT1    	T1CR1bits.T1CCT1    	/* bit 1 */
#define T1CSTP    	T1CR1bits.T1CSTP    	/* bit 2 */
#define T1CSTR    	T1CR1bits.T1CSTR    	/* bit 3 */
#define T1CINS0   	T1CR1bits.T1CINS0   	/* bit 4 */
#define T1CINS1   	T1CR1bits.T1CINS1   	/* bit 5 */
#define T1CINS2   	T1CR1bits.T1CINS2   	/* bit 6 */
#define T1CEOC    	T1CR1bits.T1CEOC    	/* bit 7 */

// ----- T1CNTH Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T1CNT8:1;
		unsigned char T1CNT9:1;
		unsigned char T1CNT10:1;
		unsigned char T1CNT11:1;
		unsigned char T1CNT12:1;
		unsigned char T1CNT13:1;
		unsigned char T1CNT14:1;
		unsigned char T1CNT15:1;
	};
} __T1CNTHbits_t;
extern volatile __T1CNTHbits_t __at(T1CNTH_ADDR) T1CNTHbits;

#define T1CNT8    	T1CNTHbits.T1CNT8   	/* bit 0 */
#define T1CNT9    	T1CNTHbits.T1CNT9   	/* bit 1 */
#define T1CNT10   	T1CNTHbits.T1CNT10  	/* bit 2 */
#define T1CNT11   	T1CNTHbits.T1CNT11  	/* bit 3 */
#define T1CNT12   	T1CNTHbits.T1CNT12  	/* bit 4 */
#define T1CNT13   	T1CNTHbits.T1CNT13  	/* bit 5 */
#define T1CNT14   	T1CNTHbits.T1CNT14  	/* bit 6 */
#define T1CNT15   	T1CNTHbits.T1CNT15  	/* bit 7 */

// ----- T1CNTL Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T1CNT0:1;
		unsigned char T1CNT1:1;
		unsigned char T1CNT2:1;
		unsigned char T1CNT3:1;
		unsigned char T1CNT4:1;
		unsigned char T1CNT5:1;
		unsigned char T1CNT6:1;
		unsigned char T1CNT7:1;
	};
} __T1CNTLbits_t;
extern volatile __T1CNTLbits_t __at(T1CNTL_ADDR) T1CNTLbits;

#define T1CNT0    	T1CNTLbits.T1CNT0   	/* bit 0 */
#define T1CNT1    	T1CNTLbits.T1CNT1   	/* bit 1 */
#define T1CNT2    	T1CNTLbits.T1CNT2   	/* bit 2 */
#define T1CNT3    	T1CNTLbits.T1CNT3   	/* bit 3 */
#define T1CNT4    	T1CNTLbits.T1CNT4   	/* bit 4 */
#define T1CNT5    	T1CNTLbits.T1CNT5   	/* bit 5 */
#define T1CNT6    	T1CNTLbits.T1CNT6   	/* bit 6 */
#define T1CNT7    	T1CNTLbits.T1CNT7   	/* bit 7 */

// ----- T1LOADH Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T1LOAD8:1;
		unsigned char T1LOAD9:1;
		unsigned char T1LOAD10:1;
		unsigned char T1LOAD11:1;
		unsigned char T1LOAD12:1;
		unsigned char T1LOAD13:1;
		unsigned char T1LOAD14:1;
		unsigned char T1LOAD15:1;
	};
} __T1LOADHbits_t;
extern volatile __T1LOADHbits_t __at(T1LOADH_ADDR) T1LOADHbits;

#define T1LOAD8   	T1LOADHbits.T1LOAD8 	/* bit 0 */
#define T1LOAD9   	T1LOADHbits.T1LOAD9 	/* bit 1 */
#define T1LOAD10  	T1LOADHbits.T1LOAD10	/* bit 2 */
#define T1LOAD11  	T1LOADHbits.T1LOAD11	/* bit 3 */
#define T1LOAD12  	T1LOADHbits.T1LOAD12	/* bit 4 */
#define T1LOAD13  	T1LOADHbits.T1LOAD13	/* bit 5 */
#define T1LOAD14  	T1LOADHbits.T1LOAD14	/* bit 6 */
#define T1LOAD15  	T1LOADHbits.T1LOAD15	/* bit 7 */

// ----- T1LOADL Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T1LOAD0:1;
		unsigned char T1LOAD1:1;
		unsigned char T1LOAD2:1;
		unsigned char T1LOAD3:1;
		unsigned char T1LOAD4:1;
		unsigned char T1LOAD5:1;
		unsigned char T1LOAD6:1;
		unsigned char T1LOAD7:1;
	};
} __T1LOADLbits_t;
extern volatile __T1LOADLbits_t __at(T1LOADL_ADDR) T1LOADLbits;

#define T1LOAD0   	T1LOADLbits.T1LOAD0 	/* bit 0 */
#define T1LOAD1   	T1LOADLbits.T1LOAD1 	/* bit 1 */
#define T1LOAD2   	T1LOADLbits.T1LOAD2 	/* bit 2 */
#define T1LOAD3   	T1LOADLbits.T1LOAD3 	/* bit 3 */
#define T1LOAD4   	T1LOADLbits.T1LOAD4 	/* bit 4 */
#define T1LOAD5   	T1LOADLbits.T1LOAD5 	/* bit 5 */
#define T1LOAD6   	T1LOADLbits.T1LOAD6 	/* bit 6 */
#define T1LOAD7   	T1LOADLbits.T1LOAD7 	/* bit 7 */

// ----- T2CR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T2PRS0:1;
		unsigned char T2PRS1:1;
		unsigned char T2PRS2:1;
		unsigned char T2CKS0:1;
		unsigned char T2CKS1:1;
		unsigned char FPWM2EN:1;
		unsigned char PWM2EN:1;
		unsigned char T2EN:1;
	};
} __T2CRbits_t;
extern volatile __T2CRbits_t __at(T2CR_ADDR) T2CRbits;

#define T2PRS0    	T2CRbits.T2PRS0     	/* bit 0 */
#define T2PRS1    	T2CRbits.T2PRS1     	/* bit 1 */
#define T2PRS2    	T2CRbits.T2PRS2     	/* bit 2 */
#define T2CKS0    	T2CRbits.T2CKS0     	/* bit 3 */
#define T2CKS1    	T2CRbits.T2CKS1     	/* bit 4 */
#define FPWM2EN   	T2CRbits.FPWM2EN    	/* bit 5 */
#define PWM2EN    	T2CRbits.PWM2EN     	/* bit 6 */
#define T2EN      	T2CRbits.T2EN       	/* bit 7 */

// ----- T2CNT Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T2CNT0:1;
		unsigned char T2CNT1:1;
		unsigned char T2CNT2:1;
		unsigned char T2CNT3:1;
		unsigned char T2CNT4:1;
		unsigned char T2CNT5:1;
		unsigned char T2CNT6:1;
		unsigned char T2CNT7:1;
	};
} __T2CNTbits_t;
extern volatile __T2CNTbits_t __at(T2CNT_ADDR) T2CNTbits;

#define T2CNT0    	T2CNTbits.T2CNT0    	/* bit 0 */
#define T2CNT1    	T2CNTbits.T2CNT1    	/* bit 1 */
#define T2CNT2    	T2CNTbits.T2CNT2    	/* bit 2 */
#define T2CNT3    	T2CNTbits.T2CNT3    	/* bit 3 */
#define T2CNT4    	T2CNTbits.T2CNT4    	/* bit 4 */
#define T2CNT5    	T2CNTbits.T2CNT5    	/* bit 5 */
#define T2CNT6    	T2CNTbits.T2CNT6    	/* bit 6 */
#define T2CNT7    	T2CNTbits.T2CNT7    	/* bit 7 */

// ----- T2LOAD Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T2LOAD0:1;
		unsigned char T2LOAD1:1;
		unsigned char T2LOAD2:1;
		unsigned char T2LOAD3:1;
		unsigned char T2LOAD4:1;
		unsigned char T2LOAD5:1;
		unsigned char T2LOAD6:1;
		unsigned char T2LOAD7:1;
	};
} __T2LOADbits_t;
extern volatile __T2LOADbits_t __at(T2LOAD_ADDR) T2LOADbits;

#define T2LOAD0   	T2LOADbits.T2LOAD0  	/* bit 0 */
#define T2LOAD1   	T2LOADbits.T2LOAD1  	/* bit 1 */
#define T2LOAD2   	T2LOADbits.T2LOAD2  	/* bit 2 */
#define T2LOAD3   	T2LOADbits.T2LOAD3  	/* bit 3 */
#define T2LOAD4   	T2LOADbits.T2LOAD4  	/* bit 4 */
#define T2LOAD5   	T2LOADbits.T2LOAD5  	/* bit 5 */
#define T2LOAD6   	T2LOADbits.T2LOAD6  	/* bit 6 */
#define T2LOAD7   	T2LOADbits.T2LOAD7  	/* bit 7 */

// ----- T2DATA Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T2DATA0:1;
		unsigned char T2DATA1:1;
		unsigned char T2DATA2:1;
		unsigned char T2DATA3:1;
		unsigned char T2DATA4:1;
		unsigned char T2DATA5:1;
		unsigned char T2DATA6:1;
		unsigned char T2DATA7:1;
	};
} __T2DATAbits_t;
extern volatile __T2DATAbits_t __at(T2DATA_ADDR) T2DATAbits;

#define T2DATA0   	T2DATAbits.T2DATA0  	/* bit 0 */
#define T2DATA1   	T2DATAbits.T2DATA1  	/* bit 1 */
#define T2DATA2   	T2DATAbits.T2DATA2  	/* bit 2 */
#define T2DATA3   	T2DATAbits.T2DATA3  	/* bit 3 */
#define T2DATA4   	T2DATAbits.T2DATA4  	/* bit 4 */
#define T2DATA5   	T2DATAbits.T2DATA5  	/* bit 5 */
#define T2DATA6   	T2DATAbits.T2DATA6  	/* bit 6 */
#define T2DATA7   	T2DATAbits.T2DATA7  	/* bit 7 */

// ----- PWM2CR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char PWM2OE:1;
		unsigned char PWM2NV:1;
		unsigned char FPWM2OE:1;
		unsigned char FPWM2NV:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM2CR0bits_t;
extern volatile __PWM2CR0bits_t __at(PWM2CR0_ADDR) PWM2CR0bits;

#define PWM2OE    	PWM2CR0bits.PWM2OE  	/* bit 0 */
#define PWM2NV    	PWM2CR0bits.PWM2NV  	/* bit 1 */
#define FPWM2OE   	PWM2CR0bits.FPWM2OE 	/* bit 2 */
#define FPWM2NV   	PWM2CR0bits.FPWM2NV 	/* bit 3 */

// ----- PWM2CR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char FPWM2E0:1;
		unsigned char FPWM2E1:1;
		unsigned char FPWM2E2:1;
		unsigned char FPWM2E3:1;
		unsigned char FPWM2E4:1;
		unsigned char FPWM2E5:1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM2CR1bits_t;
extern volatile __PWM2CR1bits_t __at(PWM2CR1_ADDR) PWM2CR1bits;

#define FPWM2E0   	PWM2CR1bits.FPWM2E0 	/* bit 0 */
#define FPWM2E1   	PWM2CR1bits.FPWM2E1 	/* bit 1 */
#define FPWM2E2   	PWM2CR1bits.FPWM2E2 	/* bit 2 */
#define FPWM2E3   	PWM2CR1bits.FPWM2E3 	/* bit 3 */
#define FPWM2E4   	PWM2CR1bits.FPWM2E4 	/* bit 4 */
#define FPWM2E5   	PWM2CR1bits.FPWM2E5 	/* bit 5 */

// ----- PWM2CR2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char PWM2D0:1;
		unsigned char PWM2D1:1;
		unsigned char PWM2D2:1;
		unsigned char PWM2DB:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM2CR2bits_t;
extern volatile __PWM2CR2bits_t __at(PWM2CR2_ADDR) PWM2CR2bits;

#define PWM2D0    	PWM2CR2bits.PWM2D0  	/* bit 0 */
#define PWM2D1    	PWM2CR2bits.PWM2D1  	/* bit 1 */
#define PWM2D2    	PWM2CR2bits.PWM2D2  	/* bit 2 */
#define PWM2DB    	PWM2CR2bits.PWM2DB  	/* bit 3 */

// ----- T3CR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T3PRS0:1;
		unsigned char T3PRS1:1;
		unsigned char T3PRS2:1;
		unsigned char T3CKS0:1;
		unsigned char T3CKS1:1;
		unsigned char FPWM3AEN:1;
		unsigned char PWM3AEN:1;
		unsigned char T3EN:1;
	};
} __T3CRbits_t;
extern volatile __T3CRbits_t __at(T3CR_ADDR) T3CRbits;

#define T3PRS0    	T3CRbits.T3PRS0     	/* bit 0 */
#define T3PRS1    	T3CRbits.T3PRS1     	/* bit 1 */
#define T3PRS2    	T3CRbits.T3PRS2     	/* bit 2 */
#define T3CKS0    	T3CRbits.T3CKS0     	/* bit 3 */
#define T3CKS1    	T3CRbits.T3CKS1     	/* bit 4 */
#define FPWM3AEN  	T3CRbits.FPWM3AEN   	/* bit 5 */
#define PWM3AEN   	T3CRbits.PWM3AEN    	/* bit 6 */
#define T3EN      	T3CRbits.T3EN       	/* bit 7 */

// ----- T3CNT Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T3CNT0:1;
		unsigned char T3CNT1:1;
		unsigned char T3CNT2:1;
		unsigned char T3CNT3:1;
		unsigned char T3CNT4:1;
		unsigned char T3CNT5:1;
		unsigned char T3CNT6:1;
		unsigned char T3CNT7:1;
	};
} __T3CNTbits_t;
extern volatile __T3CNTbits_t __at(T3CNT_ADDR) T3CNTbits;

#define T3CNT0    	T3CNTbits.T3CNT0    	/* bit 0 */
#define T3CNT1    	T3CNTbits.T3CNT1    	/* bit 1 */
#define T3CNT2    	T3CNTbits.T3CNT2    	/* bit 2 */
#define T3CNT3    	T3CNTbits.T3CNT3    	/* bit 3 */
#define T3CNT4    	T3CNTbits.T3CNT4    	/* bit 4 */
#define T3CNT5    	T3CNTbits.T3CNT5    	/* bit 5 */
#define T3CNT6    	T3CNTbits.T3CNT6    	/* bit 6 */
#define T3CNT7    	T3CNTbits.T3CNT7    	/* bit 7 */

// ----- T3LOAD Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T3LOAD0:1;
		unsigned char T3LOAD1:1;
		unsigned char T3LOAD2:1;
		unsigned char T3LOAD3:1;
		unsigned char T3LOAD4:1;
		unsigned char T3LOAD5:1;
		unsigned char T3LOAD6:1;
		unsigned char T3LOAD7:1;
	};
} __T3LOADbits_t;
extern volatile __T3LOADbits_t __at(T3LOAD_ADDR) T3LOADbits;

#define T3LOAD0   	T3LOADbits.T3LOAD0  	/* bit 0 */
#define T3LOAD1   	T3LOADbits.T3LOAD1  	/* bit 1 */
#define T3LOAD2   	T3LOADbits.T3LOAD2  	/* bit 2 */
#define T3LOAD3   	T3LOADbits.T3LOAD3  	/* bit 3 */
#define T3LOAD4   	T3LOADbits.T3LOAD4  	/* bit 4 */
#define T3LOAD5   	T3LOADbits.T3LOAD5  	/* bit 5 */
#define T3LOAD6   	T3LOADbits.T3LOAD6  	/* bit 6 */
#define T3LOAD7   	T3LOADbits.T3LOAD7  	/* bit 7 */

// ----- T3DATA Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T3DATA0:1;
		unsigned char T3DATA1:1;
		unsigned char T3DATA2:1;
		unsigned char T3DATA3:1;
		unsigned char T3DATA4:1;
		unsigned char T3DATA5:1;
		unsigned char T3DATA6:1;
		unsigned char T3DATA7:1;
	};
} __T3DATAbits_t;
extern volatile __T3DATAbits_t __at(T3DATA_ADDR) T3DATAbits;

#define T3DATA0   	T3DATAbits.T3DATA0  	/* bit 0 */
#define T3DATA1   	T3DATAbits.T3DATA1  	/* bit 1 */
#define T3DATA2   	T3DATAbits.T3DATA2  	/* bit 2 */
#define T3DATA3   	T3DATAbits.T3DATA3  	/* bit 3 */
#define T3DATA4   	T3DATAbits.T3DATA4  	/* bit 4 */
#define T3DATA5   	T3DATAbits.T3DATA5  	/* bit 5 */
#define T3DATA6   	T3DATAbits.T3DATA6  	/* bit 6 */
#define T3DATA7   	T3DATAbits.T3DATA7  	/* bit 7 */

// ----- T3DATB Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T3DATB0:1;
		unsigned char T3DATB1:1;
		unsigned char T3DATB2:1;
		unsigned char T3DATB3:1;
		unsigned char T3DATB4:1;
		unsigned char T3DATB5:1;
		unsigned char T3DATB6:1;
		unsigned char T3DATB7:1;
	};
} __T3DATBbits_t;
extern volatile __T3DATBbits_t __at(T3DATB_ADDR) T3DATBbits;

#define T3DATB0   	T3DATBbits.T3DATB0  	/* bit 0 */
#define T3DATB1   	T3DATBbits.T3DATB1  	/* bit 1 */
#define T3DATB2   	T3DATBbits.T3DATB2  	/* bit 2 */
#define T3DATB3   	T3DATBbits.T3DATB3  	/* bit 3 */
#define T3DATB4   	T3DATBbits.T3DATB4  	/* bit 4 */
#define T3DATB5   	T3DATBbits.T3DATB5  	/* bit 5 */
#define T3DATB6   	T3DATBbits.T3DATB6  	/* bit 6 */
#define T3DATB7   	T3DATBbits.T3DATB7  	/* bit 7 */

// ----- T3DATC Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char T3DATC0:1;
		unsigned char T3DATC1:1;
		unsigned char T3DATC2:1;
		unsigned char T3DATC3:1;
		unsigned char T3DATC4:1;
		unsigned char T3DATC5:1;
		unsigned char T3DATC6:1;
		unsigned char T3DATC7:1;
	};
} __T3DATCbits_t;
extern volatile __T3DATCbits_t __at(T3DATC_ADDR) T3DATCbits;

#define T3DATC0   	T3DATCbits.T3DATC0  	/* bit 0 */
#define T3DATC1   	T3DATCbits.T3DATC1  	/* bit 1 */
#define T3DATC2   	T3DATCbits.T3DATC2  	/* bit 2 */
#define T3DATC3   	T3DATCbits.T3DATC3  	/* bit 3 */
#define T3DATC4   	T3DATCbits.T3DATC4  	/* bit 4 */
#define T3DATC5   	T3DATCbits.T3DATC5  	/* bit 5 */
#define T3DATC6   	T3DATCbits.T3DATC6  	/* bit 6 */
#define T3DATC7   	T3DATCbits.T3DATC7  	/* bit 7 */

// ----- PWM3CR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char FPWM3ANV:1;
		unsigned char PWM3ANV:1;
		unsigned char PWM3BNV:1;
		unsigned char PWM3CNV:1;
		unsigned char PWM3BOS:1;
		unsigned char PWM3COS:1;
		unsigned char PWM3BEN:1;
		unsigned char PWM3CEN:1;
	};
} __PWM3CR0bits_t;
extern volatile __PWM3CR0bits_t __at(PWM3CR0_ADDR) PWM3CR0bits;

#define FPWM3ANV  	PWM3CR0bits.FPWM3ANV	/* bit 0 */
#define PWM3ANV   	PWM3CR0bits.PWM3ANV 	/* bit 1 */
#define PWM3BNV   	PWM3CR0bits.PWM3BNV 	/* bit 2 */
#define PWM3CNV   	PWM3CR0bits.PWM3CNV 	/* bit 3 */
#define PWM3BOS   	PWM3CR0bits.PWM3BOS 	/* bit 4 */
#define PWM3COS   	PWM3CR0bits.PWM3COS 	/* bit 5 */
#define PWM3BEN   	PWM3CR0bits.PWM3BEN 	/* bit 6 */
#define PWM3CEN   	PWM3CR0bits.PWM3CEN 	/* bit 7 */

// ----- PWM3CR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char FPWM3A0E:1;
		unsigned char PWM3A0E:1;
		unsigned char PWM3BOE:1;
		unsigned char PWM3COE:1;
		unsigned char FPWM3A1E:1;
		unsigned char PWM3A1E:1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM3CR1bits_t;
extern volatile __PWM3CR1bits_t __at(PWM3CR1_ADDR) PWM3CR1bits;

#define FPWM3A0E  	PWM3CR1bits.FPWM3A0E	/* bit 0 */
#define PWM3A0E   	PWM3CR1bits.PWM3A0E 	/* bit 1 */
#define PWM3BOE   	PWM3CR1bits.PWM3BOE 	/* bit 2 */
#define PWM3COE   	PWM3CR1bits.PWM3COE 	/* bit 3 */
#define FPWM3A1E  	PWM3CR1bits.FPWM3A1E	/* bit 4 */
#define PWM3A1E   	PWM3CR1bits.PWM3A1E 	/* bit 5 */

// ----- PWM3CR2 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char PWM3AP0T:1;
		unsigned char PWM3AP0E:1;
		unsigned char PWM3AP1T:1;
		unsigned char PWM3AP1E:1;
		unsigned char PWM3APF:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM3CR2bits_t;
extern volatile __PWM3CR2bits_t __at(PWM3CR2_ADDR) PWM3CR2bits;

#define PWM3AP0T  	PWM3CR2bits.PWM3AP0T	/* bit 0 */
#define PWM3AP0E  	PWM3CR2bits.PWM3AP0E	/* bit 1 */
#define PWM3AP1T  	PWM3CR2bits.PWM3AP1T	/* bit 2 */
#define PWM3AP1E  	PWM3CR2bits.PWM3AP1E	/* bit 3 */
#define PWM3APF   	PWM3CR2bits.PWM3APF 	/* bit 4 */

// ----- PWM3CR3 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char FPWM3AE0:1;
		unsigned char FPWM3AE1:1;
		unsigned char FPWM3AE2:1;
		unsigned char FPWM3AE3:1;
		unsigned char FPWM3AE4:1;
		unsigned char FPWM3AE5:1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM3CR3bits_t;
extern volatile __PWM3CR3bits_t __at(PWM3CR3_ADDR) PWM3CR3bits;

#define FPWM3AE0  	PWM3CR3bits.FPWM3AE0	/* bit 0 */
#define FPWM3AE1  	PWM3CR3bits.FPWM3AE1	/* bit 1 */
#define FPWM3AE2  	PWM3CR3bits.FPWM3AE2	/* bit 2 */
#define FPWM3AE3  	PWM3CR3bits.FPWM3AE3	/* bit 3 */
#define FPWM3AE4  	PWM3CR3bits.FPWM3AE4	/* bit 4 */
#define FPWM3AE5  	PWM3CR3bits.FPWM3AE5	/* bit 5 */

// ----- PWM3CR4 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char PWM3AD0:1;
		unsigned char PWM3AD1:1;
		unsigned char PWM3AD2:1;
		unsigned char PWM3ADB:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __PWM3CR4bits_t;
extern volatile __PWM3CR4bits_t __at(PWM3CR4_ADDR) PWM3CR4bits;

#define PWM3AD0   	PWM3CR4bits.PWM3AD0 	/* bit 0 */
#define PWM3AD1   	PWM3CR4bits.PWM3AD1 	/* bit 1 */
#define PWM3AD2   	PWM3CR4bits.PWM3AD2 	/* bit 2 */
#define PWM3ADB   	PWM3CR4bits.PWM3ADB 	/* bit 3 */

// ----- EECR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char EEWRITE:1;
		unsigned char EEREAD:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __EECRbits_t;
extern volatile __EECRbits_t __at(EECR_ADDR) EECRbits;

#define EEWRITE   	EECRbits.EEWRITE    	/* bit 0 */
#define EEREAD    	EECRbits.EEREAD     	/* bit 1 */

// ----- EEPR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char EEP0:1;
		unsigned char EEP1:1;
		unsigned char EEP2:1;
		unsigned char EEP3:1;
		unsigned char EEP4:1;
		unsigned char EEP5:1;
		unsigned char EEP6:1;
		unsigned char EEP7:1;
	};
} __EEPRbits_t;
extern volatile __EEPRbits_t __at(EEPR_ADDR) EEPRbits;

#define EEP0      	EEPRbits.EEP0       	/* bit 0 */
#define EEP1      	EEPRbits.EEP1       	/* bit 1 */
#define EEP2      	EEPRbits.EEP2       	/* bit 2 */
#define EEP3      	EEPRbits.EEP3       	/* bit 3 */
#define EEP4      	EEPRbits.EEP4       	/* bit 4 */
#define EEP5      	EEPRbits.EEP5       	/* bit 5 */
#define EEP6      	EEPRbits.EEP6       	/* bit 6 */
#define EEP7      	EEPRbits.EEP7       	/* bit 7 */

// ----- EEAR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char EEA0:1;
		unsigned char EEA1:1;
		unsigned char EEA2:1;
		unsigned char EEA3:1;
		unsigned char EEA4:1;
		unsigned char EEA5:1;
		unsigned char EEA6:1;
		unsigned char EEA7:1;
	};
} __EEARbits_t;
extern volatile __EEARbits_t __at(EEAR_ADDR) EEARbits;

#define EEA0      	EEARbits.EEA0       	/* bit 0 */
#define EEA1      	EEARbits.EEA1       	/* bit 1 */
#define EEA2      	EEARbits.EEA2       	/* bit 2 */
#define EEA3      	EEARbits.EEA3       	/* bit 3 */
#define EEA4      	EEARbits.EEA4       	/* bit 4 */
#define EEA5      	EEARbits.EEA5       	/* bit 5 */
#define EEA6      	EEARbits.EEA6       	/* bit 6 */
#define EEA7      	EEARbits.EEA7       	/* bit 7 */

// ----- EEDR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char EED0:1;
		unsigned char EED1:1;
		unsigned char EED2:1;
		unsigned char EED3:1;
		unsigned char EED4:1;
		unsigned char EED5:1;
		unsigned char EED6:1;
		unsigned char EED7:1;
	};
} __EEDRbits_t;
extern volatile __EEDRbits_t __at(EEDR_ADDR) EEDRbits;

#define EED0      	EEDRbits.EED0       	/* bit 0 */
#define EED1      	EEDRbits.EED1       	/* bit 1 */
#define EED2      	EEDRbits.EED2       	/* bit 2 */
#define EED3      	EEDRbits.EED3       	/* bit 3 */
#define EED4      	EEDRbits.EED4       	/* bit 4 */
#define EED5      	EEDRbits.EED5       	/* bit 5 */
#define EED6      	EEDRbits.EED6       	/* bit 6 */
#define EED7      	EEDRbits.EED7       	/* bit 7 */

// ----- ADCR0 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char ADCHS0:1;
		unsigned char ADCHS1:1;
		unsigned char ADCHS2:1;
		unsigned char ADCHS3:1;
		unsigned char ADCKS0:1;
		unsigned char ADCKS1:1;
		unsigned char ADEOC:1;
		unsigned char ADEN:1;
	};
} __ADCR0bits_t;
extern volatile __ADCR0bits_t __at(ADCR0_ADDR) ADCR0bits;

#define ADCHS0    	ADCR0bits.ADCHS0    	/* bit 0 */
#define ADCHS1    	ADCR0bits.ADCHS1    	/* bit 1 */
#define ADCHS2    	ADCR0bits.ADCHS2    	/* bit 2 */
#define ADCHS3    	ADCR0bits.ADCHS3    	/* bit 3 */
#define ADCKS0    	ADCR0bits.ADCKS0    	/* bit 4 */
#define ADCKS1    	ADCR0bits.ADCKS1    	/* bit 5 */
#define ADEOC     	ADCR0bits.ADEOC     	/* bit 6 */
#define ADEN      	ADCR0bits.ADEN      	/* bit 7 */

// ----- ADCR1 Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char ADSPS0:1;
		unsigned char ADSPS1:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char ADVRS0:1;
		unsigned char ADVRS1:1;
		unsigned char ADVRS2:1;
		unsigned char ADRSEL:1;
	};
} __ADCR1bits_t;
extern volatile __ADCR1bits_t __at(ADCR1_ADDR) ADCR1bits;

#define ADSPS0    	ADCR1bits.ADSPS0    	/* bit 0 */
#define ADSPS1    	ADCR1bits.ADSPS1    	/* bit 1 */
#define ADVRS0    	ADCR1bits.ADVRS0    	/* bit 4 */
#define ADVRS1    	ADCR1bits.ADVRS1    	/* bit 5 */
#define ADVRS2    	ADCR1bits.ADVRS2    	/* bit 6 */
#define ADRSEL    	ADCR1bits.ADRSEL    	/* bit 7 */

// ----- ADRH Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char ADR4:1;
		unsigned char ADR5:1;
		unsigned char ADR6:1;
		unsigned char ADR7:1;
		unsigned char ADR8:1;
		unsigned char ADR9:1;
		unsigned char ADR10:1;
		unsigned char ADR11:1;
	};
} __ADRHbits_t;
extern volatile __ADRHbits_t __at(ADRH_ADDR) ADRHbits;

#define ADR4      	ADRHbits.ADR4       	/* bit 0 */
#define ADR5      	ADRHbits.ADR5       	/* bit 1 */
#define ADR6      	ADRHbits.ADR6       	/* bit 2 */
#define ADR7      	ADRHbits.ADR7       	/* bit 3 */
#define ADR8      	ADRHbits.ADR8       	/* bit 4 */
#define ADR9      	ADRHbits.ADR9       	/* bit 5 */
#define ADR10     	ADRHbits.ADR10      	/* bit 6 */
#define ADR11     	ADRHbits.ADR11      	/* bit 7 */

// ----- ADRL Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char ADR0:1;
		unsigned char ADR1:1;
		unsigned char ADR2:1;
		unsigned char ADR3:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __ADRLbits_t;
extern volatile __ADRLbits_t __at(ADRL_ADDR) ADRLbits;

#define ADR0      	ADRLbits.ADR0       	/* bit 0 */
#define ADR1      	ADRLbits.ADR1       	/* bit 1 */
#define ADR2      	ADRLbits.ADR2       	/* bit 2 */
#define ADR3      	ADRLbits.ADR3       	/* bit 3 */

// ----- OSADJCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char OSADJT0:1;
		unsigned char OSADJT1:1;
		unsigned char OSADJT2:1;
		unsigned char OSADJT3:1;
		unsigned char OSADJT4:1;
		unsigned char OSADJT5:1;
		unsigned char OSADJTD:1;
		unsigned char OSADJEN:1;
	};
} __OSADJCRbits_t;
extern volatile __OSADJCRbits_t __at(OSADJCR_ADDR) OSADJCRbits;

#define OSADJT0   	OSADJCRbits.OSADJT0 	/* bit 0 */
#define OSADJT1   	OSADJCRbits.OSADJT1 	/* bit 1 */
#define OSADJT2   	OSADJCRbits.OSADJT2 	/* bit 2 */
#define OSADJT3   	OSADJCRbits.OSADJT3 	/* bit 3 */
#define OSADJT4   	OSADJCRbits.OSADJT4 	/* bit 4 */
#define OSADJT5   	OSADJCRbits.OSADJT5 	/* bit 5 */
#define OSADJTD   	OSADJCRbits.OSADJTD 	/* bit 6 */
#define OSADJEN   	OSADJCRbits.OSADJEN 	/* bit 7 */

// ----- P0ADCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P00DC:1;
		unsigned char P01DC:1;
		unsigned char P02DC:1;
		unsigned char P03DC:1;
		unsigned char P04DC:1;
		unsigned char P05DC:1;
		unsigned char P06DC:1;
		unsigned char P07DC:1;
	};
} __P0ADCRbits_t;
extern volatile __P0ADCRbits_t __at(P0ADCR_ADDR) P0ADCRbits;

#define P00DC     	P0ADCRbits.P00DC    	/* bit 0 */
#define P01DC     	P0ADCRbits.P01DC    	/* bit 1 */
#define P02DC     	P0ADCRbits.P02DC    	/* bit 2 */
#define P03DC     	P0ADCRbits.P03DC    	/* bit 3 */
#define P04DC     	P0ADCRbits.P04DC    	/* bit 4 */
#define P05DC     	P0ADCRbits.P05DC    	/* bit 5 */
#define P06DC     	P0ADCRbits.P06DC    	/* bit 6 */
#define P07DC     	P0ADCRbits.P07DC    	/* bit 7 */

// ----- P1ADCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P10DC:1;
		unsigned char P11DC:1;
		unsigned char :1;
		unsigned char P13DC:1;
		unsigned char P14DC:1;
		unsigned char P15DC:1;
		unsigned char P16DC:1;
		unsigned char P17DC:1;
	};
} __P1ADCRbits_t;
extern volatile __P1ADCRbits_t __at(P1ADCR_ADDR) P1ADCRbits;

#define P10DC     	P1ADCRbits.P10DC    	/* bit 0 */
#define P11DC     	P1ADCRbits.P11DC    	/* bit 1 */
#define P13DC     	P1ADCRbits.P13DC    	/* bit 3 */
#define P14DC     	P1ADCRbits.P14DC    	/* bit 4 */
#define P15DC     	P1ADCRbits.P15DC    	/* bit 5 */
#define P16DC     	P1ADCRbits.P16DC    	/* bit 6 */
#define P17DC     	P1ADCRbits.P17DC    	/* bit 7 */

// ----- P2ADCR Bits --------------------------------------------
typedef union {
	 struct {
		unsigned char P20DC:1;
		unsigned char P21DC:1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
		unsigned char :1;
	};
} __P2ADCRbits_t;
extern volatile __P2ADCRbits_t __at(P2ADCR_ADDR) P2ADCRbits;

#define P20DC     	P2ADCRbits.P20DC    	/* bit 0 */
#define P21DC     	P2ADCRbits.P21DC    	/* bit 1 */

#endif
