你说是的BIT还是SBIT?
/* BIT Registers */
/* SCON_1 */
sbit SM0_1 = SCON_1^7;
sbit FE_1 = SCON_1^7;
sbit SM1_1 = SCON_1^6;
sbit SM2_1 = SCON_1^5;
sbit REN_1 = SCON_1^4;
sbit TB8_1 = SCON_1^3;
sbit RB8_1 = SCON_1^2;
sbit TI_1 = SCON_1^1;
sbit RI_1 = SCON_1^0;
/* ADCCON0 */
sbit ADCF = ADCCON0^7;
sbit ADCS = ADCCON0^6;
sbit ETGSEL1 = ADCCON0^5;
sbit ETGSEL0 = ADCCON0^4;
sbit ADCHS3 = ADCCON0^3;
sbit ADCHS2 = ADCCON0^2;
sbit ADCHS1 = ADCCON0^1;
sbit ADCHS0 = ADCCON0^0;
/* PWMCON0 */
sbit PWMRUN = PWMCON0^7;
sbit LOAD = PWMCON0^6;
sbit PWMF = PWMCON0^5;
sbit CLRPWM = PWMCON0^4;
/* PSW */
sbit CY = PSW^7;
sbit AC = PSW^6;
sbit F0 = PSW^5;
sbit RS1 = PSW^4;
sbit RS0 = PSW^3;
sbit OV = PSW^2;
sbit P = PSW^0;
/* T2CON */
sbit TF2 = T2CON^7;
sbit TR2 = T2CON^2;
sbit CM_RL2 = T2CON^0;
/* I2CON */
sbit I2CEN = I2CON^6;
sbit STA = I2CON^5;
sbit STO = I2CON^4;
sbit SI = I2CON^3;
sbit AA = I2CON^2;
sbit I2CPX = I2CON^0;
/* IP */
sbit PADC = IP^6;
sbit PBOD = IP^5;
sbit PS = IP^4;
sbit PT1 = IP^3;
sbit PX1 = IP^2;
sbit PT0 = IP^1;
sbit PX0 = IP^0;
/* P3 */
sbit P30 = P3^0;
/* IE */
sbit EA = IE^7;
sbit EADC = IE^6;
sbit EBOD = IE^5;
sbit ES = IE^4;
sbit ET1 = IE^3;
sbit EX1 = IE^2;
sbit ET0 = IE^1;
sbit EX0 = IE^0;
/* P2 */
sbit P20 = P2^0;
/* SCON */
sbit SM0 = SCON^7;
sbit FE = SCON^7;
sbit SM1 = SCON^6;
sbit SM2 = SCON^5;
sbit REN = SCON^4;
sbit TB8 = SCON^3;
sbit RB8 = SCON^2;
sbit TI = SCON^1;
sbit RI = SCON^0;
/* P1 */
sbit P17 = P1^7;
sbit P16 = P1^6;
sbit TXD_1 = P1^6;
sbit P15 = P1^5;
sbit P14 = P1^4;
sbit SDA = P1^4;
sbit P13 = P1^3;
sbit SCL = P1^3;
sbit P12 = P1^2;
sbit P11 = P1^1;
sbit P10 = P1^0;
/* TCON */
sbit TF1 = TCON^7;
sbit TR1 = TCON^6;
sbit TF0 = TCON^5;
sbit TR0 = TCON^4;
sbit IE1 = TCON^3;
sbit IT1 = TCON^2;
sbit IE0 = TCON^1;
sbit IT0 = TCON^0;
/* P0 */
sbit P07 = P0^7;
sbit RXD = P0^7;
sbit P06 = P0^6;
sbit TXD = P0^6;
sbit P05 = P0^5;
sbit P04 = P0^4;
sbit STADC = P0^4;
sbit P03 = P0^3;
sbit P02 = P0^2;
sbit RXD_1 = P0^2;
sbit P01 = P0^1;
sbit MISO = P0^1;
sbit P00 = P0^0;
sbit MOSI = P0^0;
|