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

📄 main.pre

📁 USB interface examples using CDC by HT-PICC 18
💻 PRE
📖 第 1 页 / 共 4 页
字号:

# 1 "C:\Documents and Settings\Thai Hoa\Desktop\USB\main.c"

# 14 "C:\HT-PIC18\INCLUDE\pic18f4550.h"
static volatile near unsigned char TOSU @ 0xFFF;
static volatile near unsigned char TOSH @ 0xFFE;
static volatile near unsigned char TOSL @ 0xFFD;
static volatile near unsigned char STKPTR @ 0xFFC;
static volatile near unsigned char PCLATU @ 0xFFB;
static volatile near unsigned char PCLATH @ 0xFFA;
static volatile near unsigned char PCL @ 0xFF9;
static volatile far unsigned char * TBLPTR @ 0xFF6;
static volatile near unsigned char TBLPTRU @ 0xFF8;
static volatile near unsigned char TBLPTRH @ 0xFF7;
static volatile near unsigned char TBLPTRL @ 0xFF6;
static volatile near unsigned char TABLAT @ 0xFF5;
static volatile near unsigned char PRODH @ 0xFF4;
static volatile near unsigned char PRODL @ 0xFF3;
static volatile near unsigned char INTCON @ 0xFF2;
static near unsigned char INTCON2 @ 0xFF1;
static volatile near unsigned char INTCON3 @ 0xFF0;
static volatile near unsigned char INDF0 @ 0xFEF;
static volatile near unsigned char POSTINC0 @ 0xFEE;
static volatile near unsigned char POSTDEC0 @ 0xFED;
static volatile near unsigned char PREINC0 @ 0xFEC;
static volatile near unsigned char PLUSW0 @ 0xFEB;
static volatile near unsigned char FSR0H @ 0xFEA;
static volatile near unsigned char FSR0L @ 0xFE9;
static volatile near unsigned char WREG @ 0xFE8;
static volatile near unsigned char INDF1 @ 0xFE7;
static volatile near unsigned char POSTINC1 @ 0xFE6;
static volatile near unsigned char POSTDEC1 @ 0xFE5;
static volatile near unsigned char PREINC1 @ 0xFE4;
static volatile near unsigned char PLUSW1 @ 0xFE3;
static volatile near unsigned char FSR1H @ 0xFE2;
static volatile near unsigned char FSR1L @ 0xFE1;
static near unsigned char BSR @ 0xFE0;
static volatile near unsigned char INDF2 @ 0xFDF;
static volatile near unsigned char POSTINC2 @ 0xFDE;
static volatile near unsigned char POSTDEC2 @ 0xFDD;
static volatile near unsigned char PREINC2 @ 0xFDC;
static volatile near unsigned char PLUSW2 @ 0xFDB;
static volatile near unsigned char FSR2H @ 0xFDA;
static volatile near unsigned char FSR2L @ 0xFD9;
static volatile near unsigned char STATUS @ 0xFD8;
static volatile near unsigned char TMR0H @ 0xFD7;
static volatile near unsigned char TMR0L @ 0xFD6;

static volatile near unsigned int TMR0 @ 0xFD6;
static near unsigned char T0CON @ 0xFD5;
static volatile near unsigned char OSCCON @ 0xFD3;
static volatile near unsigned char LVDCON @ 0xFD2;
static volatile near unsigned char WDTCON @ 0xFD1;
static volatile near unsigned char RCON @ 0xFD0;
static volatile near unsigned char TMR1H @ 0xFCF;
static volatile near unsigned char TMR1L @ 0xFCE;

static volatile near unsigned int TMR1 @ 0xFCE;
static near unsigned char T1CON @ 0xFCD;
static volatile near unsigned char TMR2 @ 0xFCC;
static near unsigned char PR2 @ 0xFCB;
static near unsigned char T2CON @ 0xFCA;
static volatile near unsigned char SSPBUF @ 0xFC9;
static near unsigned char SSPADD @ 0xFC8;
static volatile near unsigned char SSPSTAT @ 0xFC7;
static volatile near unsigned char SSPCON1 @ 0xFC6;
static volatile near unsigned char SSPCON2 @ 0xFC5;
static volatile near unsigned char ADRESH @ 0xFC4;
static volatile near unsigned char ADRESL @ 0xFC3;

