This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
Our application now requires us to timestamp I/O events with
millisecond accuracy, and be able to sync the RTC with an external
source. Because the RTC can be changed, we can no longer rely on the
SEC_TIMER variable to be in sync with the RTC. This also means that
the TICK_TIMER can no longer be used for our milliseconds, as the
clock will no longer be accurate after reboot. We are going to need
to read/write the RTC directly with millisecond accuracy.
I've heard mention that a few people here have written routines to
access and write to the the lower 2 bytes of the RTC. I'm scared of
Rabbit assembler, so I'm having some issues figuring out how to extend
the read_rtc() function myself. Would some kind soul be willing to
provide me with these methods?
Thanks in advance,
Loren Keagle
P.S. I'm considering the other solution of storing a millisecond
offset in flash, and reading it on startup. I know it's been done
this way before, but it just seems like such a waste when a 48 bit RTC
is sitting right there for me to use!
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )