Go Down

Topic: wake up from sleep mode through serial interrupt (Read 3767 times) previous topic - next topic


Hi every one,
I'd like to put the SAM3X in sleep mode till something is receveid on the serial port. At section 5.5.3 of the SAM3X datasheet is written


The purpose of sleep mode is to optimize power consumption of the device versus response
time. In this mode, only the core clock is stopped. The peripheral clocks can be enabled. This
mode is entered via Wait for Interrupt (WFI) or Wait for Event (WFE) instructions with LPM = 0 in
The processor can be awakened from an interrupt if WFI instruction of the Cortex M3 is used, or
from an event if the WFE instruction is used to enter this mode.

do you think that the wakeup from the sleep mode should happen automatically if the interrupt procedure of the serial port is called?


I think it should, but why not try it and report back?
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


Code: [Select]
void setup() {
  // put your setup code here, to run once:

void loop() {
  // put your main code here, to run repeatedly:

this code seems to work, at least it echoes what i write on the serial. The problem is that i can't check the currrent consuption since i don't have a laboratory power supply


ciao aureliuss

did you find this topic? you could try....



thanks Kove,
this stackoveflow post seems to confirm my method. It suggests even to try the backupMode, but the datasheet recommend to use backMode only for long wakepu time (wake up from back up mode takes approximately 0.5 ms that is too long for my application.) .

Go Up