static volatile near unsigned int ADRES @ 0xFC3;
static volatile near unsigned char ADCON0 @ 0xFC2;
static near unsigned char ADCON1 @ 0xFC1;
static near unsigned char ADCON2 @ 0xFC0;
static volatile near unsigned char CCPR1H @ 0xFBF;
static volatile near unsigned char CCPR1L @ 0xFBE;

static volatile near unsigned int CCPR1 @ 0xFBE;
static volatile near unsigned char CCP1CON @ 0xFBD;
static volatile near unsigned char CCPR2H @ 0xFBC;
static volatile near unsigned char CCPR2L @ 0xFBB;

static volatile near unsigned int CCPR2 @ 0xFBB;
static volatile near unsigned char CCP2CON @ 0xFBA;
static volatile near unsigned char BAUDCON @ 0xFB8;
static near unsigned char ECCP1DEL @ 0xFB7;

static volatile near unsigned char ECCP1AS @ 0xFB6;

static volatile near unsigned char CVRCON @ 0xFB5;
static volatile near unsigned char CMCON @ 0xFB4;
static volatile near unsigned char TMR3H @ 0xFB3;
static volatile near unsigned char TMR3L @ 0xFB2;

static volatile near unsigned int TMR3 @ 0xFB2;
static near unsigned char T3CON @ 0xFB1;
static near unsigned char SPBRGH @ 0xFB0;
static near unsigned char SPBRG @ 0xFAF;
static volatile near unsigned char RCREG @ 0xFAE;
static volatile near unsigned char TXREG @ 0xFAD;
static volatile near unsigned char TXSTA @ 0xFAC;
static volatile near unsigned char RCSTA @ 0xFAB;
static near unsigned char EEADRH @ 0xFAA;
static near unsigned char EEADR @ 0xFA9;
static volatile near unsigned char EEDATA @ 0xFA8;
static volatile near unsigned char EECON2 @ 0xFA7;
static volatile near unsigned char EECON1 @ 0xFA6;
static near unsigned char IPR2 @ 0xFA2;
static volatile near unsigned char PIR2 @ 0xFA1;
static near unsigned char PIE2 @ 0xFA0;
static near unsigned char IPR1 @ 0xF9F;
static volatile near unsigned char PIR1 @ 0xF9E;
static near unsigned char PIE1 @ 0xF9D;
static near unsigned char OSCTUNE @ 0xF9B;

static volatile near unsigned char TRISE @ 0xF96;
static volatile near unsigned char TRISD @ 0xF95;

static volatile near unsigned char TRISC @ 0xF94;
static volatile near unsigned char TRISB @ 0xF93;
static volatile near unsigned char TRISA @ 0xF92;

static volatile near unsigned char LATE @ 0xF8D;
static volatile near unsigned char LATD @ 0xF8C;

static volatile near unsigned char LATC @ 0xF8B;
static volatile near unsigned char LATB @ 0xF8A;
static volatile near unsigned char LATA @ 0xF89;
static volatile near unsigned char PORTE @ 0xF84;

static volatile near unsigned char PORTD @ 0xF83;

