On 30 Oct 2008, at 11:04 , Sebastien Lelong wrote:

> Yes, I saw it too, that's why I wrote the comment.
> In doubt, see what's locally change, by "svn diff thefile". If you  
> don't want those changes anymore, just "svn revert thefile".

I wasn''t in doubt. I just comitted. Then I saw the  
serial_hardware.jal. I know now I can quit the comments and not  
commit and check the diffs.

>> > Add/trunk/unvalidated/include/jal/rtc_isr_tmr0.jaldiff
>> IMHO, this shoud not go to "jal" map, but in "external/rtc"
>
>
> It is internal! You could argue that TMR0 is a peripheral, but it  
> is not referenced as that in the datasheets (it does not have a  
> peripheral interrrupt flag, for instance).
>
> Well, it's about rtc, isr and timer. So external, internal or  
> peripheral... What is the most important ? rtc, isr or timer ?

external: deals with specific stuff physically outside the PIC, like  
temperature sensors, ultrasound rangers, etc.

peripheral: deals with the peripherals as mentioned in the datasheet:

TMR1, TMR2, MSSP, I2C, USART, PSP, EEPROM, CCP, etc.

jal: the rest. For instance: format.jal and print.jal handle external  
devices, but not specific devices.


> Do you think replacing asm code by jal code could really be problem ?
No, but ISRs should be as short an clear as possible. I would have to  
check the asm output to see that the JAL code does exactly what I  
want. I'm pretty sure the code would be longer as well, which  
increases the ISR overhead.


>> (btw, is this a way to have RTC without an RTC dedicated chip ?
>
> Yes, it is. So it should not go in external.
>
> I could argue that serial_software allows doing serial without  
> builtin usart... though it still remains in peripheral map.

You could, but that library is part of a device_family.

Shall I make a TMR2 ISR RTC and put that in peripheral as well? I  
can't do it now, because I have to move on. This ISR is actually part  
of a project.

>> This sample won't compile, there's no now.jal lib. And I  
>> understand that now.jal is generated, so it contains the current  
>> "now". I think this is more part of a project than a lib. At  
>> least, you should put a default now.jal, highly documented.  
>> Remember, all samples should compile without errors.
> I've added now.jal, and timest.py also. I just forgot last night.  
> Hey, this is an unvalidated tree, right?
> Sure ! But it's "unvalidated", not "uncompilable" :) Once I have my  
> buildbot configured, I expect the "unvalidated" to be quite stable,  
> this reduces entropy.

Again, I'd love to be kicked in the groin when submitting non- 
compiling code.

>> Would it be possible to have the same sample, using your ISR, but  
>> without a now.jal usage ? Something like a second counter ?
>
> The sample should be as simple as possible.

So pick your start time: 12:00? Date: 12 october 1492?

> What do you want to show in this sample ? rtc_isr_timr0 or now.jal ?
Both.


> Either you set the time at compiling, or you do via buttons and a  
> screen. I have this code too, but it needs a keyboard as well. I  
> thought it would be too complicated for a sample.
> Yeah, probably too complicated.
Will commit anyway. The project needs it.

---
ir EE van Andel [EMAIL PROTECTED]  http://www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107



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