I'd like to let the MCF52259 enter stop mode and then wake-up upon alarm interrupt from RTC. Reading in the reference manual, it is suggested to enter stop mode in a controlled manner. So, I was looking for an application note or some code examples, but I couldn't find nothing helpful. Does anyone have any example?
I'd not like to make something wrong in the procedure, for example: can I launch the stop mode during the execution of an interrupt service routine? I don't think it's the best way, so I'd like to find a good procedure.
Finally, which is the "stop command" to enter stop mode? Is it the "STOP" assembly command?