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

📄 pic12f617.h

📁 picc
💻 H
📖 第 1 页 / 共 2 页
字号:
union {
    struct {
        volatile unsigned VR                  : 4;
        volatile unsigned FBREN               : 1;
        volatile unsigned VRR                 : 1;
        volatile unsigned                     : 1;
        volatile unsigned C1VREN              : 1;
    };
} VRCONbits @ 0x019;
#endif

// Register: CMCON0
volatile unsigned char           CMCON0              @ 0x01A;
// bit and bitfield definitions
volatile bit C1CH                @ ((unsigned)&CMCON0*8)+0;
volatile bit C1R                 @ ((unsigned)&CMCON0*8)+2;
volatile bit C1POL               @ ((unsigned)&CMCON0*8)+4;
volatile bit C1OE                @ ((unsigned)&CMCON0*8)+5;
volatile bit C1OUT               @ ((unsigned)&CMCON0*8)+6;
volatile bit C1ON                @ ((unsigned)&CMCON0*8)+7;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned C1CH                : 1;
        volatile unsigned                     : 1;
        volatile unsigned C1R                 : 1;
        volatile unsigned : 1;
        volatile unsigned C1POL               : 1;
        volatile unsigned C1OE                : 1;
        volatile unsigned C1OUT               : 1;
        volatile unsigned C1ON                : 1;
    };
} CMCON0bits @ 0x01A;
#endif

// Register: CMCON1
volatile unsigned char           CMCON1              @ 0x01C;
// bit and bitfield definitions
volatile bit C1SYNC              @ ((unsigned)&CMCON1*8)+0;
volatile bit T1GSS               @ ((unsigned)&CMCON1*8)+1;
volatile bit C1HYS               @ ((unsigned)&CMCON1*8)+3;
volatile bit T1ACS               @ ((unsigned)&CMCON1*8)+4;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned C1SYNC              : 1;
        volatile unsigned T1GSS               : 1;
        volatile unsigned                     : 1;
        volatile unsigned C1HYS               : 1;
        volatile unsigned T1ACS               : 1;
    };
} CMCON1bits @ 0x01C;
#endif

// Register: ADRESH
volatile unsigned char           ADRESH              @ 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 VCFG                @ ((unsigned)&ADCON0*8)+6;
volatile bit ADFM                @ ((unsigned)&ADCON0*8)+7;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ADON                : 1;
        volatile unsigned GO_nDONE            : 1;
        volatile unsigned CHS                 : 3;
        volatile unsigned                     : 1;
        volatile unsigned VCFG                : 1;
        volatile unsigned ADFM                : 1;
    };
} 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 nGPPU               @ ((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 nGPPU               : 1;
    };
} OPTION_REGbits @ 0x081;
#endif

// Register: TRISIO
volatile unsigned char           TRISIO              @ 0x085;
volatile unsigned char           TRISA               @ 0x085;
// bit and bitfield definitions
volatile bit TRISIO0             @ ((unsigned)&TRISIO*8)+0;
volatile bit TRISIO1             @ ((unsigned)&TRISIO*8)+1;
volatile bit TRISIO2             @ ((unsigned)&TRISIO*8)+2;
volatile bit TRISIO3             @ ((unsigned)&TRISIO*8)+3;
volatile bit TRISIO4             @ ((unsigned)&TRISIO*8)+4;
volatile bit TRISIO5             @ ((unsigned)&TRISIO*8)+5;
volatile bit TRISA0              @ ((unsigned)&TRISIO*8)+0;
volatile bit TRISA1              @ ((unsigned)&TRISIO*8)+1;
volatile bit TRISA2              @ ((unsigned)&TRISIO*8)+2;
volatile bit TRISA3              @ ((unsigned)&TRISIO*8)+3;
volatile bit TRISA4              @ ((unsigned)&TRISIO*8)+4;
volatile bit TRISA5              @ ((unsigned)&TRISIO*8)+5;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TRISIO0             : 1;
        volatile unsigned TRISIO1             : 1;
        volatile unsigned TRISIO2             : 1;
        volatile unsigned TRISIO3             : 1;
        volatile unsigned TRISIO4             : 1;
        volatile unsigned TRISIO5             : 1;
    };
    struct {
        volatile unsigned TRISA0              : 1;
        volatile unsigned TRISA1              : 1;
        volatile unsigned TRISA2              : 1;
        volatile unsigned TRISA3              : 1;
        volatile unsigned TRISA4              : 1;
        volatile unsigned TRISA5              : 1;
    };
} TRISIObits @ 0x085;
#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 C1IE                @ ((unsigned)&PIE1*8)+3;
volatile bit ECCPIE              @ ((unsigned)&PIE1*8)+5;
volatile bit ADIE                @ ((unsigned)&PIE1*8)+6;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TMR1IE              : 1;
        volatile unsigned TMR2IE              : 1;
        volatile unsigned                     : 1;
        volatile unsigned C1IE                : 1;
        volatile unsigned : 1;
        volatile unsigned ECCPIE              : 1;
        volatile unsigned ADIE                : 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: OSCTUNE
