//
// Register Declarations for Microchip 16F1937 Processor
//
//
// This header file was automatically generated by:
//
//	inc2h.pl V4850
//
//	Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
//
//	SDCC is licensed under the GNU Public license (GPL) v2.  Note that
//	this license covers the code to the compiler and other executables,
//	but explicitly does not cover any code or objects generated by sdcc.
//	We have not yet decided on a license for the run time libraries, but
//	it will not put any requirements on code linked against it. See:
// 
//	http://www.gnu.org/copyleft/gpl/html
//
//	See http://sdcc.sourceforge.net/ for the latest information on sdcc.
//
// 
#ifndef P16F1937_H
#define P16F1937_H

//
// Register addresses.
//
#define INDF0_ADDR	0x0000
#define INDF1_ADDR	0x0001
#define PCL_ADDR	0x0002
#define STATUS_ADDR	0x0003
#define FSR0_ADDR	0x0004
#define FSR0L_ADDR	0x0004
#define FSR0H_ADDR	0x0005
#define FSR1_ADDR	0x0006
#define FSR1L_ADDR	0x0006
#define FSR1H_ADDR	0x0007
#define BSR_ADDR	0x0008
#define WREG_ADDR	0x0009
#define PCLATH_ADDR	0x000A
#define INTCON_ADDR	0x000B
#define PORTA_ADDR	0x000C
#define PORTB_ADDR	0x000D
#define PORTC_ADDR	0x000E
#define PORTD_ADDR	0x000F
#define PORTE_ADDR	0x0010
#define PIR1_ADDR	0x0011
#define PIR2_ADDR	0x0012
#define PIR3_ADDR	0x0013
#define TMR0_ADDR	0x0015
#define TMR1_ADDR	0x0016
#define TMR1L_ADDR	0x0016
#define TMR1H_ADDR	0x0017
#define T1CON_ADDR	0x0018
#define T1GCON_ADDR	0x0019
#define TMR2_ADDR	0x001A
#define PR2_ADDR	0x001B
#define T2CON_ADDR	0x001C
#define CPSCON0_ADDR	0x001E
#define CPSCON1_ADDR	0x001F
#define TRISA_ADDR	0x008C
#define TRISB_ADDR	0x008D
#define TRISC_ADDR	0x008E
#define TRISD_ADDR	0x008F
#define TRISE_ADDR	0x0090
#define PIE1_ADDR	0x0091
#define PIE2_ADDR	0x0092
#define PIE3_ADDR	0x0093
#define OPTION_REG_ADDR	0x0095
#define PCON_ADDR	0x0096
#define WDTCON_ADDR	0x0097
#define OSCTUNE_ADDR	0x0098
#define OSCCON_ADDR	0x0099
#define OSCSTAT_ADDR	0x009A
#define ADRES_ADDR	0x009B
#define ADRESL_ADDR	0x009B
#define ADRESH_ADDR	0x009C
#define ADCON0_ADDR	0x009D
#define ADCON1_ADDR	0x009E
#define LATA_ADDR	0x010C
#define LATB_ADDR	0x010D
#define LATC_ADDR	0x010E
#define LATD_ADDR	0x010F
#define LATE_ADDR	0x0110
#define CM1CON0_ADDR	0x0111
#define CM1CON1_ADDR	0x0112
#define CM2CON0_ADDR	0x0113
#define CM2CON1_ADDR	0x0114
#define CMOUT_ADDR	0x0115
#define BORCON_ADDR	0x0116
#define FVRCON_ADDR	0x0117
#define DACCON0_ADDR	0x0118
#define DACCON1_ADDR	0x0119
#define SRCON0_ADDR	0x011A
#define SRCON1_ADDR	0x011B
#define APFCON_ADDR	0x011D
#define ANSELA_ADDR	0x018C
#define ANSELB_ADDR	0x018D
#define ANSELD_ADDR	0x018F
#define ANSELE_ADDR	0x0190
#define EEADR_ADDR	0x0191
#define EEADRL_ADDR	0x0191
#define EEADRH_ADDR	0x0192
#define EEDAT_ADDR	0x0193
#define EEDATL_ADDR	0x0193
#define EEDATH_ADDR	0x0194
#define EECON1_ADDR	0x0195
#define EECON2_ADDR	0x0196
#define RCREG_ADDR	0x0199
#define TXREG_ADDR	0x019A
#define SPBRG_ADDR	0x019B
#define SPBRGL_ADDR	0x019B
#define SPBRGH_ADDR	0x019C
#define RCSTA_ADDR	0x019D
#define TXSTA_ADDR	0x019E
#define BAUDCON_ADDR	0x019F
#define WPUB_ADDR	0x020D
#define WPUE_ADDR	0x0210
#define SSPBUF_ADDR	0x0211
#define SSPADD_ADDR	0x0212
#define SSPMSK_ADDR	0x0213
#define SSPSTAT_ADDR	0x0214
#define SSPCON_ADDR	0x0215
#define SSPCON1_ADDR	0x0215
#define SSPCON2_ADDR	0x0216
#define SSPCON3_ADDR	0x0217
#define CCPR1L_ADDR	0x0291
#define CCPR1H_ADDR	0x0292
#define CCP1CON_ADDR	0x0293
#define PWM1CON_ADDR	0x0294
#define CCP1AS_ADDR	0x0295
#define ECCP1AS_ADDR	0x0295
#define PSTR1CON_ADDR	0x0296
#define CCPR2L_ADDR	0x0298
#define CCPR2H_ADDR	0x0299
#define CCP2CON_ADDR	0x029A
#define PWM2CON_ADDR	0x029B
#define CCP2AS_ADDR	0x029C
#define ECCP2AS_ADDR	0x029C
#define PSTR2CON_ADDR	0x029D
#define CCPTMRS0_ADDR	0x029E
#define CCPTMRS1_ADDR	0x029F
#define CCPR3L_ADDR	0x0311
#define CCPR3H_ADDR	0x0312
#define CCP3CON_ADDR	0x0313
#define PWM3CON_ADDR	0x0314
#define CCP3AS_ADDR	0x0315
#define ECCP3AS_ADDR	0x0315
#define PSTR3CON_ADDR	0x0316
#define CCPR4L_ADDR	0x0318
#define CCPR4H_ADDR	0x0319
#define CCP4CON_ADDR	0x031A
#define CCPR5L_ADDR	0x031C
#define CCPR5H_ADDR	0x031D
#define CCP5CON_ADDR	0x031E
#define IOCBP_ADDR	0x0394
#define IOCBN_ADDR	0x0395
#define IOCBF_ADDR	0x0396
#define TMR4_ADDR	0x0415
#define PR4_ADDR	0x0416
#define T4CON_ADDR	0x0417
#define TMR6_ADDR	0x041C
#define PR6_ADDR	0x041D
#define T6CON_ADDR	0x041E
#define LCDCON_ADDR	0x0791
#define LCDPS_ADDR	0x0792
#define LCDREF_ADDR	0x0793
#define LCDCST_ADDR	0x0794
#define LCDRL_ADDR	0x0795
#define LCDSE0_ADDR	0x0798
#define LCDSE1_ADDR	0x0799
#define LCDSE2_ADDR	0x079A
#define LCDDATA0_ADDR	0x07A0
#define LCDDATA1_ADDR	0x07A1
#define LCDDATA2_ADDR	0x07A2
#define LCDDATA3_ADDR	0x07A3
#define LCDDATA4_ADDR	0x07A4
#define LCDDATA5_ADDR	0x07A5
#define LCDDATA6_ADDR	0x07A6
#define LCDDATA7_ADDR	0x07A7
#define LCDDATA8_ADDR	0x07A8
#define LCDDATA9_ADDR	0x07A9
#define LCDDATA10_ADDR	0x07AA
#define LCDDATA11_ADDR	0x07AB
#define STATUS_SHAD_ADDR	0x0FE4
#define WREG_SHAD_ADDR	0x0FE5
#define BSR_SHAD_ADDR	0x0FE6
#define PCLATH_SHAD_ADDR	0x0FE7
#define FSR0L_SHAD_ADDR	0x0FE8
#define FSR0H_SHAD_ADDR	0x0FE9
#define FSR1L_SHAD_ADDR	0x0FEA
#define FSR1H_SHAD_ADDR	0x0FEB
#define STKPTR_ADDR	0x0FED
#define TOSL_ADDR	0x0FEE
#define TOSH_ADDR	0x0FEF

//
// Memory organization.
//



//         LIST

//==========================================================================
//  MPASM PIC16F1937 processor include
// 
//  (c) Copyright 1999-2011 Microchip Technology, All rights reserved
//==========================================================================

//         NOLIST

//==========================================================================
//  This header file defines configurations, registers, and other useful
//  bits of information for the PIC16F1937 microcontroller.  These names
//  are taken to match the data sheets as closely as possible.
//
//  Note that the processor must be selected before this file is included.
//  The processor may be selected the following ways:
//
//       1. Command line switch:
//               C:\MPASM MYFILE.ASM /PIC16F1937
//       2. LIST directive in the source file
//               LIST   P=PIC16F1937
//       3. Processor Type entry in the MPASM full-screen interface
//       4. Setting the processor in the MPLAB Project Dialog
//==========================================================================

//==========================================================================
//
//       Verify Processor
//
//==========================================================================
//        IFNDEF __16F1937
//            MESSG "Processor-header file mismatch.  Verify selected processor."
//         ENDIF



//==========================================================================
//
//       Register Definitions
//
//==========================================================================

#define W                    0x0000
#define F                    0x0001

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

//-----Bank0------------------
extern __sfr  __at (INDF0_ADDR)                   INDF0;
extern __sfr  __at (INDF1_ADDR)                   INDF1;
extern __sfr  __at (PCL_ADDR)                     PCL;
extern __sfr  __at (STATUS_ADDR)                  STATUS;
extern __sfr  __at (FSR0_ADDR)                    FSR0;
extern __sfr  __at (FSR0L_ADDR)                   FSR0L;
extern __sfr  __at (FSR0H_ADDR)                   FSR0H;
extern __sfr  __at (FSR1_ADDR)                    FSR1;
extern __sfr  __at (FSR1L_ADDR)                   FSR1L;
extern __sfr  __at (FSR1H_ADDR)                   FSR1H;
extern __sfr  __at (BSR_ADDR)                     BSR;
extern __sfr  __at (WREG_ADDR)                    WREG;
extern __sfr  __at (PCLATH_ADDR)                  PCLATH;
extern __sfr  __at (INTCON_ADDR)                  INTCON;
extern __sfr  __at (PORTA_ADDR)                   PORTA;
extern __sfr  __at (PORTB_ADDR)                   PORTB;
extern __sfr  __at (PORTC_ADDR)                   PORTC;
extern __sfr  __at (PORTD_ADDR)                   PORTD;
extern __sfr  __at (PORTE_ADDR)                   PORTE;
extern __sfr  __at (PIR1_ADDR)                    PIR1;
extern __sfr  __at (PIR2_ADDR)                    PIR2;
extern __sfr  __at (PIR3_ADDR)                    PIR3;
extern __sfr  __at (TMR0_ADDR)                    TMR0;
extern __sfr  __at (TMR1_ADDR)                    TMR1;
extern __sfr  __at (TMR1L_ADDR)                   TMR1L;
extern __sfr  __at (TMR1H_ADDR)                   TMR1H;
extern __sfr  __at (T1CON_ADDR)                   T1CON;
extern __sfr  __at (T1GCON_ADDR)                  T1GCON;
extern __sfr  __at (TMR2_ADDR)                    TMR2;
extern __sfr  __at (PR2_ADDR)                     PR2;
extern __sfr  __at (T2CON_ADDR)                   T2CON;
extern __sfr  __at (CPSCON0_ADDR)                 CPSCON0;
extern __sfr  __at (CPSCON1_ADDR)                 CPSCON1;

//-----Bank1------------------
extern __sfr  __at (TRISA_ADDR)                   TRISA;
extern __sfr  __at (TRISB_ADDR)                   TRISB;
extern __sfr  __at (TRISC_ADDR)                   TRISC;
extern __sfr  __at (TRISD_ADDR)                   TRISD;
extern __sfr  __at (TRISE_ADDR)                   TRISE;
extern __sfr  __at (PIE1_ADDR)                    PIE1;
extern __sfr  __at (PIE2_ADDR)                    PIE2;
extern __sfr  __at (PIE3_ADDR)                    PIE3;
extern __sfr  __at (OPTION_REG_ADDR)              OPTION_REG;
extern __sfr  __at (PCON_ADDR)                    PCON;
extern __sfr  __at (WDTCON_ADDR)                  WDTCON;
extern __sfr  __at (OSCTUNE_ADDR)                 OSCTUNE;
extern __sfr  __at (OSCCON_ADDR)                  OSCCON;
extern __sfr  __at (OSCSTAT_ADDR)                 OSCSTAT;
extern __sfr  __at (ADRES_ADDR)                   ADRES;
extern __sfr  __at (ADRESL_ADDR)                  ADRESL;
extern __sfr  __at (ADRESH_ADDR)                  ADRESH;
extern __sfr  __at (ADCON0_ADDR)                  ADCON0;
extern __sfr  __at (ADCON1_ADDR)                  ADCON1;

//-----Bank2------------------
extern __sfr  __at (LATA_ADDR)                    LATA;
extern __sfr  __at (LATB_ADDR)                    LATB;
extern __sfr  __at (LATC_ADDR)                    LATC;
extern __sfr  __at (LATD_ADDR)                    LATD;
extern __sfr  __at (LATE_ADDR)                    LATE;
extern __sfr  __at (CM1CON0_ADDR)                 CM1CON0;
extern __sfr  __at (CM1CON1_ADDR)                 CM1CON1;
extern __sfr  __at (CM2CON0_ADDR)                 CM2CON0;
extern __sfr  __at (CM2CON1_ADDR)                 CM2CON1;
extern __sfr  __at (CMOUT_ADDR)                   CMOUT;
extern __sfr  __at (BORCON_ADDR)                  BORCON;
extern __sfr  __at (FVRCON_ADDR)                  FVRCON;
extern __sfr  __at (DACCON0_ADDR)                 DACCON0;
extern __sfr  __at (DACCON1_ADDR)                 DACCON1;
extern __sfr  __at (SRCON0_ADDR)                  SRCON0;
extern __sfr  __at (SRCON1_ADDR)                  SRCON1;
extern __sfr  __at (APFCON_ADDR)                  APFCON;

//-----Bank3------------------
extern __sfr  __at (ANSELA_ADDR)                  ANSELA;
extern __sfr  __at (ANSELB_ADDR)                  ANSELB;
extern __sfr  __at (ANSELD_ADDR)                  ANSELD;
extern __sfr  __at (ANSELE_ADDR)                  ANSELE;
extern __sfr  __at (EEADR_ADDR)                   EEADR;
extern __sfr  __at (EEADRL_ADDR)                  EEADRL;
extern __sfr  __at (EEADRH_ADDR)                  EEADRH;
extern __sfr  __at (EEDAT_ADDR)                   EEDAT;
extern __sfr  __at (EEDATL_ADDR)                  EEDATL;
extern __sfr  __at (EEDATH_ADDR)                  EEDATH;
extern __sfr  __at (EECON1_ADDR)                  EECON1;
extern __sfr  __at (EECON2_ADDR)                  EECON2;
extern __sfr  __at (RCREG_ADDR)                   RCREG;
extern __sfr  __at (TXREG_ADDR)                   TXREG;
extern __sfr  __at (SPBRG_ADDR)                   SPBRG;
extern __sfr  __at (SPBRGL_ADDR)                  SPBRGL;
extern __sfr  __at (SPBRGH_ADDR)                  SPBRGH;
extern __sfr  __at (RCSTA_ADDR)                   RCSTA;
extern __sfr  __at (TXSTA_ADDR)                   TXSTA;
extern __sfr  __at (BAUDCON_ADDR)                 BAUDCON;

//-----Bank4------------------
extern __sfr  __at (WPUB_ADDR)                    WPUB;
extern __sfr  __at (WPUE_ADDR)                    WPUE;
extern __sfr  __at (SSPBUF_ADDR)                  SSPBUF;
extern __sfr  __at (SSPADD_ADDR)                  SSPADD;
extern __sfr  __at (SSPMSK_ADDR)                  SSPMSK;
extern __sfr  __at (SSPSTAT_ADDR)                 SSPSTAT;
extern __sfr  __at (SSPCON_ADDR)                  SSPCON;
extern __sfr  __at (SSPCON1_ADDR)                 SSPCON1;
extern __sfr  __at (SSPCON2_ADDR)                 SSPCON2;
extern __sfr  __at (SSPCON3_ADDR)                 SSPCON3;

//-----Bank5------------------
extern __sfr  __at (CCPR1L_ADDR)                  CCPR1L;
extern __sfr  __at (CCPR1H_ADDR)                  CCPR1H;
extern __sfr  __at (CCP1CON_ADDR)                 CCP1CON;
extern __sfr  __at (PWM1CON_ADDR)                 PWM1CON;
extern __sfr  __at (CCP1AS_ADDR)                  CCP1AS;
extern __sfr  __at (ECCP1AS_ADDR)                 ECCP1AS;
extern __sfr  __at (PSTR1CON_ADDR)                PSTR1CON;
extern __sfr  __at (CCPR2L_ADDR)                  CCPR2L;
extern __sfr  __at (CCPR2H_ADDR)                  CCPR2H;
extern __sfr  __at (CCP2CON_ADDR)                 CCP2CON;
extern __sfr  __at (PWM2CON_ADDR)                 PWM2CON;
extern __sfr  __at (CCP2AS_ADDR)                  CCP2AS;
extern __sfr  __at (ECCP2AS_ADDR)                 ECCP2AS;
extern __sfr  __at (PSTR2CON_ADDR)                PSTR2CON;
extern __sfr  __at (CCPTMRS0_ADDR)                CCPTMRS0;
extern __sfr  __at (CCPTMRS1_ADDR)                CCPTMRS1;

