b7 - PCAWAKEUP : PCA 中斷可喚醒 powerdown。
b6 - RXD_PIN_IE : 當 P3.0(RXD) 下降沿置位 RI 時可喚醒 powerdown(必須打開相應中斷)。
b5 - T1_PIN_IE : 當 T1 腳下降沿置位 T1 中斷標志時可喚醒 powerdown(必須打開相應中斷)。
b4 - T0_PIN_IE : 當 T0 腳下降沿置位 T0 中斷標志時可喚醒 powerdown(必須打開相應中斷)。
b3 - LVD_WAKE : 當 CMPIN 腳低電平置位 LVD 中斷標志時可喚醒 powerdown(必須打開相應中斷)。
b2 -
b1 - T1CLKO : 允許 T1CKO(P3.5) 腳輸出 T1 溢出脈沖,F(xiàn)ck1 = 1/2 T1 溢出率
b0 - T0CLKO : 允許 T0CKO(P3.4) 腳輸出 T0 溢出脈沖,F(xiàn)ck0 = 1/2 T1 溢出率
*/
//-----------------------------------
sfr CLK_DIV = 0x97; //Clock Divder - - - - - CLKS2 CLKS1 CLKS0 xxxx,x000
//-----------------------------------
sfr BUS_SPEED = 0xA1; //Stretch register - - ALES1 ALES0 - RWS2 RWS1 RWS0 xx10,x011
/*
ALES1 and ALES0:
00 : The P0 address setup time and hold time to ALE negative edge is one clock cycle
01 : The P0 address setup time and hold time to ALE negative edge is two clock cycles.
10 : The P0 address setup time and hold time to ALE negative edge is three clock cycles. (default)
11 : The P0 address setup time and hold time to ALE negative edge is four clock cycles.