Home/Support/Support Forum/Help with XBEE Pro 900HP Programmable Async Sleep Mode (SM=1)

Help with XBEE Pro 900HP Programmable Async Sleep Mode (SM=1)

0 votes
I'm having trouble putting the radio to sleep with Async Sleep Mode 1.

I have the internal pullup resistor for pin 9 (DIO8 / SLEEP_REQUEST) set to '0' using the command:

(void)xbee_cmd_simple(&xdev, "PR", 0x7FBF);

In my main loop I want to do the following:

printf("Going to sleep...\r\n");
(void)xbee_cmd_simple(&xdev, "D8", 5);
delay_ticks(2);
(void)pm_set_cpu_mode(PM_MODE_STOP_2, 30); // Start sleeping
// When CPU wakes-up, it continues executing from here
delay_ticks(2); // This is for avoiding writing garbage on the UART
(void)xbee_cmd_simple(&xdev, "D8", 4);
printf("CPU Awaked\r\n");


This however doesn't appear to work...I show my power consumption running at ~40mA at idle and ~31mA when it's supposed to be sleeping.

When I use Sync Sleep Mode 8, I'm able to get the sleep current draw down to ~230uA.

What am I missing??

Thanks!
asked Aug 19, 2013 in XBee Programmable Development by casey2542 New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
This is resolved. Since PIN 9 is input only it must be set with an external source. We ended up connecting DIO2 (PIN 18) to PIN 9 and then toggled it with an parallel output on the Freescale chip (PTB2).
answered Aug 20, 2013 by casey2542 New to the Community (1 point)
...