Posted on May 17, 2011 at 09:58Your idea is good. I've enabled waking-up from the RTC alarm, while disabling the external interrupts. Guess what? The ''RevH card'' keeps working fine and wakes up at alarm time, whereas the ''RevG card'' keeps NOT wo...
Posted on May 17, 2011 at 09:58Hi, thanks for your reply... I'm not sure what you mean with the ''tsleep entry time'', but I've tried putting many NOPS (by many I mean even hundreds!) after the ''SCU_EnterSleepMode()'' call, just to be sure the CPU ...
Posted on May 17, 2011 at 09:58this is the code to put our micro to sleep: ..... VIC_ITCmd(WIU_ITLine, DISABLE); // not interested in interrupt WIU_Cmd(ENABLE); // enable wake-up functionality SCU_MCLKSourceConfig(SCU_MCLK_RTC); // from ST ''errata'...
Posted on May 17, 2011 at 09:43Lack of parenthesis in the function ADC_GetAnalogWatchdogResult() causes wrong test result! This is because the != operator has precedence over the & operator (see K&R). Change the first line of the function as follows...
Posted on May 17, 2011 at 09:43WARNING! If you use PORT 8 and 9 of STR91x, your program will hang when trying to call GPIO_Init(). This is because GPIOIN and GPIOOUT registers of SCU unit, do not exist for ports 8 and 9, but GPIO_Init() will try to ...