Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Full stop mode with Freescale MAC7121

10 views
Skip to first unread message

Marco T.

unread,
May 7, 2013, 12:20:22 PM5/7/13
to
Hello,
I need some help to activate full stop mode in MAC7121: before I activated
pseudo-stop mode, and it works fine. Now I need to activate full stop mode,
but it doesn't work.

This is the code:

CRG.CLKSEL.B.PLLSEL = 0; // selected oscilator clock
CRG.PLLCTL.B.PLLON = 0; // stop PLL

MCM.MWCR.R=0x80; // activated wakeup on interrupt

#ifdef FULL_STOP
CRG.CLKSEL.B.PSTP = 0; // full stop
#else
CRG.CLKSEL.B.PSTP = 1; // pseudo stop
#endif

CRG.SDMCTL.R = 0x01; // enter in stop mode

{ uint16_t i; for (i=0; i<100; i++); } // wake for interrupt and delay

CRG.PLLCTL.R = 0xB5;

Thanks in advance!




---------------------------------------
Posted through http://www.EmbeddedRelated.com
0 new messages