static volatile near unsigned char PORTC @ 0xF82;
static volatile near unsigned char PORTB @ 0xF81;
static volatile near unsigned char PORTA @ 0xF80;
static volatile near unsigned char UEP15 @ 0xF7F;
static volatile near unsigned char UEP14 @ 0xF7E;
static volatile near unsigned char UEP13 @ 0xF7D;
static volatile near unsigned char UEP12 @ 0xF7C;
static volatile near unsigned char UEP11 @ 0xF7B;
static volatile near unsigned char UEP10 @ 0xF7A;
static volatile near unsigned char UEP9 @ 0xF79;
static volatile near unsigned char UEP8 @ 0xF78;
static volatile near unsigned char UEP7 @ 0xF77;
static volatile near unsigned char UEP6 @ 0xF76;
static volatile near unsigned char UEP5 @ 0xF75;
static volatile near unsigned char UEP4 @ 0xF74;
static volatile near unsigned char UEP3 @ 0xF73;
static volatile near unsigned char UEP2 @ 0xF72;
static volatile near unsigned char UEP1 @ 0xF71;
static volatile near unsigned char UEP0 @ 0xF70;
static near unsigned char UCFG @ 0xF6F;
static near unsigned char UADDR @ 0xF6E;
static volatile near unsigned char UCON @ 0xF6D;
static volatile near unsigned char USTAT @ 0xF6C;
static near unsigned char UEIE @ 0xF6B;
static volatile near unsigned char UEIR @ 0xF6A;
static near unsigned char UIE @ 0xF69;
static volatile near unsigned char UIR @ 0xF68;
static volatile near unsigned char UFRMH @ 0xF67;
static volatile near unsigned char UFRML @ 0xF66;

static near unsigned char SPPCON @ 0xF65;
static volatile near unsigned char SPPEPS @ 0xF64;
static near unsigned char SPPCFG @ 0xF63;
static volatile near unsigned char SPPDATA @ 0xF62;




static volatile near bit STKUNF @ ((unsigned)&STKPTR*8)+6;
static volatile near bit STKOVF @ ((unsigned)&STKPTR*8)+7;


static volatile near bit RBIF @ ((unsigned)&INTCON*8)+0;
static volatile near bit INT0IF @ ((unsigned)&INTCON*8)+1;
static volatile near bit TMR0IF @ ((unsigned)&INTCON*8)+2;
static near bit RBIE @ ((unsigned)&INTCON*8)+3;
static near bit INT0IE @ ((unsigned)&INTCON*8)+4;
static near bit TMR0IE @ ((unsigned)&INTCON*8)+5;
static near bit PEIE @ ((unsigned)&INTCON*8)+6;
static near bit GIE @ ((unsigned)&INTCON*8)+7;

static near bit GIEL @ ((unsigned)&INTCON*8)+6;
static near bit GIEH @ ((unsigned)&INTCON*8)+7;


static near bit RBIP @ ((unsigned)&INTCON2*8)+0;
static near bit TMR0IP @ ((unsigned)&INTCON2*8)+2;
static near bit INTEDG2 @ ((unsigned)&INTCON2*8)+4;
static near bit INTEDG1 @ ((unsigned)&INTCON2*8)+5;
static near bit INTEDG0 @ ((unsigned)&INTCON2*8)+6;
static near bit RBPU @ ((unsigned)&INTCON2*8)+7;


static volatile near bit INT1IF @ ((unsigned)&INTCON3*8)+0;
static volatile near bit INT2IF @ ((unsigned)&INTCON3*8)+1;
static near bit INT1IE @ ((unsigned)&INTCON3*8)+3;
static near bit INT2IE @ ((unsigned)&INTCON3*8)+4;
static near bit INT1IP @ ((unsigned)&INTCON3*8)+6;
static near bit INT2IP @ ((unsigned)&INTCON3*8)+7;


static volatile near bit CARRY @ ((unsigned)&STATUS*8)+0;
static volatile near bit DC @ ((unsigned)&STATUS*8)+1;
static volatile near bit ZERO @ ((unsigned)&STATUS*8)+2;
static volatile near bit OV @ ((unsigned)&STATUS*8)+3;
static volatile near bit NEGATIVE @ ((unsigned)&STATUS*8)+4;


static near bit T0PS0 @ ((unsigned)&T0CON*8)+0;
static near bit T0PS1 @ ((unsigned)&T0CON*8)+1;
static near bit T0PS2 @ ((unsigned)&T0CON*8)+2;
static near bit T0PS3 @ ((unsigned)&T0CON*8)+3;
static near bit T0SE @ ((unsigned)&T0CON*8)+4;
static near bit T0CS @ ((unsigned)&T0CON*8)+5;
static near bit T08BIT @ ((unsigned)&T0CON*8)+6;
static near bit TMR0ON @ ((unsigned)&T0CON*8)+7;


