Using c, c++ (mbed, Arduino, etc), Is there a trick up c’s sleeve to be able to set an ON time and OFF time over a 24 hour period. For instance ‘ON’ at 20:00 hours and off at 06:30 hours following morning. Timers are no good here if there is a nvic reset. If the ..
I used stm32 with RTC with LSE. From RTC i read miliseconds like this: uint64_t miliseconds = (1000 * (rtcTimeStruct.SecondFraction – rtcTimeStruct.SubSeconds) / (rtcTimeStruct.SecondFraction + 1)); I woudl like to set time but also with miliseconds? Can you give me example how to set SecondFraction and SubSeconds with miliseconds timestamp? Source: Windows Que..