Hi Seb,

On 2011/04/06 15:28, Sebastien Lelong wrote:

Got my sample almost working ! Configuration is a little bit different
from 18f26j11 but it seems to work.

Great!

I don't use RTCC pin, but would like to control a LED on another pin,
when alarm is active. Unfortunately I can't find any interrupt strictly
related to alarm events. RTCC pin can be driven with alarm interrupts,
but there's no actual register to read from.

Do I miss something ? I surely do...

When I built my clock, the rtcc library (must be about a year ago) and program, I wasn't so interested in the alarm-function. But I wanted to make the library complete and added code later in both the library and my program. I remember that I had to read the datasheet several times and still didn't understand the different possibilities and combinations of the alarm function parameters (repeat,period,chime,etc.). So it may be very well that the library has less functionality than the rtcc module itself, or that I made interpretation errors.

Another function that I had trouble with is calibration. You have to run the clock for at least a day to measure the aberration with reasonable accuracy. I tried to get the 'perfect' value by inter- and extrapolation of the measured values, but that turned out not to work for me. That might be caused by the quality of the crystal (temperature drift outside a conditioned environment). Also the measured aberration changed when I started to use the sleep instruction and WDT, while I understand from the datasheet that the rtcc module keeps running in even deep sleep. Anyway without calibration the accuracy was good enough for me (5 seconds per 24 hours), so I gave up on this.

Hopefully your experiments help to improve library and sample(s).

Regards, Rob.

--
R. Hamerling, Netherlands --- http://www.robh.nl

--
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.

Reply via email to