⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pic16f707.h

📁 picc
💻 H
📖 第 1 页 / 共 4 页
字号:
//
// Special function register definitions: Bank 2
//

// Register: TACON
volatile unsigned char           TACON               @ 0x105;
// bit and bitfield definitions
volatile bit TAPSA               @ ((unsigned)&TACON*8)+3;
volatile bit TASE                @ ((unsigned)&TACON*8)+4;
volatile bit TACS                @ ((unsigned)&TACON*8)+5;
volatile bit TMRAON              @ ((unsigned)&TACON*8)+7;
volatile bit TAPS0               @ ((unsigned)&TACON*8)+0;
volatile bit TAPS1               @ ((unsigned)&TACON*8)+1;
volatile bit TAPS2               @ ((unsigned)&TACON*8)+2;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TAPS                : 3;
        volatile unsigned TAPSA               : 1;
        volatile unsigned TASE                : 1;
        volatile unsigned TACS                : 1;
        volatile unsigned                     : 1;
        volatile unsigned TMRAON              : 1;
    };
    struct {
        volatile unsigned TAPS0               : 1;
        volatile unsigned TAPS1               : 1;
        volatile unsigned TAPS2               : 1;
    };
} TACONbits @ 0x105;
#endif

// Register: CPSBCON0
volatile unsigned char           CPSBCON0            @ 0x106;
// bit and bitfield definitions
volatile bit TBXCS               @ ((unsigned)&CPSBCON0*8)+0;
volatile bit CPBSOUT             @ ((unsigned)&CPSBCON0*8)+1;
volatile bit CPSBRM              @ ((unsigned)&CPSBCON0*8)+6;
volatile bit CPSBON              @ ((unsigned)&CPSBCON0*8)+7;
volatile bit CPSBRNG0            @ ((unsigned)&CPSBCON0*8)+2;
volatile bit CPSBRNG1            @ ((unsigned)&CPSBCON0*8)+3;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TBXCS               : 1;
        volatile unsigned CPBSOUT             : 1;
        volatile unsigned CPSBRNG             : 2;
        volatile unsigned                     : 2;
        volatile unsigned CPSBRM              : 1;
        volatile unsigned CPSBON              : 1;
    };
    struct {
        volatile unsigned : 2;
        volatile unsigned CPSBRNG0            : 1;
        volatile unsigned CPSBRNG1            : 1;
    };
} CPSBCON0bits @ 0x106;
#endif

// Register: CPSBCON1
volatile unsigned char           CPSBCON1            @ 0x107;
// bit and bitfield definitions
volatile bit CPSBCH0             @ ((unsigned)&CPSBCON1*8)+0;
volatile bit CPSBCH1             @ ((unsigned)&CPSBCON1*8)+1;
volatile bit CPSBCH2             @ ((unsigned)&CPSBCON1*8)+2;
volatile bit CPSBCH3             @ ((unsigned)&CPSBCON1*8)+3;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned CPSBCH              : 4;
    };
    struct {
        volatile unsigned CPSBCH0             : 1;
        volatile unsigned CPSBCH1             : 1;
        volatile unsigned CPSBCH2             : 1;
        volatile unsigned CPSBCH3             : 1;
    };
} CPSBCON1bits @ 0x107;
#endif

// Register: CPSACON0
volatile unsigned char           CPSACON0            @ 0x108;
// bit and bitfield definitions
volatile bit TAXCS               @ ((unsigned)&CPSACON0*8)+0;
volatile bit CPSAOUT             @ ((unsigned)&CPSACON0*8)+1;
volatile bit CPSARM              @ ((unsigned)&CPSACON0*8)+6;
volatile bit CPSAON              @ ((unsigned)&CPSACON0*8)+7;
volatile bit CPSARNG0            @ ((unsigned)&CPSACON0*8)+2;
volatile bit CPSARNG1            @ ((unsigned)&CPSACON0*8)+3;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TAXCS               : 1;
        volatile unsigned CPSAOUT             : 1;
        volatile unsigned CPSARNG             : 2;
        volatile unsigned                     : 2;
        volatile unsigned CPSARM              : 1;
        volatile unsigned CPSAON              : 1;
    };
    struct {
        volatile unsigned : 2;
        volatile unsigned CPSARNG0            : 1;
        volatile unsigned CPSARNG1            : 1;
    };
} CPSACON0bits @ 0x108;
#endif

// Register: CPSACON1
volatile unsigned char           CPSACON1            @ 0x109;
// bit and bitfield definitions
volatile bit CPSACH0             @ ((unsigned)&CPSACON1*8)+0;
volatile bit CPSACH1             @ ((unsigned)&CPSACON1*8)+1;
volatile bit CPSACH2             @ ((unsigned)&CPSACON1*8)+2;
volatile bit CPSACH3             @ ((unsigned)&CPSACON1*8)+3;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned CPSACH              : 4;
    };
    struct {
        volatile unsigned CPSACH0             : 1;
        volatile unsigned CPSACH1             : 1;
        volatile unsigned CPSACH2             : 1;
        volatile unsigned CPSACH3             : 1;
    };
} CPSACON1bits @ 0x109;
#endif

