Hi,
i'm now learning DSPS.i tried to put da14580 into sleep mode(extended sleep mode/deep sleep mode).according to document,i changed MACRO in da14580_config.h:
/*Sleep modes*/
#define CFG_EXT_SLEEP
#undef CFG_DEEP_SLEEP
to put da14580 into extended sleep mode,however,i found the current is still about 18mA.it confused me now.
where is my problem?is anything else i shoud do to put chip into sleep mode?
Device:
Hi airjang,
How do you measure the current off your device, you can use Smart Snippets and check if your device falls asleep or not. The DSPS is never permanently inactive it falls asleep and wakes up in order to serve ble events, even if there isn't any data to send the da will wake up to keep the connection with the host active.
Thanks MT_dialog
Hi MT_dialog,
I measured current with a tandem multimeter and it displayed about 18mA.
I use a gpio to output my status:
在arch_main.c文件中,添加下面的代码
......
if (sleep_mode == mode_ext_sleep || sleep_mode == mode_deep_sleep)
{
GPIO_ConfigurePin( GPIO_PORT_1, GPIO_PIN_0, OUTPUT, PID_GPIO, true ); //added gpio
SetBits16(PMU_CTRL_REG, RADIO_SLEEP, 1); // turn off radio
......
In initial function,P1_0 is low, and i found P1_0 will be high in seconds, but current consumption was still about 18mA.i did not know whether chip had entered into sleep mode.
Besides,i also tried to measure current with smart snippets, but i dont know how to do it:i pressed initial button in Power Profiles but no response,can you teach me the way of measuring current with smart snippets?
Hi airjang,
The multimeter you are using in order to measure the current consumption most probably performs some averaging. You can use Smart Snippets with pro or expert dev kit, you can find all you need in smart snippers user guide in the help option.
Thanks MT_dialog