I am trying to achieve a hibernate time of 1.5 seconds, but can only get the Panda II to hibernate in increments of one second. I’ve tried both AddSeconds and AddMilliseconds methods with no luck. For example the following code results in the led blinking at a 1 second interval not 1.5 seconds.
GHIElectronics.NETMF.Hardware.RealTimeClock.SetAlarm(RealTimeClock.GetTime().AddMilliseconds(1500)); bled.Write(false); GHIElectronics.NETMF.Hardware.LowLevel.Power.Hibernate(Power.WakeUpInterrupt.RTCAlarm); // blink LED on on wakeup bled.Write(true);
Similarly any other entry for the milliseconds delay results in the next lower integer number of seconds. Any suggestions as to why?