// Register: PMDATL
volatile unsigned char           PMDATL              @ 0x10C;
// bit and bitfield definitions

// Register: PMADRL
volatile unsigned char           PMADRL              @ 0x10D;
// bit and bitfield definitions

// Register: PMDATH
volatile unsigned char           PMDATH              @ 0x10E;
// bit and bitfield definitions
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned PMDATH              : 6;
    };
} PMDATHbits @ 0x10E;
#endif

// Register: PMADRH
volatile unsigned char           PMADRH              @ 0x10F;
// bit and bitfield definitions
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned PMADRH              : 5;
    };
} PMADRHbits @ 0x10F;
#endif

// Register: TMRA
volatile unsigned char           TMRA                @ 0x110;
// bit and bitfield definitions

// Register: TBCON
volatile unsigned char           TBCON               @ 0x111;
// bit and bitfield definitions
volatile bit TBPSA               @ ((unsigned)&TBCON*8)+3;
volatile bit TBSE                @ ((unsigned)&TBCON*8)+4;
volatile bit TBCS                @ ((unsigned)&TBCON*8)+5;
volatile bit TMRBON              @ ((unsigned)&TBCON*8)+7;
volatile bit TBPS0               @ ((unsigned)&TBCON*8)+0;
volatile bit TBPS1               @ ((unsigned)&TBCON*8)+1;
volatile bit TBPS2               @ ((unsigned)&TBCON*8)+2;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TBPS                : 3;
        volatile unsigned TBPSA               : 1;
        volatile unsigned TBSE                : 1;
        volatile unsigned TBCS                : 1;
        volatile unsigned                     : 1;
        volatile unsigned TMRBON              : 1;
    };
    struct {
        volatile unsigned TBPS0               : 1;
        volatile unsigned TBPS1               : 1;
        volatile unsigned TBPS2               : 1;
    };
} TBCONbits @ 0x111;
#endif

// Register: TMRB
volatile unsigned char           TMRB                @ 0x112;
// bit and bitfield definitions

// Register: DACCON0
volatile unsigned char           DACCON0             @ 0x113;
// bit and bitfield definitions
volatile bit DACOE               @ ((unsigned)&DACCON0*8)+5;
volatile bit DACLPS              @ ((unsigned)&DACCON0*8)+6;
volatile bit DACEN               @ ((unsigned)&DACCON0*8)+7;
volatile bit DACPSS0             @ ((unsigned)&DACCON0*8)+2;
volatile bit DACPSS1             @ ((unsigned)&DACCON0*8)+3;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned                     : 2;
        volatile unsigned DACPSS              : 2;
        volatile unsigned : 1;
        volatile unsigned DACOE               : 1;
        volatile unsigned DACLPS              : 1;
        volatile unsigned DACEN               : 1;
    };
    struct {
        volatile unsigned : 2;
        volatile unsigned DACPSS0             : 1;
        volatile unsigned DACPSS1             : 1;
    };
} DACCON0bits @ 0x113;
#endif

// Register: DACCON1
volatile unsigned char           DACCON1             @ 0x114;
// bit and bitfield definitions
volatile bit DACR0               @ ((unsigned)&DACCON1*8)+0;
volatile bit DACR1               @ ((unsigned)&DACCON1*8)+1;
volatile bit DACR2               @ ((unsigned)&DACCON1*8)+2;
volatile bit DACR3               @ ((unsigned)&DACCON1*8)+3;
volatile bit DACR4               @ ((unsigned)&DACCON1*8)+4;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned DACR                : 5;
    };
    struct {
        volatile unsigned DACR0               : 1;
        volatile unsigned DACR1               : 1;
        volatile unsigned DACR2               : 1;
        volatile unsigned DACR3               : 1;
        volatile unsigned DACR4               : 1;
    };
} DACCON1bits @ 0x114;
#endif

//
// Special function register definitions: Bank 3
//

