void main (void)
{
unsigned char zd,state=0;
unsigned int i,cnt;
float ypr1[3],ypr2[3],ypr3[3];
// unsigned char under_buff[40];
// unsigned char left_buff[40];
// unsigned char right_buff[40];
//InitialUART0_Timer1(9600);
P13_Quasi_Mode;
P14_Quasi_Mode;
P03_Quasi_Mode;
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
clr_BODEN;
set_PD;//单片机进入掉电模式
.......
}
此时测的是3.2ma
void main (void)
{
unsigned char zd,state=0;
unsigned int i,cnt;
float ypr1[3],ypr2[3],ypr3[3];
// unsigned char under_buff[40];
// unsigned char left_buff[40];
// unsigned char right_buff[40];
//InitialUART0_Timer1(9600);
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
Timer0_Delay1ms(1000); //延时1S
clr_BODEN;
set_PD;//单片机进入掉电模式
P13_Quasi_Mode;
P14_Quasi_Mode;
P03_Quasi_Mode;
....
}
此时测的是176ua
刚玩这个单片机 好多东西不懂
求大神指导 IO口模式没配错吧
谢谢啦!!! |