static near bit SCS0 @ ((unsigned)&OSCCON*8)+0;
static near bit SCS1 @ ((unsigned)&OSCCON*8)+1;
static volatile near bit FLTS @ ((unsigned)&OSCCON*8)+2;
static volatile near bit OSTS @ ((unsigned)&OSCCON*8)+3;
static near bit IRCF0 @ ((unsigned)&OSCCON*8)+4;
static near bit IRCF1 @ ((unsigned)&OSCCON*8)+5;
static near bit IRCF2 @ ((unsigned)&OSCCON*8)+6;
static near bit IDLEN @ ((unsigned)&OSCCON*8)+7;


static near bit LVDL0 @ ((unsigned)&LVDCON*8)+0;
static near bit LVDL1 @ ((unsigned)&LVDCON*8)+1;
static near bit LVDL2 @ ((unsigned)&LVDCON*8)+2;
static near bit LVDL3 @ ((unsigned)&LVDCON*8)+3;
static near bit LVDEN @ ((unsigned)&LVDCON*8)+4;
static volatile near bit IRVST @ ((unsigned)&LVDCON*8)+5;
static near bit VDIRMAG @ ((unsigned)&LVDCON*8)+7;


static near bit SWDTEN @ ((unsigned)&WDTCON*8)+0;


static volatile near bit BOR @ ((unsigned)&RCON*8)+0;
static volatile near bit POR @ ((unsigned)&RCON*8)+1;
static volatile near bit PD @ ((unsigned)&RCON*8)+2;
static volatile near bit TO @ ((unsigned)&RCON*8)+3;
static volatile near bit RI @ ((unsigned)&RCON*8)+4;
static near bit SBOREN @ ((unsigned)&RCON*8)+6;
static near bit IPEN @ ((unsigned)&RCON*8)+7;


static near bit TMR1ON @ ((unsigned)&T1CON*8)+0;
static near bit TMR1CS @ ((unsigned)&T1CON*8)+1;
static near bit T1SYNC @ ((unsigned)&T1CON*8)+2;
static near bit T1OSCEN @ ((unsigned)&T1CON*8)+3;
static near bit T1CKPS0 @ ((unsigned)&T1CON*8)+4;
static near bit T1CKPS1 @ ((unsigned)&T1CON*8)+5;
static near bit T1RUN @ ((unsigned)&T1CON*8)+6;
static near bit T1RD16 @ ((unsigned)&T1CON*8)+7;


static near bit T2CKPS0 @ ((unsigned)&T2CON*8)+0;
static near bit T2CKPS1 @ ((unsigned)&T2CON*8)+1;
static near bit TMR2ON @ ((unsigned)&T2CON*8)+2;
static near bit TOUTPS0 @ ((unsigned)&T2CON*8)+3;
static near bit TOUTPS1 @ ((unsigned)&T2CON*8)+4;
static near bit TOUTPS2 @ ((unsigned)&T2CON*8)+5;
static near bit TOUTPS3 @ ((unsigned)&T2CON*8)+6;


static volatile near bit BF @ ((unsigned)&SSPSTAT*8)+0;
static volatile near bit UA @ ((unsigned)&SSPSTAT*8)+1;
static volatile near bit RW @ ((unsigned)&SSPSTAT*8)+2;
static volatile near bit START @ ((unsigned)&SSPSTAT*8)+3;
static volatile near bit STOP @ ((unsigned)&SSPSTAT*8)+4;
static volatile near bit DA @ ((unsigned)&SSPSTAT*8)+5;
static near bit CKE @ ((unsigned)&SSPSTAT*8)+6;
static near bit SMP @ ((unsigned)&SSPSTAT*8)+7;


static near bit SSPM0 @ ((unsigned)&SSPCON1*8)+0;
static near bit SSPM1 @ ((unsigned)&SSPCON1*8)+1;
static near bit SSPM2 @ ((unsigned)&SSPCON1*8)+2;
static near bit SSPM3 @ ((unsigned)&SSPCON1*8)+3;
static near bit CKP @ ((unsigned)&SSPCON1*8)+4;
static near bit SSPEN @ ((unsigned)&SSPCON1*8)+5;
static volatile near bit SSPOV @ ((unsigned)&SSPCON1*8)+6;
static volatile near bit WCOL @ ((unsigned)&SSPCON1*8)+7;


static near bit SEN @ ((unsigned)&SSPCON2*8)+0;
static volatile near bit RSEN @ ((unsigned)&SSPCON2*8)+1;
static volatile near bit PEN @ ((unsigned)&SSPCON2*8)+2;
static volatile near bit RCEN @ ((unsigned)&SSPCON2*8)+3;
static volatile near bit ACKEN @ ((unsigned)&SSPCON2*8)+4;
static volatile near bit ACKDT @ ((unsigned)&SSPCON2*8)+5;
static volatile near bit ACKSTAT @ ((unsigned)&SSPCON2*8)+6;
static near bit GCEN @ ((unsigned)&SSPCON2*8)+7;


static near bit ADON @ ((unsigned)&ADCON0*8)+0;
static volatile near bit GODONE @ ((unsigned)&ADCON0*8)+1;
static near bit CHS0 @ ((unsigned)&ADCON0*8)+2;
static near bit CHS1 @ ((unsigned)&ADCON0*8)+3;
static near bit CHS2 @ ((unsigned)&ADCON0*8)+4;
static near bit CHS3 @ ((unsigned)&ADCON0*8)+5;


static near bit PCFG0 @ ((unsigned)&ADCON1*8)+0;
static near bit PCFG1 @ ((unsigned)&ADCON1*8)+1;
static near bit PCFG2 @ ((unsigned)&ADCON1*8)+2;
static near bit PCFG3 @ ((unsigned)&ADCON1*8)+3;
static near bit VCFG0 @ ((unsigned)&ADCON1*8)+4;
static near bit VCFG1 @ ((unsigned)&ADCON1*8)+5;


static near bit ADCS0 @ ((unsigned)&ADCON2*8)+0;
static near bit ADCS1 @ ((unsigned)&ADCON2*8)+1;
static near bit ADCS2 @ ((unsigned)&ADCON2*8)+2;
static near bit ACQT0 @ ((unsigned)&ADCON2*8)+3;
static near bit ACQT1 @ ((unsigned)&ADCON2*8)+4;
static near bit ACQT2 @ ((unsigned)&ADCON2*8)+5;
static near bit ADFM @ ((unsigned)&ADCON2*8)+7;


static near bit CCP1M0 @ ((unsigned)&CCP1CON*8)+0;
static near bit CCP1M1 @ ((unsigned)&CCP1CON*8)+1;
static near bit CCP1M2 @ ((unsigned)&CCP1CON*8)+2;
static near bit CCP1M3 @ ((unsigned)&CCP1CON*8)+3;
static near bit DC1B0 @ ((unsigned)&CCP1CON*8)+4;
static near bit DC1B1 @ ((unsigned)&CCP1CON*8)+5;
static near bit P1M0 @ ((unsigned)&CCP1CON*8)+6;
static near bit P1M1 @ ((unsigned)&CCP1CON*8)+7;


static near bit CCP2M0 @ ((unsigned)&CCP2CON*8)+0;
static near bit CCP2M1 @ ((unsigned)&CCP2CON*8)+1;
static near bit CCP2M2 @ ((unsigned)&CCP2CON*8)+2;
static near bit CCP2M3 @ ((unsigned)&CCP2CON*8)+3;
static near bit DC2B0 @ ((unsigned)&CCP2CON*8)+4;
static near bit DC2B1 @ ((unsigned)&CCP2CON*8)+5;