//-----Bank6------------------
extern __sfr  __at (CCPR3L_ADDR)                  CCPR3L;
extern __sfr  __at (CCPR3H_ADDR)                  CCPR3H;
extern __sfr  __at (CCP3CON_ADDR)                 CCP3CON;
extern __sfr  __at (PWM3CON_ADDR)                 PWM3CON;
extern __sfr  __at (CCP3AS_ADDR)                  CCP3AS;
extern __sfr  __at (ECCP3AS_ADDR)                 ECCP3AS;
extern __sfr  __at (PSTR3CON_ADDR)                PSTR3CON;
extern __sfr  __at (CCPR4L_ADDR)                  CCPR4L;
extern __sfr  __at (CCPR4H_ADDR)                  CCPR4H;
extern __sfr  __at (CCP4CON_ADDR)                 CCP4CON;
extern __sfr  __at (CCPR5L_ADDR)                  CCPR5L;
extern __sfr  __at (CCPR5H_ADDR)                  CCPR5H;
extern __sfr  __at (CCP5CON_ADDR)                 CCP5CON;

//-----Bank7------------------
extern __sfr  __at (IOCBP_ADDR)                   IOCBP;
extern __sfr  __at (IOCBN_ADDR)                   IOCBN;
extern __sfr  __at (IOCBF_ADDR)                   IOCBF;

//-----Bank8------------------
extern __sfr  __at (TMR4_ADDR)                    TMR4;
extern __sfr  __at (PR4_ADDR)                     PR4;
extern __sfr  __at (T4CON_ADDR)                   T4CON;
extern __sfr  __at (TMR6_ADDR)                    TMR6;
extern __sfr  __at (PR6_ADDR)                     PR6;
extern __sfr  __at (T6CON_ADDR)                   T6CON;

//-----Bank15------------------
extern __sfr  __at (LCDCON_ADDR)                  LCDCON;
extern __sfr  __at (LCDPS_ADDR)                   LCDPS;
extern __sfr  __at (LCDREF_ADDR)                  LCDREF;
extern __sfr  __at (LCDCST_ADDR)                  LCDCST;
extern __sfr  __at (LCDRL_ADDR)                   LCDRL;
extern __sfr  __at (LCDSE0_ADDR)                  LCDSE0;
extern __sfr  __at (LCDSE1_ADDR)                  LCDSE1;
extern __sfr  __at (LCDSE2_ADDR)                  LCDSE2;
extern __sfr  __at (LCDDATA0_ADDR)                LCDDATA0;
extern __sfr  __at (LCDDATA1_ADDR)                LCDDATA1;
extern __sfr  __at (LCDDATA2_ADDR)                LCDDATA2;
extern __sfr  __at (LCDDATA3_ADDR)                LCDDATA3;
extern __sfr  __at (LCDDATA4_ADDR)                LCDDATA4;
extern __sfr  __at (LCDDATA5_ADDR)                LCDDATA5;
extern __sfr  __at (LCDDATA6_ADDR)                LCDDATA6;
extern __sfr  __at (LCDDATA7_ADDR)                LCDDATA7;
extern __sfr  __at (LCDDATA8_ADDR)                LCDDATA8;
extern __sfr  __at (LCDDATA9_ADDR)                LCDDATA9;
extern __sfr  __at (LCDDATA10_ADDR)               LCDDATA10;
extern __sfr  __at (LCDDATA11_ADDR)               LCDDATA11;

//-----Bank31------------------
extern __sfr  __at (STATUS_SHAD_ADDR)             STATUS_SHAD;
extern __sfr  __at (WREG_SHAD_ADDR)               WREG_SHAD;
extern __sfr  __at (BSR_SHAD_ADDR)                BSR_SHAD;
extern __sfr  __at (PCLATH_SHAD_ADDR)             PCLATH_SHAD;
extern __sfr  __at (FSR0L_SHAD_ADDR)              FSR0L_SHAD;
extern __sfr  __at (FSR0H_SHAD_ADDR)              FSR0H_SHAD;
extern __sfr  __at (FSR1L_SHAD_ADDR)              FSR1L_SHAD;
extern __sfr  __at (FSR1H_SHAD_ADDR)              FSR1H_SHAD;
extern __sfr  __at (STKPTR_ADDR)                  STKPTR;
extern __sfr  __at (TOSL_ADDR)                    TOSL;
extern __sfr  __at (TOSH_ADDR)                    TOSH;

//----- STATUS Bits -----------------------------------------------------


//----- BSR Bits -----------------------------------------------------



//----- INTCON Bits -----------------------------------------------------



//----- PORTA Bits -----------------------------------------------------


//----- PORTB Bits -----------------------------------------------------


//----- PORTC Bits -----------------------------------------------------


//----- PORTD Bits -----------------------------------------------------


//----- PORTE Bits -----------------------------------------------------


//----- PIR1 Bits -----------------------------------------------------


//----- PIR2 Bits -----------------------------------------------------


//----- PIR3 Bits -----------------------------------------------------


//----- T1CON Bits -----------------------------------------------------



//----- T1GCON Bits -----------------------------------------------------



//----- T2CON Bits -----------------------------------------------------



//----- CPSCON0 Bits -----------------------------------------------------



//----- CPSCON1 Bits -----------------------------------------------------



//----- TRISA Bits -----------------------------------------------------


//----- TRISB Bits -----------------------------------------------------


//----- TRISC Bits -----------------------------------------------------


//----- TRISD Bits -----------------------------------------------------


//----- TRISE Bits -----------------------------------------------------


//----- PIE1 Bits -----------------------------------------------------


//----- PIE2 Bits -----------------------------------------------------


//----- PIE3 Bits -----------------------------------------------------


//----- OPTION_REG Bits -----------------------------------------------------



//----- PCON Bits -----------------------------------------------------


//----- WDTCON Bits -----------------------------------------------------



//----- OSCTUNE Bits -----------------------------------------------------



//----- OSCCON Bits -----------------------------------------------------



//----- OSCSTAT Bits -----------------------------------------------------


//----- ADCON0 Bits -----------------------------------------------------





//----- ADCON1 Bits -----------------------------------------------------



//----- LATA Bits -----------------------------------------------------


//----- LATB Bits -----------------------------------------------------


//----- LATC Bits -----------------------------------------------------


//----- LATD Bits -----------------------------------------------------



//----- LATE Bits -----------------------------------------------------


//----- CM1CON0 Bits -----------------------------------------------------


//----- CM1CON1 Bits -----------------------------------------------------



//----- CM2CON0 Bits -----------------------------------------------------


//----- CM2CON1 Bits -----------------------------------------------------



//----- CMOUT Bits -----------------------------------------------------


//----- BORCON Bits -----------------------------------------------------


//----- FVRCON Bits -----------------------------------------------------



//----- DACCON0 Bits -----------------------------------------------------



//----- DACCON1 Bits -----------------------------------------------------



//----- SRCON0 Bits -----------------------------------------------------



//----- SRCON1 Bits -----------------------------------------------------


//----- APFCON Bits -----------------------------------------------------


//----- ANSELA Bits -----------------------------------------------------



//----- ANSELB Bits -----------------------------------------------------



//----- ANSELD Bits -----------------------------------------------------



//----- ANSELE Bits -----------------------------------------------------



//----- EECON1 Bits -----------------------------------------------------


//----- RCSTA Bits -----------------------------------------------------


//----- TXSTA Bits -----------------------------------------------------


//----- BAUDCON Bits -----------------------------------------------------


//----- WPUB Bits -----------------------------------------------------



//----- WPUE Bits -----------------------------------------------------


//----- SSPSTAT Bits -----------------------------------------------------


//----- SSPCON Bits -----------------------------------------------------


//----- SSPCON1 Bits -----------------------------------------------------


//----- SSPCON2 Bits -----------------------------------------------------


//----- SSPCON3 Bits -----------------------------------------------------


//----- CCP1CON Bits -----------------------------------------------------



//----- PWM1CON Bits -----------------------------------------------------


//----- CCP1AS Bits -----------------------------------------------------


//----- ECCP1AS Bits -----------------------------------------------------


//----- PSTR1CON Bits -----------------------------------------------------


//----- CCP2CON Bits -----------------------------------------------------



//----- PWM2CON Bits -----------------------------------------------------


//----- CCP2AS Bits -----------------------------------------------------


//----- ECCP2AS Bits -----------------------------------------------------


//----- PSTR2CON Bits -----------------------------------------------------


//----- CCPTMRS0 Bits -----------------------------------------------------



//----- CCPTMRS1 Bits -----------------------------------------------------



//----- CCP3CON Bits -----------------------------------------------------


//----- PWM3CON Bits -----------------------------------------------------


//----- CCP3AS Bits -----------------------------------------------------


//----- ECCP3AS Bits -----------------------------------------------------


//----- PSTR3CON Bits -----------------------------------------------------


//----- CCP4CON Bits -----------------------------------------------------


//----- CCP5CON Bits -----------------------------------------------------


//----- IOCBP Bits -----------------------------------------------------



//----- IOCBN Bits -----------------------------------------------------



//----- IOCBF Bits -----------------------------------------------------



//----- T4CON Bits -----------------------------------------------------



//----- T6CON Bits -----------------------------------------------------



//----- LCDCON Bits -----------------------------------------------------



//----- LCDPS Bits -----------------------------------------------------



//----- LCDREF Bits -----------------------------------------------------


//----- LCDCST Bits -----------------------------------------------------



//----- LCDRL Bits -----------------------------------------------------



//----- LCDSE0 Bits -----------------------------------------------------


//----- LCDSE1 Bits -----------------------------------------------------


//----- LCDSE2 Bits -----------------------------------------------------


//----- LCDDATA0 Bits -----------------------------------------------------


//----- LCDDATA1 Bits -----------------------------------------------------


//----- LCDDATA2 Bits -----------------------------------------------------


//----- LCDDATA3 Bits -----------------------------------------------------


//----- LCDDATA4 Bits -----------------------------------------------------


//----- LCDDATA5 Bits -----------------------------------------------------


//----- LCDDATA6 Bits -----------------------------------------------------


//----- LCDDATA7 Bits -----------------------------------------------------


//----- LCDDATA8 Bits -----------------------------------------------------


//----- LCDDATA9 Bits -----------------------------------------------------


//----- LCDDATA10 Bits -----------------------------------------------------


//----- LCDDATA11 Bits -----------------------------------------------------


//----- STATUS_SHAD Bits -----------------------------------------------------



//==========================================================================
//
//       RAM Definitions
//
//==========================================================================
//        __MAXRAM  H'0FFF'
//        __BADRAM  H'0014'
//        __BADRAM  H'001D'
//        __BADRAM  H'0094'
//        __BADRAM  H'009F'
//        __BADRAM  H'011C'
//        __BADRAM  H'011E'-H'011F'
//        __BADRAM  H'018E'
//        __BADRAM  H'0197'-H'0198'
//        __BADRAM  H'020C'
//        __BADRAM  H'020E'-H'020F'
//        __BADRAM  H'0218'-H'021F'
//        __BADRAM  H'028C'-H'0290'
//        __BADRAM  H'0297'
//        __BADRAM  H'030C'-H'0310'
//        __BADRAM  H'0317'
//        __BADRAM  H'031B'
//        __BADRAM  H'031F'
//        __BADRAM  H'0330'-H'036F'
//        __BADRAM  H'038C'-H'0393'
//        __BADRAM  H'0397'-H'039F'
//        __BADRAM  H'03A0'-H'03EF'
//        __BADRAM  H'040C'-H'0414'
//        __BADRAM  H'0418'-H'041B'
//        __BADRAM  H'041F'
//        __BADRAM  H'0420'-H'046F'
//        __BADRAM  H'048C'-H'049F'
//        __BADRAM  H'04A0'-H'04EF'
//        __BADRAM  H'050C'-H'051F'
//        __BADRAM  H'0520'-H'056F'
//        __BADRAM  H'058C'-H'059F'
//        __BADRAM  H'05A0'-H'05EF'
//        __BADRAM  H'060C'-H'061F'
//        __BADRAM  H'0620'-H'066F'
//        __BADRAM  H'068C'-H'069F'
//        __BADRAM  H'06A0'-H'06EF'
//        __BADRAM  H'070C'-H'071F'
//        __BADRAM  H'0720'-H'076F'
//        __BADRAM  H'078C'-H'0790'
//        __BADRAM  H'0796'-H'0797'
//        __BADRAM  H'079B'-H'079F'
//        __BADRAM  H'07AC'-H'07EF'
//        __BADRAM  H'080C'-H'081F'
//        __BADRAM  H'0820'-H'086F'
//        __BADRAM  H'088C'-H'089F'
//        __BADRAM  H'08A0'-H'08EF'
//        __BADRAM  H'090C'-H'091F'
//        __BADRAM  H'0920'-H'096F'
//        __BADRAM  H'098C'-H'099F'
//        __BADRAM  H'09A0'-H'09EF'
//        __BADRAM  H'0A0C'-H'0A1F'
//        __BADRAM  H'0A20'-H'0A6F'
//        __BADRAM  H'0A8C'-H'0A9F'
//        __BADRAM  H'0AA0'-H'0AEF'
//        __BADRAM  H'0B0C'-H'0B1F'
//        __BADRAM  H'0B20'-H'0B6F'
//        __BADRAM  H'0B8C'-H'0B9F'
//        __BADRAM  H'0BA0'-H'0BEF'
//        __BADRAM  H'0C0C'-H'0C1F'
//        __BADRAM  H'0C20'-H'0C6F'
//        __BADRAM  H'0C8C'-H'0C9F'
//        __BADRAM  H'0CA0'-H'0CEF'
//        __BADRAM  H'0D0C'-H'0D1F'
//        __BADRAM  H'0D20'-H'0D6F'
//        __BADRAM  H'0D8C'-H'0D9F'
//        __BADRAM  H'0DA0'-H'0DEF'
//        __BADRAM  H'0E0C'-H'0E1F'
//        __BADRAM  H'0E20'-H'0E6F'
//        __BADRAM  H'0E8C'-H'0E9F'
//        __BADRAM  H'0EA0'-H'0EEF'
//        __BADRAM  H'0F0C'-H'0F1F'
//        __BADRAM  H'0F20'-H'0F6F'
//        __BADRAM  H'0F8C'-H'0FE3'
//        __BADRAM  H'0FEC'

//==========================================================================
//
//       Configuration Bits
//
//   NAME            Address
//   CONFIG1           8007h
//   CONFIG2           8008h
//
//==========================================================================

// The following is an assignment of address values for all of the
// configuration registers for the purpose of table reads
#define _CONFIG1             0x8007
#define _CONFIG2             0x8008

//----- CONFIG1 Options --------------------------------------------------
#define _FOSC_LP             0xFFF8    // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins
#define _FOSC_XT             0xFFF9    // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins
#define _FOSC_HS             0xFFFA    // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins
#define _FOSC_EXTRC          0xFFFB    // EXTRC oscillator: External RC circuit connected to CLKIN pin
#define _FOSC_INTOSC         0xFFFC    // INTOSC oscillator: I/O function on CLKIN pin
#define _FOSC_ECL            0xFFFD    // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pin
#define _FOSC_ECM            0xFFFE    // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pin
#define _FOSC_ECH            0xFFFF    // ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin

#define _WDTE_OFF            0xFFE7    // WDT disabled
#define _WDTE_SWDTEN         0xFFEF    // WDT controlled by the SWDTEN bit in the WDTCON register
#define _WDTE_NSLEEP         0xFFF7    // WDT enabled while running and disabled in Sleep
#define _WDTE_ON             0xFFFF    // WDT enabled

#define _PWRTE_ON            0xFFDF    // PWRT enabled
#define _PWRTE_OFF           0xFFFF    // PWRT disabled

#define _MCLRE_OFF           0xFFBF    // MCLR/VPP pin function is digital input
#define _MCLRE_ON            0xFFFF    // MCLR/VPP pin function is MCLR

#define _CP_ON               0xFF7F    // Program memory code protection is enabled
#define _CP_OFF              0xFFFF    // Program memory code protection is disabled

#define _CPD_ON              0xFEFF    // Data memory code protection is enabled
#define _CPD_OFF             0xFFFF    // Data memory code protection is disabled

#define _BOREN_OFF           0xF9FF    // Brown-out Reset disabled
#define _BOREN_SBODEN        0xFBFF    // Brown-out Reset controlled by the SBOREN bit in the BORCON register
#define _BOREN_NSLEEP        0xFDFF    // Brown-out Reset enabled while running and disabled in Sleep
#define _BOREN_ON            0xFFFF    // Brown-out Reset enabled

#define _CLKOUTEN_ON         0xF7FF    // CLKOUT function is enabled on the CLKOUT pin
#define _CLKOUTEN_OFF        0xFFFF    // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin

#define _IESO_OFF            0xEFFF    // Internal/External Switchover mode is disabled
#define _IESO_ON             0xFFFF    // Internal/External Switchover mode is enabled

#define _FCMEN_OFF           0xDFFF    // Fail-Safe Clock Monitor is disabled
#define _FCMEN_ON            0xFFFF    // Fail-Safe Clock Monitor is enabled

//----- CONFIG2 Options --------------------------------------------------
#define _WRT_ALL             0xFFFC    // 000h to 1FFFh write protected, no addresses may be modified by EECON control
#define _WRT_HALF            0xFFFD    // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control
#define _WRT_BOOT            0xFFFE    // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control
#define _WRT_OFF             0xFFFF    // Write protection off

#define _VCAPEN_RA0          0xFFCF    // VCAP functionality is enabled on RA0
#define _VCAPEN_RA5          0xFFDF    // VCAP functionality is enabled on RA5
#define _VCAPEN_RA6          0xFFEF    // VCAP functionality is enabled on RA6
#define _VCAPEN_OFF          0xFFFF    // All VCAP pin functionality is disabled

#define _PLLEN_OFF           0xFEFF    // 4x PLL disabled
#define _PLLEN_ON            0xFFFF    // 4x PLL enabled

#define _STVREN_OFF          0xFDFF    // Stack Overflow or Underflow will not cause a Reset
#define _STVREN_ON           0xFFFF    // Stack Overflow or Underflow will cause a Reset

#define _BORV_HI             0xFBFF    // Brown-out Reset Voltage (VBOR) set to 2.5 V
#define _BORV_25             0xFBFF    // Brown-out Reset Voltage (VBOR) set to 2.5 V
#define _BORV_LO             0xFFFF    // Brown-out Reset Voltage (VBOR) set to 1.9 V
#define _BORV_19             0xFFFF    // Brown-out Reset Voltage (VBOR) set to 1.9 V

