Updates:
Status: Started
Comment #1 on issue 100 by robhamerling: more flexibility in rtc library
for other frequencies
http://code.google.com/p/jallib/issues/detail?id=100
A quick fix could be to replace the hard coded values of hi,mid and lo by:
const byte hi = (target_clock / 4) / 65536
const byte mid = (target_clock / 4) % 65536 / 256
const byte lo = (target_clock / 4) % 256
This makes the library independent of the oscillator frequency.
However the working of the Interrupt service routine depends also on the
proper
setting of OPTION_REG, in particular the PS and PSA bits. This is currently
not
handled by this library and not mentioned in the comments/docs too.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---