# Unexpected delay on pin sleep wake up

**URL:** <https://forums.digi.com/t/unexpected-delay-on-pin-sleep-wake-up/14732>\
**Category:** XBee - 802.15.4\
**Tags:** delay, pin-sleep, wake\
**Created:** [April 21, 2015, 12:37am UTC](https://forums.digi.com/t/unexpected-delay-on-pin-sleep-wake-up/14732 "2015-04-21T00:37:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antduong](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@antduong](https://forums.digi.com/u/antduong)\
**Post date:** [April 21, 2015, 12:37am UTC](https://forums.digi.com/t/unexpected-delay-on-pin-sleep-wake-up/14732/1 "2015-04-21T00:37:06Z")

</div>

I am using an XBee Pro 900 in XBP09-DP mode

I set my XBee to pin sleep mode (SM = 1) .  
When I set pin 9 of the XBee high (3.3V), it immediately goes into sleep (as expected).  
When I set pin 9 to ground, it seems like it takes a random amount of time to get out of sleep mode, ranging between 1-8 seconds.

Where is this wake up delay coming from? I want to wake my XBee immediately (within a few milliseconds is ok) when the pin 9 detects a change.

EDIT: I changed USB adapter boards and it works fine. I was using the Parallax XBee USB adapter before, which was giving me a random wake delay for some reason. Once I changed to sparkfun explorer boards, my Xbee wakes immediately when pin 9 is de-asserted

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [April 21, 2015, 8:19am UTC](https://forums.digi.com/t/unexpected-delay-on-pin-sleep-wake-up/14732/2 "2015-04-21T08:19:01Z")

</div>

Glad to hear that you got it figured out.
