📄 pic16lf721.h
字号:
volatile unsigned char SSPBUF @ 0x013;
// bit and bitfield definitions
// Register: SSPCON
volatile unsigned char SSPCON @ 0x014;
// bit and bitfield definitions
volatile bit CKP @ ((unsigned)&SSPCON*8)+4;
volatile bit SSPEN @ ((unsigned)&SSPCON*8)+5;
volatile bit SSPOV @ ((unsigned)&SSPCON*8)+6;
volatile bit WCOL @ ((unsigned)&SSPCON*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned SSPM : 4;
volatile unsigned CKP : 1;
volatile unsigned SSPEN : 1;
volatile unsigned SSPOV : 1;
volatile unsigned WCOL : 1;
};
} SSPCONbits @ 0x014;
#endif
// bit and bitfield definitions
// Register: CCPR1L
volatile unsigned char CCPR1L @ 0x015;
// bit and bitfield definitions
// Register: CCPR1H
volatile unsigned char CCPR1H @ 0x016;
// bit and bitfield definitions
// Register: CCPR1
volatile unsigned int CCPR1 @ 0x015;
// Register: CCP1CON
volatile unsigned char CCP1CON @ 0x017;
// bit and bitfield definitions
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned CCP1M : 4;
volatile unsigned DC1B : 2;
volatile unsigned : 2;
};
} CCP1CONbits @ 0x017;
#endif
// Register: RCSTA
volatile unsigned char RCSTA @ 0x018;
// bit and bitfield definitions
volatile bit RX9D @ ((unsigned)&RCSTA*8)+0;
volatile bit OERR @ ((unsigned)&RCSTA*8)+1;
volatile bit FERR @ ((unsigned)&RCSTA*8)+2;
volatile bit ADDEN @ ((unsigned)&RCSTA*8)+3;
volatile bit CREN @ ((unsigned)&RCSTA*8)+4;
volatile bit SREN @ ((unsigned)&RCSTA*8)+5;
volatile bit RX9 @ ((unsigned)&RCSTA*8)+6;
volatile bit SPEN @ ((unsigned)&RCSTA*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned RX9D : 1;
volatile unsigned OERR : 1;
volatile unsigned FERR : 1;
volatile unsigned ADDEN : 1;
volatile unsigned CREN : 1;
volatile unsigned SREN : 1;
volatile unsigned RX9 : 1;
volatile unsigned SPEN : 1;
};
} RCSTAbits @ 0x018;
#endif
// Register: TXREG
volatile unsigned char TXREG @ 0x019;
// bit and bitfield definitions
// Register: RCREG
volatile unsigned char RCREG @ 0x01A;
// bit and bitfield definitions
// Register: ADRES
volatile unsigned char ADRES @ 0x01E;
// bit and bitfield definitions
// Register: ADCON0
volatile unsigned char ADCON0 @ 0x01F;
// bit and bitfield definitions
//volatile bit ADON @ ((unsigned)&ADCON0*8)+0;
//volatile bit GO_nDONE @ ((unsigned)&ADCON0*8)+1;
////volatile bit ADON @ ((unsigned)&ADCON0*8)+0;
////volatile bit GO_nDONE @ ((unsigned)&ADCON0*8)+1;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned ADON : 1;
volatile unsigned GO_nDONE : 1;
volatile unsigned CHS : 4;
};
struct {
volatile unsigned : 1;
volatile unsigned : 1;
volatile unsigned : 4;
};
} ADCON0bits @ 0x01F;
#endif
//
// Special function register definitions: Bank 1
//
// Register: OPTION_REG
volatile unsigned char OPTION_REG @ 0x081;
// bit and bitfield definitions
volatile bit PSA @ ((unsigned)&OPTION_REG*8)+3;
volatile bit T0SE @ ((unsigned)&OPTION_REG*8)+4;
volatile bit T0CS @ ((unsigned)&OPTION_REG*8)+5;
volatile bit INTEDG @ ((unsigned)&OPTION_REG*8)+6;
volatile bit nRABPU @ ((unsigned)&OPTION_REG*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned PS : 3;
volatile unsigned PSA : 1;
volatile unsigned T0SE : 1;
volatile unsigned T0CS : 1;
volatile unsigned INTEDG : 1;
volatile unsigned nRABPU : 1;
};
} OPTION_REGbits @ 0x081;
#endif
// Register: TRISA
volatile unsigned char TRISA @ 0x085;
// bit and bitfield definitions
volatile bit TRISA0 @ ((unsigned)&TRISA*8)+0;
volatile bit TRISA1 @ ((unsigned)&TRISA*8)+1;
volatile bit TRISA2 @ ((unsigned)&TRISA*8)+2;
volatile bit TRISA4 @ ((unsigned)&TRISA*8)+4;
volatile bit TRISA5 @ ((unsigned)&TRISA*8)+5;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned TRISA0 : 1;
volatile unsigned TRISA1 : 1;
volatile unsigned TRISA2 : 1;
volatile unsigned : 1;
volatile unsigned TRISA4 : 1;
volatile unsigned TRISA5 : 1;
volatile unsigned : 1;
volatile unsigned : 1;
};
} TRISAbits @ 0x085;
#endif
// Register: TRISB
volatile unsigned char TRISB @ 0x086;
// bit and bitfield definitions
volatile bit TRISB4 @ ((unsigned)&TRISB*8)+4;
volatile bit TRISB5 @ ((unsigned)&TRISB*8)+5;
volatile bit TRISB6 @ ((unsigned)&TRISB*8)+6;
volatile bit TRISB7 @ ((unsigned)&TRISB*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned : 1;
volatile unsigned : 1;
volatile unsigned : 1;
volatile unsigned : 1;
volatile unsigned TRISB4 : 1;
volatile unsigned TRISB5 : 1;
volatile unsigned TRISB6 : 1;
volatile unsigned TRISB7 : 1;
};
} TRISBbits @ 0x086;
#endif
// Register: TRISC
volatile unsigned char TRISC @ 0x087;
// bit and bitfield definitions
volatile bit TRISC0 @ ((unsigned)&TRISC*8)+0;
volatile bit TRISC1 @ ((unsigned)&TRISC*8)+1;
volatile bit TRISC2 @ ((unsigned)&TRISC*8)+2;
volatile bit TRISC3 @ ((unsigned)&TRISC*8)+3;
volatile bit TRISC4 @ ((unsigned)&TRISC*8)+4;
volatile bit TRISC5 @ ((unsigned)&TRISC*8)+5;
volatile bit TRISC6 @ ((unsigned)&TRISC*8)+6;
volatile bit TRISC7 @ ((unsigned)&TRISC*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned TRISC0 : 1;
volatile unsigned TRISC1 : 1;
volatile unsigned TRISC2 : 1;
volatile unsigned TRISC3 : 1;
volatile unsigned TRISC4 : 1;
volatile unsigned TRISC5 : 1;
volatile unsigned TRISC6 : 1;
volatile unsigned TRISC7 : 1;
};
} TRISCbits @ 0x087;
#endif
// Register: PIE1
volatile unsigned char PIE1 @ 0x08C;
// bit and bitfield definitions
volatile bit TMR1IE @ ((unsigned)&PIE1*8)+0;
volatile bit TMR2IE @ ((unsigned)&PIE1*8)+1;
volatile bit CCP1IE @ ((unsigned)&PIE1*8)+2;
volatile bit SSPIE @ ((unsigned)&PIE1*8)+3;
volatile bit TXIE @ ((unsigned)&PIE1*8)+4;
volatile bit RCIE @ ((unsigned)&PIE1*8)+5;
volatile bit ADIE @ ((unsigned)&PIE1*8)+6;
volatile bit TMR1GIE @ ((unsigned)&PIE1*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned TMR1IE : 1;
volatile unsigned TMR2IE : 1;
volatile unsigned CCP1IE : 1;
volatile unsigned SSPIE : 1;
volatile unsigned TXIE : 1;
volatile unsigned RCIE : 1;
volatile unsigned ADIE : 1;
volatile unsigned TMR1GIE : 1;
};
} PIE1bits @ 0x08C;
#endif
// Register: PCON
volatile unsigned char PCON @ 0x08E;
// bit and bitfield definitions
volatile bit nBOR @ ((unsigned)&PCON*8)+0;
volatile bit nPOR @ ((unsigned)&PCON*8)+1;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned nBOR : 1;
volatile unsigned nPOR : 1;
};
} PCONbits @ 0x08E;
#endif
// Register: T1GCON
volatile unsigned char T1GCON @ 0x08F;
// bit and bitfield definitions
volatile bit T1GVAL @ ((unsigned)&T1GCON*8)+2;
volatile bit T1GGO_DONE @ ((unsigned)&T1GCON*8)+3;
volatile bit T1GSPM @ ((unsigned)&T1GCON*8)+4;
volatile bit T1GTM @ ((unsigned)&T1GCON*8)+5;
volatile bit T1GPOL @ ((unsigned)&T1GCON*8)+6;
volatile bit TMR1GE @ ((unsigned)&T1GCON*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned T1GSS : 2;
volatile unsigned T1GVAL : 1;
volatile unsigned T1GGO_DONE : 1;
volatile unsigned T1GSPM : 1;
volatile unsigned T1GTM : 1;
volatile unsigned T1GPOL : 1;
volatile unsigned TMR1GE : 1;
};
} T1GCONbits @ 0x08F;
#endif
// Register: OSCCON
volatile unsigned char OSCCON @ 0x090;
// bit and bitfield definitions
volatile bit ICSS @ ((unsigned)&OSCCON*8)+2;
volatile bit ICSL @ ((unsigned)&OSCCON*8)+3;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned : 2;
volatile unsigned ICSS : 1;
volatile unsigned ICSL : 1;
volatile unsigned IRCF : 2;
};
} OSCCONbits @ 0x090;
#endif
// Register: OSCTUNE
volatile unsigned char OSCTUNE @ 0x091;
// bit and bitfield definitions
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned TUN : 6;
};
} OSCTUNEbits @ 0x091;
#endif
// Register: PR2
volatile unsigned char PR2 @ 0x092;
// bit and bitfield definitions
// Register: SSPADD
volatile unsigned char SSPADD @ 0x093;
// bit and bitfield definitions
// Register: SSPMSK
volatile unsigned char SSPMSK @ 0x093; // shared address with SSPADD
// bit and bitfield definitions
volatile bit MSK0 @ ((unsigned)&SSPMSK*8)+0;
volatile bit MSK1 @ ((unsigned)&SSPMSK*8)+1;
volatile bit MSK2 @ ((unsigned)&SSPMSK*8)+2;
volatile bit MSK3 @ ((unsigned)&SSPMSK*8)+3;
volatile bit MSK4 @ ((unsigned)&SSPMSK*8)+4;
volatile bit MSK5 @ ((unsigned)&SSPMSK*8)+5;
volatile bit MSK6 @ ((unsigned)&SSPMSK*8)+6;
volatile bit MSK7 @ ((unsigned)&SSPMSK*8)+7;
#ifndef _LIB_BUILD
union {
struct {
volatile unsigned MSK0 : 1;
volatile unsigned MSK1 : 1;
volatile unsigned MSK2 : 1;
volatile unsigned MSK3 : 1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -