The Rabbit 2000 modules I used to use had a 48bit RTC chip. The RTC
routines simply ignore the lower order bits, but the information is there.
I needed to timestamp event information with ms accuracy, so I wrote my own
routines to read/write the RTC with ms accuracy. Sorry, I can't provide
the code, but it was pretty straightforward to write some assembler to do
this.
~Loren
Reply by monte_dalrymple●June 29, 20132013-06-29
The RTC hardware counts ticks of the 32768Hz clocks, so the resolution is there.
DynC may or may not pass all of that resolution on to the user. You can always
read the RTC registers directly, but be careful to do it properly. Read the HW
manual for details.
--- In r..., "hongyang74" wrote: >
> Hello,
>
> is it possible to get rtc time in msecond?
>
Reply by Dave McLaughlin●June 29, 20132013-06-29
Do you really need it to ms accuracy?
If 1 second is good enough, you can encode the normal hours, minutes and
seconds to ms and send to your server. It's simple maths.
Dave.
From: r... [mailto:r...] On
Behalf Of hongyang74
Sent: 28 June 2013 23:09
To: r...
Subject: [rabbit-semi] Re: rtc time in msec
Thank you guys. However, MS_TIMER is not working as I expect. I want to
record the error/warning/message happening time. That is reason why I need
rtc time in msecond. It is much easy to transfer to remote PC as well.
3MzU5NzE0BGdycElkAzIzMDczMTYEZ3Jwc3BJZAMxNzA2NTU0MjA1BG1zZ0lkAzQxODgzBHNlYwN
mdHIEc2xrA3JwbHkEc3RpbWUDMTM3MjQzNTcxMw--?act=reply&messageNumA883> Reply
via web post
Reply
to sender
Reply to group
3MzU5NzE0BGdycElkAzIzMDczMTYEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA250cGM
Ec3RpbWUDMTM3MjQzNTcxMw--> Start a New Topic
E3BF9TAzk3MzU5NzE0BGdycElkAzIzMDczMTYEZ3Jwc3BJZAMxNzA2NTU0MjA1BG1zZ0lkAzQxOD
gzBHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTM3MjQzNTcxMwR0cGNJZAM0MTg4MA--> Messages
in this topic (4)
Recent Activity:
Reply by hongyang74●June 28, 20132013-06-28
Thank you guys. However, MS_TIMER is not working as I expect. I want to record
the error/warning/message happening time. That is reason why I need rtc time in
msecond. It is much easy to transfer to remote PC as well.
Reply by Kevin Franzen●June 28, 20132013-06-28
I am not sure if this is still an issue (we are using 9.52). The MS_TIMER is a
32-bit timer and rolls over after 49 days. Make sure your use of MS_TIMER
accounts for a possible rollover.
From: r... [mailto:r...] On Behalf Of seecwriter
Sent: Friday, June 28, 2013 9:22 AM
To: r...
Subject: [rabbit-semi] Re: rtc time in msec
There is a millisecond timer available (MS_TIMER), but the RTC does not provide
time down to the millisecond.
--- In r..., "hongyang74"
> wrote: >
> Hello,
>
> is it possible to get rtc time in msecond?
>
Reply by seecwriter●June 28, 20132013-06-28
There is a millisecond timer available (MS_TIMER), but the RTC does not provide
time down to the millisecond.
--- In r..., "hongyang74" wrote: >
> Hello,
>
> is it possible to get rtc time in msecond?
>