gigasensore_UART/build/default/production/main.i

5252 lines
138 KiB
OpenEdge ABL

# 1 "main.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 288 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\language_support.h" 1 3
# 2 "<built-in>" 2
# 1 "main.c" 2
# 1 "./mcc_generated_files/mcc.h" 1
# 49 "./mcc_generated_files/mcc.h"
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\xc.h" 1 3
# 18 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\xc.h" 3
extern const char __xc8_OPTIM_SPEED;
extern double __fpnormalize(double);
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\xc8debug.h" 1 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdlib.h" 1 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\musl_xc8.h" 1 3
# 4 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdlib.h" 2 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\features.h" 1 3
# 10 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdlib.h" 2 3
# 21 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdlib.h" 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 1 3
# 18 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef long int wchar_t;
# 122 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef unsigned size_t;
# 168 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef __int24 int24_t;
# 204 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef __uint24 uint24_t;
# 21 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdlib.h" 2 3
int atoi (const char *);
long atol (const char *);
long long atoll (const char *);
double atof (const char *);
float strtof (const char *restrict, char **restrict);
double strtod (const char *restrict, char **restrict);
long double strtold (const char *restrict, char **restrict);
long strtol (const char *restrict, char **restrict, int);
unsigned long strtoul (const char *restrict, char **restrict, int);
long long strtoll (const char *restrict, char **restrict, int);
unsigned long long strtoull (const char *restrict, char **restrict, int);
int rand (void);
void srand (unsigned);
void abort (void);
int atexit (void (*) (void));
void exit (int);
void _Exit (int);
void *bsearch (const void *, const void *, size_t, size_t, int (*)(const void *, const void *));
__attribute__((nonreentrant)) void qsort (void *, size_t, size_t, int (*)(const void *, const void *));
int abs (int);
long labs (long);
long long llabs (long long);
typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;
typedef struct { long long quot, rem; } lldiv_t;
div_t div (int, int);
ldiv_t ldiv (long, long);
lldiv_t lldiv (long long, long long);
typedef struct { unsigned int quot, rem; } udiv_t;
typedef struct { unsigned long quot, rem; } uldiv_t;
udiv_t udiv (unsigned int, unsigned int);
uldiv_t uldiv (unsigned long, unsigned long);
size_t __ctype_get_mb_cur_max(void);
# 4 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\xc8debug.h" 2 3
#pragma intrinsic(__builtin_software_breakpoint)
extern void __builtin_software_breakpoint(void);
# 24 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\xc.h" 2 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 1 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\htc.h" 1 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\xc.h" 1 3
# 5 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\htc.h" 2 3
# 6 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 2 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic_chip_select.h" 1 3
# 399 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic_chip_select.h" 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 1 3
# 44 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\__at.h" 1 3
# 45 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 2 3
extern volatile unsigned char INDF0 __attribute__((address(0x000)));
__asm("INDF0 equ 00h");
typedef union {
struct {
unsigned INDF0 :8;
};
} INDF0bits_t;
extern volatile INDF0bits_t INDF0bits __attribute__((address(0x000)));
# 72 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char INDF1 __attribute__((address(0x001)));
__asm("INDF1 equ 01h");
typedef union {
struct {
unsigned INDF1 :8;
};
} INDF1bits_t;
extern volatile INDF1bits_t INDF1bits __attribute__((address(0x001)));
# 92 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PCL __attribute__((address(0x002)));
__asm("PCL equ 02h");
typedef union {
struct {
unsigned PCL :8;
};
} PCLbits_t;
extern volatile PCLbits_t PCLbits __attribute__((address(0x002)));
# 112 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char STATUS __attribute__((address(0x003)));
__asm("STATUS equ 03h");
typedef union {
struct {
unsigned C :1;
unsigned DC :1;
unsigned Z :1;
unsigned nPD :1;
unsigned nTO :1;
};
struct {
unsigned CARRY :1;
unsigned :1;
unsigned ZERO :1;
};
} STATUSbits_t;
extern volatile STATUSbits_t STATUSbits __attribute__((address(0x003)));
# 171 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short FSR0 __attribute__((address(0x004)));
extern volatile unsigned char FSR0L __attribute__((address(0x004)));
__asm("FSR0L equ 04h");
typedef union {
struct {
unsigned FSR0L :8;
};
} FSR0Lbits_t;
extern volatile FSR0Lbits_t FSR0Lbits __attribute__((address(0x004)));
# 195 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FSR0H __attribute__((address(0x005)));
__asm("FSR0H equ 05h");
typedef union {
struct {
unsigned FSR0H :8;
};
} FSR0Hbits_t;
extern volatile FSR0Hbits_t FSR0Hbits __attribute__((address(0x005)));
# 215 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short FSR1 __attribute__((address(0x006)));
extern volatile unsigned char FSR1L __attribute__((address(0x006)));
__asm("FSR1L equ 06h");
typedef union {
struct {
unsigned FSR1L :8;
};
} FSR1Lbits_t;
extern volatile FSR1Lbits_t FSR1Lbits __attribute__((address(0x006)));
# 239 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FSR1H __attribute__((address(0x007)));
__asm("FSR1H equ 07h");
typedef union {
struct {
unsigned FSR1H :8;
};
} FSR1Hbits_t;
extern volatile FSR1Hbits_t FSR1Hbits __attribute__((address(0x007)));
# 259 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char BSR __attribute__((address(0x008)));
__asm("BSR equ 08h");
typedef union {
struct {
unsigned BSR0 :1;
unsigned BSR1 :1;
unsigned BSR2 :1;
unsigned BSR3 :1;
unsigned BSR4 :1;
};
struct {
unsigned BSR :5;
};
} BSRbits_t;
extern volatile BSRbits_t BSRbits __attribute__((address(0x008)));
# 311 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char WREG __attribute__((address(0x009)));
__asm("WREG equ 09h");
typedef union {
struct {
unsigned WREG0 :8;
};
} WREGbits_t;
extern volatile WREGbits_t WREGbits __attribute__((address(0x009)));
# 331 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PCLATH __attribute__((address(0x00A)));
__asm("PCLATH equ 0Ah");
typedef union {
struct {
unsigned PCLATH :7;
};
} PCLATHbits_t;
extern volatile PCLATHbits_t PCLATHbits __attribute__((address(0x00A)));
# 351 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char INTCON __attribute__((address(0x00B)));
__asm("INTCON equ 0Bh");
typedef union {
struct {
unsigned IOCIF :1;
unsigned INTF :1;
unsigned TMR0IF :1;
unsigned IOCIE :1;
unsigned INTE :1;
unsigned TMR0IE :1;
unsigned PEIE :1;
unsigned GIE :1;
};
struct {
unsigned :2;
unsigned T0IF :1;
unsigned :2;
unsigned T0IE :1;
};
} INTCONbits_t;
extern volatile INTCONbits_t INTCONbits __attribute__((address(0x00B)));
# 429 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PORTA __attribute__((address(0x00C)));
__asm("PORTA equ 0Ch");
typedef union {
struct {
unsigned RA0 :1;
unsigned RA1 :1;
unsigned RA2 :1;
unsigned RA3 :1;
unsigned RA4 :1;
unsigned RA5 :1;
};
} PORTAbits_t;
extern volatile PORTAbits_t PORTAbits __attribute__((address(0x00C)));
# 479 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PORTB __attribute__((address(0x00D)));
__asm("PORTB equ 0Dh");
typedef union {
struct {
unsigned :4;
unsigned RB4 :1;
unsigned RB5 :1;
unsigned RB6 :1;
unsigned RB7 :1;
};
} PORTBbits_t;
extern volatile PORTBbits_t PORTBbits __attribute__((address(0x00D)));
# 518 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PORTC __attribute__((address(0x00E)));
__asm("PORTC equ 0Eh");
typedef union {
struct {
unsigned RC0 :1;
unsigned RC1 :1;
unsigned RC2 :1;
unsigned RC3 :1;
unsigned RC4 :1;
unsigned RC5 :1;
unsigned RC6 :1;
unsigned RC7 :1;
};
} PORTCbits_t;
extern volatile PORTCbits_t PORTCbits __attribute__((address(0x00E)));
# 580 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIR1 __attribute__((address(0x011)));
__asm("PIR1 equ 011h");
typedef union {
struct {
unsigned TMR1IF :1;
unsigned TMR2IF :1;
unsigned CCP1IF :1;
unsigned SSP1IF :1;
unsigned TXIF :1;
unsigned RCIF :1;
unsigned ADIF :1;
unsigned TMR1GIF :1;
};
} PIR1bits_t;
extern volatile PIR1bits_t PIR1bits __attribute__((address(0x011)));
# 642 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIR2 __attribute__((address(0x012)));
__asm("PIR2 equ 012h");
typedef union {
struct {
unsigned CCP2IF :1;
unsigned :2;
unsigned BCL1IF :1;
unsigned EEIF :1;
unsigned C1IF :1;
unsigned C2IF :1;
unsigned OSFIF :1;
};
} PIR2bits_t;
extern volatile PIR2bits_t PIR2bits __attribute__((address(0x012)));
# 693 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIR3 __attribute__((address(0x013)));
__asm("PIR3 equ 013h");
typedef union {
struct {
unsigned :1;
unsigned TMR4IF :1;
unsigned :1;
unsigned TMR6IF :1;
unsigned CCP3IF :1;
unsigned CCP4IF :1;
};
} PIR3bits_t;
extern volatile PIR3bits_t PIR3bits __attribute__((address(0x013)));
# 733 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIR4 __attribute__((address(0x014)));
__asm("PIR4 equ 014h");
typedef union {
struct {
unsigned SSP2IF :1;
unsigned BCL2IF :1;
};
} PIR4bits_t;
extern volatile PIR4bits_t PIR4bits __attribute__((address(0x014)));
# 759 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TMR0 __attribute__((address(0x015)));
__asm("TMR0 equ 015h");
typedef union {
struct {
unsigned TMR0 :8;
};
} TMR0bits_t;
extern volatile TMR0bits_t TMR0bits __attribute__((address(0x015)));
# 779 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short TMR1 __attribute__((address(0x016)));
__asm("TMR1 equ 016h");
extern volatile unsigned char TMR1L __attribute__((address(0x016)));
__asm("TMR1L equ 016h");
typedef union {
struct {
unsigned TMR1L :8;
};
} TMR1Lbits_t;
extern volatile TMR1Lbits_t TMR1Lbits __attribute__((address(0x016)));
# 806 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TMR1H __attribute__((address(0x017)));
__asm("TMR1H equ 017h");
typedef union {
struct {
unsigned TMR1H :8;
};
} TMR1Hbits_t;
extern volatile TMR1Hbits_t TMR1Hbits __attribute__((address(0x017)));
# 826 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char T1CON __attribute__((address(0x018)));
__asm("T1CON equ 018h");
typedef union {
struct {
unsigned TMR1ON :1;
unsigned :1;
unsigned nT1SYNC :1;
unsigned T1OSCEN :1;
unsigned T1CKPS0 :1;
unsigned T1CKPS1 :1;
unsigned TMR1CS0 :1;
unsigned TMR1CS1 :1;
};
struct {
unsigned :4;
unsigned T1CKPS :2;
unsigned TMR1CS :2;
};
} T1CONbits_t;
extern volatile T1CONbits_t T1CONbits __attribute__((address(0x018)));
# 898 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char T1GCON __attribute__((address(0x019)));
__asm("T1GCON equ 019h");
typedef union {
struct {
unsigned T1GSS0 :1;
unsigned T1GSS1 :1;
unsigned T1GVAL :1;
unsigned T1GGO :1;
unsigned T1GSPM :1;
unsigned T1GTM :1;
unsigned T1GPOL :1;
unsigned TMR1GE :1;
};
struct {
unsigned T1GSS :2;
};
} T1GCONbits_t;
extern volatile T1GCONbits_t T1GCONbits __attribute__((address(0x019)));
# 968 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TMR2 __attribute__((address(0x01A)));
__asm("TMR2 equ 01Ah");
typedef union {
struct {
unsigned TMR2 :8;
};
} TMR2bits_t;
extern volatile TMR2bits_t TMR2bits __attribute__((address(0x01A)));
# 988 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PR2 __attribute__((address(0x01B)));
__asm("PR2 equ 01Bh");
typedef union {
struct {
unsigned PR2 :8;
};
} PR2bits_t;
extern volatile PR2bits_t PR2bits __attribute__((address(0x01B)));
# 1008 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char T2CON __attribute__((address(0x01C)));
__asm("T2CON equ 01Ch");
typedef union {
struct {
unsigned T2CKPS0 :1;
unsigned T2CKPS1 :1;
unsigned TMR2ON :1;
unsigned T2OUTPS0 :1;
unsigned T2OUTPS1 :1;
unsigned T2OUTPS2 :1;
unsigned T2OUTPS3 :1;
};
struct {
unsigned T2CKPS :2;
unsigned :1;
unsigned T2OUTPS :4;
};
} T2CONbits_t;
extern volatile T2CONbits_t T2CONbits __attribute__((address(0x01C)));
# 1079 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CPSCON0 __attribute__((address(0x01E)));
__asm("CPSCON0 equ 01Eh");
typedef union {
struct {
unsigned T0XCS :1;
unsigned CPSOUT :1;
unsigned CPSRNG0 :1;
unsigned CPSRNG1 :1;
unsigned :2;
unsigned CPSRM :1;
unsigned CPSON :1;
};
struct {
unsigned :2;
unsigned CPSRNG :2;
};
} CPSCON0bits_t;
extern volatile CPSCON0bits_t CPSCON0bits __attribute__((address(0x01E)));
# 1139 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CPSCON1 __attribute__((address(0x01F)));
__asm("CPSCON1 equ 01Fh");
typedef union {
struct {
unsigned CPSCH0 :1;
unsigned CPSCH1 :1;
unsigned CPSCH2 :1;
unsigned CPSCH3 :1;
};
struct {
unsigned CPSCH :3;
};
} CPSCON1bits_t;
extern volatile CPSCON1bits_t CPSCON1bits __attribute__((address(0x01F)));
# 1185 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TRISA __attribute__((address(0x08C)));
__asm("TRISA equ 08Ch");
typedef union {
struct {
unsigned TRISA0 :1;
unsigned TRISA1 :1;
unsigned TRISA2 :1;
unsigned TRISA3 :1;
unsigned TRISA4 :1;
unsigned TRISA5 :1;
};
} TRISAbits_t;
extern volatile TRISAbits_t TRISAbits __attribute__((address(0x08C)));
# 1235 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TRISB __attribute__((address(0x08D)));
__asm("TRISB equ 08Dh");
typedef union {
struct {
unsigned :4;
unsigned TRISB4 :1;
unsigned TRISB5 :1;
unsigned TRISB6 :1;
unsigned TRISB7 :1;
};
} TRISBbits_t;
extern volatile TRISBbits_t TRISBbits __attribute__((address(0x08D)));
# 1274 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TRISC __attribute__((address(0x08E)));
__asm("TRISC equ 08Eh");
typedef union {
struct {
unsigned TRISC0 :1;
unsigned TRISC1 :1;
unsigned TRISC2 :1;
unsigned TRISC3 :1;
unsigned TRISC4 :1;
unsigned TRISC5 :1;
unsigned TRISC6 :1;
unsigned TRISC7 :1;
};
} TRISCbits_t;
extern volatile TRISCbits_t TRISCbits __attribute__((address(0x08E)));
# 1336 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIE1 __attribute__((address(0x091)));
__asm("PIE1 equ 091h");
typedef union {
struct {
unsigned TMR1IE :1;
unsigned TMR2IE :1;
unsigned CCP1IE :1;
unsigned SSP1IE :1;
unsigned TXIE :1;
unsigned RCIE :1;
unsigned ADIE :1;
unsigned TMR1GIE :1;
};
} PIE1bits_t;
extern volatile PIE1bits_t PIE1bits __attribute__((address(0x091)));
# 1398 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIE2 __attribute__((address(0x092)));
__asm("PIE2 equ 092h");
typedef union {
struct {
unsigned CCP2IE :1;
unsigned :2;
unsigned BCL1IE :1;
unsigned EEIE :1;
unsigned C1IE :1;
unsigned C2IE :1;
unsigned OSFIE :1;
};
} PIE2bits_t;
extern volatile PIE2bits_t PIE2bits __attribute__((address(0x092)));
# 1449 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIE3 __attribute__((address(0x093)));
__asm("PIE3 equ 093h");
typedef union {
struct {
unsigned :1;
unsigned TMR4IE :1;
unsigned :1;
unsigned TMR6IE :1;
unsigned CCP3IE :1;
unsigned CCP4IE :1;
};
} PIE3bits_t;
extern volatile PIE3bits_t PIE3bits __attribute__((address(0x093)));
# 1489 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PIE4 __attribute__((address(0x094)));
__asm("PIE4 equ 094h");
typedef union {
struct {
unsigned SSP2IE :1;
unsigned BCL2IE :1;
};
} PIE4bits_t;
extern volatile PIE4bits_t PIE4bits __attribute__((address(0x094)));
# 1515 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char OPTION_REG __attribute__((address(0x095)));
__asm("OPTION_REG equ 095h");
typedef union {
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
unsigned PSA :1;
unsigned TMR0SE :1;
unsigned TMR0CS :1;
unsigned INTEDG :1;
unsigned nWPUEN :1;
};
struct {
unsigned PS :3;
unsigned :1;
unsigned T0SE :1;
unsigned T0CS :1;
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __attribute__((address(0x095)));
# 1598 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PCON __attribute__((address(0x096)));
__asm("PCON equ 096h");
typedef union {
struct {
unsigned nBOR :1;
unsigned nPOR :1;
unsigned nRI :1;
unsigned nRMCLR :1;
unsigned :2;
unsigned STKUNF :1;
unsigned STKOVF :1;
};
} PCONbits_t;
extern volatile PCONbits_t PCONbits __attribute__((address(0x096)));
# 1649 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char WDTCON __attribute__((address(0x097)));
__asm("WDTCON equ 097h");
typedef union {
struct {
unsigned SWDTEN :1;
unsigned WDTPS0 :1;
unsigned WDTPS1 :1;
unsigned WDTPS2 :1;
unsigned WDTPS3 :1;
unsigned WDTPS4 :1;
};
struct {
unsigned :1;
unsigned WDTPS :5;
};
} WDTCONbits_t;
extern volatile WDTCONbits_t WDTCONbits __attribute__((address(0x097)));
# 1708 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char OSCTUNE __attribute__((address(0x098)));
__asm("OSCTUNE equ 098h");
typedef union {
struct {
unsigned TUN0 :1;
unsigned TUN1 :1;
unsigned TUN2 :1;
unsigned TUN3 :1;
unsigned TUN4 :1;
unsigned TUN5 :1;
};
struct {
unsigned TUN :6;
};
} OSCTUNEbits_t;
extern volatile OSCTUNEbits_t OSCTUNEbits __attribute__((address(0x098)));
# 1766 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char OSCCON __attribute__((address(0x099)));
__asm("OSCCON equ 099h");
typedef union {
struct {
unsigned SCS0 :1;
unsigned SCS1 :1;
unsigned :1;
unsigned IRCF0 :1;
unsigned IRCF1 :1;
unsigned IRCF2 :1;
unsigned IRCF3 :1;
unsigned SPLLEN :1;
};
struct {
unsigned SCS :2;
unsigned :1;
unsigned IRCF :4;
};
} OSCCONbits_t;
extern volatile OSCCONbits_t OSCCONbits __attribute__((address(0x099)));
# 1838 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char OSCSTAT __attribute__((address(0x09A)));
__asm("OSCSTAT equ 09Ah");
typedef union {
struct {
unsigned HFIOFS :1;
unsigned LFIOFR :1;
unsigned MFIOFR :1;
unsigned HFIOFL :1;
unsigned HFIOFR :1;
unsigned OSTS :1;
unsigned PLLR :1;
unsigned T1OSCR :1;
};
} OSCSTATbits_t;
extern volatile OSCSTATbits_t OSCSTATbits __attribute__((address(0x09A)));
# 1900 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short ADRES __attribute__((address(0x09B)));
__asm("ADRES equ 09Bh");
extern volatile unsigned char ADRESL __attribute__((address(0x09B)));
__asm("ADRESL equ 09Bh");
typedef union {
struct {
unsigned ADRESL :8;
};
} ADRESLbits_t;
extern volatile ADRESLbits_t ADRESLbits __attribute__((address(0x09B)));
# 1927 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char ADRESH __attribute__((address(0x09C)));
__asm("ADRESH equ 09Ch");
typedef union {
struct {
unsigned ADRESH :8;
};
} ADRESHbits_t;
extern volatile ADRESHbits_t ADRESHbits __attribute__((address(0x09C)));
# 1947 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char ADCON0 __attribute__((address(0x09D)));
__asm("ADCON0 equ 09Dh");
typedef union {
struct {
unsigned ADON :1;
unsigned GO_nDONE :1;
unsigned CHS0 :1;
unsigned CHS1 :1;
unsigned CHS2 :1;
unsigned CHS3 :1;
unsigned CHS4 :1;
};
struct {
unsigned :1;
unsigned ADGO :1;
unsigned CHS :5;
};
struct {
unsigned :1;
unsigned GO :1;
};
} ADCON0bits_t;
extern volatile ADCON0bits_t ADCON0bits __attribute__((address(0x09D)));
# 2027 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char ADCON1 __attribute__((address(0x09E)));
__asm("ADCON1 equ 09Eh");
typedef union {
struct {
unsigned ADPREF0 :1;
unsigned ADPREF1 :1;
unsigned ADNREF :1;
unsigned :1;
unsigned ADCS0 :1;
unsigned ADCS1 :1;
unsigned ADCS2 :1;
unsigned ADFM :1;
};
struct {
unsigned ADPREF :2;
unsigned :2;
unsigned ADCS :3;
};
} ADCON1bits_t;
extern volatile ADCON1bits_t ADCON1bits __attribute__((address(0x09E)));
# 2099 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char LATA __attribute__((address(0x10C)));
__asm("LATA equ 010Ch");
typedef union {
struct {
unsigned LATA0 :1;
unsigned LATA1 :1;
unsigned LATA2 :1;
unsigned :1;
unsigned LATA4 :1;
unsigned LATA5 :1;
};
} LATAbits_t;
extern volatile LATAbits_t LATAbits __attribute__((address(0x10C)));
# 2144 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char LATB __attribute__((address(0x10D)));
__asm("LATB equ 010Dh");
typedef union {
struct {
unsigned :4;
unsigned LATB4 :1;
unsigned LATB5 :1;
unsigned LATB6 :1;
unsigned LATB7 :1;
};
} LATBbits_t;
extern volatile LATBbits_t LATBbits __attribute__((address(0x10D)));
# 2183 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char LATC __attribute__((address(0x10E)));
__asm("LATC equ 010Eh");
typedef union {
struct {
unsigned LATC0 :1;
unsigned LATC1 :1;
unsigned LATC2 :1;
unsigned LATC3 :1;
unsigned LATC4 :1;
unsigned LATC5 :1;
unsigned LATC6 :1;
unsigned LATC7 :1;
};
} LATCbits_t;
extern volatile LATCbits_t LATCbits __attribute__((address(0x10E)));
# 2245 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CM1CON0 __attribute__((address(0x111)));
__asm("CM1CON0 equ 0111h");
typedef union {
struct {
unsigned C1SYNC :1;
unsigned C1HYS :1;
unsigned C1SP :1;
unsigned :1;
unsigned C1POL :1;
unsigned C1OE :1;
unsigned C1OUT :1;
unsigned C1ON :1;
};
} CM1CON0bits_t;
extern volatile CM1CON0bits_t CM1CON0bits __attribute__((address(0x111)));
# 2302 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CM1CON1 __attribute__((address(0x112)));
__asm("CM1CON1 equ 0112h");
typedef union {
struct {
unsigned C1NCH0 :1;
unsigned C1NCH1 :1;
unsigned :2;
unsigned C1PCH0 :1;
unsigned C1PCH1 :1;
unsigned C1INTN :1;
unsigned C1INTP :1;
};
struct {
unsigned C1NCH :2;
unsigned :2;
unsigned C1PCH :2;
};
} CM1CON1bits_t;
extern volatile CM1CON1bits_t CM1CON1bits __attribute__((address(0x112)));
# 2368 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CM2CON0 __attribute__((address(0x113)));
__asm("CM2CON0 equ 0113h");
typedef union {
struct {
unsigned C2SYNC :1;
unsigned C2HYS :1;
unsigned C2SP :1;
unsigned :1;
unsigned C2POL :1;
unsigned C2OE :1;
unsigned C2OUT :1;
unsigned C2ON :1;
};
} CM2CON0bits_t;
extern volatile CM2CON0bits_t CM2CON0bits __attribute__((address(0x113)));
# 2425 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CM2CON1 __attribute__((address(0x114)));
__asm("CM2CON1 equ 0114h");
typedef union {
struct {
unsigned C2NCH0 :1;
unsigned C2NCH1 :1;
unsigned :2;
unsigned C2PCH0 :1;
unsigned C2PCH1 :1;
unsigned C2INTN :1;
unsigned C2INTP :1;
};
struct {
unsigned C2NCH :2;
unsigned :2;
unsigned C2PCH :2;
};
} CM2CON1bits_t;
extern volatile CM2CON1bits_t CM2CON1bits __attribute__((address(0x114)));
# 2491 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CMOUT __attribute__((address(0x115)));
__asm("CMOUT equ 0115h");
typedef union {
struct {
unsigned MC1OUT :1;
unsigned MC2OUT :1;
};
} CMOUTbits_t;
extern volatile CMOUTbits_t CMOUTbits __attribute__((address(0x115)));
# 2517 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char BORCON __attribute__((address(0x116)));
__asm("BORCON equ 0116h");
typedef union {
struct {
unsigned BORRDY :1;
unsigned :6;
unsigned SBOREN :1;
};
} BORCONbits_t;
extern volatile BORCONbits_t BORCONbits __attribute__((address(0x116)));
# 2544 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FVRCON __attribute__((address(0x117)));
__asm("FVRCON equ 0117h");
typedef union {
struct {
unsigned ADFVR0 :1;
unsigned ADFVR1 :1;
unsigned CDAFVR0 :1;
unsigned CDAFVR1 :1;
unsigned TSRNG :1;
unsigned TSEN :1;
unsigned FVRRDY :1;
unsigned FVREN :1;
};
struct {
unsigned ADFVR :2;
unsigned CDAFVR :2;
};
} FVRCONbits_t;
extern volatile FVRCONbits_t FVRCONbits __attribute__((address(0x117)));
# 2620 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char DACCON0 __attribute__((address(0x118)));
__asm("DACCON0 equ 0118h");
typedef union {
struct {
unsigned DACNSS :1;
unsigned :1;
unsigned DACPSS0 :1;
unsigned DACPSS1 :1;
unsigned :1;
unsigned DACOE :1;
unsigned DACLPS :1;
unsigned DACEN :1;
};
struct {
unsigned :2;
unsigned DACPSS :2;
};
} DACCON0bits_t;
extern volatile DACCON0bits_t DACCON0bits __attribute__((address(0x118)));
# 2681 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char DACCON1 __attribute__((address(0x119)));
__asm("DACCON1 equ 0119h");
typedef union {
struct {
unsigned DACR0 :1;
unsigned DACR1 :1;
unsigned DACR2 :1;
unsigned DACR3 :1;
unsigned DACR4 :1;
};
struct {
unsigned DACR :5;
};
} DACCON1bits_t;
extern volatile DACCON1bits_t DACCON1bits __attribute__((address(0x119)));
# 2733 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SRCON0 __attribute__((address(0x11A)));
__asm("SRCON0 equ 011Ah");
typedef union {
struct {
unsigned SRPR :1;
unsigned SRPS :1;
unsigned SRNQEN :1;
unsigned SRQEN :1;
unsigned SRCLK0 :1;
unsigned SRCLK1 :1;
unsigned SRCLK2 :1;
unsigned SRLEN :1;
};
struct {
unsigned :4;
unsigned SRCLK :3;
};
} SRCON0bits_t;
extern volatile SRCON0bits_t SRCON0bits __attribute__((address(0x11A)));
# 2804 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SRCON1 __attribute__((address(0x11B)));
__asm("SRCON1 equ 011Bh");
typedef union {
struct {
unsigned SRRC1E :1;
unsigned SRRC2E :1;
unsigned SRRCKE :1;
unsigned SRRPE :1;
unsigned SRSC1E :1;
unsigned SRSC2E :1;
unsigned SRSCKE :1;
unsigned SRSPE :1;
};
} SRCON1bits_t;
extern volatile SRCON1bits_t SRCON1bits __attribute__((address(0x11B)));
# 2866 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char APFCON0 __attribute__((address(0x11D)));
__asm("APFCON0 equ 011Dh");
typedef union {
struct {
unsigned :2;
unsigned TXCKSEL :1;
unsigned T1GSEL :1;
unsigned :3;
unsigned RXDTSEL :1;
};
} APFCON0bits_t;
extern volatile APFCON0bits_t APFCON0bits __attribute__((address(0x11D)));
# 2900 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char APFCON1 __attribute__((address(0x11E)));
__asm("APFCON1 equ 011Eh");
typedef union {
struct {
unsigned CCP2SEL :1;
unsigned P2BSEL :1;
unsigned P1CSEL :1;
unsigned P1DSEL :1;
unsigned SS2SEL :1;
unsigned SDO2SEL :1;
};
} APFCON1bits_t;
extern volatile APFCON1bits_t APFCON1bits __attribute__((address(0x11E)));
# 2950 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char ANSELA __attribute__((address(0x18C)));
__asm("ANSELA equ 018Ch");
typedef union {
struct {
unsigned ANSA0 :1;
unsigned ANSA1 :1;
unsigned ANSA2 :1;
unsigned :1;
unsigned ANSA4 :1;
};
struct {
unsigned ANSELA :5;
};
} ANSELAbits_t;
extern volatile ANSELAbits_t ANSELAbits __attribute__((address(0x18C)));
# 2997 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char ANSELB __attribute__((address(0x18D)));
__asm("ANSELB equ 018Dh");
typedef union {
struct {
unsigned :4;
unsigned ANSELB :2;
};
struct {
unsigned :4;
unsigned ANSB4 :1;
unsigned ANSB5 :1;
};
} ANSELBbits_t;
extern volatile ANSELBbits_t ANSELBbits __attribute__((address(0x18D)));
# 3033 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char ANSELC __attribute__((address(0x18E)));
__asm("ANSELC equ 018Eh");
typedef union {
struct {
unsigned ANSC0 :1;
unsigned ANSC1 :1;
unsigned ANSC2 :1;
unsigned ANSC3 :1;
unsigned :2;
unsigned ANSC6 :1;
unsigned ANSC7 :1;
};
struct {
unsigned ANSELC :8;
};
} ANSELCbits_t;
extern volatile ANSELCbits_t ANSELCbits __attribute__((address(0x18E)));
# 3092 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short EEADR __attribute__((address(0x191)));
__asm("EEADR equ 0191h");
extern volatile unsigned char EEADRL __attribute__((address(0x191)));
__asm("EEADRL equ 0191h");
typedef union {
struct {
unsigned EEADRL :8;
};
} EEADRLbits_t;
extern volatile EEADRLbits_t EEADRLbits __attribute__((address(0x191)));
# 3119 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char EEADRH __attribute__((address(0x192)));
__asm("EEADRH equ 0192h");
typedef union {
struct {
unsigned EEADRH :7;
};
} EEADRHbits_t;
extern volatile EEADRHbits_t EEADRHbits __attribute__((address(0x192)));
# 3139 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short EEDAT __attribute__((address(0x193)));
__asm("EEDAT equ 0193h");
extern volatile unsigned char EEDATL __attribute__((address(0x193)));
__asm("EEDATL equ 0193h");
extern volatile unsigned char EEDATA __attribute__((address(0x193)));
__asm("EEDATA equ 0193h");
typedef union {
struct {
unsigned EEDATL :8;
};
} EEDATLbits_t;
extern volatile EEDATLbits_t EEDATLbits __attribute__((address(0x193)));
typedef union {
struct {
unsigned EEDATL :8;
};
} EEDATAbits_t;
extern volatile EEDATAbits_t EEDATAbits __attribute__((address(0x193)));
# 3184 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char EEDATH __attribute__((address(0x194)));
__asm("EEDATH equ 0194h");
typedef union {
struct {
unsigned EEDATH :6;
};
} EEDATHbits_t;
extern volatile EEDATHbits_t EEDATHbits __attribute__((address(0x194)));
# 3204 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char EECON1 __attribute__((address(0x195)));
__asm("EECON1 equ 0195h");
typedef union {
struct {
unsigned RD :1;
unsigned WR :1;
unsigned WREN :1;
unsigned WRERR :1;
unsigned FREE :1;
unsigned LWLO :1;
unsigned CFGS :1;
unsigned EEPGD :1;
};
} EECON1bits_t;
extern volatile EECON1bits_t EECON1bits __attribute__((address(0x195)));
# 3266 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char EECON2 __attribute__((address(0x196)));
__asm("EECON2 equ 0196h");
typedef union {
struct {
unsigned EECON2 :8;
};
} EECON2bits_t;
extern volatile EECON2bits_t EECON2bits __attribute__((address(0x196)));
# 3286 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char RCREG __attribute__((address(0x199)));
__asm("RCREG equ 0199h");
typedef union {
struct {
unsigned RCREG :8;
};
} RCREGbits_t;
extern volatile RCREGbits_t RCREGbits __attribute__((address(0x199)));
# 3306 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TXREG __attribute__((address(0x19A)));
__asm("TXREG equ 019Ah");
typedef union {
struct {
unsigned TXREG :8;
};
} TXREGbits_t;
extern volatile TXREGbits_t TXREGbits __attribute__((address(0x19A)));
# 3326 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short SPBRG __attribute__((address(0x19B)));
__asm("SPBRG equ 019Bh");
extern volatile unsigned char SPBRGL __attribute__((address(0x19B)));
__asm("SPBRGL equ 019Bh");
typedef union {
struct {
unsigned SPBRGL :8;
};
} SPBRGLbits_t;
extern volatile SPBRGLbits_t SPBRGLbits __attribute__((address(0x19B)));
# 3353 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SPBRGH __attribute__((address(0x19C)));
__asm("SPBRGH equ 019Ch");
typedef union {
struct {
unsigned SPBRGH :8;
};
} SPBRGHbits_t;
extern volatile SPBRGHbits_t SPBRGHbits __attribute__((address(0x19C)));
# 3373 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char RCSTA __attribute__((address(0x19D)));
__asm("RCSTA equ 019Dh");
typedef union {
struct {
unsigned RX9D :1;
unsigned OERR :1;
unsigned FERR :1;
unsigned ADDEN :1;
unsigned CREN :1;
unsigned SREN :1;
unsigned RX9 :1;
unsigned SPEN :1;
};
} RCSTAbits_t;
extern volatile RCSTAbits_t RCSTAbits __attribute__((address(0x19D)));
# 3435 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TXSTA __attribute__((address(0x19E)));
__asm("TXSTA equ 019Eh");
typedef union {
struct {
unsigned TX9D :1;
unsigned TRMT :1;
unsigned BRGH :1;
unsigned SENDB :1;
unsigned SYNC :1;
unsigned TXEN :1;
unsigned TX9 :1;
unsigned CSRC :1;
};
} TXSTAbits_t;
extern volatile TXSTAbits_t TXSTAbits __attribute__((address(0x19E)));
# 3497 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char BAUDCON __attribute__((address(0x19F)));
__asm("BAUDCON equ 019Fh");
typedef union {
struct {
unsigned ABDEN :1;
unsigned WUE :1;
unsigned :1;
unsigned BRG16 :1;
unsigned SCKP :1;
unsigned :1;
unsigned RCIDL :1;
unsigned ABDOVF :1;
};
} BAUDCONbits_t;
extern volatile BAUDCONbits_t BAUDCONbits __attribute__((address(0x19F)));
# 3549 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char WPUA __attribute__((address(0x20C)));
__asm("WPUA equ 020Ch");
typedef union {
struct {
unsigned WPUA0 :1;
unsigned WPUA1 :1;
unsigned WPUA2 :1;
unsigned WPUA3 :1;
unsigned WPUA4 :1;
unsigned WPUA5 :1;
};
struct {
unsigned WPUA :6;
};
} WPUAbits_t;
extern volatile WPUAbits_t WPUAbits __attribute__((address(0x20C)));
# 3607 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char WPUB __attribute__((address(0x20D)));
__asm("WPUB equ 020Dh");
typedef union {
struct {
unsigned :4;
unsigned WPUB4 :1;
unsigned WPUB5 :1;
unsigned WPUB6 :1;
unsigned WPUB7 :1;
};
struct {
unsigned :4;
unsigned WPUB :4;
};
} WPUBbits_t;
extern volatile WPUBbits_t WPUBbits __attribute__((address(0x20D)));
# 3655 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char WPUC __attribute__((address(0x20E)));
__asm("WPUC equ 020Eh");
typedef union {
struct {
unsigned WPUC0 :1;
unsigned WPUC1 :1;
unsigned WPUC2 :1;
unsigned WPUC3 :1;
unsigned WPUC4 :1;
unsigned WPUC5 :1;
unsigned WPUC6 :1;
unsigned WPUC7 :1;
};
struct {
unsigned WPUC :8;
};
} WPUCbits_t;
extern volatile WPUCbits_t WPUCbits __attribute__((address(0x20E)));
# 3725 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1BUF __attribute__((address(0x211)));
__asm("SSP1BUF equ 0211h");
extern volatile unsigned char SSPBUF __attribute__((address(0x211)));
__asm("SSPBUF equ 0211h");
typedef union {
struct {
unsigned SSPBUF :8;
};
} SSP1BUFbits_t;
extern volatile SSP1BUFbits_t SSP1BUFbits __attribute__((address(0x211)));
typedef union {
struct {
unsigned SSPBUF :8;
};
} SSPBUFbits_t;
extern volatile SSPBUFbits_t SSPBUFbits __attribute__((address(0x211)));
# 3763 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1ADD __attribute__((address(0x212)));
__asm("SSP1ADD equ 0212h");
extern volatile unsigned char SSPADD __attribute__((address(0x212)));
__asm("SSPADD equ 0212h");
typedef union {
struct {
unsigned SSPADD :8;
};
} SSP1ADDbits_t;
extern volatile SSP1ADDbits_t SSP1ADDbits __attribute__((address(0x212)));
typedef union {
struct {
unsigned SSPADD :8;
};
} SSPADDbits_t;
extern volatile SSPADDbits_t SSPADDbits __attribute__((address(0x212)));
# 3801 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1MSK __attribute__((address(0x213)));
__asm("SSP1MSK equ 0213h");
extern volatile unsigned char SSPMSK __attribute__((address(0x213)));
__asm("SSPMSK equ 0213h");
typedef union {
struct {
unsigned SSPMSK :8;
};
} SSP1MSKbits_t;
extern volatile SSP1MSKbits_t SSP1MSKbits __attribute__((address(0x213)));
typedef union {
struct {
unsigned SSPMSK :8;
};
} SSPMSKbits_t;
extern volatile SSPMSKbits_t SSPMSKbits __attribute__((address(0x213)));
# 3839 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1STAT __attribute__((address(0x214)));
__asm("SSP1STAT equ 0214h");
extern volatile unsigned char SSPSTAT __attribute__((address(0x214)));
__asm("SSPSTAT equ 0214h");
typedef union {
struct {
unsigned BF :1;
unsigned UA :1;
unsigned R_nW :1;
unsigned S :1;
unsigned P :1;
unsigned D_nA :1;
unsigned CKE :1;
unsigned SMP :1;
};
} SSP1STATbits_t;
extern volatile SSP1STATbits_t SSP1STATbits __attribute__((address(0x214)));
# 3904 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
typedef union {
struct {
unsigned BF :1;
unsigned UA :1;
unsigned R_nW :1;
unsigned S :1;
unsigned P :1;
unsigned D_nA :1;
unsigned CKE :1;
unsigned SMP :1;
};
} SSPSTATbits_t;
extern volatile SSPSTATbits_t SSPSTATbits __attribute__((address(0x214)));
# 3961 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1CON1 __attribute__((address(0x215)));
__asm("SSP1CON1 equ 0215h");
extern volatile unsigned char SSPCON1 __attribute__((address(0x215)));
__asm("SSPCON1 equ 0215h");
extern volatile unsigned char SSPCON __attribute__((address(0x215)));
__asm("SSPCON equ 0215h");
typedef union {
struct {
unsigned SSPM0 :1;
unsigned SSPM1 :1;
unsigned SSPM2 :1;
unsigned SSPM3 :1;
unsigned CKP :1;
unsigned SSPEN :1;
unsigned SSPOV :1;
unsigned WCOL :1;
};
struct {
unsigned SSPM :4;
};
} SSP1CON1bits_t;
extern volatile SSP1CON1bits_t SSP1CON1bits __attribute__((address(0x215)));
# 4038 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
typedef union {
struct {
unsigned SSPM0 :1;
unsigned SSPM1 :1;
unsigned SSPM2 :1;
unsigned SSPM3 :1;
unsigned CKP :1;
unsigned SSPEN :1;
unsigned SSPOV :1;
unsigned WCOL :1;
};
struct {
unsigned SSPM :4;
};
} SSPCON1bits_t;
extern volatile SSPCON1bits_t SSPCON1bits __attribute__((address(0x215)));
# 4100 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
typedef union {
struct {
unsigned SSPM0 :1;
unsigned SSPM1 :1;
unsigned SSPM2 :1;
unsigned SSPM3 :1;
unsigned CKP :1;
unsigned SSPEN :1;
unsigned SSPOV :1;
unsigned WCOL :1;
};
struct {
unsigned SSPM :4;
};
} SSPCONbits_t;
extern volatile SSPCONbits_t SSPCONbits __attribute__((address(0x215)));
# 4165 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1CON2 __attribute__((address(0x216)));
__asm("SSP1CON2 equ 0216h");
extern volatile unsigned char SSPCON2 __attribute__((address(0x216)));
__asm("SSPCON2 equ 0216h");
typedef union {
struct {
unsigned SEN :1;
unsigned RSEN :1;
unsigned PEN :1;
unsigned RCEN :1;
unsigned ACKEN :1;
unsigned ACKDT :1;
unsigned ACKSTAT :1;
unsigned GCEN :1;
};
} SSP1CON2bits_t;
extern volatile SSP1CON2bits_t SSP1CON2bits __attribute__((address(0x216)));
# 4230 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
typedef union {
struct {
unsigned SEN :1;
unsigned RSEN :1;
unsigned PEN :1;
unsigned RCEN :1;
unsigned ACKEN :1;
unsigned ACKDT :1;
unsigned ACKSTAT :1;
unsigned GCEN :1;
};
} SSPCON2bits_t;
extern volatile SSPCON2bits_t SSPCON2bits __attribute__((address(0x216)));
# 4287 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP1CON3 __attribute__((address(0x217)));
__asm("SSP1CON3 equ 0217h");
extern volatile unsigned char SSPCON3 __attribute__((address(0x217)));
__asm("SSPCON3 equ 0217h");
typedef union {
struct {
unsigned DHEN :1;
unsigned AHEN :1;
unsigned SBCDE :1;
unsigned SDAHT :1;
unsigned BOEN :1;
unsigned SCIE :1;
unsigned PCIE :1;
unsigned ACKTIM :1;
};
} SSP1CON3bits_t;
extern volatile SSP1CON3bits_t SSP1CON3bits __attribute__((address(0x217)));
# 4352 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
typedef union {
struct {
unsigned DHEN :1;
unsigned AHEN :1;
unsigned SBCDE :1;
unsigned SDAHT :1;
unsigned BOEN :1;
unsigned SCIE :1;
unsigned PCIE :1;
unsigned ACKTIM :1;
};
} SSPCON3bits_t;
extern volatile SSPCON3bits_t SSPCON3bits __attribute__((address(0x217)));
# 4409 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2BUF __attribute__((address(0x219)));
__asm("SSP2BUF equ 0219h");
typedef union {
struct {
unsigned SSPBUF :8;
};
} SSP2BUFbits_t;
extern volatile SSP2BUFbits_t SSP2BUFbits __attribute__((address(0x219)));
# 4429 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2ADD __attribute__((address(0x21A)));
__asm("SSP2ADD equ 021Ah");
typedef union {
struct {
unsigned SSPADD :8;
};
} SSP2ADDbits_t;
extern volatile SSP2ADDbits_t SSP2ADDbits __attribute__((address(0x21A)));
# 4449 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2MSK __attribute__((address(0x21B)));
__asm("SSP2MSK equ 021Bh");
typedef union {
struct {
unsigned SSPMSK :8;
};
} SSP2MSKbits_t;
extern volatile SSP2MSKbits_t SSP2MSKbits __attribute__((address(0x21B)));
# 4469 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2STAT __attribute__((address(0x21C)));
__asm("SSP2STAT equ 021Ch");
typedef union {
struct {
unsigned BF :1;
unsigned UA :1;
unsigned R_nW :1;
unsigned S :1;
unsigned P :1;
unsigned D_nA :1;
unsigned CKE :1;
unsigned SMP :1;
};
} SSP2STATbits_t;
extern volatile SSP2STATbits_t SSP2STATbits __attribute__((address(0x21C)));
# 4531 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2CON1 __attribute__((address(0x21D)));
__asm("SSP2CON1 equ 021Dh");
typedef union {
struct {
unsigned SSPM0 :1;
unsigned SSPM1 :1;
unsigned SSPM2 :1;
unsigned SSPM3 :1;
unsigned CKP :1;
unsigned SSPEN :1;
unsigned SSPOV :1;
unsigned WCOL :1;
};
struct {
unsigned SSPM :4;
};
} SSP2CON1bits_t;
extern volatile SSP2CON1bits_t SSP2CON1bits __attribute__((address(0x21D)));
# 4601 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2CON2 __attribute__((address(0x21E)));
__asm("SSP2CON2 equ 021Eh");
typedef union {
struct {
unsigned SEN :1;
unsigned RSEN :1;
unsigned PEN :1;
unsigned RCEN :1;
unsigned ACKEN :1;
unsigned ACKDT :1;
unsigned ACKSTAT :1;
unsigned GCEN :1;
};
} SSP2CON2bits_t;
extern volatile SSP2CON2bits_t SSP2CON2bits __attribute__((address(0x21E)));
# 4663 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char SSP2CON3 __attribute__((address(0x21F)));
__asm("SSP2CON3 equ 021Fh");
typedef union {
struct {
unsigned DHEN :1;
unsigned AHEN :1;
unsigned SBCDE :1;
unsigned SDAHT :1;
unsigned BOEN :1;
unsigned SCIE :1;
unsigned PCIE :1;
unsigned ACKTIM :1;
};
} SSP2CON3bits_t;
extern volatile SSP2CON3bits_t SSP2CON3bits __attribute__((address(0x21F)));
# 4725 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short CCPR1 __attribute__((address(0x291)));
__asm("CCPR1 equ 0291h");
extern volatile unsigned char CCPR1L __attribute__((address(0x291)));
__asm("CCPR1L equ 0291h");
typedef union {
struct {
unsigned CCPR1L :8;
};
} CCPR1Lbits_t;
extern volatile CCPR1Lbits_t CCPR1Lbits __attribute__((address(0x291)));
# 4752 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCPR1H __attribute__((address(0x292)));
__asm("CCPR1H equ 0292h");
typedef union {
struct {
unsigned CCPR1H :8;
};
} CCPR1Hbits_t;
extern volatile CCPR1Hbits_t CCPR1Hbits __attribute__((address(0x292)));
# 4772 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCP1CON __attribute__((address(0x293)));
__asm("CCP1CON equ 0293h");
typedef union {
struct {
unsigned CCP1M0 :1;
unsigned CCP1M1 :1;
unsigned CCP1M2 :1;
unsigned CCP1M3 :1;
unsigned DC1B0 :1;
unsigned DC1B1 :1;
unsigned P1M0 :1;
unsigned P1M1 :1;
};
struct {
unsigned CCP1M :4;
unsigned DC1B :2;
unsigned P1M :2;
};
} CCP1CONbits_t;
extern volatile CCP1CONbits_t CCP1CONbits __attribute__((address(0x293)));
# 4854 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PWM1CON __attribute__((address(0x294)));
__asm("PWM1CON equ 0294h");
typedef union {
struct {
unsigned P1DC0 :1;
unsigned P1DC1 :1;
unsigned P1DC2 :1;
unsigned P1DC3 :1;
unsigned P1DC4 :1;
unsigned P1DC5 :1;
unsigned P1DC6 :1;
unsigned P1RSEN :1;
};
struct {
unsigned P1DC :7;
};
} PWM1CONbits_t;
extern volatile PWM1CONbits_t PWM1CONbits __attribute__((address(0x294)));
# 4924 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCP1AS __attribute__((address(0x295)));
__asm("CCP1AS equ 0295h");
extern volatile unsigned char ECCP1AS __attribute__((address(0x295)));
__asm("ECCP1AS equ 0295h");
typedef union {
struct {
unsigned PSS1BD0 :1;
unsigned PSS1BD1 :1;
unsigned PSS1AC0 :1;
unsigned PSS1AC1 :1;
unsigned CCP1AS0 :1;
unsigned CCP1AS1 :1;
unsigned CCP1AS2 :1;
unsigned CCP1ASE :1;
};
struct {
unsigned PSS1BD :2;
unsigned PSS1AC :2;
unsigned CCP1AS :3;
};
} CCP1ASbits_t;
extern volatile CCP1ASbits_t CCP1ASbits __attribute__((address(0x295)));
# 5009 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
typedef union {
struct {
unsigned PSS1BD0 :1;
unsigned PSS1BD1 :1;
unsigned PSS1AC0 :1;
unsigned PSS1AC1 :1;
unsigned CCP1AS0 :1;
unsigned CCP1AS1 :1;
unsigned CCP1AS2 :1;
unsigned CCP1ASE :1;
};
struct {
unsigned PSS1BD :2;
unsigned PSS1AC :2;
unsigned CCP1AS :3;
};
} ECCP1ASbits_t;
extern volatile ECCP1ASbits_t ECCP1ASbits __attribute__((address(0x295)));
# 5086 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PSTR1CON __attribute__((address(0x296)));
__asm("PSTR1CON equ 0296h");
typedef union {
struct {
unsigned STR1A :1;
unsigned STR1B :1;
unsigned STR1C :1;
unsigned STR1D :1;
unsigned STR1SYNC :1;
};
} PSTR1CONbits_t;
extern volatile PSTR1CONbits_t PSTR1CONbits __attribute__((address(0x296)));
# 5130 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short CCPR2 __attribute__((address(0x298)));
__asm("CCPR2 equ 0298h");
extern volatile unsigned char CCPR2L __attribute__((address(0x298)));
__asm("CCPR2L equ 0298h");
typedef union {
struct {
unsigned CCPR2L :8;
};
} CCPR2Lbits_t;
extern volatile CCPR2Lbits_t CCPR2Lbits __attribute__((address(0x298)));
# 5157 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCPR2H __attribute__((address(0x299)));
__asm("CCPR2H equ 0299h");
typedef union {
struct {
unsigned CCPR2H :8;
};
} CCPR2Hbits_t;
extern volatile CCPR2Hbits_t CCPR2Hbits __attribute__((address(0x299)));
# 5177 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCP2CON __attribute__((address(0x29A)));
__asm("CCP2CON equ 029Ah");
typedef union {
struct {
unsigned CCP2M0 :1;
unsigned CCP2M1 :1;
unsigned CCP2M2 :1;
unsigned CCP2M3 :1;
unsigned DC2B0 :1;
unsigned DC2B1 :1;
unsigned P2M0 :1;
unsigned P2M1 :1;
};
struct {
unsigned CCP2M :4;
unsigned DC2B :2;
unsigned P2M :2;
};
} CCP2CONbits_t;
extern volatile CCP2CONbits_t CCP2CONbits __attribute__((address(0x29A)));
# 5259 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PWM2CON __attribute__((address(0x29B)));
__asm("PWM2CON equ 029Bh");
typedef union {
struct {
unsigned P2DC0 :1;
unsigned P2DC1 :1;
unsigned P2DC2 :1;
unsigned P2DC3 :1;
unsigned P2DC4 :1;
unsigned P2DC5 :1;
unsigned P2DC6 :1;
unsigned P2RSEN :1;
};
struct {
unsigned P2DC :7;
};
} PWM2CONbits_t;
extern volatile PWM2CONbits_t PWM2CONbits __attribute__((address(0x29B)));
# 5329 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCP2AS __attribute__((address(0x29C)));
__asm("CCP2AS equ 029Ch");
typedef union {
struct {
unsigned PSS2BD0 :1;
unsigned PSS2BD1 :1;
unsigned PSS2AC0 :1;
unsigned PSS2AC1 :1;
unsigned CCP2AS0 :1;
unsigned CCP2AS1 :1;
unsigned CCP2AS2 :1;
unsigned CCP2ASE :1;
};
struct {
unsigned PSS2BD :2;
unsigned PSS2AC :2;
unsigned CCP2AS :3;
};
} CCP2ASbits_t;
extern volatile CCP2ASbits_t CCP2ASbits __attribute__((address(0x29C)));
# 5411 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PSTR2CON __attribute__((address(0x29D)));
__asm("PSTR2CON equ 029Dh");
typedef union {
struct {
unsigned STR2A :1;
unsigned STR2B :1;
unsigned STR2C :1;
unsigned STR2D :1;
unsigned STR2SYNC :1;
};
} PSTR2CONbits_t;
extern volatile PSTR2CONbits_t PSTR2CONbits __attribute__((address(0x29D)));
# 5455 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCPTMRS __attribute__((address(0x29E)));
__asm("CCPTMRS equ 029Eh");
typedef union {
struct {
unsigned C1TSEL0 :1;
unsigned C1TSEL1 :1;
unsigned C2TSEL0 :1;
unsigned C2TSEL1 :1;
unsigned C3TSEL0 :1;
unsigned C3TSEL1 :1;
unsigned C4TSEL0 :1;
unsigned C4TSEL1 :1;
};
struct {
unsigned C1TSEL :2;
unsigned C2TSEL :2;
unsigned C3TSEL :2;
unsigned C4TSEL :2;
};
} CCPTMRSbits_t;
extern volatile CCPTMRSbits_t CCPTMRSbits __attribute__((address(0x29E)));
# 5543 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short CCPR3 __attribute__((address(0x311)));
__asm("CCPR3 equ 0311h");
extern volatile unsigned char CCPR3L __attribute__((address(0x311)));
__asm("CCPR3L equ 0311h");
typedef union {
struct {
unsigned CCPR3L :8;
};
} CCPR3Lbits_t;
extern volatile CCPR3Lbits_t CCPR3Lbits __attribute__((address(0x311)));
# 5570 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCPR3H __attribute__((address(0x312)));
__asm("CCPR3H equ 0312h");
typedef union {
struct {
unsigned CCPR3H :8;
};
} CCPR3Hbits_t;
extern volatile CCPR3Hbits_t CCPR3Hbits __attribute__((address(0x312)));
# 5590 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCP3CON __attribute__((address(0x313)));
__asm("CCP3CON equ 0313h");
typedef union {
struct {
unsigned CCP3M0 :1;
unsigned CCP3M1 :1;
unsigned CCP3M2 :1;
unsigned CCP3M3 :1;
unsigned DC3B0 :1;
unsigned DC3B1 :1;
};
struct {
unsigned CCP3M :4;
unsigned DC3B :2;
};
} CCP3CONbits_t;
extern volatile CCP3CONbits_t CCP3CONbits __attribute__((address(0x313)));
# 5654 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned short CCPR4 __attribute__((address(0x318)));
__asm("CCPR4 equ 0318h");
extern volatile unsigned char CCPR4L __attribute__((address(0x318)));
__asm("CCPR4L equ 0318h");
typedef union {
struct {
unsigned CCPR4L :8;
};
} CCPR4Lbits_t;
extern volatile CCPR4Lbits_t CCPR4Lbits __attribute__((address(0x318)));
# 5681 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCPR4H __attribute__((address(0x319)));
__asm("CCPR4H equ 0319h");
typedef union {
struct {
unsigned CCPR4H :8;
};
} CCPR4Hbits_t;
extern volatile CCPR4Hbits_t CCPR4Hbits __attribute__((address(0x319)));
# 5701 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CCP4CON __attribute__((address(0x31A)));
__asm("CCP4CON equ 031Ah");
typedef union {
struct {
unsigned CCP4M0 :1;
unsigned CCP4M1 :1;
unsigned CCP4M2 :1;
unsigned CCP4M3 :1;
unsigned DC4B0 :1;
unsigned DC4B1 :1;
};
struct {
unsigned CCP4M :4;
unsigned DC4B :2;
};
} CCP4CONbits_t;
extern volatile CCP4CONbits_t CCP4CONbits __attribute__((address(0x31A)));
# 5765 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char INLVLA __attribute__((address(0x38C)));
__asm("INLVLA equ 038Ch");
typedef union {
struct {
unsigned INLVLA0 :1;
unsigned INLVLA1 :1;
unsigned INLVLA2 :1;
unsigned INLVLA3 :1;
unsigned INLVLA4 :1;
unsigned INLVLA5 :1;
};
struct {
unsigned INLVLA :6;
};
} INLVLAbits_t;
extern volatile INLVLAbits_t INLVLAbits __attribute__((address(0x38C)));
# 5823 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char INLVLB __attribute__((address(0x38D)));
__asm("INLVLB equ 038Dh");
typedef union {
struct {
unsigned :4;
unsigned INLVLB4 :1;
unsigned INLVLB5 :1;
unsigned INLVLB6 :1;
unsigned INLVLB7 :1;
};
struct {
unsigned :4;
unsigned INLVLB :4;
};
} INLVLBbits_t;
extern volatile INLVLBbits_t INLVLBbits __attribute__((address(0x38D)));
# 5871 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char INLVLC __attribute__((address(0x38E)));
__asm("INLVLC equ 038Eh");
typedef union {
struct {
unsigned INLVLC0 :1;
unsigned INLVLC1 :1;
unsigned INLVLC2 :1;
unsigned INLVLC3 :1;
unsigned INLVLC4 :1;
unsigned INLVLC5 :1;
unsigned INLVLC6 :1;
unsigned INLVLC7 :1;
};
struct {
unsigned INLVLC :8;
};
} INLVLCbits_t;
extern volatile INLVLCbits_t INLVLCbits __attribute__((address(0x38E)));
# 5941 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char IOCAP __attribute__((address(0x391)));
__asm("IOCAP equ 0391h");
typedef union {
struct {
unsigned IOCAP0 :1;
unsigned IOCAP1 :1;
unsigned IOCAP2 :1;
unsigned IOCAP3 :1;
unsigned IOCAP4 :1;
unsigned IOCAP5 :1;
};
struct {
unsigned IOCAP :6;
};
} IOCAPbits_t;
extern volatile IOCAPbits_t IOCAPbits __attribute__((address(0x391)));
# 5999 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char IOCAN __attribute__((address(0x392)));
__asm("IOCAN equ 0392h");
typedef union {
struct {
unsigned IOCAN0 :1;
unsigned IOCAN1 :1;
unsigned IOCAN2 :1;
unsigned IOCAN3 :1;
unsigned IOCAN4 :1;
unsigned IOCAN5 :1;
};
struct {
unsigned IOCAN :6;
};
} IOCANbits_t;
extern volatile IOCANbits_t IOCANbits __attribute__((address(0x392)));
# 6057 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char IOCAF __attribute__((address(0x393)));
__asm("IOCAF equ 0393h");
typedef union {
struct {
unsigned IOCAF0 :1;
unsigned IOCAF1 :1;
unsigned IOCAF2 :1;
unsigned IOCAF3 :1;
unsigned IOCAF4 :1;
unsigned IOCAF5 :1;
};
struct {
unsigned IOCAF :6;
};
} IOCAFbits_t;
extern volatile IOCAFbits_t IOCAFbits __attribute__((address(0x393)));
# 6115 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char IOCBP __attribute__((address(0x394)));
__asm("IOCBP equ 0394h");
typedef union {
struct {
unsigned :4;
unsigned IOCBP4 :1;
unsigned IOCBP5 :1;
unsigned IOCBP6 :1;
unsigned IOCBP7 :1;
};
struct {
unsigned :4;
unsigned IOCBP :4;
};
} IOCBPbits_t;
extern volatile IOCBPbits_t IOCBPbits __attribute__((address(0x394)));
# 6163 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char IOCBN __attribute__((address(0x395)));
__asm("IOCBN equ 0395h");
typedef union {
struct {
unsigned :4;
unsigned IOCBN4 :1;
unsigned IOCBN5 :1;
unsigned IOCBN6 :1;
unsigned IOCBN7 :1;
};
struct {
unsigned :4;
unsigned IOCBN :4;
};
} IOCBNbits_t;
extern volatile IOCBNbits_t IOCBNbits __attribute__((address(0x395)));
# 6211 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char IOCBF __attribute__((address(0x396)));
__asm("IOCBF equ 0396h");
typedef union {
struct {
unsigned :4;
unsigned IOCBF4 :1;
unsigned IOCBF5 :1;
unsigned IOCBF6 :1;
unsigned IOCBF7 :1;
};
struct {
unsigned :4;
unsigned IOCBF :4;
};
} IOCBFbits_t;
extern volatile IOCBFbits_t IOCBFbits __attribute__((address(0x396)));
# 6259 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char CLKRCON __attribute__((address(0x39A)));
__asm("CLKRCON equ 039Ah");
typedef union {
struct {
unsigned CLKRDIV0 :1;
unsigned CLKRDIV1 :1;
unsigned CLKRDIV2 :1;
unsigned CLKRDC0 :1;
unsigned CLKRDC1 :1;
unsigned CLKRSLR :1;
unsigned CLKROE :1;
unsigned CLKREN :1;
};
struct {
unsigned CLKRDIV :3;
unsigned CLKRDC :2;
};
} CLKRCONbits_t;
extern volatile CLKRCONbits_t CLKRCONbits __attribute__((address(0x39A)));
# 6335 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char MDCON __attribute__((address(0x39C)));
__asm("MDCON equ 039Ch");
typedef union {
struct {
unsigned MDBIT :1;
unsigned :2;
unsigned MDOUT :1;
unsigned MDOPOL :1;
unsigned MDSLR :1;
unsigned MDOE :1;
unsigned MDEN :1;
};
} MDCONbits_t;
extern volatile MDCONbits_t MDCONbits __attribute__((address(0x39C)));
# 6386 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char MDSRC __attribute__((address(0x39D)));
__asm("MDSRC equ 039Dh");
typedef union {
struct {
unsigned MDMS0 :1;
unsigned MDMS1 :1;
unsigned MDMS2 :1;
unsigned MDMS3 :1;
unsigned :3;
unsigned MDMSODIS :1;
};
struct {
unsigned MDMS :4;
};
} MDSRCbits_t;
extern volatile MDSRCbits_t MDSRCbits __attribute__((address(0x39D)));
# 6439 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char MDCARL __attribute__((address(0x39E)));
__asm("MDCARL equ 039Eh");
typedef union {
struct {
unsigned MDCL0 :1;
unsigned MDCL1 :1;
unsigned MDCL2 :1;
unsigned MDCL3 :1;
unsigned :1;
unsigned MDCLSYNC :1;
unsigned MDCLPOL :1;
unsigned MDCLODIS :1;
};
struct {
unsigned MDCL :4;
};
} MDCARLbits_t;
extern volatile MDCARLbits_t MDCARLbits __attribute__((address(0x39E)));
# 6504 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char MDCARH __attribute__((address(0x39F)));
__asm("MDCARH equ 039Fh");
typedef union {
struct {
unsigned MDCH0 :1;
unsigned MDCH1 :1;
unsigned MDCH2 :1;
unsigned MDCH3 :1;
unsigned :1;
unsigned MDCHSYNC :1;
unsigned MDCHPOL :1;
unsigned MDCHODIS :1;
};
struct {
unsigned MDCH :4;
};
} MDCARHbits_t;
extern volatile MDCARHbits_t MDCARHbits __attribute__((address(0x39F)));
# 6569 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TMR4 __attribute__((address(0x415)));
__asm("TMR4 equ 0415h");
typedef union {
struct {
unsigned TMR4 :8;
};
} TMR4bits_t;
extern volatile TMR4bits_t TMR4bits __attribute__((address(0x415)));
# 6589 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PR4 __attribute__((address(0x416)));
__asm("PR4 equ 0416h");
typedef union {
struct {
unsigned PR4 :8;
};
} PR4bits_t;
extern volatile PR4bits_t PR4bits __attribute__((address(0x416)));
# 6609 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char T4CON __attribute__((address(0x417)));
__asm("T4CON equ 0417h");
typedef union {
struct {
unsigned T4CKPS0 :1;
unsigned T4CKPS1 :1;
unsigned TMR4ON :1;
unsigned T4OUTPS0 :1;
unsigned T4OUTPS1 :1;
unsigned T4OUTPS2 :1;
unsigned T4OUTPS3 :1;
};
struct {
unsigned T4CKPS :2;
unsigned :1;
unsigned T4OUTPS :4;
};
} T4CONbits_t;
extern volatile T4CONbits_t T4CONbits __attribute__((address(0x417)));
# 6680 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TMR6 __attribute__((address(0x41C)));
__asm("TMR6 equ 041Ch");
typedef union {
struct {
unsigned TMR6 :8;
};
} TMR6bits_t;
extern volatile TMR6bits_t TMR6bits __attribute__((address(0x41C)));
# 6700 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PR6 __attribute__((address(0x41D)));
__asm("PR6 equ 041Dh");
typedef union {
struct {
unsigned PR6 :8;
};
} PR6bits_t;
extern volatile PR6bits_t PR6bits __attribute__((address(0x41D)));
# 6720 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char T6CON __attribute__((address(0x41E)));
__asm("T6CON equ 041Eh");
typedef union {
struct {
unsigned T6CKPS0 :1;
unsigned T6CKPS1 :1;
unsigned TMR6ON :1;
unsigned T6OUTPS0 :1;
unsigned T6OUTPS1 :1;
unsigned T6OUTPS2 :1;
unsigned T6OUTPS3 :1;
};
struct {
unsigned T6CKPS :2;
unsigned :1;
unsigned T6OUTPS :4;
};
} T6CONbits_t;
extern volatile T6CONbits_t T6CONbits __attribute__((address(0x41E)));
# 6791 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char STATUS_SHAD __attribute__((address(0xFE4)));
__asm("STATUS_SHAD equ 0FE4h");
typedef union {
struct {
unsigned C_SHAD :1;
unsigned DC_SHAD :1;
unsigned Z_SHAD :1;
};
} STATUS_SHADbits_t;
extern volatile STATUS_SHADbits_t STATUS_SHADbits __attribute__((address(0xFE4)));
# 6823 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char WREG_SHAD __attribute__((address(0xFE5)));
__asm("WREG_SHAD equ 0FE5h");
typedef union {
struct {
unsigned WREG_SHAD :8;
};
} WREG_SHADbits_t;
extern volatile WREG_SHADbits_t WREG_SHADbits __attribute__((address(0xFE5)));
# 6843 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char BSR_SHAD __attribute__((address(0xFE6)));
__asm("BSR_SHAD equ 0FE6h");
typedef union {
struct {
unsigned BSR_SHAD :5;
};
} BSR_SHADbits_t;
extern volatile BSR_SHADbits_t BSR_SHADbits __attribute__((address(0xFE6)));
# 6863 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char PCLATH_SHAD __attribute__((address(0xFE7)));
__asm("PCLATH_SHAD equ 0FE7h");
typedef union {
struct {
unsigned PCLATH_SHAD :7;
};
} PCLATH_SHADbits_t;
extern volatile PCLATH_SHADbits_t PCLATH_SHADbits __attribute__((address(0xFE7)));
# 6883 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FSR0L_SHAD __attribute__((address(0xFE8)));
__asm("FSR0L_SHAD equ 0FE8h");
typedef union {
struct {
unsigned FSR0L_SHAD :8;
};
} FSR0L_SHADbits_t;
extern volatile FSR0L_SHADbits_t FSR0L_SHADbits __attribute__((address(0xFE8)));
# 6903 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FSR0H_SHAD __attribute__((address(0xFE9)));
__asm("FSR0H_SHAD equ 0FE9h");
typedef union {
struct {
unsigned FSR0H_SHAD :8;
};
} FSR0H_SHADbits_t;
extern volatile FSR0H_SHADbits_t FSR0H_SHADbits __attribute__((address(0xFE9)));
# 6923 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FSR1L_SHAD __attribute__((address(0xFEA)));
__asm("FSR1L_SHAD equ 0FEAh");
typedef union {
struct {
unsigned FSR1L_SHAD :8;
};
} FSR1L_SHADbits_t;
extern volatile FSR1L_SHADbits_t FSR1L_SHADbits __attribute__((address(0xFEA)));
# 6943 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char FSR1H_SHAD __attribute__((address(0xFEB)));
__asm("FSR1H_SHAD equ 0FEBh");
typedef union {
struct {
unsigned FSR1H_SHAD :8;
};
} FSR1H_SHADbits_t;
extern volatile FSR1H_SHADbits_t FSR1H_SHADbits __attribute__((address(0xFEB)));
# 6963 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char STKPTR __attribute__((address(0xFED)));
__asm("STKPTR equ 0FEDh");
typedef union {
struct {
unsigned STKPTR :5;
};
} STKPTRbits_t;
extern volatile STKPTRbits_t STKPTRbits __attribute__((address(0xFED)));
# 6983 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TOSL __attribute__((address(0xFEE)));
__asm("TOSL equ 0FEEh");
typedef union {
struct {
unsigned TOSL :8;
};
} TOSLbits_t;
extern volatile TOSLbits_t TOSLbits __attribute__((address(0xFEE)));
# 7003 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile unsigned char TOSH __attribute__((address(0xFEF)));
__asm("TOSH equ 0FEFh");
typedef union {
struct {
unsigned TOSH :7;
};
} TOSHbits_t;
extern volatile TOSHbits_t TOSHbits __attribute__((address(0xFEF)));
# 7029 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\proc\\pic16f1829.h" 3
extern volatile __bit ABDEN __attribute__((address(0xCF8)));
extern volatile __bit ABDOVF __attribute__((address(0xCFF)));
extern volatile __bit ADCS0 __attribute__((address(0x4F4)));
extern volatile __bit ADCS1 __attribute__((address(0x4F5)));
extern volatile __bit ADCS2 __attribute__((address(0x4F6)));
extern volatile __bit ADDEN __attribute__((address(0xCEB)));
extern volatile __bit ADFM __attribute__((address(0x4F7)));
extern volatile __bit ADFVR0 __attribute__((address(0x8B8)));
extern volatile __bit ADFVR1 __attribute__((address(0x8B9)));
extern volatile __bit ADGO __attribute__((address(0x4E9)));
extern volatile __bit ADIE __attribute__((address(0x48E)));
extern volatile __bit ADIF __attribute__((address(0x8E)));
extern volatile __bit ADNREF __attribute__((address(0x4F2)));
extern volatile __bit ADON __attribute__((address(0x4E8)));
extern volatile __bit ADPREF0 __attribute__((address(0x4F0)));
extern volatile __bit ADPREF1 __attribute__((address(0x4F1)));
extern volatile __bit ANSA0 __attribute__((address(0xC60)));
extern volatile __bit ANSA1 __attribute__((address(0xC61)));
extern volatile __bit ANSA2 __attribute__((address(0xC62)));
extern volatile __bit ANSA4 __attribute__((address(0xC64)));
extern volatile __bit ANSB4 __attribute__((address(0xC6C)));
extern volatile __bit ANSB5 __attribute__((address(0xC6D)));
extern volatile __bit ANSC0 __attribute__((address(0xC70)));
extern volatile __bit ANSC1 __attribute__((address(0xC71)));
extern volatile __bit ANSC2 __attribute__((address(0xC72)));
extern volatile __bit ANSC3 __attribute__((address(0xC73)));
extern volatile __bit ANSC6 __attribute__((address(0xC76)));
extern volatile __bit ANSC7 __attribute__((address(0xC77)));
extern volatile __bit BCL1IE __attribute__((address(0x493)));
extern volatile __bit BCL1IF __attribute__((address(0x93)));
extern volatile __bit BCL2IE __attribute__((address(0x4A1)));
extern volatile __bit BCL2IF __attribute__((address(0xA1)));
extern volatile __bit BORRDY __attribute__((address(0x8B0)));
extern volatile __bit BRG16 __attribute__((address(0xCFB)));
extern volatile __bit BRGH __attribute__((address(0xCF2)));
extern volatile __bit BSR0 __attribute__((address(0x40)));
extern volatile __bit BSR1 __attribute__((address(0x41)));
extern volatile __bit BSR2 __attribute__((address(0x42)));
extern volatile __bit BSR3 __attribute__((address(0x43)));
extern volatile __bit BSR4 __attribute__((address(0x44)));
extern volatile __bit C1HYS __attribute__((address(0x889)));
extern volatile __bit C1IE __attribute__((address(0x495)));
extern volatile __bit C1IF __attribute__((address(0x95)));
extern volatile __bit C1INTN __attribute__((address(0x896)));
extern volatile __bit C1INTP __attribute__((address(0x897)));
extern volatile __bit C1NCH0 __attribute__((address(0x890)));
extern volatile __bit C1NCH1 __attribute__((address(0x891)));
extern volatile __bit C1OE __attribute__((address(0x88D)));
extern volatile __bit C1ON __attribute__((address(0x88F)));
extern volatile __bit C1OUT __attribute__((address(0x88E)));
extern volatile __bit C1PCH0 __attribute__((address(0x894)));
extern volatile __bit C1PCH1 __attribute__((address(0x895)));
extern volatile __bit C1POL __attribute__((address(0x88C)));
extern volatile __bit C1SP __attribute__((address(0x88A)));
extern volatile __bit C1SYNC __attribute__((address(0x888)));
extern volatile __bit C1TSEL0 __attribute__((address(0x14F0)));
extern volatile __bit C1TSEL1 __attribute__((address(0x14F1)));
extern volatile __bit C2HYS __attribute__((address(0x899)));
extern volatile __bit C2IE __attribute__((address(0x496)));
extern volatile __bit C2IF __attribute__((address(0x96)));
extern volatile __bit C2INTN __attribute__((address(0x8A6)));
extern volatile __bit C2INTP __attribute__((address(0x8A7)));
extern volatile __bit C2NCH0 __attribute__((address(0x8A0)));
extern volatile __bit C2NCH1 __attribute__((address(0x8A1)));
extern volatile __bit C2OE __attribute__((address(0x89D)));
extern volatile __bit C2ON __attribute__((address(0x89F)));
extern volatile __bit C2OUT __attribute__((address(0x89E)));
extern volatile __bit C2PCH0 __attribute__((address(0x8A4)));
extern volatile __bit C2PCH1 __attribute__((address(0x8A5)));
extern volatile __bit C2POL __attribute__((address(0x89C)));
extern volatile __bit C2SP __attribute__((address(0x89A)));
extern volatile __bit C2SYNC __attribute__((address(0x898)));
extern volatile __bit C2TSEL0 __attribute__((address(0x14F2)));
extern volatile __bit C2TSEL1 __attribute__((address(0x14F3)));
extern volatile __bit C3TSEL0 __attribute__((address(0x14F4)));
extern volatile __bit C3TSEL1 __attribute__((address(0x14F5)));
extern volatile __bit C4TSEL0 __attribute__((address(0x14F6)));
extern volatile __bit C4TSEL1 __attribute__((address(0x14F7)));
extern volatile __bit CARRY __attribute__((address(0x18)));
extern volatile __bit CCP1AS0 __attribute__((address(0x14AC)));
extern volatile __bit CCP1AS1 __attribute__((address(0x14AD)));
extern volatile __bit CCP1AS2 __attribute__((address(0x14AE)));
extern volatile __bit CCP1ASE __attribute__((address(0x14AF)));
extern volatile __bit CCP1IE __attribute__((address(0x48A)));
extern volatile __bit CCP1IF __attribute__((address(0x8A)));
extern volatile __bit CCP1M0 __attribute__((address(0x1498)));
extern volatile __bit CCP1M1 __attribute__((address(0x1499)));
extern volatile __bit CCP1M2 __attribute__((address(0x149A)));
extern volatile __bit CCP1M3 __attribute__((address(0x149B)));
extern volatile __bit CCP2AS0 __attribute__((address(0x14E4)));
extern volatile __bit CCP2AS1 __attribute__((address(0x14E5)));
extern volatile __bit CCP2AS2 __attribute__((address(0x14E6)));
extern volatile __bit CCP2ASE __attribute__((address(0x14E7)));
extern volatile __bit CCP2IE __attribute__((address(0x490)));
extern volatile __bit CCP2IF __attribute__((address(0x90)));
extern volatile __bit CCP2M0 __attribute__((address(0x14D0)));
extern volatile __bit CCP2M1 __attribute__((address(0x14D1)));
extern volatile __bit CCP2M2 __attribute__((address(0x14D2)));
extern volatile __bit CCP2M3 __attribute__((address(0x14D3)));
extern volatile __bit CCP2SEL __attribute__((address(0x8F0)));
extern volatile __bit CCP3IE __attribute__((address(0x49C)));
extern volatile __bit CCP3IF __attribute__((address(0x9C)));
extern volatile __bit CCP3M0 __attribute__((address(0x1898)));
extern volatile __bit CCP3M1 __attribute__((address(0x1899)));
extern volatile __bit CCP3M2 __attribute__((address(0x189A)));
extern volatile __bit CCP3M3 __attribute__((address(0x189B)));
extern volatile __bit CCP4IE __attribute__((address(0x49D)));
extern volatile __bit CCP4IF __attribute__((address(0x9D)));
extern volatile __bit CCP4M0 __attribute__((address(0x18D0)));
extern volatile __bit CCP4M1 __attribute__((address(0x18D1)));
extern volatile __bit CCP4M2 __attribute__((address(0x18D2)));
extern volatile __bit CCP4M3 __attribute__((address(0x18D3)));
extern volatile __bit CDAFVR0 __attribute__((address(0x8BA)));
extern volatile __bit CDAFVR1 __attribute__((address(0x8BB)));
extern volatile __bit CFGS __attribute__((address(0xCAE)));
extern volatile __bit CHS0 __attribute__((address(0x4EA)));
extern volatile __bit CHS1 __attribute__((address(0x4EB)));
extern volatile __bit CHS2 __attribute__((address(0x4EC)));
extern volatile __bit CHS3 __attribute__((address(0x4ED)));
extern volatile __bit CHS4 __attribute__((address(0x4EE)));
extern volatile __bit CLKRDC0 __attribute__((address(0x1CD3)));
extern volatile __bit CLKRDC1 __attribute__((address(0x1CD4)));
extern volatile __bit CLKRDIV0 __attribute__((address(0x1CD0)));
extern volatile __bit CLKRDIV1 __attribute__((address(0x1CD1)));
extern volatile __bit CLKRDIV2 __attribute__((address(0x1CD2)));
extern volatile __bit CLKREN __attribute__((address(0x1CD7)));
extern volatile __bit CLKROE __attribute__((address(0x1CD6)));
extern volatile __bit CLKRSLR __attribute__((address(0x1CD5)));
extern volatile __bit CPSCH0 __attribute__((address(0xF8)));
extern volatile __bit CPSCH1 __attribute__((address(0xF9)));
extern volatile __bit CPSCH2 __attribute__((address(0xFA)));
extern volatile __bit CPSCH3 __attribute__((address(0xFB)));
extern volatile __bit CPSON __attribute__((address(0xF7)));
extern volatile __bit CPSOUT __attribute__((address(0xF1)));
extern volatile __bit CPSRM __attribute__((address(0xF6)));
extern volatile __bit CPSRNG0 __attribute__((address(0xF2)));
extern volatile __bit CPSRNG1 __attribute__((address(0xF3)));
extern volatile __bit CREN __attribute__((address(0xCEC)));
extern volatile __bit CSRC __attribute__((address(0xCF7)));
extern volatile __bit C_SHAD __attribute__((address(0x7F20)));
extern volatile __bit DACEN __attribute__((address(0x8C7)));
extern volatile __bit DACLPS __attribute__((address(0x8C6)));
extern volatile __bit DACNSS __attribute__((address(0x8C0)));
extern volatile __bit DACOE __attribute__((address(0x8C5)));
extern volatile __bit DACPSS0 __attribute__((address(0x8C2)));
extern volatile __bit DACPSS1 __attribute__((address(0x8C3)));
extern volatile __bit DACR0 __attribute__((address(0x8C8)));
extern volatile __bit DACR1 __attribute__((address(0x8C9)));
extern volatile __bit DACR2 __attribute__((address(0x8CA)));
extern volatile __bit DACR3 __attribute__((address(0x8CB)));
extern volatile __bit DACR4 __attribute__((address(0x8CC)));
extern volatile __bit DC __attribute__((address(0x19)));
extern volatile __bit DC1B0 __attribute__((address(0x149C)));
extern volatile __bit DC1B1 __attribute__((address(0x149D)));
extern volatile __bit DC2B0 __attribute__((address(0x14D4)));
extern volatile __bit DC2B1 __attribute__((address(0x14D5)));
extern volatile __bit DC3B0 __attribute__((address(0x189C)));
extern volatile __bit DC3B1 __attribute__((address(0x189D)));
extern volatile __bit DC4B0 __attribute__((address(0x18D4)));
extern volatile __bit DC4B1 __attribute__((address(0x18D5)));
extern volatile __bit DC_SHAD __attribute__((address(0x7F21)));
extern volatile __bit EEIE __attribute__((address(0x494)));
extern volatile __bit EEIF __attribute__((address(0x94)));
extern volatile __bit EEPGD __attribute__((address(0xCAF)));
extern volatile __bit FERR __attribute__((address(0xCEA)));
extern volatile __bit FREE __attribute__((address(0xCAC)));
extern volatile __bit FVREN __attribute__((address(0x8BF)));
extern volatile __bit FVRRDY __attribute__((address(0x8BE)));
extern volatile __bit GIE __attribute__((address(0x5F)));
extern volatile __bit GO __attribute__((address(0x4E9)));
extern volatile __bit GO_nDONE __attribute__((address(0x4E9)));
extern volatile __bit HFIOFL __attribute__((address(0x4D3)));
extern volatile __bit HFIOFR __attribute__((address(0x4D4)));
extern volatile __bit HFIOFS __attribute__((address(0x4D0)));
extern volatile __bit INLVLA0 __attribute__((address(0x1C60)));
extern volatile __bit INLVLA1 __attribute__((address(0x1C61)));
extern volatile __bit INLVLA2 __attribute__((address(0x1C62)));
extern volatile __bit INLVLA3 __attribute__((address(0x1C63)));
extern volatile __bit INLVLA4 __attribute__((address(0x1C64)));
extern volatile __bit INLVLA5 __attribute__((address(0x1C65)));
extern volatile __bit INLVLB4 __attribute__((address(0x1C6C)));
extern volatile __bit INLVLB5 __attribute__((address(0x1C6D)));
extern volatile __bit INLVLB6 __attribute__((address(0x1C6E)));
extern volatile __bit INLVLB7 __attribute__((address(0x1C6F)));
extern volatile __bit INLVLC0 __attribute__((address(0x1C70)));
extern volatile __bit INLVLC1 __attribute__((address(0x1C71)));
extern volatile __bit INLVLC2 __attribute__((address(0x1C72)));
extern volatile __bit INLVLC3 __attribute__((address(0x1C73)));
extern volatile __bit INLVLC4 __attribute__((address(0x1C74)));
extern volatile __bit INLVLC5 __attribute__((address(0x1C75)));
extern volatile __bit INLVLC6 __attribute__((address(0x1C76)));
extern volatile __bit INLVLC7 __attribute__((address(0x1C77)));
extern volatile __bit INTE __attribute__((address(0x5C)));
extern volatile __bit INTEDG __attribute__((address(0x4AE)));
extern volatile __bit INTF __attribute__((address(0x59)));
extern volatile __bit IOCAF0 __attribute__((address(0x1C98)));
extern volatile __bit IOCAF1 __attribute__((address(0x1C99)));
extern volatile __bit IOCAF2 __attribute__((address(0x1C9A)));
extern volatile __bit IOCAF3 __attribute__((address(0x1C9B)));
extern volatile __bit IOCAF4 __attribute__((address(0x1C9C)));
extern volatile __bit IOCAF5 __attribute__((address(0x1C9D)));
extern volatile __bit IOCAN0 __attribute__((address(0x1C90)));
extern volatile __bit IOCAN1 __attribute__((address(0x1C91)));
extern volatile __bit IOCAN2 __attribute__((address(0x1C92)));
extern volatile __bit IOCAN3 __attribute__((address(0x1C93)));
extern volatile __bit IOCAN4 __attribute__((address(0x1C94)));
extern volatile __bit IOCAN5 __attribute__((address(0x1C95)));
extern volatile __bit IOCAP0 __attribute__((address(0x1C88)));
extern volatile __bit IOCAP1 __attribute__((address(0x1C89)));
extern volatile __bit IOCAP2 __attribute__((address(0x1C8A)));
extern volatile __bit IOCAP3 __attribute__((address(0x1C8B)));
extern volatile __bit IOCAP4 __attribute__((address(0x1C8C)));
extern volatile __bit IOCAP5 __attribute__((address(0x1C8D)));
extern volatile __bit IOCBF4 __attribute__((address(0x1CB4)));
extern volatile __bit IOCBF5 __attribute__((address(0x1CB5)));
extern volatile __bit IOCBF6 __attribute__((address(0x1CB6)));
extern volatile __bit IOCBF7 __attribute__((address(0x1CB7)));
extern volatile __bit IOCBN4 __attribute__((address(0x1CAC)));
extern volatile __bit IOCBN5 __attribute__((address(0x1CAD)));
extern volatile __bit IOCBN6 __attribute__((address(0x1CAE)));
extern volatile __bit IOCBN7 __attribute__((address(0x1CAF)));
extern volatile __bit IOCBP4 __attribute__((address(0x1CA4)));
extern volatile __bit IOCBP5 __attribute__((address(0x1CA5)));
extern volatile __bit IOCBP6 __attribute__((address(0x1CA6)));
extern volatile __bit IOCBP7 __attribute__((address(0x1CA7)));
extern volatile __bit IOCIE __attribute__((address(0x5B)));
extern volatile __bit IOCIF __attribute__((address(0x58)));
extern volatile __bit IRCF0 __attribute__((address(0x4CB)));
extern volatile __bit IRCF1 __attribute__((address(0x4CC)));
extern volatile __bit IRCF2 __attribute__((address(0x4CD)));
extern volatile __bit IRCF3 __attribute__((address(0x4CE)));
extern volatile __bit LATA0 __attribute__((address(0x860)));
extern volatile __bit LATA1 __attribute__((address(0x861)));
extern volatile __bit LATA2 __attribute__((address(0x862)));
extern volatile __bit LATA4 __attribute__((address(0x864)));
extern volatile __bit LATA5 __attribute__((address(0x865)));
extern volatile __bit LATB4 __attribute__((address(0x86C)));
extern volatile __bit LATB5 __attribute__((address(0x86D)));
extern volatile __bit LATB6 __attribute__((address(0x86E)));
extern volatile __bit LATB7 __attribute__((address(0x86F)));
extern volatile __bit LATC0 __attribute__((address(0x870)));
extern volatile __bit LATC1 __attribute__((address(0x871)));
extern volatile __bit LATC2 __attribute__((address(0x872)));
extern volatile __bit LATC3 __attribute__((address(0x873)));
extern volatile __bit LATC4 __attribute__((address(0x874)));
extern volatile __bit LATC5 __attribute__((address(0x875)));
extern volatile __bit LATC6 __attribute__((address(0x876)));
extern volatile __bit LATC7 __attribute__((address(0x877)));
extern volatile __bit LFIOFR __attribute__((address(0x4D1)));
extern volatile __bit LWLO __attribute__((address(0xCAD)));
extern volatile __bit MC1OUT __attribute__((address(0x8A8)));
extern volatile __bit MC2OUT __attribute__((address(0x8A9)));
extern volatile __bit MDBIT __attribute__((address(0x1CE0)));
extern volatile __bit MDCH0 __attribute__((address(0x1CF8)));
extern volatile __bit MDCH1 __attribute__((address(0x1CF9)));
extern volatile __bit MDCH2 __attribute__((address(0x1CFA)));
extern volatile __bit MDCH3 __attribute__((address(0x1CFB)));
extern volatile __bit MDCHODIS __attribute__((address(0x1CFF)));
extern volatile __bit MDCHPOL __attribute__((address(0x1CFE)));
extern volatile __bit MDCHSYNC __attribute__((address(0x1CFD)));
extern volatile __bit MDCL0 __attribute__((address(0x1CF0)));
extern volatile __bit MDCL1 __attribute__((address(0x1CF1)));
extern volatile __bit MDCL2 __attribute__((address(0x1CF2)));
extern volatile __bit MDCL3 __attribute__((address(0x1CF3)));
extern volatile __bit MDCLODIS __attribute__((address(0x1CF7)));
extern volatile __bit MDCLPOL __attribute__((address(0x1CF6)));
extern volatile __bit MDCLSYNC __attribute__((address(0x1CF5)));
extern volatile __bit MDEN __attribute__((address(0x1CE7)));
extern volatile __bit MDMS0 __attribute__((address(0x1CE8)));
extern volatile __bit MDMS1 __attribute__((address(0x1CE9)));
extern volatile __bit MDMS2 __attribute__((address(0x1CEA)));
extern volatile __bit MDMS3 __attribute__((address(0x1CEB)));
extern volatile __bit MDMSODIS __attribute__((address(0x1CEF)));
extern volatile __bit MDOE __attribute__((address(0x1CE6)));
extern volatile __bit MDOPOL __attribute__((address(0x1CE4)));
extern volatile __bit MDOUT __attribute__((address(0x1CE3)));
extern volatile __bit MDSLR __attribute__((address(0x1CE5)));
extern volatile __bit MFIOFR __attribute__((address(0x4D2)));
extern volatile __bit OERR __attribute__((address(0xCE9)));
extern volatile __bit OSFIE __attribute__((address(0x497)));
extern volatile __bit OSFIF __attribute__((address(0x97)));
extern volatile __bit OSTS __attribute__((address(0x4D5)));
extern volatile __bit P1CSEL __attribute__((address(0x8F2)));
extern volatile __bit P1DC0 __attribute__((address(0x14A0)));
extern volatile __bit P1DC1 __attribute__((address(0x14A1)));
extern volatile __bit P1DC2 __attribute__((address(0x14A2)));
extern volatile __bit P1DC3 __attribute__((address(0x14A3)));
extern volatile __bit P1DC4 __attribute__((address(0x14A4)));
extern volatile __bit P1DC5 __attribute__((address(0x14A5)));
extern volatile __bit P1DC6 __attribute__((address(0x14A6)));
extern volatile __bit P1DSEL __attribute__((address(0x8F3)));
extern volatile __bit P1M0 __attribute__((address(0x149E)));
extern volatile __bit P1M1 __attribute__((address(0x149F)));
extern volatile __bit P1RSEN __attribute__((address(0x14A7)));
extern volatile __bit P2BSEL __attribute__((address(0x8F1)));
extern volatile __bit P2DC0 __attribute__((address(0x14D8)));
extern volatile __bit P2DC1 __attribute__((address(0x14D9)));
extern volatile __bit P2DC2 __attribute__((address(0x14DA)));
extern volatile __bit P2DC3 __attribute__((address(0x14DB)));
extern volatile __bit P2DC4 __attribute__((address(0x14DC)));
extern volatile __bit P2DC5 __attribute__((address(0x14DD)));
extern volatile __bit P2DC6 __attribute__((address(0x14DE)));
extern volatile __bit P2M0 __attribute__((address(0x14D6)));
extern volatile __bit P2M1 __attribute__((address(0x14D7)));
extern volatile __bit P2RSEN __attribute__((address(0x14DF)));
extern volatile __bit PEIE __attribute__((address(0x5E)));
extern volatile __bit PLLR __attribute__((address(0x4D6)));
extern volatile __bit PS0 __attribute__((address(0x4A8)));
extern volatile __bit PS1 __attribute__((address(0x4A9)));
extern volatile __bit PS2 __attribute__((address(0x4AA)));
extern volatile __bit PSA __attribute__((address(0x4AB)));
extern volatile __bit PSS1AC0 __attribute__((address(0x14AA)));
extern volatile __bit PSS1AC1 __attribute__((address(0x14AB)));
extern volatile __bit PSS1BD0 __attribute__((address(0x14A8)));
extern volatile __bit PSS1BD1 __attribute__((address(0x14A9)));
extern volatile __bit PSS2AC0 __attribute__((address(0x14E2)));
extern volatile __bit PSS2AC1 __attribute__((address(0x14E3)));
extern volatile __bit PSS2BD0 __attribute__((address(0x14E0)));
extern volatile __bit PSS2BD1 __attribute__((address(0x14E1)));
extern volatile __bit RA0 __attribute__((address(0x60)));
extern volatile __bit RA1 __attribute__((address(0x61)));
extern volatile __bit RA2 __attribute__((address(0x62)));
extern volatile __bit RA3 __attribute__((address(0x63)));
extern volatile __bit RA4 __attribute__((address(0x64)));
extern volatile __bit RA5 __attribute__((address(0x65)));
extern volatile __bit RB4 __attribute__((address(0x6C)));
extern volatile __bit RB5 __attribute__((address(0x6D)));
extern volatile __bit RB6 __attribute__((address(0x6E)));
extern volatile __bit RB7 __attribute__((address(0x6F)));
extern volatile __bit RC0 __attribute__((address(0x70)));
extern volatile __bit RC1 __attribute__((address(0x71)));
extern volatile __bit RC2 __attribute__((address(0x72)));
extern volatile __bit RC3 __attribute__((address(0x73)));
extern volatile __bit RC4 __attribute__((address(0x74)));
extern volatile __bit RC5 __attribute__((address(0x75)));
extern volatile __bit RC6 __attribute__((address(0x76)));
extern volatile __bit RC7 __attribute__((address(0x77)));
extern volatile __bit RCIDL __attribute__((address(0xCFE)));
extern volatile __bit RCIE __attribute__((address(0x48D)));
extern volatile __bit RCIF __attribute__((address(0x8D)));
extern volatile __bit RD __attribute__((address(0xCA8)));
extern volatile __bit RX9 __attribute__((address(0xCEE)));
extern volatile __bit RX9D __attribute__((address(0xCE8)));
extern volatile __bit RXDTSEL __attribute__((address(0x8EF)));
extern volatile __bit SBOREN __attribute__((address(0x8B7)));
extern volatile __bit SCKP __attribute__((address(0xCFC)));
extern volatile __bit SCS0 __attribute__((address(0x4C8)));
extern volatile __bit SCS1 __attribute__((address(0x4C9)));
extern volatile __bit SDO2SEL __attribute__((address(0x8F5)));
extern volatile __bit SENDB __attribute__((address(0xCF3)));
extern volatile __bit SPEN __attribute__((address(0xCEF)));
extern volatile __bit SPLLEN __attribute__((address(0x4CF)));
extern volatile __bit SRCLK0 __attribute__((address(0x8D4)));
extern volatile __bit SRCLK1 __attribute__((address(0x8D5)));
extern volatile __bit SRCLK2 __attribute__((address(0x8D6)));
extern volatile __bit SREN __attribute__((address(0xCED)));
extern volatile __bit SRLEN __attribute__((address(0x8D7)));
extern volatile __bit SRNQEN __attribute__((address(0x8D2)));
extern volatile __bit SRPR __attribute__((address(0x8D0)));
extern volatile __bit SRPS __attribute__((address(0x8D1)));
extern volatile __bit SRQEN __attribute__((address(0x8D3)));
extern volatile __bit SRRC1E __attribute__((address(0x8D8)));
extern volatile __bit SRRC2E __attribute__((address(0x8D9)));
extern volatile __bit SRRCKE __attribute__((address(0x8DA)));
extern volatile __bit SRRPE __attribute__((address(0x8DB)));
extern volatile __bit SRSC1E __attribute__((address(0x8DC)));
extern volatile __bit SRSC2E __attribute__((address(0x8DD)));
extern volatile __bit SRSCKE __attribute__((address(0x8DE)));
extern volatile __bit SRSPE __attribute__((address(0x8DF)));
extern volatile __bit SS2SEL __attribute__((address(0x8F4)));
extern volatile __bit SSP1IE __attribute__((address(0x48B)));
extern volatile __bit SSP1IF __attribute__((address(0x8B)));
extern volatile __bit SSP2IE __attribute__((address(0x4A0)));
extern volatile __bit SSP2IF __attribute__((address(0xA0)));
extern volatile __bit STKOVF __attribute__((address(0x4B7)));
extern volatile __bit STKUNF __attribute__((address(0x4B6)));
extern volatile __bit STR1A __attribute__((address(0x14B0)));
extern volatile __bit STR1B __attribute__((address(0x14B1)));
extern volatile __bit STR1C __attribute__((address(0x14B2)));
extern volatile __bit STR1D __attribute__((address(0x14B3)));
extern volatile __bit STR1SYNC __attribute__((address(0x14B4)));
extern volatile __bit STR2A __attribute__((address(0x14E8)));
extern volatile __bit STR2B __attribute__((address(0x14E9)));
extern volatile __bit STR2C __attribute__((address(0x14EA)));
extern volatile __bit STR2D __attribute__((address(0x14EB)));
extern volatile __bit STR2SYNC __attribute__((address(0x14EC)));
extern volatile __bit SWDTEN __attribute__((address(0x4B8)));
extern volatile __bit SYNC __attribute__((address(0xCF4)));
extern volatile __bit T0CS __attribute__((address(0x4AD)));
extern volatile __bit T0IE __attribute__((address(0x5D)));
extern volatile __bit T0IF __attribute__((address(0x5A)));
extern volatile __bit T0SE __attribute__((address(0x4AC)));
extern volatile __bit T0XCS __attribute__((address(0xF0)));
extern volatile __bit T1CKPS0 __attribute__((address(0xC4)));
extern volatile __bit T1CKPS1 __attribute__((address(0xC5)));
extern volatile __bit T1GGO __attribute__((address(0xCB)));
extern volatile __bit T1GPOL __attribute__((address(0xCE)));
extern volatile __bit T1GSEL __attribute__((address(0x8EB)));
extern volatile __bit T1GSPM __attribute__((address(0xCC)));
extern volatile __bit T1GSS0 __attribute__((address(0xC8)));
extern volatile __bit T1GSS1 __attribute__((address(0xC9)));
extern volatile __bit T1GTM __attribute__((address(0xCD)));
extern volatile __bit T1GVAL __attribute__((address(0xCA)));
extern volatile __bit T1OSCEN __attribute__((address(0xC3)));
extern volatile __bit T1OSCR __attribute__((address(0x4D7)));
extern volatile __bit T2CKPS0 __attribute__((address(0xE0)));
extern volatile __bit T2CKPS1 __attribute__((address(0xE1)));
extern volatile __bit T2OUTPS0 __attribute__((address(0xE3)));
extern volatile __bit T2OUTPS1 __attribute__((address(0xE4)));
extern volatile __bit T2OUTPS2 __attribute__((address(0xE5)));
extern volatile __bit T2OUTPS3 __attribute__((address(0xE6)));
extern volatile __bit T4CKPS0 __attribute__((address(0x20B8)));
extern volatile __bit T4CKPS1 __attribute__((address(0x20B9)));
extern volatile __bit T4OUTPS0 __attribute__((address(0x20BB)));
extern volatile __bit T4OUTPS1 __attribute__((address(0x20BC)));
extern volatile __bit T4OUTPS2 __attribute__((address(0x20BD)));
extern volatile __bit T4OUTPS3 __attribute__((address(0x20BE)));
extern volatile __bit T6CKPS0 __attribute__((address(0x20F0)));
extern volatile __bit T6CKPS1 __attribute__((address(0x20F1)));
extern volatile __bit T6OUTPS0 __attribute__((address(0x20F3)));
extern volatile __bit T6OUTPS1 __attribute__((address(0x20F4)));
extern volatile __bit T6OUTPS2 __attribute__((address(0x20F5)));
extern volatile __bit T6OUTPS3 __attribute__((address(0x20F6)));
extern volatile __bit TMR0CS __attribute__((address(0x4AD)));
extern volatile __bit TMR0IE __attribute__((address(0x5D)));
extern volatile __bit TMR0IF __attribute__((address(0x5A)));
extern volatile __bit TMR0SE __attribute__((address(0x4AC)));
extern volatile __bit TMR1CS0 __attribute__((address(0xC6)));
extern volatile __bit TMR1CS1 __attribute__((address(0xC7)));
extern volatile __bit TMR1GE __attribute__((address(0xCF)));
extern volatile __bit TMR1GIE __attribute__((address(0x48F)));
extern volatile __bit TMR1GIF __attribute__((address(0x8F)));
extern volatile __bit TMR1IE __attribute__((address(0x488)));
extern volatile __bit TMR1IF __attribute__((address(0x88)));
extern volatile __bit TMR1ON __attribute__((address(0xC0)));
extern volatile __bit TMR2IE __attribute__((address(0x489)));
extern volatile __bit TMR2IF __attribute__((address(0x89)));
extern volatile __bit TMR2ON __attribute__((address(0xE2)));
extern volatile __bit TMR4IE __attribute__((address(0x499)));
extern volatile __bit TMR4IF __attribute__((address(0x99)));
extern volatile __bit TMR4ON __attribute__((address(0x20BA)));
extern volatile __bit TMR6IE __attribute__((address(0x49B)));
extern volatile __bit TMR6IF __attribute__((address(0x9B)));
extern volatile __bit TMR6ON __attribute__((address(0x20F2)));
extern volatile __bit TRISA0 __attribute__((address(0x460)));
extern volatile __bit TRISA1 __attribute__((address(0x461)));
extern volatile __bit TRISA2 __attribute__((address(0x462)));
extern volatile __bit TRISA3 __attribute__((address(0x463)));
extern volatile __bit TRISA4 __attribute__((address(0x464)));
extern volatile __bit TRISA5 __attribute__((address(0x465)));
extern volatile __bit TRISB4 __attribute__((address(0x46C)));
extern volatile __bit TRISB5 __attribute__((address(0x46D)));
extern volatile __bit TRISB6 __attribute__((address(0x46E)));
extern volatile __bit TRISB7 __attribute__((address(0x46F)));
extern volatile __bit TRISC0 __attribute__((address(0x470)));
extern volatile __bit TRISC1 __attribute__((address(0x471)));
extern volatile __bit TRISC2 __attribute__((address(0x472)));
extern volatile __bit TRISC3 __attribute__((address(0x473)));
extern volatile __bit TRISC4 __attribute__((address(0x474)));
extern volatile __bit TRISC5 __attribute__((address(0x475)));
extern volatile __bit TRISC6 __attribute__((address(0x476)));
extern volatile __bit TRISC7 __attribute__((address(0x477)));
extern volatile __bit TRMT __attribute__((address(0xCF1)));
extern volatile __bit TSEN __attribute__((address(0x8BD)));
extern volatile __bit TSRNG __attribute__((address(0x8BC)));
extern volatile __bit TUN0 __attribute__((address(0x4C0)));
extern volatile __bit TUN1 __attribute__((address(0x4C1)));
extern volatile __bit TUN2 __attribute__((address(0x4C2)));
extern volatile __bit TUN3 __attribute__((address(0x4C3)));
extern volatile __bit TUN4 __attribute__((address(0x4C4)));
extern volatile __bit TUN5 __attribute__((address(0x4C5)));
extern volatile __bit TX9 __attribute__((address(0xCF6)));
extern volatile __bit TX9D __attribute__((address(0xCF0)));
extern volatile __bit TXCKSEL __attribute__((address(0x8EA)));
extern volatile __bit TXEN __attribute__((address(0xCF5)));
extern volatile __bit TXIE __attribute__((address(0x48C)));
extern volatile __bit TXIF __attribute__((address(0x8C)));
extern volatile __bit WDTPS0 __attribute__((address(0x4B9)));
extern volatile __bit WDTPS1 __attribute__((address(0x4BA)));
extern volatile __bit WDTPS2 __attribute__((address(0x4BB)));
extern volatile __bit WDTPS3 __attribute__((address(0x4BC)));
extern volatile __bit WDTPS4 __attribute__((address(0x4BD)));
extern volatile __bit WPUA0 __attribute__((address(0x1060)));
extern volatile __bit WPUA1 __attribute__((address(0x1061)));
extern volatile __bit WPUA2 __attribute__((address(0x1062)));
extern volatile __bit WPUA3 __attribute__((address(0x1063)));
extern volatile __bit WPUA4 __attribute__((address(0x1064)));
extern volatile __bit WPUA5 __attribute__((address(0x1065)));
extern volatile __bit WPUB4 __attribute__((address(0x106C)));
extern volatile __bit WPUB5 __attribute__((address(0x106D)));
extern volatile __bit WPUB6 __attribute__((address(0x106E)));
extern volatile __bit WPUB7 __attribute__((address(0x106F)));
extern volatile __bit WPUC0 __attribute__((address(0x1070)));
extern volatile __bit WPUC1 __attribute__((address(0x1071)));
extern volatile __bit WPUC2 __attribute__((address(0x1072)));
extern volatile __bit WPUC3 __attribute__((address(0x1073)));
extern volatile __bit WPUC4 __attribute__((address(0x1074)));
extern volatile __bit WPUC5 __attribute__((address(0x1075)));
extern volatile __bit WPUC6 __attribute__((address(0x1076)));
extern volatile __bit WPUC7 __attribute__((address(0x1077)));
extern volatile __bit WR __attribute__((address(0xCA9)));
extern volatile __bit WREN __attribute__((address(0xCAA)));
extern volatile __bit WRERR __attribute__((address(0xCAB)));
extern volatile __bit WUE __attribute__((address(0xCF9)));
extern volatile __bit ZERO __attribute__((address(0x1A)));
extern volatile __bit Z_SHAD __attribute__((address(0x7F22)));
extern volatile __bit nBOR __attribute__((address(0x4B0)));
extern volatile __bit nPD __attribute__((address(0x1B)));
extern volatile __bit nPOR __attribute__((address(0x4B1)));
extern volatile __bit nRI __attribute__((address(0x4B2)));
extern volatile __bit nRMCLR __attribute__((address(0x4B3)));
extern volatile __bit nT1SYNC __attribute__((address(0xC2)));
extern volatile __bit nTO __attribute__((address(0x1C)));
extern volatile __bit nWPUEN __attribute__((address(0x4AF)));
# 400 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic_chip_select.h" 2 3
# 14 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 2 3
# 30 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 3
#pragma intrinsic(__nop)
extern void __nop(void);
# 78 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 3
__attribute__((__unsupported__("The " "FLASH_READ" " macro function is no longer supported. Please use the MPLAB X MCC."))) unsigned char __flash_read(unsigned short addr);
__attribute__((__unsupported__("The " "FLASH_WRITE" " macro function is no longer supported. Please use the MPLAB X MCC."))) void __flash_write(unsigned short addr, unsigned short data);
__attribute__((__unsupported__("The " "FLASH_ERASE" " macro function is no longer supported. Please use the MPLAB X MCC."))) void __flash_erase(unsigned short addr);
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\eeprom_routines.h" 1 3
# 114 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\eeprom_routines.h" 3
extern void eeprom_write(unsigned char addr, unsigned char value);
extern unsigned char eeprom_read(unsigned char addr);
# 86 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 2 3
#pragma intrinsic(_delay)
extern __attribute__((nonreentrant)) void _delay(unsigned long);
#pragma intrinsic(_delaywdt)
extern __attribute__((nonreentrant)) void _delaywdt(unsigned long);
#pragma intrinsic(_delay3)
extern __attribute__((nonreentrant)) void _delay3(unsigned char);
# 137 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\pic.h" 3
extern __bank0 unsigned char __resetbits;
extern __bank0 __bit __powerdown;
extern __bank0 __bit __timeout;
# 28 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\xc.h" 2 3
# 49 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/device_config.h" 1
# 50 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/pin_manager.h" 1
# 262 "./mcc_generated_files/pin_manager.h"
void PIN_MANAGER_Initialize (void);
# 274 "./mcc_generated_files/pin_manager.h"
void PIN_MANAGER_IOC(void);
# 287 "./mcc_generated_files/pin_manager.h"
void IOCAF4_ISR(void);
# 310 "./mcc_generated_files/pin_manager.h"
void IOCAF4_SetInterruptHandler(void (* InterruptHandler)(void));
# 334 "./mcc_generated_files/pin_manager.h"
extern void (*IOCAF4_InterruptHandler)(void);
# 358 "./mcc_generated_files/pin_manager.h"
void IOCAF4_DefaultInterruptHandler(void);
# 371 "./mcc_generated_files/pin_manager.h"
void IOCAF5_ISR(void);
# 394 "./mcc_generated_files/pin_manager.h"
void IOCAF5_SetInterruptHandler(void (* InterruptHandler)(void));
# 418 "./mcc_generated_files/pin_manager.h"
extern void (*IOCAF5_InterruptHandler)(void);
# 442 "./mcc_generated_files/pin_manager.h"
void IOCAF5_DefaultInterruptHandler(void);
# 51 "./mcc_generated_files/mcc.h" 2
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdint.h" 1 3
# 22 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdint.h" 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 1 3
# 127 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef unsigned long uintptr_t;
# 142 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef long intptr_t;
# 158 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef signed char int8_t;
typedef short int16_t;
# 173 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef long int32_t;
typedef long long int64_t;
# 188 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef long long intmax_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
# 209 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef unsigned long uint32_t;
typedef unsigned long long uint64_t;
# 229 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef unsigned long long uintmax_t;
# 22 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdint.h" 2 3
typedef int8_t int_fast8_t;
typedef int64_t int_fast64_t;
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int24_t int_least24_t;
typedef int24_t int_fast24_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_fast8_t;
typedef uint64_t uint_fast64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint24_t uint_least24_t;
typedef uint24_t uint_fast24_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;
# 144 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdint.h" 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/stdint.h" 1 3
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
# 144 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdint.h" 2 3
# 52 "./mcc_generated_files/mcc.h" 2
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdbool.h" 1 3
# 53 "./mcc_generated_files/mcc.h" 2
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\conio.h" 1 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\errno.h" 1 3
# 12 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\errno.h" 3
extern int errno;
# 8 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\conio.h" 2 3
# 1 "C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC12-16F1xxx_DFP/1.2.63/xc8\\pic\\include\\__null.h" 1 3
# 9 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\conio.h" 2 3
extern void init_uart(void);
extern char getch(void);
extern char getche(void);
extern void putch(char);
extern void ungetch(char);
extern __bit kbhit(void);
extern char * cgets(char *);
extern void cputs(const char *);
# 54 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/interrupt_manager.h" 1
# 55 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/tmr1.h" 1
# 101 "./mcc_generated_files/tmr1.h"
void TMR1_Initialize(void);
# 130 "./mcc_generated_files/tmr1.h"
void TMR1_StartTimer(void);
# 162 "./mcc_generated_files/tmr1.h"
void TMR1_StopTimer(void);
# 197 "./mcc_generated_files/tmr1.h"
uint16_t TMR1_ReadTimer(void);
# 236 "./mcc_generated_files/tmr1.h"
void TMR1_WriteTimer(uint16_t timerVal);
# 272 "./mcc_generated_files/tmr1.h"
void TMR1_Reload(void);
# 311 "./mcc_generated_files/tmr1.h"
void TMR1_StartSinglePulseAcquisition(void);
# 350 "./mcc_generated_files/tmr1.h"
uint8_t TMR1_CheckGateValueStatus(void);
# 368 "./mcc_generated_files/tmr1.h"
void TMR1_ISR(void);
# 385 "./mcc_generated_files/tmr1.h"
void TMR1_CallBack(void);
# 403 "./mcc_generated_files/tmr1.h"
void TMR1_SetInterruptHandler(void (* InterruptHandler)(void));
# 421 "./mcc_generated_files/tmr1.h"
extern void (*TMR1_InterruptHandler)(void);
# 439 "./mcc_generated_files/tmr1.h"
void TMR1_DefaultInterruptHandler(void);
# 56 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/tmr2.h" 1
# 104 "./mcc_generated_files/tmr2.h"
void TMR2_Initialize(void);
# 133 "./mcc_generated_files/tmr2.h"
void TMR2_StartTimer(void);
# 165 "./mcc_generated_files/tmr2.h"
void TMR2_StopTimer(void);
# 200 "./mcc_generated_files/tmr2.h"
uint8_t TMR2_ReadTimer(void);
# 239 "./mcc_generated_files/tmr2.h"
void TMR2_WriteTimer(uint8_t timerVal);
# 291 "./mcc_generated_files/tmr2.h"
void TMR2_LoadPeriodRegister(uint8_t periodVal);
# 309 "./mcc_generated_files/tmr2.h"
void TMR2_ISR(void);
# 327 "./mcc_generated_files/tmr2.h"
void TMR2_CallBack(void);
# 344 "./mcc_generated_files/tmr2.h"
void TMR2_SetInterruptHandler(void (* InterruptHandler)(void));
# 362 "./mcc_generated_files/tmr2.h"
extern void (*TMR2_InterruptHandler)(void);
# 380 "./mcc_generated_files/tmr2.h"
void TMR2_DefaultInterruptHandler(void);
# 57 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/fvr.h" 1
# 93 "./mcc_generated_files/fvr.h"
void FVR_Initialize(void);
# 127 "./mcc_generated_files/fvr.h"
_Bool FVR_IsOutputReady(void);
# 58 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/memory.h" 1
# 99 "./mcc_generated_files/memory.h"
uint16_t FLASH_ReadWord(uint16_t flashAddr);
# 128 "./mcc_generated_files/memory.h"
void FLASH_WriteWord(uint16_t flashAddr, uint16_t *ramBuf, uint16_t word);
# 164 "./mcc_generated_files/memory.h"
int8_t FLASH_WriteBlock(uint16_t writeAddr, uint16_t *flashWordArray);
# 189 "./mcc_generated_files/memory.h"
void FLASH_EraseBlock(uint16_t startAddr);
# 220 "./mcc_generated_files/memory.h"
void DATAEE_WriteByte(uint8_t bAdd, uint8_t bData);
# 246 "./mcc_generated_files/memory.h"
uint8_t DATAEE_ReadByte(uint8_t bAdd);
# 59 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/adc.h" 1
# 72 "./mcc_generated_files/adc.h"
typedef uint16_t adc_result_t;
typedef struct
{
adc_result_t adcResult1;
adc_result_t adcResult2;
} adc_sync_double_result_t;
# 95 "./mcc_generated_files/adc.h"
typedef enum
{
A_S1 = 0x4,
A_S2 = 0x5,
channel_Temp = 0x1D,
channel_DAC = 0x1E,
channel_FVR = 0x1F
} adc_channel_t;
# 137 "./mcc_generated_files/adc.h"
void ADC_Initialize(void);
# 167 "./mcc_generated_files/adc.h"
void ADC_SelectChannel(adc_channel_t channel);
# 194 "./mcc_generated_files/adc.h"
void ADC_StartConversion(void);
# 226 "./mcc_generated_files/adc.h"
_Bool ADC_IsConversionDone(void);
# 259 "./mcc_generated_files/adc.h"
adc_result_t ADC_GetConversionResult(void);
# 289 "./mcc_generated_files/adc.h"
adc_result_t ADC_GetConversion(adc_channel_t channel);
# 317 "./mcc_generated_files/adc.h"
void ADC_TemperatureAcquisitionDelay(void);
# 60 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/eusart.h" 1
# 57 "./mcc_generated_files/eusart.h"
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdio.h" 1 3
# 24 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdio.h" 3
# 1 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 1 3
typedef void * va_list[1];
typedef void * __isoc_va_list[1];
# 137 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef long ssize_t;
# 246 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef long long off_t;
# 399 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\bits/alltypes.h" 3
typedef struct _IO_FILE FILE;
# 24 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdio.h" 2 3
# 52 "C:\\Program Files\\Microchip\\xc8\\v2.31\\pic\\include\\c99\\stdio.h" 3
typedef union _G_fpos64_t {
char __opaque[16];
double __align;
} fpos_t;
extern FILE *const stdin;
extern FILE *const stdout;
extern FILE *const stderr;
FILE *fopen(const char *restrict, const char *restrict);
FILE *freopen(const char *restrict, const char *restrict, FILE *restrict);
int fclose(FILE *);
int remove(const char *);
int rename(const char *, const char *);
int feof(FILE *);
int ferror(FILE *);
int fflush(FILE *);
void clearerr(FILE *);
int fseek(FILE *, long, int);
long ftell(FILE *);
void rewind(FILE *);
int fgetpos(FILE *restrict, fpos_t *restrict);
int fsetpos(FILE *, const fpos_t *);
size_t fread(void *restrict, size_t, size_t, FILE *restrict);
size_t fwrite(const void *restrict, size_t, size_t, FILE *restrict);
int fgetc(FILE *);
int getc(FILE *);
int getchar(void);
int ungetc(int, FILE *);
int fputc(int, FILE *);
int putc(int, FILE *);
int putchar(int);
char *fgets(char *restrict, int, FILE *restrict);
char *gets(char *);
int fputs(const char *restrict, FILE *restrict);
int puts(const char *);
#pragma printf_check(printf) const
#pragma printf_check(vprintf) const
#pragma printf_check(sprintf) const
#pragma printf_check(snprintf) const
#pragma printf_check(vsprintf) const
#pragma printf_check(vsnprintf) const
int printf(const char *restrict, ...);
int fprintf(FILE *restrict, const char *restrict, ...);
int sprintf(char *restrict, const char *restrict, ...);
int snprintf(char *restrict, size_t, const char *restrict, ...);
int vprintf(const char *restrict, __isoc_va_list);
int vfprintf(FILE *restrict, const char *restrict, __isoc_va_list);
int vsprintf(char *restrict, const char *restrict, __isoc_va_list);
int vsnprintf(char *restrict, size_t, const char *restrict, __isoc_va_list);
int scanf(const char *restrict, ...);
int fscanf(FILE *restrict, const char *restrict, ...);
int sscanf(const char *restrict, const char *restrict, ...);
int vscanf(const char *restrict, __isoc_va_list);
int vfscanf(FILE *restrict, const char *restrict, __isoc_va_list);
int vsscanf(const char *restrict, const char *restrict, __isoc_va_list);
void perror(const char *);
int setvbuf(FILE *restrict, char *restrict, int, size_t);
void setbuf(FILE *restrict, char *restrict);
char *tmpnam(char *);
FILE *tmpfile(void);
FILE *fmemopen(void *restrict, size_t, const char *restrict);
FILE *open_memstream(char **, size_t *);
FILE *fdopen(int, const char *);
FILE *popen(const char *, const char *);
int pclose(FILE *);
int fileno(FILE *);
int fseeko(FILE *, off_t, int);
off_t ftello(FILE *);
int dprintf(int, const char *restrict, ...);
int vdprintf(int, const char *restrict, __isoc_va_list);
void flockfile(FILE *);
int ftrylockfile(FILE *);
void funlockfile(FILE *);
int getc_unlocked(FILE *);
int getchar_unlocked(void);
int putc_unlocked(int, FILE *);
int putchar_unlocked(int);
ssize_t getdelim(char **restrict, size_t *restrict, int, FILE *restrict);
ssize_t getline(char **restrict, size_t *restrict, FILE *restrict);
int renameat(int, const char *, int, const char *);
char *ctermid(char *);
char *tempnam(const char *, const char *);
# 57 "./mcc_generated_files/eusart.h" 2
# 78 "./mcc_generated_files/eusart.h"
typedef union {
struct {
unsigned perr : 1;
unsigned ferr : 1;
unsigned oerr : 1;
unsigned reserved : 5;
};
uint8_t status;
}eusart_status_t;
extern volatile uint8_t eusartTxBufferRemaining;
extern volatile uint8_t eusartRxCount;
extern void (*EUSART_TxDefaultInterruptHandler)(void);
extern void (*EUSART_RxDefaultInterruptHandler)(void);
# 120 "./mcc_generated_files/eusart.h"
void EUSART_Initialize(void);
# 168 "./mcc_generated_files/eusart.h"
_Bool EUSART_is_tx_ready(void);
# 216 "./mcc_generated_files/eusart.h"
_Bool EUSART_is_rx_ready(void);
# 263 "./mcc_generated_files/eusart.h"
_Bool EUSART_is_tx_done(void);
# 311 "./mcc_generated_files/eusart.h"
eusart_status_t EUSART_get_last_status(void);
# 331 "./mcc_generated_files/eusart.h"
uint8_t EUSART_Read(void);
# 351 "./mcc_generated_files/eusart.h"
void EUSART_Write(uint8_t txData);
# 372 "./mcc_generated_files/eusart.h"
void EUSART_Transmit_ISR(void);
# 393 "./mcc_generated_files/eusart.h"
void EUSART_Receive_ISR(void);
# 414 "./mcc_generated_files/eusart.h"
void EUSART_RxDataHandler(void);
# 432 "./mcc_generated_files/eusart.h"
void EUSART_SetFramingErrorHandler(void (* interruptHandler)(void));
# 450 "./mcc_generated_files/eusart.h"
void EUSART_SetOverrunErrorHandler(void (* interruptHandler)(void));
# 468 "./mcc_generated_files/eusart.h"
void EUSART_SetErrorHandler(void (* interruptHandler)(void));
# 488 "./mcc_generated_files/eusart.h"
void EUSART_SetTxInterruptHandler(void (* interruptHandler)(void));
# 508 "./mcc_generated_files/eusart.h"
void EUSART_SetRxInterruptHandler(void (* interruptHandler)(void));
# 61 "./mcc_generated_files/mcc.h" 2
# 1 "./mcc_generated_files/delay.h" 1
# 34 "./mcc_generated_files/delay.h"
void DELAY_milliseconds(uint16_t milliseconds);
void DELAY_microseconds(uint16_t microseconds);
# 62 "./mcc_generated_files/mcc.h" 2
# 77 "./mcc_generated_files/mcc.h"
void SYSTEM_Initialize(void);
# 90 "./mcc_generated_files/mcc.h"
void OSCILLATOR_Initialize(void);
# 102 "./mcc_generated_files/mcc.h"
void WDT_Initialize(void);
# 1 "main.c" 2
# 1 "./defines.h" 1
# 2 "main.c" 2
# 1 "./crc8.h" 1
# 11 "./crc8.h"
uint8_t CRC8(const uint8_t *data, uint8_t len) {
uint8_t crc = 0x00;
while (len--) {
uint8_t extract = *data++;
for (uint8_t tempI = 8; tempI; tempI--) {
uint8_t sum = (crc ^ extract) & 0x01;
crc >>= 1;
if (sum) {
crc ^= 0x8C;
}
extract >>= 1;
}
}
return crc;
}
# 3 "main.c" 2
typedef struct {
uint8_t calibrated;
uint16_t id;
uint8_t t_delay, t_settle;
uint8_t low_batt;
uint8_t n_read;
uint16_t s1_min, s2_min;
uint16_t s1_max, s2_max;
uint16_t s1_bar, s2_bar;
uint8_t crc;
} settings_t;
typedef struct {
uint16_t s1_raw, s2_raw;
uint16_t s1_map, s2_map;
} meas_t;
typedef union {
struct {
unsigned connected :1;
unsigned bonded :1;
unsigned stream_open :1;
unsigned err :1;
unsigned reboot :1;
unsigned received_status :1;
unsigned received_command: 1;
};
uint8_t stat;
} bt_status_t;
extern uint8_t eusartRxBuffer[16];
extern uint8_t eusartRxHead;
extern volatile uint8_t eusartTxBufferRemaining;
extern volatile uint8_t eusartRxCount;
settings_t settings, defaults;
bt_status_t bt_status;
char comm[16];
meas_t last_meas;
_Bool isRunning = 1;
_Bool command_timeout = 0;
long map(long x, long in_min, long in_max, long out_min, long out_max){
return(x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
void EEput(uint8_t *data, uint8_t sidx, uint8_t len){
while (len--) {
DATAEE_WriteByte(sidx++, *(data++));
}
}
void EEget(uint8_t *data, uint8_t sidx, uint8_t len){
while (len--) {
*(data++) = DATAEE_ReadByte(sidx++);
}
}
void My_RXhandler(void){
uint8_t c = '\0';
static _Bool cmdstart = 0, statstart = 0;
c=RCREG;
if (c!='#' && c!='(' && c!=')') {
eusartRxBuffer[eusartRxHead++] = c;
if(sizeof(eusartRxBuffer) <= eusartRxHead) {
eusartRxHead = 0;
}
eusartRxCount++;
}
if (!cmdstart && c=='#'){
cmdstart=1;
return;
} else if (cmdstart && c=='.'){
cmdstart = 0;
bt_status.received_command = 1;
bt_status.received_status = 0;
return;
}
if (c=='(' && !statstart) {
statstart=1;
return;
} else if (c==')' && statstart) {
statstart=0;
bt_status.received_status = 1;
bt_status.received_command = 0;
return;
}
}
void BTstat1_handler(void){
volatile _Bool v = PORTAbits.RA4;
bt_status.connected =~ v;
if (v) do { LATBbits.LATB6 = 0; } while(0);
else do { LATBbits.LATB6 = 1; } while(0);
}
void BTstat2_handler(void){
volatile _Bool v = PORTAbits.RA5;
if (v) do { LATBbits.LATB5 = 1; } while(0);
else do { LATBbits.LATB5 = 0; } while(0);
bt_status.stream_open = v;
}
void TMR1_handler(void){
do { LATBbits.LATB6 = ~LATBbits.LATB6; } while(0);
}
void TMR2_recv_timeout_handler(void){
command_timeout=1;
}
meas_t readSensors(void);
void main(void) {
SYSTEM_Initialize();
EUSART_SetRxInterruptHandler(My_RXhandler);
TMR1_SetInterruptHandler(TMR1_handler);
TMR2_SetInterruptHandler(TMR2_recv_timeout_handler);
IOCAF4_SetInterruptHandler(BTstat1_handler);
IOCAF5_SetInterruptHandler(BTstat2_handler);
do { LATCbits.LATC2 = 1; } while(0);
do { LATCbits.LATC6 = 0; } while(0);
(INTCONbits.GIE = 1);
(INTCONbits.PEIE = 1);
TMR1_StopTimer();
TMR2_StopTimer();
DELAY_milliseconds(100);
if (DATAEE_ReadByte(0) == 0xff) {
printf("Init EEPROM\n");
defaults.calibrated = 0;
defaults.id = 0;
defaults.low_batt = 50;
defaults.n_read = 10;
defaults.s1_bar = defaults.s2_bar = 250;
defaults.s1_min = defaults.s2_min = 0;
defaults.s1_max = defaults.s2_max = 1023;
defaults.t_delay = 20;
defaults.t_settle = 100;
defaults.crc = CRC8((uint8_t*) & defaults, sizeof(defaults) - 1);
EEput((uint8_t*) &defaults, 0, sizeof(settings_t));
EEput((uint8_t*) &defaults, sizeof(settings_t), sizeof(settings_t));
} else {
printf("Read EEPROM\n");
EEget((uint8_t*) & defaults, 0, sizeof(settings_t));
EEget((uint8_t*) & settings, sizeof(settings_t), sizeof(settings_t));
if (CRC8((uint8_t*) & settings, sizeof(settings_t) - 1) != settings.crc) {
printf("EEPROM CRC Error");
}
}
do { LATCbits.LATC6 = 1; } while(0);
while (isRunning) {
char cmd;
while (!bt_status.received_command && !bt_status.received_status && !command_timeout);
TMR2_StopTimer();
TMR2_WriteTimer(0);
if (bt_status.received_command){
cmd=getch();
switch (cmd) {
case 'H': {
printf("#V:%d,ID:%d\n", 1, settings.id);
break;
}
case 'S': {
settings_t *s = &settings;
int rv = 0;
if (rv == 12) {
settings.crc = CRC8((uint8_t*) s, sizeof(settings_t) - 1);
EEput((uint8_t*) &settings, sizeof(settings_t), sizeof(settings_t));
printf("Parametri Salvati\n");
} else {
printf("Errore Parametri:%d\n", rv);
}
break;
}
case 'P': {
settings_t *s = &settings;
printf("#P:%hu;%u;%hu;%hu;%hu;%hu;%u;%u;%u;%u;%u;%u:%02x\n",
s->calibrated, s->id, s->t_delay, s->t_settle,
s->low_batt, s->n_read,
s->s1_min, s->s1_max, s->s1_bar,
s->s2_min, s->s2_max, s->s2_bar,
s->crc);
break;
}
case 'G': {
last_meas = readSensors();
printf("#G:%hu,%hu,%hu,%hu\n", last_meas.s1_raw, last_meas.s1_map, last_meas.s2_raw, last_meas.s2_map);
break;
}
case 'B': {
break;
}
case 'R': {
EEput((uint8_t*)&defaults,0,sizeof(settings_t));
settings = defaults;
printf("Reset Parametri\n");
break;
}
case 'I': {
DATAEE_WriteByte(0,0xff);
printf("EEPROM Clear, Reboot\n");
__asm("reset");
break;
}
case 'E': {
break;
}
case 'D': {
break;
}
default:{
break;
}
}
} else if (bt_status.received_status) {
printf("Stato...\n");
} else if (command_timeout){
printf("Timeout...\n");
command_timeout=0;
}
bt_status.received_command=0;
bt_status.received_status=0;
while (eusartTxBufferRemaining != 16);
while (eusartRxCount > 0 && (cmd = getch()) != '\r');
DELAY_milliseconds(10);
if (!bt_status.stream_open) __asm("sleep");
}
}
meas_t readSensors(void)
{
uint16_t m1[20], m2[20];
meas_t mean;
do { LATCbits.LATC2 = 0; } while(0);
DELAY_milliseconds(settings.t_settle);
for (uint8_t k = 0; k < settings.n_read; k++) {
m1[k] = ADC_GetConversion(A_S1);
m2[k] = ADC_GetConversion(A_S2);
printf("%d\t%d %d\n", k, m1[k], m2[k]);
DELAY_milliseconds(settings.t_delay);
}
do { LATCbits.LATC2 = 1; } while(0);
mean.s1_raw = 0;
mean.s2_raw = 0;
for (uint8_t k = 0; k < settings.n_read; k++) {
mean.s1_raw += m1[k];
mean.s2_raw += m2[k];
}
mean.s1_raw = (uint16_t) (mean.s1_raw / settings.n_read);
mean.s2_raw = (uint16_t) (mean.s2_raw / settings.n_read);
mean.s1_map = (uint16_t) map(mean.s1_raw, settings.s1_min, settings.s1_max, 0, settings.s1_bar);
mean.s2_map = (uint16_t) map(mean.s2_raw, settings.s2_min, settings.s2_max, 0, settings.s2_bar);
return mean;
}