Problem entering wait mode

Hello,

I’m using an xbee lp 868 programmable module.I want to use the MCUs WAIT MODE but I can’t. I use this function in order to put the mcu in wait mode,pm_set_cpu_mode(PM_MODE_WAIT, WAIT_INFINITE), but the MCU doeasn’t seem to enter this mode because it’s not waiting for an IRQ to exit this mode, on the contrary it continues to execute the rest of the code without stopping.

thats is not problem with xbee module. which mcu you’re talking about can you explain briefly

I’m talking about MCU MC9S08QE32