AnsweredAssumed Answered

LPC802功耗问题

Question asked by haifeng jin on Oct 16, 2018
Latest reply on Oct 24, 2018 by jeremyzhou

Dear NXP:

                  我在实验NXP的LPC802的功耗问题的时候有疑问,测试下来功耗挺高,power-down模式都在60uA,我整个板子上只有一个LPC802的芯片,代码如下:

void Delay_ms(uint16_t ms)
{
uint16_t i,j;
for(j=0;j<ms;j++)
{
for(i=0;i<1000;i++)
{

}
}
}
int main(void) {

unsigned int k, temp;
char buff[30] = "WUSRCREG content is 0xYZ\n\n\r";
uint32_t * addr = (uint32_t *)LPC_IOCON_BASE;


LPC_SYSCON->SYSAHBCLKCTRL[0] |= (GPIO0|IOCON);

Delay_ms(10000);
LPC_IOCON->PIO0_16=0x08;
LPC_IOCON->PIO0_17=0x08;
LPC_IOCON->PIO0_13=0x08;
LPC_IOCON->PIO0_12=0x08;
//LPC_IOCON->PIO0_5=0x08;
//LPC_IOCON->PIO0_4=0x08;
LPC_IOCON->PIO0_2=0x08;
LPC_IOCON->PIO0_3=0x08;
LPC_IOCON->PIO0_11=0x08;
LPC_IOCON->PIO0_10=0x08;
LPC_IOCON->PIO0_15=0x08;
LPC_IOCON->PIO0_1=0x08;
LPC_IOCON->PIO0_9=0x08;
LPC_IOCON->PIO0_8=0x08;
LPC_IOCON->PIO0_7=0x08;
LPC_IOCON->PIO0_0=0x08;
LPC_IOCON->PIO0_14=0x08;
while(1) {
Setup_Low_Power();
// Clear the deep PD pin wakeup source flags in WUSRCREG
LPC_PMU->WUSRCREG = 0xFF;
// Set the SleepDeep bit
SCB->SCR |= (1<<2);
// PCON = 3 selects Deep power-down mode
LPC_PMU->PCON = 0x3;
// Wait here for wakeup pin.
__WFI();
while(1);

} // end of while(1)

} // end of main

Outcomes