Tool/software: Code Composer Studio
Hi averyone:
I am using the CC2650MODA module and must add to it the real time clock. I loocked at manual and other forums how to do this. I get the time by the function "time()". The time is converted from the seconds by the function "localtime()". Everything is Ok, but there is one problem that I cannot solve: When I press the reset button the modul starts the time from beginning. In the Manual is written that time must be initilized to spetial time befor it can be used. But if I don't do any time initilization the time-counting doen't continue from the previous state , but instean of it it starts from the zero. I understand that the processor sets the default values on powering up or on the reset, but if I understand correctly the RTC, mustn't be reseted on reset otherwize if the watchdog will give the emergnecy reset the RTC time will be restarted too.
How is it possible to solve this problem.
Best regards
Boris Fridman.