clock code for a microcontroller

i have a problem. i'm trying to write code in c++ to go onto a
microcontroller. how do i write the code to read the real time clock
on the controller and use the time to trigger certain events?
 
R

Rich Webb

Jan 1, 1970
0
i have a problem. i'm trying to write code in c++ to go onto a
microcontroller. how do i write the code to read the real time clock
on the controller and use the time to trigger certain events?

Typically the device's datasheet will have complete documentation on
which registers to tickle and, often, example code.
 
M

Matthieu Benoit

Jan 1, 1970
0
i have a problem. i'm trying to write code in c++ to go onto a
microcontroller. how do i write the code to read the real time clock
on the controller and use the time to trigger certain events?
what is the part number of your real time clock?
what is your mcu?
what is your application?
best regards,
Matthieu
 
E

Eric Smith

Jan 1, 1970
0
i have a problem. i'm trying to write code in c++ to go onto a
microcontroller.

Yes, that can be a problem. I suggest using C instead.
 
Top