EmbeddedRelated.com
Forums

Full stop mode with Freescale MAC7121

Started by Marco T. May 7, 2013
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