#define _LVP_OFF             0xDFFF    // High-voltage on MCLR/VPP must be used for programming
#define _LVP_ON              0xFFFF    // Low-voltage programming enabled

//----- DEVID Equates --------------------------------------------------
#define _DEVID1              0x8006

//----- IDLOC Equates --------------------------------------------------
#define _IDLOC0              0x8000
#define _IDLOC1              0x8001
#define _IDLOC2              0x8002
#define _IDLOC3              0x8003

//         LIST

// ----- ADCON0 bits --------------------
typedef union {
  struct {
    unsigned char ADON:1;
    unsigned char GO_NOT_DONE:1;
    unsigned char CHS0:1;
    unsigned char CHS1:1;
    unsigned char CHS2:1;
    unsigned char CHS3:1;
    unsigned char CHS4:1;
    unsigned char :1;
  };
  struct {
    unsigned char :1;
    unsigned char ADGO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
  struct {
    unsigned char :1;
    unsigned char GO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
  struct {
    unsigned char :1;
    unsigned char NOT_DONE:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __ADCON0bits_t;
extern volatile __ADCON0bits_t __at(ADCON0_ADDR) ADCON0bits;

// ----- ADCON1 bits --------------------
typedef union {
  struct {
    unsigned char ADPREF0:1;
    unsigned char ADPREF1:1;
    unsigned char ADNREF:1;
    unsigned char :1;
    unsigned char ADCS0:1;
    unsigned char ADCS1:1;
    unsigned char ADCS2:1;
    unsigned char ADFM:1;
  };
} __ADCON1bits_t;
extern volatile __ADCON1bits_t __at(ADCON1_ADDR) ADCON1bits;

// ----- ANSELA bits --------------------
typedef union {
  struct {
    unsigned char ANSA0:1;
    unsigned char ANSA1:1;
    unsigned char ANSA2:1;
    unsigned char ANSA3:1;
    unsigned char ANSA4:1;
    unsigned char ANSA5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __ANSELAbits_t;
extern volatile __ANSELAbits_t __at(ANSELA_ADDR) ANSELAbits;

// ----- ANSELB bits --------------------
typedef union {
  struct {
    unsigned char ANSB0:1;
    unsigned char ANSB1:1;
    unsigned char ANSB2:1;
    unsigned char ANSB3:1;
    unsigned char ANSB4:1;
    unsigned char ANSB5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __ANSELBbits_t;
extern volatile __ANSELBbits_t __at(ANSELB_ADDR) ANSELBbits;

// ----- ANSELD bits --------------------
typedef union {
  struct {
    unsigned char ANSD0:1;
    unsigned char ANSD1:1;
    unsigned char ANSD2:1;
    unsigned char ANSD3:1;
    unsigned char ANSD4:1;
    unsigned char ANSD5:1;
    unsigned char ANSD6:1;
    unsigned char ANSD7:1;
  };
} __ANSELDbits_t;
extern volatile __ANSELDbits_t __at(ANSELD_ADDR) ANSELDbits;

// ----- ANSELE bits --------------------
typedef union {
  struct {
    unsigned char ANSE0:1;
    unsigned char ANSE1:1;
    unsigned char ANSE2:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __ANSELEbits_t;
extern volatile __ANSELEbits_t __at(ANSELE_ADDR) ANSELEbits;

// ----- APFCON bits --------------------
typedef union {
  struct {
    unsigned char CCP2SEL:1;
    unsigned char SSSEL:1;
    unsigned char C2OUTSEL:1;
    unsigned char SRNQSEL:1;
    unsigned char P2BSEL:1;
    unsigned char T1GSEL:1;
    unsigned char CCP3SEL:1;
    unsigned char :1;
  };
} __APFCONbits_t;
extern volatile __APFCONbits_t __at(APFCON_ADDR) APFCONbits;

// ----- BAUDCON bits --------------------
typedef union {
  struct {
    unsigned char ABDEN:1;
    unsigned char WUE:1;
    unsigned char :1;
    unsigned char BRG16:1;
    unsigned char SCKP:1;
    unsigned char :1;
    unsigned char RCIDL:1;
    unsigned char ABDOVF:1;
  };
} __BAUDCONbits_t;
extern volatile __BAUDCONbits_t __at(BAUDCON_ADDR) BAUDCONbits;

// ----- BORCON bits --------------------
typedef union {
  struct {
    unsigned char BORRDY:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char SBOREN:1;
  };
} __BORCONbits_t;
extern volatile __BORCONbits_t __at(BORCON_ADDR) BORCONbits;

// ----- BSR bits --------------------
typedef union {
  struct {
    unsigned char BSR0:1;
    unsigned char BSR1:1;
    unsigned char BSR2:1;
    unsigned char BSR3:1;
    unsigned char BSR4:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __BSRbits_t;
extern volatile __BSRbits_t __at(BSR_ADDR) BSRbits;

// ----- CCP1AS bits --------------------
typedef union {
  struct {
    unsigned char PSS1BD0:1;
    unsigned char PSS1BD1:1;
    unsigned char PSS1AC0:1;
    unsigned char PSS1AC1:1;
    unsigned char CCP1AS0:1;
    unsigned char CCP1AS1:1;
    unsigned char CCP1AS2:1;
    unsigned char CCP1ASE:1;
  };
} __CCP1ASbits_t;
extern volatile __CCP1ASbits_t __at(CCP1AS_ADDR) CCP1ASbits;

// ----- CCP1CON bits --------------------
typedef union {
  struct {
    unsigned char CCP1M0:1;
    unsigned char CCP1M1:1;
    unsigned char CCP1M2:1;
    unsigned char CCP1M3:1;
    unsigned char DC1B0:1;
    unsigned char DC1B1:1;
    unsigned char P1M0:1;
    unsigned char P1M1:1;
  };
} __CCP1CONbits_t;
extern volatile __CCP1CONbits_t __at(CCP1CON_ADDR) CCP1CONbits;

// ----- CCP2AS bits --------------------
typedef union {
  struct {
    unsigned char PSS2BD0:1;
    unsigned char PSS2BD1:1;
    unsigned char PSS2AC0:1;
    unsigned char PSS2AC1:1;
    unsigned char CCP2AS0:1;
    unsigned char CCP2AS1:1;
    unsigned char CCP2AS2:1;
    unsigned char CCP2ASE:1;
  };
} __CCP2ASbits_t;
extern volatile __CCP2ASbits_t __at(CCP2AS_ADDR) CCP2ASbits;

// ----- CCP2CON bits --------------------
typedef union {
  struct {
    unsigned char CCP2M0:1;
    unsigned char CCP2M1:1;
    unsigned char CCP2M2:1;
    unsigned char CCP2M3:1;
    unsigned char DC2B0:1;
    unsigned char DC2B1:1;
    unsigned char P2M0:1;
    unsigned char P2M1:1;
  };
} __CCP2CONbits_t;
extern volatile __CCP2CONbits_t __at(CCP2CON_ADDR) CCP2CONbits;

// ----- CCP3AS bits --------------------
typedef union {
  struct {
    unsigned char PSS3BD0:1;
    unsigned char PSS3BD1:1;
    unsigned char PSS3AC0:1;
    unsigned char PSS3AC1:1;
    unsigned char CCP3AS0:1;
    unsigned char CCP3AS1:1;
    unsigned char CCP3AS2:1;
    unsigned char CCP3ASE:1;
  };
} __CCP3ASbits_t;
extern volatile __CCP3ASbits_t __at(CCP3AS_ADDR) CCP3ASbits;

// ----- CCP3CON bits --------------------
typedef union {
  struct {
    unsigned char CCP3M0:1;
    unsigned char CCP3M1:1;
    unsigned char CCP3M2:1;
    unsigned char CCP3M3:1;
    unsigned char DC3B0:1;
    unsigned char DC3B1:1;
    unsigned char P3M0:1;
    unsigned char P3M1:1;
  };
} __CCP3CONbits_t;
extern volatile __CCP3CONbits_t __at(CCP3CON_ADDR) CCP3CONbits;

// ----- CCP4CON bits --------------------
typedef union {
  struct {
    unsigned char CCP4M0:1;
    unsigned char CCP4M1:1;
    unsigned char CCP4M2:1;
    unsigned char CCP4M3:1;
    unsigned char DC4B0:1;
    unsigned char DC4B1:1;
    unsigned char :1;
    unsigned char :1;
  };
} __CCP4CONbits_t;
extern volatile __CCP4CONbits_t __at(CCP4CON_ADDR) CCP4CONbits;

// ----- CCP5CON bits --------------------
typedef union {
  struct {
    unsigned char CCP5M0:1;
    unsigned char CCP5M1:1;
    unsigned char CCP5M2:1;
    unsigned char CCP5M3:1;
    unsigned char DC5B0:1;
    unsigned char DC5B1:1;
    unsigned char :1;
    unsigned char :1;
  };
} __CCP5CONbits_t;
extern volatile __CCP5CONbits_t __at(CCP5CON_ADDR) CCP5CONbits;

// ----- CCPTMRS0 bits --------------------
typedef union {
  struct {
    unsigned char C1TSEL0:1;
    unsigned char C1TSEL1:1;
    unsigned char C2TSEL0:1;
    unsigned char C2TSEL1:1;
    unsigned char C3TSEL0:1;
    unsigned char C3TSEL1:1;
    unsigned char C4TSEL0:1;
    unsigned char C4TSEL1:1;
  };
} __CCPTMRS0bits_t;
extern volatile __CCPTMRS0bits_t __at(CCPTMRS0_ADDR) CCPTMRS0bits;

// ----- CCPTMRS1 bits --------------------
typedef union {
  struct {
    unsigned char C5TSEL0:1;
    unsigned char C5TSEL1:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __CCPTMRS1bits_t;
extern volatile __CCPTMRS1bits_t __at(CCPTMRS1_ADDR) CCPTMRS1bits;

// ----- CM1CON0 bits --------------------
typedef union {
  struct {
    unsigned char C1SYNC:1;
    unsigned char C1HYS:1;
    unsigned char C1SP:1;
    unsigned char :1;
    unsigned char C1POL:1;
    unsigned char C1OE:1;
    unsigned char C1OUT:1;
    unsigned char C1ON:1;
  };
} __CM1CON0bits_t;
extern volatile __CM1CON0bits_t __at(CM1CON0_ADDR) CM1CON0bits;

// ----- CM1CON1 bits --------------------
typedef union {
  struct {
    unsigned char C1NCH0:1;
    unsigned char C1NCH1:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char C1PCH0:1;
    unsigned char C1PCH1:1;
    unsigned char C1INTN:1;
    unsigned char C1INTP:1;
  };
} __CM1CON1bits_t;
extern volatile __CM1CON1bits_t __at(CM1CON1_ADDR) CM1CON1bits;

// ----- CM2CON0 bits --------------------
typedef union {
  struct {
    unsigned char C2SYNC:1;
    unsigned char C2HYS:1;
    unsigned char C2SP:1;
    unsigned char :1;
    unsigned char C2POL:1;
    unsigned char C2OE:1;
    unsigned char C2OUT:1;
    unsigned char C2ON:1;
  };
} __CM2CON0bits_t;
extern volatile __CM2CON0bits_t __at(CM2CON0_ADDR) CM2CON0bits;

// ----- CM2CON1 bits --------------------
typedef union {
  struct {
    unsigned char C2NCH0:1;
    unsigned char C2NCH1:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char C2PCH0:1;
    unsigned char C2PCH1:1;
    unsigned char C2INTN:1;
    unsigned char C2INTP:1;
  };
} __CM2CON1bits_t;
extern volatile __CM2CON1bits_t __at(CM2CON1_ADDR) CM2CON1bits;

// ----- CMOUT bits --------------------
typedef union {
  struct {
    unsigned char MC1OUT:1;
    unsigned char MC2OUT:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __CMOUTbits_t;
extern volatile __CMOUTbits_t __at(CMOUT_ADDR) CMOUTbits;

// ----- CPSCON0 bits --------------------
typedef union {
  struct {
    unsigned char T0XCS:1;
    unsigned char CPSOUT:1;
    unsigned char CPSRNG0:1;
    unsigned char CPSRNG1:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char CPSON:1;
  };
} __CPSCON0bits_t;
extern volatile __CPSCON0bits_t __at(CPSCON0_ADDR) CPSCON0bits;

// ----- CPSCON1 bits --------------------
typedef union {
  struct {
    unsigned char CPSCH0:1;
    unsigned char CPSCH1:1;
    unsigned char CPSCH2:1;
    unsigned char CPSCH3:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __CPSCON1bits_t;
extern volatile __CPSCON1bits_t __at(CPSCON1_ADDR) CPSCON1bits;

// ----- DACCON0 bits --------------------
typedef union {
  struct {
    unsigned char DACNSS:1;
    unsigned char :1;
    unsigned char DACPSS0:1;
    unsigned char DACPSS1:1;
    unsigned char :1;
    unsigned char DACOE:1;
    unsigned char DACLPS:1;
    unsigned char DACEN:1;
  };
} __DACCON0bits_t;
extern volatile __DACCON0bits_t __at(DACCON0_ADDR) DACCON0bits;

// ----- DACCON1 bits --------------------
typedef union {
  struct {
    unsigned char DACR0:1;
    unsigned char DACR1:1;
    unsigned char DACR2:1;
    unsigned char DACR3:1;
    unsigned char DACR4:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __DACCON1bits_t;
extern volatile __DACCON1bits_t __at(DACCON1_ADDR) DACCON1bits;

// ----- ECCP1AS bits --------------------
typedef union {
  struct {
    unsigned char PSS1BD0:1;
    unsigned char PSS1BD1:1;
    unsigned char PSS1AC0:1;
    unsigned char PSS1AC1:1;
    unsigned char CCP1AS0:1;
    unsigned char CCP1AS1:1;
    unsigned char CCP1AS2:1;
    unsigned char CCP1ASE:1;
  };
} __ECCP1ASbits_t;
extern volatile __ECCP1ASbits_t __at(ECCP1AS_ADDR) ECCP1ASbits;

// ----- ECCP2AS bits --------------------
typedef union {
  struct {
    unsigned char PSS2BD0:1;
    unsigned char PSS2BD1:1;
    unsigned char PSS2AC0:1;
    unsigned char PSS2AC1:1;
    unsigned char CCP2AS0:1;
    unsigned char CCP2AS1:1;
    unsigned char CCP2AS2:1;
    unsigned char CCP2ASE:1;
  };
} __ECCP2ASbits_t;
extern volatile __ECCP2ASbits_t __at(ECCP2AS_ADDR) ECCP2ASbits;

// ----- ECCP3AS bits --------------------
typedef union {
  struct {
    unsigned char PSS3BD0:1;
    unsigned char PSS3BD1:1;
    unsigned char PSS3AC0:1;
    unsigned char PSS3AC1:1;
    unsigned char CCP3AS0:1;
    unsigned char CCP3AS1:1;
    unsigned char CCP3AS2:1;
    unsigned char CCP3ASE:1;
  };
} __ECCP3ASbits_t;
extern volatile __ECCP3ASbits_t __at(ECCP3AS_ADDR) ECCP3ASbits;

// ----- EECON1 bits --------------------
typedef union {
  struct {
    unsigned char RD:1;
    unsigned char WR:1;
    unsigned char WREN:1;
    unsigned char WRERR:1;
    unsigned char FREE:1;
    unsigned char LWLO:1;
    unsigned char CFGS:1;
    unsigned char EEPGD:1;
  };
} __EECON1bits_t;
extern volatile __EECON1bits_t __at(EECON1_ADDR) EECON1bits;

// ----- FVRCON bits --------------------
typedef union {
  struct {
    unsigned char ADFVR0:1;
    unsigned char ADFVR1:1;
    unsigned char CDAFVR0:1;
    unsigned char CDAFVR1:1;
    unsigned char TSRNG:1;
    unsigned char TSEN:1;
    unsigned char FVRRDY:1;
    unsigned char FVREN:1;
  };
} __FVRCONbits_t;
extern volatile __FVRCONbits_t __at(FVRCON_ADDR) FVRCONbits;

// ----- INTCON bits --------------------
typedef union {
  struct {
    unsigned char IOCIF:1;
    unsigned char INTF:1;
    unsigned char TMR0IF:1;
    unsigned char IOCIE:1;
    unsigned char INTE:1;
    unsigned char TMR0IE:1;
    unsigned char PEIE:1;
    unsigned char GIE:1;
  };
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char T0IF:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char T0IE:1;
    unsigned char :1;
    unsigned char :1;
  };
} __INTCONbits_t;
extern volatile __INTCONbits_t __at(INTCON_ADDR) INTCONbits;

// ----- IOCBF bits --------------------
typedef union {
  struct {
    unsigned char IOCBF0:1;
    unsigned char IOCBF1:1;
    unsigned char IOCBF2:1;
    unsigned char IOCBF3:1;
    unsigned char IOCBF4:1;
    unsigned char IOCBF5:1;
    unsigned char IOCBF6:1;
    unsigned char IOCBF7:1;
  };
} __IOCBFbits_t;
extern volatile __IOCBFbits_t __at(IOCBF_ADDR) IOCBFbits;

// ----- IOCBN bits --------------------
typedef union {
  struct {
    unsigned char IOCBN0:1;
    unsigned char IOCBN1:1;
    unsigned char IOCBN2:1;
    unsigned char IOCBN3:1;
    unsigned char IOCBN4:1;
    unsigned char IOCBN5:1;
    unsigned char IOCBN6:1;
    unsigned char IOCBN7:1;
  };
} __IOCBNbits_t;
extern volatile __IOCBNbits_t __at(IOCBN_ADDR) IOCBNbits;

// ----- IOCBP bits --------------------
typedef union {
  struct {
    unsigned char IOCBP0:1;
    unsigned char IOCBP1:1;
    unsigned char IOCBP2:1;
    unsigned char IOCBP3:1;
    unsigned char IOCBP4:1;
    unsigned char IOCBP5:1;
    unsigned char IOCBP6:1;
    unsigned char IOCBP7:1;
  };
} __IOCBPbits_t;
extern volatile __IOCBPbits_t __at(IOCBP_ADDR) IOCBPbits;

// ----- LATA bits --------------------
typedef union {
  struct {
    unsigned char LATA0:1;
    unsigned char LATA1:1;
    unsigned char LATA2:1;
    unsigned char LATA3:1;
    unsigned char LATA4:1;
    unsigned char LATA5:1;
    unsigned char LATA6:1;
    unsigned char LATA7:1;
  };
} __LATAbits_t;
extern volatile __LATAbits_t __at(LATA_ADDR) LATAbits;

// ----- LATB bits --------------------
typedef union {
  struct {
    unsigned char LATB0:1;
    unsigned char LATB1:1;
    unsigned char LATB2:1;
    unsigned char LATB3:1;
    unsigned char LATB4:1;
    unsigned char LATB5:1;
    unsigned char LATB6:1;
    unsigned char LATB7:1;
  };
} __LATBbits_t;
extern volatile __LATBbits_t __at(LATB_ADDR) LATBbits;

// ----- LATC bits --------------------
typedef union {
  struct {
    unsigned char LATC0:1;
    unsigned char LATC1:1;
    unsigned char LATC2:1;
    unsigned char LATC3:1;
    unsigned char LATC4:1;
    unsigned char LATC5:1;
    unsigned char LATC6:1;
    unsigned char LATC7:1;
  };
} __LATCbits_t;
extern volatile __LATCbits_t __at(LATC_ADDR) LATCbits;

// ----- LATD bits --------------------
typedef union {
  struct {
    unsigned char LATD0:1;
    unsigned char LATD1:1;
    unsigned char LATD2:1;
    unsigned char LATD3:1;
    unsigned char LATD4:1;
    unsigned char LATD5:1;
    unsigned char LATD6:1;
    unsigned char LATD7:1;
  };
} __LATDbits_t;
extern volatile __LATDbits_t __at(LATD_ADDR) LATDbits;

// ----- LATE bits --------------------
typedef union {
  struct {
    unsigned char LATE0:1;
    unsigned char LATE1:1;
    unsigned char LATE2:1;
    unsigned char LATE3:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __LATEbits_t;
extern volatile __LATEbits_t __at(LATE_ADDR) LATEbits;

// ----- LCDCON bits --------------------
typedef union {
  struct {
    unsigned char LMUX0:1;
    unsigned char LMUX1:1;
    unsigned char CS0:1;
    unsigned char CS1:1;
    unsigned char :1;
    unsigned char WERR:1;
    unsigned char SLPEN:1;
    unsigned char LCDEN:1;
  };
} __LCDCONbits_t;
extern volatile __LCDCONbits_t __at(LCDCON_ADDR) LCDCONbits;

// ----- LCDCST bits --------------------
typedef union {
  struct {
    unsigned char LCDCST0:1;
    unsigned char LCDCST1:1;
    unsigned char LCDCST2:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __LCDCSTbits_t;
extern volatile __LCDCSTbits_t __at(LCDCST_ADDR) LCDCSTbits;

// ----- LCDDATA0 bits --------------------
typedef union {
  struct {
    unsigned char SEG0COM0:1;
    unsigned char SEG1COM0:1;
    unsigned char SEG2COM0:1;
    unsigned char SEG3COM0:1;
    unsigned char SEG4COM0:1;
    unsigned char SEG5COM0:1;
    unsigned char SEG6COM0:1;
    unsigned char SEG7COM0:1;
  };
} __LCDDATA0bits_t;
extern volatile __LCDDATA0bits_t __at(LCDDATA0_ADDR) LCDDATA0bits;

// ----- LCDDATA1 bits --------------------
typedef union {
  struct {
    unsigned char SEG8COM0:1;
    unsigned char SEG9COM0:1;
    unsigned char SEG10COM0:1;
    unsigned char SEG11COM0:1;
    unsigned char SEG12COM0:1;
    unsigned char SEG13COM0:1;
    unsigned char SEG14COM0:1;
    unsigned char SEG15COM0:1;
  };
} __LCDDATA1bits_t;
extern volatile __LCDDATA1bits_t __at(LCDDATA1_ADDR) LCDDATA1bits;

// ----- LCDDATA10 bits --------------------
typedef union {
  struct {
    unsigned char SEG8COM3:1;
    unsigned char SEG9COM3:1;
    unsigned char SEG10COM3:1;
    unsigned char SEG11COM3:1;
    unsigned char SEG12COM3:1;
    unsigned char SEG13COM3:1;
    unsigned char SEG14COM3:1;
    unsigned char SEG15COM3:1;
  };
} __LCDDATA10bits_t;
extern volatile __LCDDATA10bits_t __at(LCDDATA10_ADDR) LCDDATA10bits;

// ----- LCDDATA11 bits --------------------
typedef union {
  struct {
    unsigned char SEG16COM3:1;
    unsigned char SEG17COM3:1;
    unsigned char SEG18COM3:1;
    unsigned char SEG19COM3:1;
    unsigned char SEG20COM3:1;
    unsigned char SEG21COM3:1;
    unsigned char SEG22COM3:1;
    unsigned char SEG23COM3:1;
  };
} __LCDDATA11bits_t;
extern volatile __LCDDATA11bits_t __at(LCDDATA11_ADDR) LCDDATA11bits;

// ----- LCDDATA2 bits --------------------
typedef union {
  struct {
    unsigned char SEG16COM0:1;
    unsigned char SEG17COM0:1;
    unsigned char SEG18COM0:1;
    unsigned char SEG19COM0:1;
    unsigned char SEG20COM0:1;
    unsigned char SEG21COM0:1;
    unsigned char SEG22COM0:1;
    unsigned char SEG23COM0:1;
  };
} __LCDDATA2bits_t;
extern volatile __LCDDATA2bits_t __at(LCDDATA2_ADDR) LCDDATA2bits;

// ----- LCDDATA3 bits --------------------
typedef union {
  struct {
    unsigned char SEG0COM1:1;
    unsigned char SEG1COM1:1;
    unsigned char SEG2COM1:1;
    unsigned char SEG3COM1:1;
    unsigned char SEG4COM1:1;
    unsigned char SEG5COM1:1;
    unsigned char SEG6COM1:1;
    unsigned char SEG7COM1:1;
  };
} __LCDDATA3bits_t;
extern volatile __LCDDATA3bits_t __at(LCDDATA3_ADDR) LCDDATA3bits;

// ----- LCDDATA4 bits --------------------
typedef union {
  struct {
    unsigned char SEG8COM1:1;
    unsigned char SEG9COM1:1;
    unsigned char SEG10COM1:1;
    unsigned char SEG11COM1:1;
    unsigned char SEG12COM1:1;
    unsigned char SEG13COM1:1;
    unsigned char SEG14COM1:1;
    unsigned char SEG15COM1:1;
  };
} __LCDDATA4bits_t;
extern volatile __LCDDATA4bits_t __at(LCDDATA4_ADDR) LCDDATA4bits;

// ----- LCDDATA5 bits --------------------
typedef union {
  struct {
    unsigned char SEG16COM1:1;
    unsigned char SEG17COM1:1;
    unsigned char SEG18COM1:1;
    unsigned char SEG19COM1:1;
    unsigned char SEG20COM1:1;
    unsigned char SEG21COM1:1;
    unsigned char SEG22COM1:1;
    unsigned char SEG23COM1:1;
  };
} __LCDDATA5bits_t;
extern volatile __LCDDATA5bits_t __at(LCDDATA5_ADDR) LCDDATA5bits;

// ----- LCDDATA6 bits --------------------
typedef union {
  struct {
    unsigned char SEG0COM2:1;
    unsigned char SEG1COM2:1;
    unsigned char SEG2COM2:1;
    unsigned char SEG3COM2:1;
    unsigned char SEG4COM2:1;
    unsigned char SEG5COM2:1;
    unsigned char SEG6COM2:1;
    unsigned char SEG7COM2:1;
  };
} __LCDDATA6bits_t;
extern volatile __LCDDATA6bits_t __at(LCDDATA6_ADDR) LCDDATA6bits;

// ----- LCDDATA7 bits --------------------
typedef union {
  struct {
    unsigned char SEG8COM2:1;
    unsigned char SEG9COM2:1;
    unsigned char SEG10COM2:1;
    unsigned char SEG11COM2:1;
    unsigned char SEG12COM2:1;
    unsigned char SEG13COM2:1;
    unsigned char SEG14COM2:1;
    unsigned char SEG15COM2:1;
  };
} __LCDDATA7bits_t;
extern volatile __LCDDATA7bits_t __at(LCDDATA7_ADDR) LCDDATA7bits;

// ----- LCDDATA8 bits --------------------
typedef union {
  struct {
    unsigned char SEG16COM2:1;
    unsigned char SEG17COM2:1;
    unsigned char SEG18COM2:1;
    unsigned char SEG19COM2:1;
    unsigned char SEG20COM2:1;
    unsigned char SEG21COM2:1;
    unsigned char SEG22COM2:1;
    unsigned char SEG23COM2:1;
  };
} __LCDDATA8bits_t;
extern volatile __LCDDATA8bits_t __at(LCDDATA8_ADDR) LCDDATA8bits;

// ----- LCDDATA9 bits --------------------
typedef union {
  struct {
    unsigned char SEG0COM3:1;
    unsigned char SEG1COM3:1;
    unsigned char SEG2COM3:1;
    unsigned char SEG3COM3:1;
    unsigned char SEG4COM3:1;
    unsigned char SEG5COM3:1;
    unsigned char SEG6COM3:1;
    unsigned char SEG7COM3:1;
  };
} __LCDDATA9bits_t;
extern volatile __LCDDATA9bits_t __at(LCDDATA9_ADDR) LCDDATA9bits;

// ----- LCDPS bits --------------------
typedef union {
  struct {
    unsigned char LP0:1;
    unsigned char LP1:1;
    unsigned char LP2:1;
    unsigned char LP3:1;
    unsigned char WA:1;
    unsigned char LCDA:1;
    unsigned char BIASMD:1;
    unsigned char WFT:1;
  };
} __LCDPSbits_t;
extern volatile __LCDPSbits_t __at(LCDPS_ADDR) LCDPSbits;

// ----- LCDREF bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char VLCD1PE:1;
    unsigned char VLCD2PE:1;
    unsigned char VLCD3PE:1;
    unsigned char :1;
    unsigned char LCDIRI:1;
    unsigned char LCDIRS:1;
    unsigned char LCDIRE:1;
  };
} __LCDREFbits_t;
extern volatile __LCDREFbits_t __at(LCDREF_ADDR) LCDREFbits;

// ----- LCDRL bits --------------------
typedef union {
  struct {
    unsigned char LRLAT0:1;
    unsigned char LRLAT1:1;
    unsigned char LRLAT2:1;
    unsigned char :1;
    unsigned char LRLBP0:1;
    unsigned char LRLBP1:1;
    unsigned char LRLAP0:1;
    unsigned char LRLAP1:1;
  };
} __LCDRLbits_t;
extern volatile __LCDRLbits_t __at(LCDRL_ADDR) LCDRLbits;

// ----- LCDSE0 bits --------------------
typedef union {
  struct {
    unsigned char SE0:1;
    unsigned char SE1:1;
    unsigned char SE2:1;
    unsigned char SE3:1;
    unsigned char SE4:1;
    unsigned char SE5:1;
    unsigned char SE6:1;
    unsigned char SE7:1;
  };
} __LCDSE0bits_t;
extern volatile __LCDSE0bits_t __at(LCDSE0_ADDR) LCDSE0bits;

// ----- LCDSE1 bits --------------------
typedef union {
  struct {
    unsigned char SE8:1;
    unsigned char SE9:1;
    unsigned char SE10:1;
    unsigned char SE11:1;
    unsigned char SE12:1;
    unsigned char SE13:1;
    unsigned char SE14:1;
    unsigned char SE15:1;
  };
} __LCDSE1bits_t;
extern volatile __LCDSE1bits_t __at(LCDSE1_ADDR) LCDSE1bits;

// ----- LCDSE2 bits --------------------
typedef union {
  struct {
    unsigned char SE16:1;
    unsigned char SE17:1;
    unsigned char SE18:1;
    unsigned char SE19:1;
    unsigned char SE20:1;
    unsigned char SE21:1;
    unsigned char SE22:1;
    unsigned char SE23:1;
  };
} __LCDSE2bits_t;
extern volatile __LCDSE2bits_t __at(LCDSE2_ADDR) LCDSE2bits;

// ----- OPTION_REG bits --------------------
typedef union {
  struct {
    unsigned char PS0:1;
    unsigned char PS1:1;
    unsigned char PS2:1;
    unsigned char PSA:1;
    unsigned char TMR0SE:1;
    unsigned char TMR0CS:1;
    unsigned char INTEDG:1;
    unsigned char NOT_WPUEN:1;
  };
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char T0SE:1;
    unsigned char T0CS:1;
    unsigned char :1;
    unsigned char :1;
  };
} __OPTION_REGbits_t;
extern volatile __OPTION_REGbits_t __at(OPTION_REG_ADDR) OPTION_REGbits;

// ----- OSCCON bits --------------------
typedef union {
  struct {
    unsigned char SCS0:1;
    unsigned char SCS1:1;
    unsigned char :1;
    unsigned char IRCF0:1;
    unsigned char IRCF1:1;
    unsigned char IRCF2:1;
    unsigned char IRCF3:1;
    unsigned char SPLLEN:1;
  };
} __OSCCONbits_t;
extern volatile __OSCCONbits_t __at(OSCCON_ADDR) OSCCONbits;

// ----- OSCSTAT bits --------------------
typedef union {
  struct {
    unsigned char HFIOFS:1;
    unsigned char LFIOFR:1;
    unsigned char MFIOFR:1;
    unsigned char HFIOFL:1;
    unsigned char HFIOFR:1;
    unsigned char OSTS:1;
    unsigned char PLLR:1;
    unsigned char T1OSCR:1;
  };
} __OSCSTATbits_t;
extern volatile __OSCSTATbits_t __at(OSCSTAT_ADDR) OSCSTATbits;

// ----- OSCTUNE bits --------------------
typedef union {
  struct {
    unsigned char TUN0:1;
    unsigned char TUN1:1;
    unsigned char TUN2:1;
    unsigned char TUN3:1;
    unsigned char TUN4:1;
    unsigned char TUN5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __OSCTUNEbits_t;
extern volatile __OSCTUNEbits_t __at(OSCTUNE_ADDR) OSCTUNEbits;

// ----- PCON bits --------------------
typedef union {
  struct {
    unsigned char NOT_BOR:1;
    unsigned char NOT_POR:1;
    unsigned char NOT_RI:1;
    unsigned char NOT_RMCLR:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char STKUNF:1;
    unsigned char STKOVF:1;
  };
} __PCONbits_t;
extern volatile __PCONbits_t __at(PCON_ADDR) PCONbits;

// ----- PIE1 bits --------------------
typedef union {
  struct {
    unsigned char TMR1IE:1;
    unsigned char TMR2IE:1;
    unsigned char CCP1IE:1;
    unsigned char SSPIE:1;
    unsigned char TXIE:1;
    unsigned char RCIE:1;
    unsigned char ADIE:1;
    unsigned char TMR1GIE:1;
  };
} __PIE1bits_t;
extern volatile __PIE1bits_t __at(PIE1_ADDR) PIE1bits;

// ----- PIE2 bits --------------------
typedef union {
  struct {
    unsigned char CCP2IE:1;
    unsigned char :1;
    unsigned char LCDIE:1;
    unsigned char BCLIE:1;
    unsigned char EEIE:1;
    unsigned char C1IE:1;
    unsigned char C2IE:1;
    unsigned char OSFIE:1;
  };
} __PIE2bits_t;
extern volatile __PIE2bits_t __at(PIE2_ADDR) PIE2bits;

// ----- PIE3 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char TMR4IE:1;
    unsigned char :1;
    unsigned char TMR6IE:1;
    unsigned char CCP3IE:1;
    unsigned char CCP4IE:1;
    unsigned char CCP5IE:1;
    unsigned char :1;
  };
} __PIE3bits_t;
extern volatile __PIE3bits_t __at(PIE3_ADDR) PIE3bits;

// ----- PIR1 bits --------------------
typedef union {
  struct {
    unsigned char TMR1IF:1;
    unsigned char TMR2IF:1;
    unsigned char CCP1IF:1;
    unsigned char SSPIF:1;
    unsigned char TXIF:1;
    unsigned char RCIF:1;
    unsigned char ADIF:1;
    unsigned char TMR1GIF:1;
  };
} __PIR1bits_t;
extern volatile __PIR1bits_t __at(PIR1_ADDR) PIR1bits;

// ----- PIR2 bits --------------------
typedef union {
  struct {
    unsigned char CCP2IF:1;
    unsigned char :1;
    unsigned char LCDIF:1;
    unsigned char BCLIF:1;
    unsigned char EEIF:1;
    unsigned char C1IF:1;
    unsigned char C2IF:1;
    unsigned char OSFIF:1;
  };
} __PIR2bits_t;
extern volatile __PIR2bits_t __at(PIR2_ADDR) PIR2bits;

// ----- PIR3 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char TMR4IF:1;
    unsigned char :1;
    unsigned char TMR6IF:1;
    unsigned char CCP3IF:1;
    unsigned char CCP4IF:1;
    unsigned char CCP5IF:1;
    unsigned char :1;
  };
} __PIR3bits_t;
extern volatile __PIR3bits_t __at(PIR3_ADDR) PIR3bits;

// ----- PORTA bits --------------------
typedef union {
  struct {
    unsigned char RA0:1;
    unsigned char RA1:1;
    unsigned char RA2:1;
    unsigned char RA3:1;
    unsigned char RA4:1;
    unsigned char RA5:1;
    unsigned char RA6:1;
    unsigned char RA7:1;
  };
} __PORTAbits_t;
extern volatile __PORTAbits_t __at(PORTA_ADDR) PORTAbits;

// ----- PORTB bits --------------------
typedef union {
  struct {
    unsigned char RB0:1;
    unsigned char RB1:1;
    unsigned char RB2:1;
    unsigned char RB3:1;
    unsigned char RB4:1;
    unsigned char RB5:1;
    unsigned char RB6:1;
    unsigned char RB7:1;
  };
} __PORTBbits_t;
extern volatile __PORTBbits_t __at(PORTB_ADDR) PORTBbits;

// ----- PORTC bits --------------------
typedef union {
  struct {
    unsigned char RC0:1;
    unsigned char RC1:1;
    unsigned char RC2:1;
    unsigned char RC3:1;
    unsigned char RC4:1;
    unsigned char RC5:1;
    unsigned char RC6:1;
    unsigned char RC7:1;
  };
} __PORTCbits_t;
extern volatile __PORTCbits_t __at(PORTC_ADDR) PORTCbits;

// ----- PORTD bits --------------------
typedef union {
  struct {
    unsigned char RD0:1;
    unsigned char RD1:1;
    unsigned char RD2:1;
    unsigned char RD3:1;
    unsigned char RD4:1;
    unsigned char RD5:1;
    unsigned char RD6:1;
    unsigned char RD7:1;
  };
} __PORTDbits_t;
extern volatile __PORTDbits_t __at(PORTD_ADDR) PORTDbits;

// ----- PORTE bits --------------------
typedef union {
  struct {
    unsigned char RE0:1;
    unsigned char RE1:1;
    unsigned char RE2:1;
    unsigned char RE3:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __PORTEbits_t;
extern volatile __PORTEbits_t __at(PORTE_ADDR) PORTEbits;

// ----- PSTR1CON bits --------------------
typedef union {
  struct {
    unsigned char STR1A:1;
    unsigned char STR1B:1;
    unsigned char STR1C:1;
    unsigned char STR1D:1;
    unsigned char STR1SYNC:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __PSTR1CONbits_t;
extern volatile __PSTR1CONbits_t __at(PSTR1CON_ADDR) PSTR1CONbits;

// ----- PSTR2CON bits --------------------
typedef union {
  struct {
    unsigned char STR2A:1;
    unsigned char STR2B:1;
    unsigned char STR2C:1;
    unsigned char STR2D:1;
    unsigned char STR2SYNC:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __PSTR2CONbits_t;
extern volatile __PSTR2CONbits_t __at(PSTR2CON_ADDR) PSTR2CONbits;

// ----- PSTR3CON bits --------------------
typedef union {
  struct {
    unsigned char STR3A:1;
    unsigned char STR3B:1;
    unsigned char STR3C:1;
    unsigned char STR3D:1;
    unsigned char STR3SYNC:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __PSTR3CONbits_t;
extern volatile __PSTR3CONbits_t __at(PSTR3CON_ADDR) PSTR3CONbits;

// ----- PWM1CON bits --------------------
typedef union {
  struct {
    unsigned char P1DC0:1;
    unsigned char P1DC1:1;
    unsigned char P1DC2:1;
    unsigned char P1DC3:1;
    unsigned char P1DC4:1;
    unsigned char P1DC5:1;
    unsigned char P1DC6:1;
    unsigned char P1RSEN:1;
  };
} __PWM1CONbits_t;
extern volatile __PWM1CONbits_t __at(PWM1CON_ADDR) PWM1CONbits;

// ----- PWM2CON bits --------------------
typedef union {
  struct {
    unsigned char P2DC0:1;
    unsigned char P2DC1:1;
    unsigned char P2DC2:1;
    unsigned char P2DC3:1;
    unsigned char P2DC4:1;
    unsigned char P2DC5:1;
    unsigned char P2DC6:1;
    unsigned char P2RSEN:1;
  };
} __PWM2CONbits_t;
extern volatile __PWM2CONbits_t __at(PWM2CON_ADDR) PWM2CONbits;

// ----- PWM3CON bits --------------------
typedef union {
  struct {
    unsigned char P3DC0:1;
    unsigned char P3DC1:1;
    unsigned char P3DC2:1;
    unsigned char P3DC3:1;
    unsigned char P3DC4:1;
    unsigned char P3DC5:1;
    unsigned char P3DC6:1;
    unsigned char P3RSEN:1;
  };
} __PWM3CONbits_t;
extern volatile __PWM3CONbits_t __at(PWM3CON_ADDR) PWM3CONbits;

// ----- RCSTA bits --------------------
typedef union {
  struct {
    unsigned char RX9D:1;
    unsigned char OERR:1;
    unsigned char FERR:1;
    unsigned char ADDEN:1;
    unsigned char CREN:1;
    unsigned char SREN:1;
    unsigned char RX9:1;
    unsigned char SPEN:1;
  };
} __RCSTAbits_t;
extern volatile __RCSTAbits_t __at(RCSTA_ADDR) RCSTAbits;

// ----- SRCON0 bits --------------------
typedef union {
  struct {
    unsigned char SRPR:1;
    unsigned char SRPS:1;
    unsigned char SRNQEN:1;
    unsigned char SRQEN:1;
    unsigned char SRCLK0:1;
    unsigned char SRCLK1:1;
    unsigned char SRCLK2:1;
    unsigned char SRLEN:1;
  };
} __SRCON0bits_t;
extern volatile __SRCON0bits_t __at(SRCON0_ADDR) SRCON0bits;

// ----- SRCON1 bits --------------------
typedef union {
  struct {
    unsigned char SRRC1E:1;
    unsigned char SRRC2E:1;
    unsigned char SRRCKE:1;
    unsigned char SRRPE:1;
    unsigned char SRSC1E:1;
    unsigned char SRSC2E:1;
    unsigned char SRSCKE:1;
    unsigned char SRSPE:1;
  };
} __SRCON1bits_t;
extern volatile __SRCON1bits_t __at(SRCON1_ADDR) SRCON1bits;

// ----- SSPCON bits --------------------
typedef union {
  struct {
    unsigned char SSPM0:1;
    unsigned char SSPM1:1;
    unsigned char SSPM2:1;
    unsigned char SSPM3:1;
    unsigned char CKP:1;
    unsigned char SSPEN:1;
    unsigned char SSPOV:1;
    unsigned char WCOL:1;
  };
} __SSPCONbits_t;
extern volatile __SSPCONbits_t __at(SSPCON_ADDR) SSPCONbits;

// ----- SSPCON1 bits --------------------
typedef union {
  struct {
    unsigned char SSPM0:1;
    unsigned char SSPM1:1;
    unsigned char SSPM2:1;
    unsigned char SSPM3:1;
    unsigned char CKP:1;
    unsigned char SSPEN:1;
    unsigned char SSPOV:1;
    unsigned char WCOL:1;
  };
} __SSPCON1bits_t;
extern volatile __SSPCON1bits_t __at(SSPCON1_ADDR) SSPCON1bits;

// ----- SSPCON2 bits --------------------
typedef union {
  struct {
    unsigned char SEN:1;
    unsigned char RSEN:1;
    unsigned char PEN:1;
    unsigned char RCEN:1;
    unsigned char ACKEN:1;
    unsigned char ACKDT:1;
    unsigned char ACKSTAT:1;
    unsigned char GCEN:1;
  };
} __SSPCON2bits_t;
extern volatile __SSPCON2bits_t __at(SSPCON2_ADDR) SSPCON2bits;

// ----- SSPCON3 bits --------------------
typedef union {
  struct {
    unsigned char DHEN:1;
    unsigned char AHEN:1;
    unsigned char SBCDE:1;
    unsigned char SDAHT:1;
    unsigned char BOEN:1;
    unsigned char SCIE:1;
    unsigned char PCIE:1;
    unsigned char ACKTIM:1;
  };
} __SSPCON3bits_t;
extern volatile __SSPCON3bits_t __at(SSPCON3_ADDR) SSPCON3bits;

// ----- SSPSTAT bits --------------------
typedef union {
  struct {
    unsigned char BF:1;
    unsigned char UA:1;
    unsigned char R_NOT_W:1;
    unsigned char S:1;
    unsigned char P:1;
    unsigned char D_NOT_A:1;
    unsigned char CKE:1;
    unsigned char SMP:1;
  };
} __SSPSTATbits_t;
extern volatile __SSPSTATbits_t __at(SSPSTAT_ADDR) SSPSTATbits;

// ----- STATUS bits --------------------
typedef union {
  struct {
    unsigned char C:1;
    unsigned char DC:1;
    unsigned char Z:1;
    unsigned char NOT_PD:1;
    unsigned char NOT_TO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __STATUSbits_t;
extern volatile __STATUSbits_t __at(STATUS_ADDR) STATUSbits;

// ----- STATUS_SHAD bits --------------------
typedef union {
  struct {
    unsigned char C_SHAD:1;
    unsigned char DC_SHAD:1;
    unsigned char Z_SHAD:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __STATUS_SHADbits_t;
extern volatile __STATUS_SHADbits_t __at(STATUS_SHAD_ADDR) STATUS_SHADbits;

// ----- T1CON bits --------------------
typedef union {
  struct {
    unsigned char TMR1ON:1;
    unsigned char :1;
    unsigned char NOT_T1SYNC:1;
    unsigned char T1OSCEN:1;
    unsigned char T1CKPS0:1;
    unsigned char T1CKPS1:1;
    unsigned char TMR1CS0:1;
    unsigned char TMR1CS1:1;
  };
} __T1CONbits_t;
extern volatile __T1CONbits_t __at(T1CON_ADDR) T1CONbits;

// ----- T1GCON bits --------------------
typedef union {
  struct {
    unsigned char T1GSS0:1;
    unsigned char T1GSS1:1;
    unsigned char T1GVAL:1;
    unsigned char T1GGO_NOT_DONE:1;
    unsigned char T1GSPM:1;
    unsigned char T1GTM:1;
    unsigned char T1GPOL:1;
    unsigned char TMR1GE:1;
  };
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char T1GGO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __T1GCONbits_t;
extern volatile __T1GCONbits_t __at(T1GCON_ADDR) T1GCONbits;

// ----- T2CON bits --------------------
typedef union {
  struct {
    unsigned char T2CKPS0:1;
    unsigned char T2CKPS1:1;
    unsigned char TMR2ON:1;
    unsigned char T2OUTPS0:1;
    unsigned char T2OUTPS1:1;
    unsigned char T2OUTPS2:1;
    unsigned char T2OUTPS3:1;
    unsigned char :1;
  };
} __T2CONbits_t;
extern volatile __T2CONbits_t __at(T2CON_ADDR) T2CONbits;

// ----- T4CON bits --------------------
typedef union {
  struct {
    unsigned char T4CKPS0:1;
    unsigned char T4CKPS1:1;
    unsigned char TMR4ON:1;
    unsigned char T4OUTPS0:1;
    unsigned char T4OUTPS1:1;
    unsigned char T4OUTPS2:1;
    unsigned char T4OUTPS3:1;
    unsigned char :1;
  };
} __T4CONbits_t;
extern volatile __T4CONbits_t __at(T4CON_ADDR) T4CONbits;

// ----- T6CON bits --------------------
typedef union {
  struct {
    unsigned char T6CKPS0:1;
    unsigned char T6CKPS1:1;
    unsigned char TMR6ON:1;
    unsigned char T6OUTPS0:1;
    unsigned char T6OUTPS1:1;
    unsigned char T6OUTPS2:1;
    unsigned char T6OUTPS3:1;
    unsigned char :1;
  };
} __T6CONbits_t;
extern volatile __T6CONbits_t __at(T6CON_ADDR) T6CONbits;

// ----- TRISA bits --------------------
typedef union {
  struct {
    unsigned char TRISA0:1;
    unsigned char TRISA1:1;
    unsigned char TRISA2:1;
    unsigned char TRISA3:1;
    unsigned char TRISA4:1;
    unsigned char TRISA5:1;
    unsigned char TRISA6:1;
    unsigned char TRISA7:1;
  };
} __TRISAbits_t;
extern volatile __TRISAbits_t __at(TRISA_ADDR) TRISAbits;

// ----- TRISB bits --------------------
typedef union {
  struct {
    unsigned char TRISB0:1;
    unsigned char TRISB1:1;
    unsigned char TRISB2:1;
    unsigned char TRISB3:1;
    unsigned char TRISB4:1;
    unsigned char TRISB5:1;
    unsigned char TRISB6:1;
    unsigned char TRISB7:1;
  };
} __TRISBbits_t;
extern volatile __TRISBbits_t __at(TRISB_ADDR) TRISBbits;

// ----- TRISC bits --------------------
typedef union {
  struct {
    unsigned char TRISC0:1;
    unsigned char TRISC1:1;
    unsigned char TRISC2:1;
    unsigned char TRISC3:1;
    unsigned char TRISC4:1;
    unsigned char TRISC5:1;
    unsigned char TRISC6:1;
    unsigned char TRISC7:1;
  };
} __TRISCbits_t;
extern volatile __TRISCbits_t __at(TRISC_ADDR) TRISCbits;

// ----- TRISD bits --------------------
typedef union {
  struct {
    unsigned char TRISD0:1;
    unsigned char TRISD1:1;
    unsigned char TRISD2:1;
    unsigned char TRISD3:1;
    unsigned char TRISD4:1;
    unsigned char TRISD5:1;
    unsigned char TRISD6:1;
    unsigned char TRISD7:1;
  };
} __TRISDbits_t;
extern volatile __TRISDbits_t __at(TRISD_ADDR) TRISDbits;

// ----- TRISE bits --------------------
typedef union {
  struct {
    unsigned char TRISE0:1;
    unsigned char TRISE1:1;
    unsigned char TRISE2:1;
    unsigned char TRISE3:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __TRISEbits_t;
extern volatile __TRISEbits_t __at(TRISE_ADDR) TRISEbits;

// ----- TXSTA bits --------------------
typedef union {
  struct {
    unsigned char TX9D:1;
    unsigned char TRMT:1;
    unsigned char BRGH:1;
    unsigned char SENDB:1;
    unsigned char SYNC:1;
    unsigned char TXEN:1;
    unsigned char TX9:1;
    unsigned char CSRC:1;
  };
} __TXSTAbits_t;
extern volatile __TXSTAbits_t __at(TXSTA_ADDR) TXSTAbits;

// ----- WDTCON bits --------------------
typedef union {
  struct {
    unsigned char SWDTEN:1;
    unsigned char WDTPS0:1;
    unsigned char WDTPS1:1;
    unsigned char WDTPS2:1;
    unsigned char WDTPS3:1;
    unsigned char WDTPS4:1;
    unsigned char :1;
    unsigned char :1;
  };
} __WDTCONbits_t;
extern volatile __WDTCONbits_t __at(WDTCON_ADDR) WDTCONbits;

// ----- WPUB bits --------------------
typedef union {
  struct {
    unsigned char WPUB0:1;
    unsigned char WPUB1:1;
    unsigned char WPUB2:1;
    unsigned char WPUB3:1;
    unsigned char WPUB4:1;
    unsigned char WPUB5:1;
    unsigned char WPUB6:1;
    unsigned char WPUB7:1;
  };
} __WPUBbits_t;
extern volatile __WPUBbits_t __at(WPUB_ADDR) WPUBbits;

// ----- WPUE bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char WPUE3:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __WPUEbits_t;
extern volatile __WPUEbits_t __at(WPUE_ADDR) WPUEbits;


#ifndef NO_BIT_DEFINES

#define ADON                 ADCON0bits.ADON                /* bit 0 */
#define ADGO                 ADCON0bits.ADGO                /* bit 1 */
#define GO                   ADCON0bits.GO                  /* bit 1 */
#define GO_NOT_DONE          ADCON0bits.GO_NOT_DONE         /* bit 1 */
#define NOT_DONE             ADCON0bits.NOT_DONE            /* bit 1 */
#define CHS0                 ADCON0bits.CHS0                /* bit 2 */
#define CHS1                 ADCON0bits.CHS1                /* bit 3 */
#define CHS2                 ADCON0bits.CHS2                /* bit 4 */
#define CHS3                 ADCON0bits.CHS3                /* bit 5 */
#define CHS4                 ADCON0bits.CHS4                /* bit 6 */

#define ADPREF0              ADCON1bits.ADPREF0             /* bit 0 */
#define ADPREF1              ADCON1bits.ADPREF1             /* bit 1 */
#define ADNREF               ADCON1bits.ADNREF              /* bit 2 */
#define ADCS0                ADCON1bits.ADCS0               /* bit 4 */
#define ADCS1                ADCON1bits.ADCS1               /* bit 5 */
#define ADCS2                ADCON1bits.ADCS2               /* bit 6 */
#define ADFM                 ADCON1bits.ADFM                /* bit 7 */

#define ANSA0                ANSELAbits.ANSA0               /* bit 0 */
#define ANSA1                ANSELAbits.ANSA1               /* bit 1 */
#define ANSA2                ANSELAbits.ANSA2               /* bit 2 */
#define ANSA3                ANSELAbits.ANSA3               /* bit 3 */
#define ANSA4                ANSELAbits.ANSA4               /* bit 4 */
#define ANSA5                ANSELAbits.ANSA5               /* bit 5 */

#define ANSB0                ANSELBbits.ANSB0               /* bit 0 */
#define ANSB1                ANSELBbits.ANSB1               /* bit 1 */
#define ANSB2                ANSELBbits.ANSB2               /* bit 2 */
#define ANSB3                ANSELBbits.ANSB3               /* bit 3 */
#define ANSB4                ANSELBbits.ANSB4               /* bit 4 */
#define ANSB5                ANSELBbits.ANSB5               /* bit 5 */

#define ANSD0                ANSELDbits.ANSD0               /* bit 0 */
#define ANSD1                ANSELDbits.ANSD1               /* bit 1 */
#define ANSD2                ANSELDbits.ANSD2               /* bit 2 */
#define ANSD3                ANSELDbits.ANSD3               /* bit 3 */
#define ANSD4                ANSELDbits.ANSD4               /* bit 4 */
#define ANSD5                ANSELDbits.ANSD5               /* bit 5 */
#define ANSD6                ANSELDbits.ANSD6               /* bit 6 */
#define ANSD7                ANSELDbits.ANSD7               /* bit 7 */

#define ANSE0                ANSELEbits.ANSE0               /* bit 0 */
#define ANSE1                ANSELEbits.ANSE1               /* bit 1 */
#define ANSE2                ANSELEbits.ANSE2               /* bit 2 */

#define CCP2SEL              APFCONbits.CCP2SEL             /* bit 0 */
#define SSSEL                APFCONbits.SSSEL               /* bit 1 */
#define C2OUTSEL             APFCONbits.C2OUTSEL            /* bit 2 */
#define SRNQSEL              APFCONbits.SRNQSEL             /* bit 3 */
#define P2BSEL               APFCONbits.P2BSEL              /* bit 4 */
#define T1GSEL               APFCONbits.T1GSEL              /* bit 5 */
#define CCP3SEL              APFCONbits.CCP3SEL             /* bit 6 */

#define ABDEN                BAUDCONbits.ABDEN              /* bit 0 */
#define WUE                  BAUDCONbits.WUE                /* bit 1 */
#define BRG16                BAUDCONbits.BRG16              /* bit 3 */
#define SCKP                 BAUDCONbits.SCKP               /* bit 4 */
#define RCIDL                BAUDCONbits.RCIDL              /* bit 6 */
#define ABDOVF               BAUDCONbits.ABDOVF             /* bit 7 */

#define BORRDY               BORCONbits.BORRDY              /* bit 0 */
#define SBOREN               BORCONbits.SBOREN              /* bit 7 */

#define BSR0                 BSRbits.BSR0                   /* bit 0 */
#define BSR1                 BSRbits.BSR1                   /* bit 1 */
#define BSR2                 BSRbits.BSR2                   /* bit 2 */
#define BSR3                 BSRbits.BSR3                   /* bit 3 */
#define BSR4                 BSRbits.BSR4                   /* bit 4 */

#define PSS1BD0              CCP1ASbits.PSS1BD0             /* bit 0, shadows bit in ECCP1ASbits */
#define PSS1BD1              CCP1ASbits.PSS1BD1             /* bit 1, shadows bit in ECCP1ASbits */
#define PSS1AC0              CCP1ASbits.PSS1AC0             /* bit 2, shadows bit in ECCP1ASbits */
#define PSS1AC1              CCP1ASbits.PSS1AC1             /* bit 3, shadows bit in ECCP1ASbits */
#define CCP1AS0              CCP1ASbits.CCP1AS0             /* bit 4, shadows bit in ECCP1ASbits */
#define CCP1AS1              CCP1ASbits.CCP1AS1             /* bit 5, shadows bit in ECCP1ASbits */
#define CCP1AS2              CCP1ASbits.CCP1AS2             /* bit 6, shadows bit in ECCP1ASbits */
#define CCP1ASE              CCP1ASbits.CCP1ASE             /* bit 7, shadows bit in ECCP1ASbits */

#define CCP1M0               CCP1CONbits.CCP1M0             /* bit 0 */
#define CCP1M1               CCP1CONbits.CCP1M1             /* bit 1 */
#define CCP1M2               CCP1CONbits.CCP1M2             /* bit 2 */
#define CCP1M3               CCP1CONbits.CCP1M3             /* bit 3 */
#define DC1B0                CCP1CONbits.DC1B0              /* bit 4 */
#define DC1B1                CCP1CONbits.DC1B1              /* bit 5 */
#define P1M0                 CCP1CONbits.P1M0               /* bit 6 */
#define P1M1                 CCP1CONbits.P1M1               /* bit 7 */

#define PSS2BD0              CCP2ASbits.PSS2BD0             /* bit 0, shadows bit in ECCP2ASbits */
#define PSS2BD1              CCP2ASbits.PSS2BD1             /* bit 1, shadows bit in ECCP2ASbits */
#define PSS2AC0              CCP2ASbits.PSS2AC0             /* bit 2, shadows bit in ECCP2ASbits */
#define PSS2AC1              CCP2ASbits.PSS2AC1             /* bit 3, shadows bit in ECCP2ASbits */
#define CCP2AS0              CCP2ASbits.CCP2AS0             /* bit 4, shadows bit in ECCP2ASbits */
#define CCP2AS1              CCP2ASbits.CCP2AS1             /* bit 5, shadows bit in ECCP2ASbits */
#define CCP2AS2              CCP2ASbits.CCP2AS2             /* bit 6, shadows bit in ECCP2ASbits */
#define CCP2ASE              CCP2ASbits.CCP2ASE             /* bit 7, shadows bit in ECCP2ASbits */

#define CCP2M0               CCP2CONbits.CCP2M0             /* bit 0 */
#define CCP2M1               CCP2CONbits.CCP2M1             /* bit 1 */
#define CCP2M2               CCP2CONbits.CCP2M2             /* bit 2 */
#define CCP2M3               CCP2CONbits.CCP2M3             /* bit 3 */
#define DC2B0                CCP2CONbits.DC2B0              /* bit 4 */
#define DC2B1                CCP2CONbits.DC2B1              /* bit 5 */
#define P2M0                 CCP2CONbits.P2M0               /* bit 6 */
#define P2M1                 CCP2CONbits.P2M1               /* bit 7 */

#define PSS3BD0              CCP3ASbits.PSS3BD0             /* bit 0, shadows bit in ECCP3ASbits */
#define PSS3BD1              CCP3ASbits.PSS3BD1             /* bit 1, shadows bit in ECCP3ASbits */
#define PSS3AC0              CCP3ASbits.PSS3AC0             /* bit 2, shadows bit in ECCP3ASbits */
#define PSS3AC1              CCP3ASbits.PSS3AC1             /* bit 3, shadows bit in ECCP3ASbits */
#define CCP3AS0              CCP3ASbits.CCP3AS0             /* bit 4, shadows bit in ECCP3ASbits */
#define CCP3AS1              CCP3ASbits.CCP3AS1             /* bit 5, shadows bit in ECCP3ASbits */
#define CCP3AS2              CCP3ASbits.CCP3AS2             /* bit 6, shadows bit in ECCP3ASbits */
#define CCP3ASE              CCP3ASbits.CCP3ASE             /* bit 7, shadows bit in ECCP3ASbits */

#define CCP3M0               CCP3CONbits.CCP3M0             /* bit 0 */
#define CCP3M1               CCP3CONbits.CCP3M1             /* bit 1 */
#define CCP3M2               CCP3CONbits.CCP3M2             /* bit 2 */
#define CCP3M3               CCP3CONbits.CCP3M3             /* bit 3 */
#define DC3B0                CCP3CONbits.DC3B0              /* bit 4 */
#define DC3B1                CCP3CONbits.DC3B1              /* bit 5 */
#define P3M0                 CCP3CONbits.P3M0               /* bit 6 */
#define P3M1                 CCP3CONbits.P3M1               /* bit 7 */

#define CCP4M0               CCP4CONbits.CCP4M0             /* bit 0 */
#define CCP4M1               CCP4CONbits.CCP4M1             /* bit 1 */
#define CCP4M2               CCP4CONbits.CCP4M2             /* bit 2 */
#define CCP4M3               CCP4CONbits.CCP4M3             /* bit 3 */
#define DC4B0                CCP4CONbits.DC4B0              /* bit 4 */
#define DC4B1                CCP4CONbits.DC4B1              /* bit 5 */

#define CCP5M0               CCP5CONbits.CCP5M0             /* bit 0 */
#define CCP5M1               CCP5CONbits.CCP5M1             /* bit 1 */
#define CCP5M2               CCP5CONbits.CCP5M2             /* bit 2 */
#define CCP5M3               CCP5CONbits.CCP5M3             /* bit 3 */
#define DC5B0                CCP5CONbits.DC5B0              /* bit 4 */
#define DC5B1                CCP5CONbits.DC5B1              /* bit 5 */

#define C1TSEL0              CCPTMRS0bits.C1TSEL0           /* bit 0 */
#define C1TSEL1              CCPTMRS0bits.C1TSEL1           /* bit 1 */
#define C2TSEL0              CCPTMRS0bits.C2TSEL0           /* bit 2 */
#define C2TSEL1              CCPTMRS0bits.C2TSEL1           /* bit 3 */
#define C3TSEL0              CCPTMRS0bits.C3TSEL0           /* bit 4 */
#define C3TSEL1              CCPTMRS0bits.C3TSEL1           /* bit 5 */
#define C4TSEL0              CCPTMRS0bits.C4TSEL0           /* bit 6 */
#define C4TSEL1              CCPTMRS0bits.C4TSEL1           /* bit 7 */

#define C5TSEL0              CCPTMRS1bits.C5TSEL0           /* bit 0 */
#define C5TSEL1              CCPTMRS1bits.C5TSEL1           /* bit 1 */

#define C1SYNC               CM1CON0bits.C1SYNC             /* bit 0 */
#define C1HYS                CM1CON0bits.C1HYS              /* bit 1 */
#define C1SP                 CM1CON0bits.C1SP               /* bit 2 */
#define C1POL                CM1CON0bits.C1POL              /* bit 4 */
#define C1OE                 CM1CON0bits.C1OE               /* bit 5 */
#define C1OUT                CM1CON0bits.C1OUT              /* bit 6 */
#define C1ON                 CM1CON0bits.C1ON               /* bit 7 */

#define C1NCH0               CM1CON1bits.C1NCH0             /* bit 0 */
#define C1NCH1               CM1CON1bits.C1NCH1             /* bit 1 */
#define C1PCH0               CM1CON1bits.C1PCH0             /* bit 4 */
#define C1PCH1               CM1CON1bits.C1PCH1             /* bit 5 */
#define C1INTN               CM1CON1bits.C1INTN             /* bit 6 */
#define C1INTP               CM1CON1bits.C1INTP             /* bit 7 */

#define C2SYNC               CM2CON0bits.C2SYNC             /* bit 0 */
#define C2HYS                CM2CON0bits.C2HYS              /* bit 1 */
#define C2SP                 CM2CON0bits.C2SP               /* bit 2 */
#define C2POL                CM2CON0bits.C2POL              /* bit 4 */
#define C2OE                 CM2CON0bits.C2OE               /* bit 5 */
#define C2OUT                CM2CON0bits.C2OUT              /* bit 6 */
#define C2ON                 CM2CON0bits.C2ON               /* bit 7 */

#define C2NCH0               CM2CON1bits.C2NCH0             /* bit 0 */
#define C2NCH1               CM2CON1bits.C2NCH1             /* bit 1 */
#define C2PCH0               CM2CON1bits.C2PCH0             /* bit 4 */
#define C2PCH1               CM2CON1bits.C2PCH1             /* bit 5 */
#define C2INTN               CM2CON1bits.C2INTN             /* bit 6 */
#define C2INTP               CM2CON1bits.C2INTP             /* bit 7 */

#define MC1OUT               CMOUTbits.MC1OUT               /* bit 0 */
#define MC2OUT               CMOUTbits.MC2OUT               /* bit 1 */

#define T0XCS                CPSCON0bits.T0XCS              /* bit 0 */
#define CPSOUT               CPSCON0bits.CPSOUT             /* bit 1 */
#define CPSRNG0              CPSCON0bits.CPSRNG0            /* bit 2 */
#define CPSRNG1              CPSCON0bits.CPSRNG1            /* bit 3 */
#define CPSON                CPSCON0bits.CPSON              /* bit 7 */

#define CPSCH0               CPSCON1bits.CPSCH0             /* bit 0 */
#define CPSCH1               CPSCON1bits.CPSCH1             /* bit 1 */
#define CPSCH2               CPSCON1bits.CPSCH2             /* bit 2 */
#define CPSCH3               CPSCON1bits.CPSCH3             /* bit 3 */

#define DACNSS               DACCON0bits.DACNSS             /* bit 0 */
#define DACPSS0              DACCON0bits.DACPSS0            /* bit 2 */
#define DACPSS1              DACCON0bits.DACPSS1            /* bit 3 */
#define DACOE                DACCON0bits.DACOE              /* bit 5 */
#define DACLPS               DACCON0bits.DACLPS             /* bit 6 */
#define DACEN                DACCON0bits.DACEN              /* bit 7 */

#define DACR0                DACCON1bits.DACR0              /* bit 0 */
#define DACR1                DACCON1bits.DACR1              /* bit 1 */
#define DACR2                DACCON1bits.DACR2              /* bit 2 */
#define DACR3                DACCON1bits.DACR3              /* bit 3 */
#define DACR4                DACCON1bits.DACR4              /* bit 4 */

#define RD                   EECON1bits.RD                  /* bit 0 */
#define WR                   EECON1bits.WR                  /* bit 1 */
#define WREN                 EECON1bits.WREN                /* bit 2 */
#define WRERR                EECON1bits.WRERR               /* bit 3 */
#define FREE                 EECON1bits.FREE                /* bit 4 */
#define LWLO                 EECON1bits.LWLO                /* bit 5 */
#define CFGS                 EECON1bits.CFGS                /* bit 6 */
#define EEPGD                EECON1bits.EEPGD               /* bit 7 */

#define ADFVR0               FVRCONbits.ADFVR0              /* bit 0 */
#define ADFVR1               FVRCONbits.ADFVR1              /* bit 1 */
#define CDAFVR0              FVRCONbits.CDAFVR0             /* bit 2 */
#define CDAFVR1              FVRCONbits.CDAFVR1             /* bit 3 */
#define TSRNG                FVRCONbits.TSRNG               /* bit 4 */
#define TSEN                 FVRCONbits.TSEN                /* bit 5 */
#define FVRRDY               FVRCONbits.FVRRDY              /* bit 6 */
#define FVREN                FVRCONbits.FVREN               /* bit 7 */

#define IOCIF                INTCONbits.IOCIF               /* bit 0 */
#define INTF                 INTCONbits.INTF                /* bit 1 */
#define T0IF                 INTCONbits.T0IF                /* bit 2 */
#define TMR0IF               INTCONbits.TMR0IF              /* bit 2 */
#define IOCIE                INTCONbits.IOCIE               /* bit 3 */
#define INTE                 INTCONbits.INTE                /* bit 4 */
#define T0IE                 INTCONbits.T0IE                /* bit 5 */
#define TMR0IE               INTCONbits.TMR0IE              /* bit 5 */
#define PEIE                 INTCONbits.PEIE                /* bit 6 */
#define GIE                  INTCONbits.GIE                 /* bit 7 */

#define IOCBF0               IOCBFbits.IOCBF0               /* bit 0 */
#define IOCBF1               IOCBFbits.IOCBF1               /* bit 1 */
#define IOCBF2               IOCBFbits.IOCBF2               /* bit 2 */
#define IOCBF3               IOCBFbits.IOCBF3               /* bit 3 */
#define IOCBF4               IOCBFbits.IOCBF4               /* bit 4 */
#define IOCBF5               IOCBFbits.IOCBF5               /* bit 5 */
#define IOCBF6               IOCBFbits.IOCBF6               /* bit 6 */
#define IOCBF7               IOCBFbits.IOCBF7               /* bit 7 */

#define IOCBN0               IOCBNbits.IOCBN0               /* bit 0 */
#define IOCBN1               IOCBNbits.IOCBN1               /* bit 1 */
#define IOCBN2               IOCBNbits.IOCBN2               /* bit 2 */
#define IOCBN3               IOCBNbits.IOCBN3               /* bit 3 */
#define IOCBN4               IOCBNbits.IOCBN4               /* bit 4 */
#define IOCBN5               IOCBNbits.IOCBN5               /* bit 5 */
#define IOCBN6               IOCBNbits.IOCBN6               /* bit 6 */
#define IOCBN7               IOCBNbits.IOCBN7               /* bit 7 */

#define IOCBP0               IOCBPbits.IOCBP0               /* bit 0 */
#define IOCBP1               IOCBPbits.IOCBP1               /* bit 1 */
#define IOCBP2               IOCBPbits.IOCBP2               /* bit 2 */
#define IOCBP3               IOCBPbits.IOCBP3               /* bit 3 */
#define IOCBP4               IOCBPbits.IOCBP4               /* bit 4 */
#define IOCBP5               IOCBPbits.IOCBP5               /* bit 5 */
#define IOCBP6               IOCBPbits.IOCBP6               /* bit 6 */
#define IOCBP7               IOCBPbits.IOCBP7               /* bit 7 */

#define LATA0                LATAbits.LATA0                 /* bit 0 */
#define LATA1                LATAbits.LATA1                 /* bit 1 */
#define LATA2                LATAbits.LATA2                 /* bit 2 */
#define LATA3                LATAbits.LATA3                 /* bit 3 */
#define LATA4                LATAbits.LATA4                 /* bit 4 */
#define LATA5                LATAbits.LATA5                 /* bit 5 */
#define LATA6                LATAbits.LATA6                 /* bit 6 */
#define LATA7                LATAbits.LATA7                 /* bit 7 */

#define LATB0                LATBbits.LATB0                 /* bit 0 */
#define LATB1                LATBbits.LATB1                 /* bit 1 */
#define LATB2                LATBbits.LATB2                 /* bit 2 */
#define LATB3                LATBbits.LATB3                 /* bit 3 */
#define LATB4                LATBbits.LATB4                 /* bit 4 */
#define LATB5                LATBbits.LATB5                 /* bit 5 */
#define LATB6                LATBbits.LATB6                 /* bit 6 */
#define LATB7                LATBbits.LATB7                 /* bit 7 */

#define LATC0                LATCbits.LATC0                 /* bit 0 */
#define LATC1                LATCbits.LATC1                 /* bit 1 */
#define LATC2                LATCbits.LATC2                 /* bit 2 */
#define LATC3                LATCbits.LATC3                 /* bit 3 */
#define LATC4                LATCbits.LATC4                 /* bit 4 */
#define LATC5                LATCbits.LATC5                 /* bit 5 */
#define LATC6                LATCbits.LATC6                 /* bit 6 */
#define LATC7                LATCbits.LATC7                 /* bit 7 */

#define LATD0                LATDbits.LATD0                 /* bit 0 */
#define LATD1                LATDbits.LATD1                 /* bit 1 */
#define LATD2                LATDbits.LATD2                 /* bit 2 */
#define LATD3                LATDbits.LATD3                 /* bit 3 */
#define LATD4                LATDbits.LATD4                 /* bit 4 */
#define LATD5                LATDbits.LATD5                 /* bit 5 */
#define LATD6                LATDbits.LATD6                 /* bit 6 */
#define LATD7                LATDbits.LATD7                 /* bit 7 */

#define LATE0                LATEbits.LATE0                 /* bit 0 */
#define LATE1                LATEbits.LATE1                 /* bit 1 */
#define LATE2                LATEbits.LATE2                 /* bit 2 */
#define LATE3                LATEbits.LATE3                 /* bit 3 */

#define LMUX0                LCDCONbits.LMUX0               /* bit 0 */
#define LMUX1                LCDCONbits.LMUX1               /* bit 1 */
#define CS0                  LCDCONbits.CS0                 /* bit 2 */
#define CS1                  LCDCONbits.CS1                 /* bit 3 */
#define WERR                 LCDCONbits.WERR                /* bit 5 */
#define SLPEN                LCDCONbits.SLPEN               /* bit 6 */
#define LCDEN                LCDCONbits.LCDEN               /* bit 7 */

#define LCDCST0              LCDCSTbits.LCDCST0             /* bit 0 */
#define LCDCST1              LCDCSTbits.LCDCST1             /* bit 1 */
#define LCDCST2              LCDCSTbits.LCDCST2             /* bit 2 */

#define SEG0COM0             LCDDATA0bits.SEG0COM0          /* bit 0 */
#define SEG1COM0             LCDDATA0bits.SEG1COM0          /* bit 1 */
#define SEG2COM0             LCDDATA0bits.SEG2COM0          /* bit 2 */
#define SEG3COM0             LCDDATA0bits.SEG3COM0          /* bit 3 */
#define SEG4COM0             LCDDATA0bits.SEG4COM0          /* bit 4 */
#define SEG5COM0             LCDDATA0bits.SEG5COM0          /* bit 5 */
#define SEG6COM0             LCDDATA0bits.SEG6COM0          /* bit 6 */
#define SEG7COM0             LCDDATA0bits.SEG7COM0          /* bit 7 */

#define SEG8COM3             LCDDATA10bits.SEG8COM3         /* bit 0 */
#define SEG9COM3             LCDDATA10bits.SEG9COM3         /* bit 1 */
#define SEG10COM3            LCDDATA10bits.SEG10COM3        /* bit 2 */
#define SEG11COM3            LCDDATA10bits.SEG11COM3        /* bit 3 */
#define SEG12COM3            LCDDATA10bits.SEG12COM3        /* bit 4 */
#define SEG13COM3            LCDDATA10bits.SEG13COM3        /* bit 5 */
#define SEG14COM3            LCDDATA10bits.SEG14COM3        /* bit 6 */
#define SEG15COM3            LCDDATA10bits.SEG15COM3        /* bit 7 */

#define SEG16COM3            LCDDATA11bits.SEG16COM3        /* bit 0 */
#define SEG17COM3            LCDDATA11bits.SEG17COM3        /* bit 1 */
#define SEG18COM3            LCDDATA11bits.SEG18COM3        /* bit 2 */
#define SEG19COM3            LCDDATA11bits.SEG19COM3        /* bit 3 */
#define SEG20COM3            LCDDATA11bits.SEG20COM3        /* bit 4 */
#define SEG21COM3            LCDDATA11bits.SEG21COM3        /* bit 5 */
#define SEG22COM3            LCDDATA11bits.SEG22COM3        /* bit 6 */
#define SEG23COM3            LCDDATA11bits.SEG23COM3        /* bit 7 */

#define SEG8COM0             LCDDATA1bits.SEG8COM0          /* bit 0 */
#define SEG9COM0             LCDDATA1bits.SEG9COM0          /* bit 1 */
#define SEG10COM0            LCDDATA1bits.SEG10COM0         /* bit 2 */
#define SEG11COM0            LCDDATA1bits.SEG11COM0         /* bit 3 */
#define SEG12COM0            LCDDATA1bits.SEG12COM0         /* bit 4 */
#define SEG13COM0            LCDDATA1bits.SEG13COM0         /* bit 5 */
#define SEG14COM0            LCDDATA1bits.SEG14COM0         /* bit 6 */
#define SEG15COM0            LCDDATA1bits.SEG15COM0         /* bit 7 */

#define SEG16COM0            LCDDATA2bits.SEG16COM0         /* bit 0 */
#define SEG17COM0            LCDDATA2bits.SEG17COM0         /* bit 1 */
#define SEG18COM0            LCDDATA2bits.SEG18COM0         /* bit 2 */
#define SEG19COM0            LCDDATA2bits.SEG19COM0         /* bit 3 */
#define SEG20COM0            LCDDATA2bits.SEG20COM0         /* bit 4 */
#define SEG21COM0            LCDDATA2bits.SEG21COM0         /* bit 5 */
#define SEG22COM0            LCDDATA2bits.SEG22COM0         /* bit 6 */
#define SEG23COM0            LCDDATA2bits.SEG23COM0         /* bit 7 */

#define SEG0COM1             LCDDATA3bits.SEG0COM1          /* bit 0 */
#define SEG1COM1             LCDDATA3bits.SEG1COM1          /* bit 1 */
#define SEG2COM1             LCDDATA3bits.SEG2COM1          /* bit 2 */
#define SEG3COM1             LCDDATA3bits.SEG3COM1          /* bit 3 */
#define SEG4COM1             LCDDATA3bits.SEG4COM1          /* bit 4 */
#define SEG5COM1             LCDDATA3bits.SEG5COM1          /* bit 5 */
#define SEG6COM1             LCDDATA3bits.SEG6COM1          /* bit 6 */
#define SEG7COM1             LCDDATA3bits.SEG7COM1          /* bit 7 */

#define SEG8COM1             LCDDATA4bits.SEG8COM1          /* bit 0 */
#define SEG9COM1             LCDDATA4bits.SEG9COM1          /* bit 1 */
#define SEG10COM1            LCDDATA4bits.SEG10COM1         /* bit 2 */
#define SEG11COM1            LCDDATA4bits.SEG11COM1         /* bit 3 */
#define SEG12COM1            LCDDATA4bits.SEG12COM1         /* bit 4 */
#define SEG13COM1            LCDDATA4bits.SEG13COM1         /* bit 5 */
#define SEG14COM1            LCDDATA4bits.SEG14COM1         /* bit 6 */
#define SEG15COM1            LCDDATA4bits.SEG15COM1         /* bit 7 */

#define SEG16COM1            LCDDATA5bits.SEG16COM1         /* bit 0 */
#define SEG17COM1            LCDDATA5bits.SEG17COM1         /* bit 1 */
#define SEG18COM1            LCDDATA5bits.SEG18COM1         /* bit 2 */
#define SEG19COM1            LCDDATA5bits.SEG19COM1         /* bit 3 */
#define SEG20COM1            LCDDATA5bits.SEG20COM1         /* bit 4 */
#define SEG21COM1            LCDDATA5bits.SEG21COM1         /* bit 5 */
#define SEG22COM1            LCDDATA5bits.SEG22COM1         /* bit 6 */
#define SEG23COM1            LCDDATA5bits.SEG23COM1         /* bit 7 */

#define SEG0COM2             LCDDATA6bits.SEG0COM2          /* bit 0 */
#define SEG1COM2             LCDDATA6bits.SEG1COM2          /* bit 1 */
#define SEG2COM2             LCDDATA6bits.SEG2COM2          /* bit 2 */
#define SEG3COM2             LCDDATA6bits.SEG3COM2          /* bit 3 */
#define SEG4COM2             LCDDATA6bits.SEG4COM2          /* bit 4 */
#define SEG5COM2             LCDDATA6bits.SEG5COM2          /* bit 5 */
#define SEG6COM2             LCDDATA6bits.SEG6COM2          /* bit 6 */
#define SEG7COM2             LCDDATA6bits.SEG7COM2          /* bit 7 */

#define SEG8COM2             LCDDATA7bits.SEG8COM2          /* bit 0 */
#define SEG9COM2             LCDDATA7bits.SEG9COM2          /* bit 1 */
#define SEG10COM2            LCDDATA7bits.SEG10COM2         /* bit 2 */
#define SEG11COM2            LCDDATA7bits.SEG11COM2         /* bit 3 */
#define SEG12COM2            LCDDATA7bits.SEG12COM2         /* bit 4 */
#define SEG13COM2            LCDDATA7bits.SEG13COM2         /* bit 5 */
#define SEG14COM2            LCDDATA7bits.SEG14COM2         /* bit 6 */
#define SEG15COM2            LCDDATA7bits.SEG15COM2         /* bit 7 */

#define SEG16COM2            LCDDATA8bits.SEG16COM2         /* bit 0 */
#define SEG17COM2            LCDDATA8bits.SEG17COM2         /* bit 1 */
#define SEG18COM2            LCDDATA8bits.SEG18COM2         /* bit 2 */
#define SEG19COM2            LCDDATA8bits.SEG19COM2         /* bit 3 */
#define SEG20COM2            LCDDATA8bits.SEG20COM2         /* bit 4 */
#define SEG21COM2            LCDDATA8bits.SEG21COM2         /* bit 5 */
#define SEG22COM2            LCDDATA8bits.SEG22COM2         /* bit 6 */
#define SEG23COM2            LCDDATA8bits.SEG23COM2         /* bit 7 */

#define SEG0COM3             LCDDATA9bits.SEG0COM3          /* bit 0 */
#define SEG1COM3             LCDDATA9bits.SEG1COM3          /* bit 1 */
#define SEG2COM3             LCDDATA9bits.SEG2COM3          /* bit 2 */
#define SEG3COM3             LCDDATA9bits.SEG3COM3          /* bit 3 */
#define SEG4COM3             LCDDATA9bits.SEG4COM3          /* bit 4 */
#define SEG5COM3             LCDDATA9bits.SEG5COM3          /* bit 5 */
#define SEG6COM3             LCDDATA9bits.SEG6COM3          /* bit 6 */
#define SEG7COM3             LCDDATA9bits.SEG7COM3          /* bit 7 */

#define LP0                  LCDPSbits.LP0                  /* bit 0 */
#define LP1                  LCDPSbits.LP1                  /* bit 1 */
#define LP2                  LCDPSbits.LP2                  /* bit 2 */
#define LP3                  LCDPSbits.LP3                  /* bit 3 */
#define WA                   LCDPSbits.WA                   /* bit 4 */
#define LCDA                 LCDPSbits.LCDA                 /* bit 5 */
#define BIASMD               LCDPSbits.BIASMD               /* bit 6 */
#define WFT                  LCDPSbits.WFT                  /* bit 7 */

#define VLCD1PE              LCDREFbits.VLCD1PE             /* bit 1 */
#define VLCD2PE              LCDREFbits.VLCD2PE             /* bit 2 */
#define VLCD3PE              LCDREFbits.VLCD3PE             /* bit 3 */
#define LCDIRI               LCDREFbits.LCDIRI              /* bit 5 */
#define LCDIRS               LCDREFbits.LCDIRS              /* bit 6 */
#define LCDIRE               LCDREFbits.LCDIRE              /* bit 7 */

#define LRLAT0               LCDRLbits.LRLAT0               /* bit 0 */
#define LRLAT1               LCDRLbits.LRLAT1               /* bit 1 */
#define LRLAT2               LCDRLbits.LRLAT2               /* bit 2 */
#define LRLBP0               LCDRLbits.LRLBP0               /* bit 4 */
#define LRLBP1               LCDRLbits.LRLBP1               /* bit 5 */
#define LRLAP0               LCDRLbits.LRLAP0               /* bit 6 */
#define LRLAP1               LCDRLbits.LRLAP1               /* bit 7 */

#define SE0                  LCDSE0bits.SE0                 /* bit 0 */
#define SE1                  LCDSE0bits.SE1                 /* bit 1 */
#define SE2                  LCDSE0bits.SE2                 /* bit 2 */
#define SE3                  LCDSE0bits.SE3                 /* bit 3 */
#define SE4                  LCDSE0bits.SE4                 /* bit 4 */
#define SE5                  LCDSE0bits.SE5                 /* bit 5 */
#define SE6                  LCDSE0bits.SE6                 /* bit 6 */
#define SE7                  LCDSE0bits.SE7                 /* bit 7 */

#define SE8                  LCDSE1bits.SE8                 /* bit 0 */
#define SE9                  LCDSE1bits.SE9                 /* bit 1 */
#define SE10                 LCDSE1bits.SE10                /* bit 2 */
#define SE11                 LCDSE1bits.SE11                /* bit 3 */
#define SE12                 LCDSE1bits.SE12                /* bit 4 */
#define SE13                 LCDSE1bits.SE13                /* bit 5 */
#define SE14                 LCDSE1bits.SE14                /* bit 6 */
#define SE15                 LCDSE1bits.SE15                /* bit 7 */

#define SE16                 LCDSE2bits.SE16                /* bit 0 */
#define SE17                 LCDSE2bits.SE17                /* bit 1 */
#define SE18                 LCDSE2bits.SE18                /* bit 2 */
#define SE19                 LCDSE2bits.SE19                /* bit 3 */
#define SE20                 LCDSE2bits.SE20                /* bit 4 */
#define SE21                 LCDSE2bits.SE21                /* bit 5 */
#define SE22                 LCDSE2bits.SE22                /* bit 6 */
#define SE23                 LCDSE2bits.SE23                /* bit 7 */

#define PS0                  OPTION_REGbits.PS0             /* bit 0 */
#define PS1                  OPTION_REGbits.PS1             /* bit 1 */
#define PS2                  OPTION_REGbits.PS2             /* bit 2 */
#define PSA                  OPTION_REGbits.PSA             /* bit 3 */
#define T0SE                 OPTION_REGbits.T0SE            /* bit 4 */
#define TMR0SE               OPTION_REGbits.TMR0SE          /* bit 4 */
#define T0CS                 OPTION_REGbits.T0CS            /* bit 5 */
#define TMR0CS               OPTION_REGbits.TMR0CS          /* bit 5 */
#define INTEDG               OPTION_REGbits.INTEDG          /* bit 6 */
#define NOT_WPUEN            OPTION_REGbits.NOT_WPUEN       /* bit 7 */

#define SCS0                 OSCCONbits.SCS0                /* bit 0 */
#define SCS1                 OSCCONbits.SCS1                /* bit 1 */
#define IRCF0                OSCCONbits.IRCF0               /* bit 3 */
#define IRCF1                OSCCONbits.IRCF1               /* bit 4 */
#define IRCF2                OSCCONbits.IRCF2               /* bit 5 */
#define IRCF3                OSCCONbits.IRCF3               /* bit 6 */
#define SPLLEN               OSCCONbits.SPLLEN              /* bit 7 */

#define HFIOFS               OSCSTATbits.HFIOFS             /* bit 0 */
#define LFIOFR               OSCSTATbits.LFIOFR             /* bit 1 */
#define MFIOFR               OSCSTATbits.MFIOFR             /* bit 2 */
#define HFIOFL               OSCSTATbits.HFIOFL             /* bit 3 */
#define HFIOFR               OSCSTATbits.HFIOFR             /* bit 4 */
#define OSTS                 OSCSTATbits.OSTS               /* bit 5 */
#define PLLR                 OSCSTATbits.PLLR               /* bit 6 */
#define T1OSCR               OSCSTATbits.T1OSCR             /* bit 7 */

#define TUN0                 OSCTUNEbits.TUN0               /* bit 0 */
#define TUN1                 OSCTUNEbits.TUN1               /* bit 1 */
#define TUN2                 OSCTUNEbits.TUN2               /* bit 2 */
#define TUN3                 OSCTUNEbits.TUN3               /* bit 3 */
#define TUN4                 OSCTUNEbits.TUN4               /* bit 4 */
#define TUN5                 OSCTUNEbits.TUN5               /* bit 5 */

#define NOT_BOR              PCONbits.NOT_BOR               /* bit 0 */
#define NOT_POR              PCONbits.NOT_POR               /* bit 1 */
#define NOT_RI               PCONbits.NOT_RI                /* bit 2 */
#define NOT_RMCLR            PCONbits.NOT_RMCLR             /* bit 3 */
#define STKUNF               PCONbits.STKUNF                /* bit 6 */
#define STKOVF               PCONbits.STKOVF                /* bit 7 */

#define TMR1IE               PIE1bits.TMR1IE                /* bit 0 */
#define TMR2IE               PIE1bits.TMR2IE                /* bit 1 */
#define CCP1IE               PIE1bits.CCP1IE                /* bit 2 */
#define SSPIE                PIE1bits.SSPIE                 /* bit 3 */
#define TXIE                 PIE1bits.TXIE                  /* bit 4 */
#define RCIE                 PIE1bits.RCIE                  /* bit 5 */
#define ADIE                 PIE1bits.ADIE                  /* bit 6 */
#define TMR1GIE              PIE1bits.TMR1GIE               /* bit 7 */

#define CCP2IE               PIE2bits.CCP2IE                /* bit 0 */
#define LCDIE                PIE2bits.LCDIE                 /* bit 2 */
#define BCLIE                PIE2bits.BCLIE                 /* bit 3 */
#define EEIE                 PIE2bits.EEIE                  /* bit 4 */
#define C1IE                 PIE2bits.C1IE                  /* bit 5 */
#define C2IE                 PIE2bits.C2IE                  /* bit 6 */
#define OSFIE                PIE2bits.OSFIE                 /* bit 7 */

#define TMR4IE               PIE3bits.TMR4IE                /* bit 1 */
#define TMR6IE               PIE3bits.TMR6IE                /* bit 3 */
#define CCP3IE               PIE3bits.CCP3IE                /* bit 4 */
#define CCP4IE               PIE3bits.CCP4IE                /* bit 5 */
#define CCP5IE               PIE3bits.CCP5IE                /* bit 6 */

#define TMR1IF               PIR1bits.TMR1IF                /* bit 0 */
#define TMR2IF               PIR1bits.TMR2IF                /* bit 1 */
#define CCP1IF               PIR1bits.CCP1IF                /* bit 2 */
#define SSPIF                PIR1bits.SSPIF                 /* bit 3 */
#define TXIF                 PIR1bits.TXIF                  /* bit 4 */
#define RCIF                 PIR1bits.RCIF                  /* bit 5 */
#define ADIF                 PIR1bits.ADIF                  /* bit 6 */
#define TMR1GIF              PIR1bits.TMR1GIF               /* bit 7 */

#define CCP2IF               PIR2bits.CCP2IF                /* bit 0 */
#define LCDIF                PIR2bits.LCDIF                 /* bit 2 */
#define BCLIF                PIR2bits.BCLIF                 /* bit 3 */
#define EEIF                 PIR2bits.EEIF                  /* bit 4 */
#define C1IF                 PIR2bits.C1IF                  /* bit 5 */
#define C2IF                 PIR2bits.C2IF                  /* bit 6 */
#define OSFIF                PIR2bits.OSFIF                 /* bit 7 */

#define TMR4IF               PIR3bits.TMR4IF                /* bit 1 */
#define TMR6IF               PIR3bits.TMR6IF                /* bit 3 */
#define CCP3IF               PIR3bits.CCP3IF                /* bit 4 */
#define CCP4IF               PIR3bits.CCP4IF                /* bit 5 */
#define CCP5IF               PIR3bits.CCP5IF                /* bit 6 */

#define RA0                  PORTAbits.RA0                  /* bit 0 */
#define RA1                  PORTAbits.RA1                  /* bit 1 */
#define RA2                  PORTAbits.RA2                  /* bit 2 */
#define RA3                  PORTAbits.RA3                  /* bit 3 */
#define RA4                  PORTAbits.RA4                  /* bit 4 */
#define RA5                  PORTAbits.RA5                  /* bit 5 */
#define RA6                  PORTAbits.RA6                  /* bit 6 */
#define RA7                  PORTAbits.RA7                  /* bit 7 */

#define RB0                  PORTBbits.RB0                  /* bit 0 */
#define RB1                  PORTBbits.RB1                  /* bit 1 */
#define RB2                  PORTBbits.RB2                  /* bit 2 */
#define RB3                  PORTBbits.RB3                  /* bit 3 */
#define RB4                  PORTBbits.RB4                  /* bit 4 */
#define RB5                  PORTBbits.RB5                  /* bit 5 */
#define RB6                  PORTBbits.RB6                  /* bit 6 */
#define RB7                  PORTBbits.RB7                  /* bit 7 */

#define RC0                  PORTCbits.RC0                  /* bit 0 */
#define RC1                  PORTCbits.RC1                  /* bit 1 */
#define RC2                  PORTCbits.RC2                  /* bit 2 */
#define RC3                  PORTCbits.RC3                  /* bit 3 */
#define RC4                  PORTCbits.RC4                  /* bit 4 */
#define RC5                  PORTCbits.RC5                  /* bit 5 */
#define RC6                  PORTCbits.RC6                  /* bit 6 */
#define RC7                  PORTCbits.RC7                  /* bit 7 */

#define RD0                  PORTDbits.RD0                  /* bit 0 */
#define RD1                  PORTDbits.RD1                  /* bit 1 */
#define RD2                  PORTDbits.RD2                  /* bit 2 */
#define RD3                  PORTDbits.RD3                  /* bit 3 */
#define RD4                  PORTDbits.RD4                  /* bit 4 */
#define RD5                  PORTDbits.RD5                  /* bit 5 */
#define RD6                  PORTDbits.RD6                  /* bit 6 */
#define RD7                  PORTDbits.RD7                  /* bit 7 */

#define RE0                  PORTEbits.RE0                  /* bit 0 */
#define RE1                  PORTEbits.RE1                  /* bit 1 */
#define RE2                  PORTEbits.RE2                  /* bit 2 */
#define RE3                  PORTEbits.RE3                  /* bit 3 */

#define STR1A                PSTR1CONbits.STR1A             /* bit 0 */
#define STR1B                PSTR1CONbits.STR1B             /* bit 1 */
#define STR1C                PSTR1CONbits.STR1C             /* bit 2 */
#define STR1D                PSTR1CONbits.STR1D             /* bit 3 */
#define STR1SYNC             PSTR1CONbits.STR1SYNC          /* bit 4 */

#define STR2A                PSTR2CONbits.STR2A             /* bit 0 */
#define STR2B                PSTR2CONbits.STR2B             /* bit 1 */
#define STR2C                PSTR2CONbits.STR2C             /* bit 2 */
#define STR2D                PSTR2CONbits.STR2D             /* bit 3 */
#define STR2SYNC             PSTR2CONbits.STR2SYNC          /* bit 4 */

#define STR3A                PSTR3CONbits.STR3A             /* bit 0 */
#define STR3B                PSTR3CONbits.STR3B             /* bit 1 */
#define STR3C                PSTR3CONbits.STR3C             /* bit 2 */
#define STR3D                PSTR3CONbits.STR3D             /* bit 3 */
#define STR3SYNC             PSTR3CONbits.STR3SYNC          /* bit 4 */

#define P1DC0                PWM1CONbits.P1DC0              /* bit 0 */
#define P1DC1                PWM1CONbits.P1DC1              /* bit 1 */
#define P1DC2                PWM1CONbits.P1DC2              /* bit 2 */
#define P1DC3                PWM1CONbits.P1DC3              /* bit 3 */
#define P1DC4                PWM1CONbits.P1DC4              /* bit 4 */
#define P1DC5                PWM1CONbits.P1DC5              /* bit 5 */
#define P1DC6                PWM1CONbits.P1DC6              /* bit 6 */
#define P1RSEN               PWM1CONbits.P1RSEN             /* bit 7 */

#define P2DC0                PWM2CONbits.P2DC0              /* bit 0 */
#define P2DC1                PWM2CONbits.P2DC1              /* bit 1 */
#define P2DC2                PWM2CONbits.P2DC2              /* bit 2 */
#define P2DC3                PWM2CONbits.P2DC3              /* bit 3 */
#define P2DC4                PWM2CONbits.P2DC4              /* bit 4 */
#define P2DC5                PWM2CONbits.P2DC5              /* bit 5 */
#define P2DC6                PWM2CONbits.P2DC6              /* bit 6 */
#define P2RSEN               PWM2CONbits.P2RSEN             /* bit 7 */

#define P3DC0                PWM3CONbits.P3DC0              /* bit 0 */
#define P3DC1                PWM3CONbits.P3DC1              /* bit 1 */
#define P3DC2                PWM3CONbits.P3DC2              /* bit 2 */
#define P3DC3                PWM3CONbits.P3DC3              /* bit 3 */
#define P3DC4                PWM3CONbits.P3DC4              /* bit 4 */
#define P3DC5                PWM3CONbits.P3DC5              /* bit 5 */
#define P3DC6                PWM3CONbits.P3DC6              /* bit 6 */
#define P3RSEN               PWM3CONbits.P3RSEN             /* bit 7 */

#define RX9D                 RCSTAbits.RX9D                 /* bit 0 */
#define OERR                 RCSTAbits.OERR                 /* bit 1 */
#define FERR                 RCSTAbits.FERR                 /* bit 2 */
#define ADDEN                RCSTAbits.ADDEN                /* bit 3 */
#define CREN                 RCSTAbits.CREN                 /* bit 4 */
#define SREN                 RCSTAbits.SREN                 /* bit 5 */
#define RX9                  RCSTAbits.RX9                  /* bit 6 */
#define SPEN                 RCSTAbits.SPEN                 /* bit 7 */

#define SRPR                 SRCON0bits.SRPR                /* bit 0 */
#define SRPS                 SRCON0bits.SRPS                /* bit 1 */
#define SRNQEN               SRCON0bits.SRNQEN              /* bit 2 */
#define SRQEN                SRCON0bits.SRQEN               /* bit 3 */
#define SRCLK0               SRCON0bits.SRCLK0              /* bit 4 */
#define SRCLK1               SRCON0bits.SRCLK1              /* bit 5 */
#define SRCLK2               SRCON0bits.SRCLK2              /* bit 6 */
#define SRLEN                SRCON0bits.SRLEN               /* bit 7 */

#define SRRC1E               SRCON1bits.SRRC1E              /* bit 0 */
#define SRRC2E               SRCON1bits.SRRC2E              /* bit 1 */
#define SRRCKE               SRCON1bits.SRRCKE              /* bit 2 */
#define SRRPE                SRCON1bits.SRRPE               /* bit 3 */
#define SRSC1E               SRCON1bits.SRSC1E              /* bit 4 */
#define SRSC2E               SRCON1bits.SRSC2E              /* bit 5 */
#define SRSCKE               SRCON1bits.SRSCKE              /* bit 6 */
#define SRSPE                SRCON1bits.SRSPE               /* bit 7 */

#define SEN                  SSPCON2bits.SEN                /* bit 0 */
#define RSEN                 SSPCON2bits.RSEN               /* bit 1 */
#define PEN                  SSPCON2bits.PEN                /* bit 2 */
#define RCEN                 SSPCON2bits.RCEN               /* bit 3 */
#define ACKEN                SSPCON2bits.ACKEN              /* bit 4 */
#define ACKDT                SSPCON2bits.ACKDT              /* bit 5 */
#define ACKSTAT              SSPCON2bits.ACKSTAT            /* bit 6 */
#define GCEN                 SSPCON2bits.GCEN               /* bit 7 */

#define DHEN                 SSPCON3bits.DHEN               /* bit 0 */
#define AHEN                 SSPCON3bits.AHEN               /* bit 1 */
#define SBCDE                SSPCON3bits.SBCDE              /* bit 2 */
#define SDAHT                SSPCON3bits.SDAHT              /* bit 3 */
#define BOEN                 SSPCON3bits.BOEN               /* bit 4 */
#define SCIE                 SSPCON3bits.SCIE               /* bit 5 */
#define PCIE                 SSPCON3bits.PCIE               /* bit 6 */
#define ACKTIM               SSPCON3bits.ACKTIM             /* bit 7 */

#define SSPM0                SSPCONbits.SSPM0               /* bit 0, shadows bit in SSPCON1bits */
#define SSPM1                SSPCONbits.SSPM1               /* bit 1, shadows bit in SSPCON1bits */
#define SSPM2                SSPCONbits.SSPM2               /* bit 2, shadows bit in SSPCON1bits */
#define SSPM3                SSPCONbits.SSPM3               /* bit 3, shadows bit in SSPCON1bits */
#define CKP                  SSPCONbits.CKP                 /* bit 4, shadows bit in SSPCON1bits */
#define SSPEN                SSPCONbits.SSPEN               /* bit 5, shadows bit in SSPCON1bits */
#define SSPOV                SSPCONbits.SSPOV               /* bit 6, shadows bit in SSPCON1bits */
#define WCOL                 SSPCONbits.WCOL                /* bit 7, shadows bit in SSPCON1bits */

#define BF                   SSPSTATbits.BF                 /* bit 0 */
#define UA                   SSPSTATbits.UA                 /* bit 1 */
#define R_NOT_W              SSPSTATbits.R_NOT_W            /* bit 2 */
#define S                    SSPSTATbits.S                  /* bit 3 */
#define P                    SSPSTATbits.P                  /* bit 4 */
#define D_NOT_A              SSPSTATbits.D_NOT_A            /* bit 5 */
#define CKE                  SSPSTATbits.CKE                /* bit 6 */
#define SMP                  SSPSTATbits.SMP                /* bit 7 */

#define C_SHAD               STATUS_SHADbits.C_SHAD         /* bit 0 */
#define DC_SHAD              STATUS_SHADbits.DC_SHAD        /* bit 1 */
#define Z_SHAD               STATUS_SHADbits.Z_SHAD         /* bit 2 */

#define C                    STATUSbits.C                   /* bit 0 */
#define DC                   STATUSbits.DC                  /* bit 1 */
#define Z                    STATUSbits.Z                   /* bit 2 */
#define NOT_PD               STATUSbits.NOT_PD              /* bit 3 */
#define NOT_TO               STATUSbits.NOT_TO              /* bit 4 */

#define TMR1ON               T1CONbits.TMR1ON               /* bit 0 */
#define NOT_T1SYNC           T1CONbits.NOT_T1SYNC           /* bit 2 */
#define T1OSCEN              T1CONbits.T1OSCEN              /* bit 3 */
#define T1CKPS0              T1CONbits.T1CKPS0              /* bit 4 */
#define T1CKPS1              T1CONbits.T1CKPS1              /* bit 5 */
#define TMR1CS0              T1CONbits.TMR1CS0              /* bit 6 */
#define TMR1CS1              T1CONbits.TMR1CS1              /* bit 7 */

#define T1GSS0               T1GCONbits.T1GSS0              /* bit 0 */
#define T1GSS1               T1GCONbits.T1GSS1              /* bit 1 */
#define T1GVAL               T1GCONbits.T1GVAL              /* bit 2 */
#define T1GGO                T1GCONbits.T1GGO               /* bit 3 */
#define T1GGO_NOT_DONE       T1GCONbits.T1GGO_NOT_DONE      /* bit 3 */
#define T1GSPM               T1GCONbits.T1GSPM              /* bit 4 */
#define T1GTM                T1GCONbits.T1GTM               /* bit 5 */
#define T1GPOL               T1GCONbits.T1GPOL              /* bit 6 */
#define TMR1GE               T1GCONbits.TMR1GE              /* bit 7 */

#define T2CKPS0              T2CONbits.T2CKPS0              /* bit 0 */
#define T2CKPS1              T2CONbits.T2CKPS1              /* bit 1 */
#define TMR2ON               T2CONbits.TMR2ON               /* bit 2 */
#define T2OUTPS0             T2CONbits.T2OUTPS0             /* bit 3 */
#define T2OUTPS1             T2CONbits.T2OUTPS1             /* bit 4 */
#define T2OUTPS2             T2CONbits.T2OUTPS2             /* bit 5 */
#define T2OUTPS3             T2CONbits.T2OUTPS3             /* bit 6 */

#define T4CKPS0              T4CONbits.T4CKPS0              /* bit 0 */
#define T4CKPS1              T4CONbits.T4CKPS1              /* bit 1 */
#define TMR4ON               T4CONbits.TMR4ON               /* bit 2 */
#define T4OUTPS0             T4CONbits.T4OUTPS0             /* bit 3 */
#define T4OUTPS1             T4CONbits.T4OUTPS1             /* bit 4 */
#define T4OUTPS2             T4CONbits.T4OUTPS2             /* bit 5 */
#define T4OUTPS3             T4CONbits.T4OUTPS3             /* bit 6 */

#define T6CKPS0              T6CONbits.T6CKPS0              /* bit 0 */
#define T6CKPS1              T6CONbits.T6CKPS1              /* bit 1 */
#define TMR6ON               T6CONbits.TMR6ON               /* bit 2 */
#define T6OUTPS0             T6CONbits.T6OUTPS0             /* bit 3 */
#define T6OUTPS1             T6CONbits.T6OUTPS1             /* bit 4 */
#define T6OUTPS2             T6CONbits.T6OUTPS2             /* bit 5 */
#define T6OUTPS3             T6CONbits.T6OUTPS3             /* bit 6 */

#define TRISA0               TRISAbits.TRISA0               /* bit 0 */
#define TRISA1               TRISAbits.TRISA1               /* bit 1 */
#define TRISA2               TRISAbits.TRISA2               /* bit 2 */
#define TRISA3               TRISAbits.TRISA3               /* bit 3 */
#define TRISA4               TRISAbits.TRISA4               /* bit 4 */
#define TRISA5               TRISAbits.TRISA5               /* bit 5 */
#define TRISA6               TRISAbits.TRISA6               /* bit 6 */
#define TRISA7               TRISAbits.TRISA7               /* bit 7 */

#define TRISB0               TRISBbits.TRISB0               /* bit 0 */
#define TRISB1               TRISBbits.TRISB1               /* bit 1 */
#define TRISB2               TRISBbits.TRISB2               /* bit 2 */
#define TRISB3               TRISBbits.TRISB3               /* bit 3 */
#define TRISB4               TRISBbits.TRISB4               /* bit 4 */
#define TRISB5               TRISBbits.TRISB5               /* bit 5 */
#define TRISB6               TRISBbits.TRISB6               /* bit 6 */
#define TRISB7               TRISBbits.TRISB7               /* bit 7 */

#define TRISC0               TRISCbits.TRISC0               /* bit 0 */
#define TRISC1               TRISCbits.TRISC1               /* bit 1 */
#define TRISC2               TRISCbits.TRISC2               /* bit 2 */
#define TRISC3               TRISCbits.TRISC3               /* bit 3 */
#define TRISC4               TRISCbits.TRISC4               /* bit 4 */
#define TRISC5               TRISCbits.TRISC5               /* bit 5 */
#define TRISC6               TRISCbits.TRISC6               /* bit 6 */
#define TRISC7               TRISCbits.TRISC7               /* bit 7 */

#define TRISD0               TRISDbits.TRISD0               /* bit 0 */
#define TRISD1               TRISDbits.TRISD1               /* bit 1 */
#define TRISD2               TRISDbits.TRISD2               /* bit 2 */
#define TRISD3               TRISDbits.TRISD3               /* bit 3 */
#define TRISD4               TRISDbits.TRISD4               /* bit 4 */
#define TRISD5               TRISDbits.TRISD5               /* bit 5 */
#define TRISD6               TRISDbits.TRISD6               /* bit 6 */
#define TRISD7               TRISDbits.TRISD7               /* bit 7 */

#define TRISE0               TRISEbits.TRISE0               /* bit 0 */
#define TRISE1               TRISEbits.TRISE1               /* bit 1 */
#define TRISE2               TRISEbits.TRISE2               /* bit 2 */
#define TRISE3               TRISEbits.TRISE3               /* bit 3 */

#define TX9D                 TXSTAbits.TX9D                 /* bit 0 */
#define TRMT                 TXSTAbits.TRMT                 /* bit 1 */
#define BRGH                 TXSTAbits.BRGH                 /* bit 2 */
#define SENDB                TXSTAbits.SENDB                /* bit 3 */
#define SYNC                 TXSTAbits.SYNC                 /* bit 4 */
#define TXEN                 TXSTAbits.TXEN                 /* bit 5 */
#define TX9                  TXSTAbits.TX9                  /* bit 6 */
#define CSRC                 TXSTAbits.CSRC                 /* bit 7 */

#define SWDTEN               WDTCONbits.SWDTEN              /* bit 0 */
#define WDTPS0               WDTCONbits.WDTPS0              /* bit 1 */
#define WDTPS1               WDTCONbits.WDTPS1              /* bit 2 */
#define WDTPS2               WDTCONbits.WDTPS2              /* bit 3 */
#define WDTPS3               WDTCONbits.WDTPS3              /* bit 4 */
#define WDTPS4               WDTCONbits.WDTPS4              /* bit 5 */

#define WPUB0                WPUBbits.WPUB0                 /* bit 0 */
#define WPUB1                WPUBbits.WPUB1                 /* bit 1 */
#define WPUB2                WPUBbits.WPUB2                 /* bit 2 */
#define WPUB3                WPUBbits.WPUB3                 /* bit 3 */
#define WPUB4                WPUBbits.WPUB4                 /* bit 4 */
#define WPUB5                WPUBbits.WPUB5                 /* bit 5 */
#define WPUB6                WPUBbits.WPUB6                 /* bit 6 */
#define WPUB7                WPUBbits.WPUB7                 /* bit 7 */

#define WPUE3                WPUEbits.WPUE3                 /* bit 3 */
#endif /* NO_BIT_DEFINES */

#endif
