
/* ------------------- BYTE Register-------------------- */
/*BANK0*/
sfr P0     		= 0x80;                     
sfr SP          = 0x81;                
sfr DPL         = 0x82;                
sfr DPH         = 0x83;                
sfr DPL1        = 0x84;                
sfr DPH1        = 0x85;                
sfr WDTCTRL     = 0x86;                
sfr PCON        = 0x87;                
sfr TCON        = 0x88;                
sfr ALFSEL0     = 0x89;                
sfr ALFSEL1     = 0x8A;                
sfr PWM2CON     = 0x8B;                
sfr PWM2P       = 0x8C;                
sfr PWM2D       = 0x8D;                
                
sfr SRST        = 0x8F;                
sfr P1          = 0x90;                
sfr T3CON       = 0x91;                
sfr TL3         = 0x92;                
sfr TH3         = 0x93;                
sfr SPICON      = 0x94;                
sfr SPIDAT      = 0x95;                
sfr SPISTA      = 0x96;                
                
sfr SCON        = 0x98;                
sfr SBUF        = 0x99;                
sfr SADDR       = 0x9A;                
sfr SADEN       = 0x9B;                
sfr CRCCON      = 0x9C;                
sfr CRCDAT      = 0x9D;                
sfr CRCSD0      = 0x9E;                
sfr CRCSD1      = 0x9F;                
sfr P2          = 0xA0;                
sfr SBRTH       = 0xA1;                
sfr SBRTL       = 0xA2;                
sfr SFINE       = 0xA3;                
                
sfr IP01        = 0xA5;                
sfr IP10        = 0xA6;                
sfr IP11        = 0xA7;                
sfr IE          = 0xA8;                
sfr LCDCON1     = 0xA9;                
sfr LCDCON      = 0xAA;                
sfr SEGEN1      = 0xAB;                
sfr SEGEN2      = 0xAC;                
sfr SEGEN3      = 0xAD;                
sfr SEGEN4      = 0xAE;                
sfr COMEN       = 0xAF;                
sfr P3          = 0xB0;                
sfr INTEN       = 0xB1;                
sfr INTCTRL     = 0xB2;                
sfr INTFLG      = 0xB3;                
sfr PWM3CON     = 0xB4;                
sfr PWM3P       = 0xB5;                
sfr PWM3D       = 0xB6;                
sfr P5          = 0xB7;                
sfr IP00        = 0xB8;                
sfr T2CON       = 0xB9;                
sfr T2MOD       = 0xBA;                
sfr RCAP2L      = 0xBB;                
sfr RCAP2H      = 0xBC;                
sfr TL2         = 0xBD;                
sfr TH2         = 0xBE;                
sfr P4          = 0xBF;                
sfr IEN1        = 0xC0;                
sfr FSCON       = 0xC1;                
sfr FSDATL      = 0xC2;                
sfr FSDATH      = 0xC3;                
sfr FSADDRL     = 0xC4;                
sfr FSADDRH     = 0xC5;                
sfr FSKEY       = 0xC6;                
sfr RSTID       = 0xC7;                
sfr IEN2        = 0xC8;                
sfr DPS    		= 0xC9;                     
sfr DPC         = 0xCA;                
sfr IP20        = 0xCB;                
sfr IP21        = 0xCC;                
sfr WDTREL      = 0xCD;                
sfr WDTCON      = 0xCE;                
sfr WDTWK       = 0xCF;                
sfr PSW         = 0xD0;                
sfr CKCON       = 0xD1;                
sfr SYSCON      = 0xD2;                
sfr CLKCFG      = 0xD3;                
sfr CLKPERI0    = 0xD4;                
sfr CLKPERI1    = 0xD5;                
sfr BORCON      = 0xD6;                
sfr CLKSTAT     = 0xD7;                
sfr IEN3        = 0xD8;                
sfr P0ODR       = 0xD9;                
sfr P1ODR       = 0xDA;                
sfr P2ODR       = 0xDB;                
sfr P3ODR       = 0xDC;                
sfr P4ODR       = 0xDD;                
sfr P5ODR       = 0xDE;                
sfr BUZCON      = 0xDF;                
sfr ACC         = 0xE0;                
sfr P0CR        = 0xE1;                
sfr P1CR        = 0xE2;                
sfr P2CR        = 0xE3;                
sfr P3CR        = 0xE4;                
sfr P4CR        = 0xE5;                
sfr P5CR        = 0xE6;                
sfr AENCON1     = 0xE7;                
sfr IEN4        = 0xE8;                
sfr P0PCR       = 0xE9;                
sfr P1PCR       = 0xEA;                
sfr P2PCR       = 0xEB;                
sfr P3PCR       = 0xEC;                
sfr P4PCR       = 0xED;                
sfr P5PCR       = 0xEE;                
sfr AENCON0     = 0xEF;                
sfr B           = 0xF0;                
sfr REMCON      = 0xF1;                
sfr REMNUMH     = 0xF2;                
sfr REMNUML     = 0xF3;                
                
sfr PWM1CON     = 0xF5;                
sfr PWM1P       = 0xF6;                
sfr PWM1D       = 0xF7;                
sfr BANK        = 0xF8;                
sfr ADCON       = 0xF9;                
sfr ADT         = 0xFA;                
sfr ADCH        = 0xFB;                
sfr ADDL        = 0xFC;                
sfr ADDH        = 0xFD;                
sfr ADCON1      = 0xFE;                
sfr REMAP       = 0xFF;                
	

//---------------------------定义端口↓
sbit P0_0           = P0 ^ 0;
sbit P0_1           = P0 ^ 1;
sbit P0_2           = P0 ^ 2;
sbit P0_3           = P0 ^ 3;
sbit P0_4           = P0 ^ 4;
sbit P0_5           = P0 ^ 5;
sbit P0_6           = P0 ^ 6;
sbit P0_7           = P0 ^ 7;

sbit P1_0           = P1 ^ 0;
sbit P1_1           = P1 ^ 1;
sbit P1_2           = P1 ^ 2;
sbit P1_3           = P1 ^ 3;
sbit P1_4           = P1 ^ 4;
sbit P1_5           = P1 ^ 5;
sbit P1_6           = P1 ^ 6;
sbit P1_7           = P1 ^ 7;

sbit P2_0           = P2 ^ 0;
sbit P2_1           = P2 ^ 1;