static volatile near bit ABDEN @ ((unsigned)&BAUDCON*8)+0;
static volatile near bit WUE @ ((unsigned)&BAUDCON*8)+1;
static near bit BRG16 @ ((unsigned)&BAUDCON*8)+3;
static volatile near bit SCKP @ ((unsigned)&BAUDCON*8)+4;
static volatile near bit RCIDL @ ((unsigned)&BAUDCON*8)+6;

static volatile near bit RCMT @ ((unsigned)&BAUDCON*8)+6;
static volatile near bit ABDOVF @ ((unsigned)&BAUDCON*8)+7;



static volatile near bit PDC0 @ ((unsigned)&ECCP1DEL*8)+0;
static volatile near bit PDC1 @ ((unsigned)&ECCP1DEL*8)+1;
static volatile near bit PDC2 @ ((unsigned)&ECCP1DEL*8)+2;
static volatile near bit PDC3 @ ((unsigned)&ECCP1DEL*8)+3;
static volatile near bit PDC4 @ ((unsigned)&ECCP1DEL*8)+4;
static volatile near bit PDC5 @ ((unsigned)&ECCP1DEL*8)+5;
static volatile near bit PDC6 @ ((unsigned)&ECCP1DEL*8)+6;

static volatile near bit PRSEN @ ((unsigned)&ECCP1DEL*8)+7;



static near bit PSSBD0 @ ((unsigned)&ECCP1AS*8)+0;
static near bit PSSBD1 @ ((unsigned)&ECCP1AS*8)+1;
static near bit PSSAC0 @ ((unsigned)&ECCP1AS*8)+2;
static near bit PSSAC1 @ ((unsigned)&ECCP1AS*8)+3;
static near bit ECCPAS0 @ ((unsigned)&ECCP1AS*8)+4;
static near bit ECCPAS1 @ ((unsigned)&ECCP1AS*8)+5;
static near bit ECCPAS2 @ ((unsigned)&ECCP1AS*8)+6;
static volatile near bit ECCPASE @ ((unsigned)&ECCP1AS*8)+7;



static near bit CVR0 @ ((unsigned)&CVRCON*8)+0;
static near bit CVR1 @ ((unsigned)&CVRCON*8)+1;
static near bit CVR2 @ ((unsigned)&CVRCON*8)+2;
static near bit CVR3 @ ((unsigned)&CVRCON*8)+3;
static near bit CVRSS @ ((unsigned)&CVRCON*8)+4;
static near bit CVRR @ ((unsigned)&CVRCON*8)+5;
static near bit CVROE @ ((unsigned)&CVRCON*8)+6;
static near bit CVREN @ ((unsigned)&CVRCON*8)+7;


static near bit CM0 @ ((unsigned)&CMCON*8)+0;
static near bit CM1 @ ((unsigned)&CMCON*8)+1;
static near bit CM2 @ ((unsigned)&CMCON*8)+2;
static near bit CIS @ ((unsigned)&CMCON*8)+3;
static near bit C1INV @ ((unsigned)&CMCON*8)+4;
static near bit C2INV @ ((unsigned)&CMCON*8)+5;
static volatile near bit C1OUT @ ((unsigned)&CMCON*8)+6;
static volatile near bit C2OUT @ ((unsigned)&CMCON*8)+7;


static near bit TMR3ON @ ((unsigned)&T3CON*8)+0;
static near bit TMR3CS @ ((unsigned)&T3CON*8)+1;
static near bit T3SYNC @ ((unsigned)&T3CON*8)+2;
static near bit T3CCP1 @ ((unsigned)&T3CON*8)+3;
static near bit T3CKPS0 @ ((unsigned)&T3CON*8)+4;
static near bit T3CKPS1 @ ((unsigned)&T3CON*8)+5;
static near bit T3CCP2 @ ((unsigned)&T3CON*8)+6;
static near bit T3RD16 @ ((unsigned)&T3CON*8)+7;