volatile unsigned char           OSCTUNE             @ 0x090;
// bit and bitfield definitions
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned TUN                 : 5;
    };
} OSCTUNEbits @ 0x090;
#endif

// Register: PR2
volatile unsigned char           PR2                 @ 0x092;
// bit and bitfield definitions

// Register: APFCON
volatile unsigned char           APFCON              @ 0x093;
// bit and bitfield definitions
volatile bit P1ASEL              @ ((unsigned)&APFCON*8)+0;
volatile bit P1BSEL              @ ((unsigned)&APFCON*8)+1;
volatile bit T1GSEL              @ ((unsigned)&APFCON*8)+4;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned P1ASEL              : 1;
        volatile unsigned P1BSEL              : 1;
        volatile unsigned                     : 2;
        volatile unsigned T1GSEL              : 1;
    };
} APFCONbits @ 0x093;
#endif

// Register: WPU
volatile unsigned char           WPU                 @ 0x095;
// bit and bitfield definitions
volatile bit WPUA0               @ ((unsigned)&WPU*8)+0;
volatile bit WPUA1               @ ((unsigned)&WPU*8)+1;
volatile bit WPUA2               @ ((unsigned)&WPU*8)+2;
volatile bit WPUA4               @ ((unsigned)&WPU*8)+4;
volatile bit WPUA5               @ ((unsigned)&WPU*8)+5;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned WPUA0               : 1;
        volatile unsigned WPUA1               : 1;
        volatile unsigned WPUA2               : 1;
        volatile unsigned                     : 1;
        volatile unsigned WPUA4               : 1;
        volatile unsigned WPUA5               : 1;
    };
} WPUbits @ 0x095;
#endif

// Register: IOC
volatile unsigned char           IOC                 @ 0x096;
// bit and bitfield definitions
volatile bit IOC0                @ ((unsigned)&IOC*8)+0;
volatile bit IOC1                @ ((unsigned)&IOC*8)+1;
volatile bit IOC2                @ ((unsigned)&IOC*8)+2;
volatile bit IOC3                @ ((unsigned)&IOC*8)+3;
volatile bit IOC4                @ ((unsigned)&IOC*8)+4;
volatile bit IOC5                @ ((unsigned)&IOC*8)+5;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned IOC0                : 1;
        volatile unsigned IOC1                : 1;
        volatile unsigned IOC2                : 1;
        volatile unsigned IOC3                : 1;
        volatile unsigned IOC4                : 1;
        volatile unsigned IOC5                : 1;
    };
} IOCbits @ 0x096;
#endif

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

// Register: PMCON2
volatile unsigned char           PMCON2              @ 0x099;
// bit and bitfield definitions

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

// Register: PMADRH
volatile unsigned char           PMADRH              @ 0x09B;
// bit and bitfield definitions
volatile bit PMADRH0             @ ((unsigned)&PMADRH*8)+0;
volatile bit PMADRH1             @ ((unsigned)&PMADRH*8)+1;
volatile bit PMADRH2             @ ((unsigned)&PMADRH*8)+2;
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned PMADRH0             : 1;
        volatile unsigned PMADRH1             : 1;
        volatile unsigned PMADRH2             : 1;
    };
} PMADRHbits @ 0x09B;
#endif

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

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

// Register: ADRESL
volatile unsigned char           ADRESL              @ 0x09E;
// bit and bitfield definitions

// Register: ANSEL
volatile unsigned char           ANSEL               @ 0x09F;
// bit and bitfield definitions
#ifndef _LIB_BUILD
union {
    struct {
        volatile unsigned ANS                 : 4;
        volatile unsigned ADCS                : 3;
    };
} ANSELbits @ 0x09F;
#endif

#endif

⌨️ 快捷键说明

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