//
// This header file was automatically generated by:
//
-// inc2h.pl V4514
+// inc2h.pl V4585
//
// Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
//
// LIST
-// P16F913.INC Standard Header File, Version 1.00 Microchip Technology, Inc.
+// P16F913.INC Standard Header File, Version 1.04 Microchip Technology, Inc.
// NOLIST
// This header file defines configurations, registers, and other useful bits of
//1.00 06/11/04 Initial Release
//1.01 06/18/04 Corrected typo in 'bad ram' section
//1.02 08/16/04 Added EECON2
+//1.03 05/20/05 Removed EECON2 from badram
+//1.04 10/05/05 Correct names of bits in ANSEL, Add EEADRH and EEADRL bit
+// definitions
//==========================================================================
//----- Register Files------------------------------------------------------
-extern __data __at (INDF_ADDR) volatile char INDF;
+extern __sfr __at (INDF_ADDR) INDF;
extern __sfr __at (TMR0_ADDR) TMR0;
-extern __data __at (PCL_ADDR) volatile char PCL;
+extern __sfr __at (PCL_ADDR) PCL;
extern __sfr __at (STATUS_ADDR) STATUS;
extern __sfr __at (FSR_ADDR) FSR;
extern __sfr __at (PORTA_ADDR) PORTA;
//----- LVDCON Bits --------------------------------------------------------
-//----- LCDDAT0 Bits -------------------------------------------------------
+//----- LCDDATA0 Bits -------------------------------------------------------
-//----- LCDDAT1 Bits -------------------------------------------------------
+//----- LCDDATA1 Bits -------------------------------------------------------
-//----- LCDDAT3 Bits -------------------------------------------------------
+//----- LCDDATA3 Bits -------------------------------------------------------
-//----- LCDDAT4 Bits -------------------------------------------------------
+//----- LCDDATA4 Bits -------------------------------------------------------
-//----- LCDDAT6 Bits -------------------------------------------------------
+//----- LCDDATA6 Bits -------------------------------------------------------
-//----- LCDDAT7 Bits -------------------------------------------------------
+//----- LCDDATA7 Bits -------------------------------------------------------
-//----- LCDDAT9 Bits -------------------------------------------------------
+//----- LCDDATA9 Bits -------------------------------------------------------
-//----- LCDDAT10 Bits -------------------------------------------------------
+//----- LCDDATA10 Bits -------------------------------------------------------
//----- EECON1 Bits --------------------------------------------------------
+//----- EEADRH Bits --------------------------------------------------------
+
+
+//----- EEADRL Bits --------------------------------------------------------
+
+
//==========================================================================
//
// __BADRAM H'08', H'1B'-H'1D'
// __BADRAM H'88', H'9A'-H'9B'
// __BADRAM H'112', H'115', H'118', H'11B',H'11E'-H'11F'
-// __BADRAM H'185', H'187'-H'189', H'18D'-H'1EF'
+// __BADRAM H'185', H'187'-H'189', H'18E'-H'1EF'
//==========================================================================
//
// ----- ANSEL bits --------------------
typedef union {
+ struct {
+ unsigned char ANS0:1;
+ unsigned char ANS1:1;
+ unsigned char ANS2:1;
+ unsigned char ANS3:1;
+ unsigned char ANS4:1;
+ unsigned char :1;
+ unsigned char :1;
+ unsigned char :1;
+ };
struct {
unsigned char AN0:1;
unsigned char AN1:1;
} __ANSEL_bits_t;
extern volatile __ANSEL_bits_t __at(ANSEL_ADDR) ANSEL_bits;
+#define ANS0 ANSEL_bits.ANS0
#define AN0 ANSEL_bits.AN0
+#define ANS1 ANSEL_bits.ANS1
#define AN1 ANSEL_bits.AN1
+#define ANS2 ANSEL_bits.ANS2
#define AN2 ANSEL_bits.AN2
+#define ANS3 ANSEL_bits.ANS3
#define AN3 ANSEL_bits.AN3
+#define ANS4 ANSEL_bits.ANS4
#define AN4 ANSEL_bits.AN4
// ----- CCP1CON bits --------------------
#define C2SYNC CMCON1_bits.C2SYNC
#define T1GSS CMCON1_bits.T1GSS
+// ----- EEADRH bits --------------------
+typedef union {
+ struct {
+ unsigned char EEADRH0:1;
+ unsigned char EEADRH1:1;
+ unsigned char EEADRH2:1;
+ unsigned char EEADRH3:1;
+ unsigned char EEADRH4:1;
+ unsigned char :1;
+ unsigned char :1;
+ unsigned char :1;
+ };
+} __EEADRH_bits_t;
+extern volatile __EEADRH_bits_t __at(EEADRH_ADDR) EEADRH_bits;
+
+#define EEADRH0 EEADRH_bits.EEADRH0
+#define EEADRH1 EEADRH_bits.EEADRH1
+#define EEADRH2 EEADRH_bits.EEADRH2
+#define EEADRH3 EEADRH_bits.EEADRH3
+#define EEADRH4 EEADRH_bits.EEADRH4
+
+// ----- EEADRL bits --------------------
+typedef union {
+ struct {
+ unsigned char EEADRL0:1;
+ unsigned char EEADRL1:1;
+ unsigned char EEADRL2:1;
+ unsigned char EEADRL3:1;
+ unsigned char EEADRL4:1;
+ unsigned char EEADRL5:1;
+ unsigned char EEADRL6:1;
+ unsigned char EEADRL7:1;
+ };
+} __EEADRL_bits_t;
+extern volatile __EEADRL_bits_t __at(EEADRL_ADDR) EEADRL_bits;
+
+#define EEADRL0 EEADRL_bits.EEADRL0
+#define EEADRL1 EEADRL_bits.EEADRL1
+#define EEADRL2 EEADRL_bits.EEADRL2
+#define EEADRL3 EEADRL_bits.EEADRL3
+#define EEADRL4 EEADRL_bits.EEADRL4
+#define EEADRL5 EEADRL_bits.EEADRL5
+#define EEADRL6 EEADRL_bits.EEADRL6
+#define EEADRL7 EEADRL_bits.EEADRL7
+
// ----- EECON1 bits --------------------
typedef union {
struct {