static volatile near bit TX9D @ ((unsigned)&TXSTA*8)+0;
static volatile near bit TRMT @ ((unsigned)&TXSTA*8)+1;
static near bit BRGH @ ((unsigned)&TXSTA*8)+2;
static near bit SENDB @ ((unsigned)&TXSTA*8)+3;
static near bit SYNC @ ((unsigned)&TXSTA*8)+4;
static near bit TXEN @ ((unsigned)&TXSTA*8)+5;
static near bit TX9 @ ((unsigned)&TXSTA*8)+6;
static near bit CSRC @ ((unsigned)&TXSTA*8)+7;


static volatile near bit RX9D @ ((unsigned)&RCSTA*8)+0;
static volatile near bit OERR @ ((unsigned)&RCSTA*8)+1;
static volatile near bit FERR @ ((unsigned)&RCSTA*8)+2;
static near bit ADEN @ ((unsigned)&RCSTA*8)+3;
static near bit CREN @ ((unsigned)&RCSTA*8)+4;
static near bit SREN @ ((unsigned)&RCSTA*8)+5;
static near bit RX9 @ ((unsigned)&RCSTA*8)+6;
static near bit SPEN @ ((unsigned)&RCSTA*8)+7;


static volatile near bit RD @ ((unsigned)&EECON1*8)+0;
static volatile near bit WR @ ((unsigned)&EECON1*8)+1;
static near bit WREN @ ((unsigned)&EECON1*8)+2;
static volatile near bit WRERR @ ((unsigned)&EECON1*8)+3;
static volatile near bit FREE @ ((unsigned)&EECON1*8)+4;
static near bit CFGS @ ((unsigned)&EECON1*8)+6;
static near bit EEPGD @ ((unsigned)&EECON1*8)+7;


static near bit CCP2IP @ ((unsigned)&IPR2*8)+0;
static near bit TMR3IP @ ((unsigned)&IPR2*8)+1;
static near bit LVDIP @ ((unsigned)&IPR2*8)+2;
static near bit BCLIP @ ((unsigned)&IPR2*8)+3;
static near bit EEIP @ ((unsigned)&IPR2*8)+4;
static near bit USBIP @ ((unsigned)&IPR2*8)+5;
static near bit CMIP @ ((unsigned)&IPR2*8)+6;
static near bit OSCFIP @ ((unsigned)&IPR2*8)+7;


static volatile near bit CCP2IF @ ((unsigned)&PIR2*8)+0;
static volatile near bit TMR3IF @ ((unsigned)&PIR2*8)+1;
static volatile near bit LVDIF @ ((unsigned)&PIR2*8)+2;
static volatile near bit BCLIF @ ((unsigned)&PIR2*8)+3;
static volatile near bit EEIF @ ((unsigned)&PIR2*8)+4;
static volatile near bit USBIF @ ((unsigned)&PIR2*8)+5;
static volatile near bit CMIF @ ((unsigned)&PIR2*8)+6;
static volatile near bit OSCFIF @ ((unsigned)&PIR2*8)+7;


static near bit CCP2IE @ ((unsigned)&PIE2*8)+0;
static near bit TMR3IE @ ((unsigned)&PIE2*8)+1;
static near bit LVDIE @ ((unsigned)&PIE2*8)+2;
static near bit BCLIE @ ((unsigned)&PIE2*8)+3;
static near bit EEIE @ ((unsigned)&PIE2*8)+4;
static near bit USBIE @ ((unsigned)&PIE2*8)+5;
static near bit CMIE @ ((unsigned)&PIE2*8)+6;
static near bit OSCFIE @ ((unsigned)&PIE2*8)+7;


static near bit TMR1IP @ ((unsigned)&IPR1*8)+0;
static near bit TMR2IP @ ((unsigned)&IPR1*8)+1;
static near bit CCP1IP @ ((unsigned)&IPR1*8)+2;
static near bit SSPIP @ ((unsigned)&IPR1*8)+3;
static near bit TXIP @ ((unsigned)&IPR1*8)+4;
static near bit RCIP @ ((unsigned)&IPR1*8)+5;
static near bit ADIP @ ((unsigned)&IPR1*8)+6;
static near bit SPPIP @ ((unsigned)&IPR1*8)+7;

⌨️ 快捷键说明

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