Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ckuma2
Novice
1,410 Views

hello, i just want to know what is the procedure to check about a D2000 in sleep mode.

hello,

i am trying to implement an adc using an sleep mode plea@se let me know how to know that d2000 has entered in sleep mode.

7 Replies
Pablo_M_Intel
Employee
91 Views

Hi Chiranth,

According to the Intel Quark Microcontroller Software Interface document, which you can see here https://downloadcenter.intel.com/download/25619 https://downloadcenter.intel.com/download/25619, in sleep mode "the hybrid oscillator is disabled, most peripherals are disabled and the voltage regulator is set into retention mode. The following peripherals are disabled in this mode: I2C, SPI, GPIO debugging, Watchdog timer, PWM/Timers, UART". So you can use one of these interfaces to check if the SoC has entered Sleep mode.

An easier way would be to run a Blink example, this way you'll know if the SoC has entered Sleep mode by the activity of the LED (or the lack of it).

Regards,

Pablo

ckuma2
Novice
91 Views

Will all the GPIO pins go to low state in Sleep mode i.e. will the LED turn off in sleep mode?

ckuma2
Novice
91 Views

Do we need an active RTC for the sleep and wake-up mode to work??

Pablo_M_Intel
Employee
91 Views

Hi Chiranth,

I believe that not all GPIO pins will enter Sleep mode, according to the documentation the GPIO pins that enter Sleep mode are the ones for debugging. My suggestion about the Blink program was just an idea to test it, but preferably, it would be a better idea to use any of the other peripherals like UART to detect if the SoC entered Sleep mode. Just start a communication using the UART interface and check when it stops.

Regarding your second question, this is what the same document says: "… the following peripherals may bring the SoC back into an active state: GPIO interrupts, AON timers, RTC, Low power comparators", so you can use an RTC to wake up from the Sleep mode if this is what you want, but you can also use one of the other options.

Regards,

Pablo

vrram
New Contributor I
91 Views

Hi,

Can you please let us know the procedure to wake up SoC using RTC Alarm?

is it something like, Soc Can wake up if desired time has reached?

Kindly clarify on this.

Many Thanks,

venkatarramana

Pablo_M_Intel
Employee
91 Views

Hi Venkatarramana-Graphene,

We are working on your question, once we have a complete answer we will post it here. Thank you in advance for your patience.

Regards,

Pablo

Pablo_M_Intel
Employee
91 Views

Hi Venkatarramana-Graphene,

I saw that you already got an answer to the RTC question in this other thread /message/396065# 396065 https://communities.intel.com/message/396065. Just to add some more information about it, here you can see the program that contains the wake up routine https://github.com/01org/qmsi/blob/master/examples/power/main.c# L41 https://github.com/01org/qmsi/blob/master/examples/power/main.c# L41. In line 49 you can see the description, "Setup the RTC to get out of sleep mode", and then some variables are defined, one of them is qm_rtc_config_t rtc_cfg. Then, as it was explained in the other thread, comes the initialization of rtc_cfg.alarm_val to QM_RTC_ALARM_SECOND (which can take some other units like minutes or hours).

Regards,

Pablo

Reply