Using sleep modes and interrupts from same pin

Is it possible to use a single pin for a normal interrupt (E.g. RISING) and the same pin for a wakeup interrupt from sleep?

I'm looking at having something go to sleep until a sensor value is triggered, then waking up. The sleep will be triggered by a timeout. As the sensor value cannot be predicted WHEN it will happen, I was wondering whether the same pin for the sensor (HIGH or LOW) can be used to wake from sleep.

The sensor is time-sensitive so needs to be on an interrupt.

I can't answer your question but, someone will surely ask which processor you're using.

Why do you think of different interrupts? A sleep mode is finished by an interrupt and the controller data sheet will tell which one also can wake up the controller. External and Pin Change PCINT e.g. can wake up an Uno and other ATmega controllers.

The processor is the Seeeduino Xiao, the website Seeeduino XIAO - Seeed Wiki (seeedstudio.com) doesn't say much about it other than linking here: ArduinoCore-samd/variant.cpp at master · Seeed-Studio/ArduinoCore-samd · GitHub Which I don't know what this output means.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.