clock code for a microcontroller

Feb 01, 2006 4 Replies

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.

Rich Webb Norfolk, VA

what is the part number of your real time clock? what is your mcu? what is your application? best regards, Matthieu

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required