| 
 
| 请教大侠,我现在使用N79E815, 当IC进入stop后测得电流为1.23mA,逐步屏蔽功能时发现只要不开ADC,stop电流就为2.4uA. 我的ADC程序如下: 
 void main(void)
 {
 //端口初始化
 
 //开启ADC7(P26)
 ADCCON0&=0xF0;
 ADCCON0|=0x07;
 P2M1|=SET_BIT6;P2M2&=~SET_BIT6;              //P26_Input_Mode
 AUXR1|=SET_BIT3;
 set_ADCEN;
 
 //主功能循环
 
 //关闭ADC7(P26)
 clr_ADCI;
 clr_ADCS;
 clr_ADCEN;
 AUXR1&=~SET_BIT3;
 ADCCON0=0;
 P2M1&=~SET_BIT6;P2M2|=SET_BIT6;              //P26_PushPull_Mode
 P26=0;
 
 //进入stop模式
 KBLS1 = 0xBF;                       // Set P0.0~P0.5 & P0.7 Falling/Rsing Trigger
 KBLS0 = 0x00;
 KBIF = 0x00;                        // Clear KBF
 KBIE = 0x87;                                 // Enable KBI.n Interrupt
 EKB = 1;                            // Enable KBI Interrupt
 ENABLE_GLOBAL_INTERRUPT;
 
 PCON |= SET_BIT1;                   // Enter power down mode
 
 EKB = 0;
 KBIF = 0x00;
 
 
 //......
 }
 
 以上程序测得stop模式电流为1.23mA/3.3V
 
 修改程序,不开启ADC,测得stop模式电流为2.4uA/3.3V
 void main(void)
 {
 //端口初始化
 
 P2M1&=~SET_BIT6;P2M2|=SET_BIT6;              //P26_PushPull_Mode
 P26=0;
 
 
 //主功能循环
 
 //进入stop模式
 KBLS1 = 0xBF;                       // Set P0.0~P0.5 & P0.7 Falling/Rsing Trigger
 KBLS0 = 0x00;
 KBIF = 0x00;                        // Clear KBF
 KBIE = 0x87;                                 // Enable KBI.n Interrupt
 EKB = 1;                            // Enable KBI Interrupt
 ENABLE_GLOBAL_INTERRUPT;
 
 PCON |= SET_BIT1;                   // Enter power down mode
 
 EKB = 0;
 KBIF = 0x00;
 
 
 //......
 }
 
 
 请问大侠,如何正确关闭N79E815的ADC,非常感谢!
 
 | 
 |