2011/4/10 Rob Hamerling <[email protected]>

> On 2011/04/10 10:05, Sebastien Lelong wrote:
>
>  Indeed, works great, thanks ! I've finally seen the light too ! The
>> "repear" feature is somewhat tricky, because its behavior is somewhat
>> different from usual alarm clocks...
>>
>
> In the new library I try to mimic the functionality of 'traditional' alarm
> clocks. I've committed it for you, but need some more tests to see if
> everything works as intended (and is intuitive).


OK, I'll have a look !


>
>
>  Figure 17-5 page 253 from
>> PIC18F47J53 datasheet is the important one:
>>   - when period is 10 seconds, you can set an alarm with seconds (in
>> your sample, 5 seconds after RTC is on
>>   - when period is 1 second, you can't specify any alarm time, it'll
>> just raise interrupts every second.
>>
>
> I'll see if I can handle the limitations.


OK, but I'm not sure it's worth it. After all, that's the way it's
working... Maybe there can be something to be done regarding the way you
setup alarm: if user specifies a time, then it should be compatible with the
period. But user may also not specify a time and just deal with period.
More, if period is 10 seconds, then time specification is only "ss", not
"ssmmhh". Maybe, to be explicit, user could specify "17FFFF", meaning "@ 17
seconds, whatver the minutes and hours are" ? The trouble is I'm not sure if
you can issue warnings/errors at compile time for these. That's why it may
not worth it...


> Shouldn't 'repeat' be read as 'number of times after the first time'? To me
> that seems normal.


Yes, indeed, that seems normal ! :)


>
> The board I have was meant for a 18f26j11. I replaced the chip with a
> 18f27j53 (for exchange with you), but it doesn't run. I have not found
> why...


Rechecked again, it works. Carefull I'm using 16Mhz Xtal running PLL. I
think your setup is different regarding this.


Cheers,
Seb

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