// Register: ANSELA
volatile unsigned char           ANSELA              @ 0x185;
// bit and bitfield definitions
volatile bit ANSA0               @ ((unsigned)&ANSELA*8)+0;
volatile bit ANSA1               @ ((unsigned)&ANSELA*8)+1;
volatile bit ANSA2               @ ((unsigned)&ANSELA*8)+2;
volatile bit ANSA3               @ ((unsigned)&ANSELA*8)+3;
volatile bit ANSA4               @ ((unsigned)&ANSELA*8)+4;
volatile bit ANSA5               @ ((unsigned)&ANSELA*8)+5;
volatile bit ANSA6               @ ((unsigned)&ANSELA*8)+6;
volatile bit ANSA7               @ ((unsigned)&ANSELA*8)+7;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ANSA0               : 1;
        volatile unsigned ANSA1               : 1;
        volatile unsigned ANSA2               : 1;
        volatile unsigned ANSA3               : 1;
        volatile unsigned ANSA4               : 1;
        volatile unsigned ANSA5               : 1;
        volatile unsigned ANSA6               : 1;
        volatile unsigned ANSA7               : 1;
    };
} ANSELAbits @ 0x185;
#endif

// Register: ANSELB
volatile unsigned char           ANSELB              @ 0x186;
// bit and bitfield definitions
volatile bit ANSB0               @ ((unsigned)&ANSELB*8)+0;
volatile bit ANSB1               @ ((unsigned)&ANSELB*8)+1;
volatile bit ANSB2               @ ((unsigned)&ANSELB*8)+2;
volatile bit ANSB3               @ ((unsigned)&ANSELB*8)+3;
volatile bit ANSB4               @ ((unsigned)&ANSELB*8)+4;
volatile bit ANSB5               @ ((unsigned)&ANSELB*8)+5;
volatile bit ANSB6               @ ((unsigned)&ANSELB*8)+6;
volatile bit ANSB7               @ ((unsigned)&ANSELB*8)+7;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ANSB0               : 1;
        volatile unsigned ANSB1               : 1;
        volatile unsigned ANSB2               : 1;
        volatile unsigned ANSB3               : 1;
        volatile unsigned ANSB4               : 1;
        volatile unsigned ANSB5               : 1;
        volatile unsigned ANSB6               : 1;
        volatile unsigned ANSB7               : 1;
    };
} ANSELBbits @ 0x186;
#endif

// Register: ANSELC
volatile unsigned char           ANSELC              @ 0x187;
// bit and bitfield definitions
volatile bit ANSC0               @ ((unsigned)&ANSELC*8)+0;
volatile bit ANSC1               @ ((unsigned)&ANSELC*8)+1;
volatile bit ANSC2               @ ((unsigned)&ANSELC*8)+2;
volatile bit ANSC5               @ ((unsigned)&ANSELC*8)+5;
volatile bit ANSC6               @ ((unsigned)&ANSELC*8)+6;
volatile bit ANSC7               @ ((unsigned)&ANSELC*8)+7;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ANSC0               : 1;
        volatile unsigned ANSC1               : 1;
        volatile unsigned ANSC2               : 1;
        volatile unsigned                     : 1;
        volatile unsigned : 1;
        volatile unsigned ANSC5               : 1;
        volatile unsigned ANSC6               : 1;
        volatile unsigned ANSC7               : 1;
    };
} ANSELCbits @ 0x187;
#endif

// Register: ANSELD
volatile unsigned char           ANSELD              @ 0x188;
// bit and bitfield definitions
volatile bit ANSD0               @ ((unsigned)&ANSELD*8)+0;
volatile bit ANSD1               @ ((unsigned)&ANSELD*8)+1;
volatile bit ANSD2               @ ((unsigned)&ANSELD*8)+2;
volatile bit ANSD3               @ ((unsigned)&ANSELD*8)+3;
volatile bit ANSD4               @ ((unsigned)&ANSELD*8)+4;
volatile bit ANSD5               @ ((unsigned)&ANSELD*8)+5;
volatile bit ANSD6               @ ((unsigned)&ANSELD*8)+6;
volatile bit ANSD7               @ ((unsigned)&ANSELD*8)+7;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ANSD0               : 1;
        volatile unsigned ANSD1               : 1;
        volatile unsigned ANSD2               : 1;
        volatile unsigned ANSD3               : 1;
        volatile unsigned ANSD4               : 1;
        volatile unsigned ANSD5               : 1;
        volatile unsigned ANSD6               : 1;
        volatile unsigned ANSD7               : 1;
    };
} ANSELDbits @ 0x188;
#endif

// Register: ANSELE
volatile unsigned char           ANSELE              @ 0x189;
// bit and bitfield definitions
volatile bit ANSE0               @ ((unsigned)&ANSELE*8)+0;
volatile bit ANSE1               @ ((unsigned)&ANSELE*8)+1;
volatile bit ANSE2               @ ((unsigned)&ANSELE*8)+2;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ANSE0               : 1;
        volatile unsigned ANSE1               : 1;
        volatile unsigned ANSE2               : 1;
    };
} ANSELEbits @ 0x189;
#endif

// Register: PMCON1
volatile unsigned char           PMCON1              @ 0x18C;
// bit and bitfield definitions
volatile bit RD                  @ ((unsigned)&PMCON1*8)+0;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned RD                  : 1;
    };
} PMCON1bits @ 0x18C;
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -