On 30 Oct 2008, at 15:42 , Sebastien Lelong wrote: > 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. > > jal: extension of jal language, what you'd like to see as builtin > in the compiler (print, delay,... as of now). That is one way of looking at it.
> so, I repear my question: what is the main functionality realized > by your lib ? For me, as I read it, it's about rtc... isr and tmr > is how it's implemented. Main function is ISR, updating a variable seconds to give the user a Real Clock, to do things like: if minutes % 5 == 0 then and yes, most operating systems have this. Would I want the compiler to provide this? No. Does it handle any peripherals? No. But if you want it in peripheral, I will put it there. > 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. > Which project ? A logger which logs temperature, humidity and CO2 levels to a PC serial port. The PC makes a gnuplot graph on request of a webpage (Do you know how to tie python scripts to webservers? Please tell me!) and keeps all daily logs. > Again, I'd love to be kicked in the groin when submitting non- > compiling code. > This is coming sooner than you think :) Good. > So pick your start time: 12:00? Date: 12 october 1492? > Yes, why not ! Will do. >> What do you want to show in this sample ? rtc_isr_timr0 or now.jal ? > > Both. > > What do you try to show with now.jal ? That you can generate a lib > on the fly and compile/burn the result in a PIC ? For me, this is > more related to a external project, than a generic library for > jallib. I'm not saying this is not insteresting, on the contrary I > like it much, but I just wonder how generic, how jallib it's > related. jallib is about libraries, it's not about project using > jal libraries. You are right that a sample should do the minimum possible. But I have to include a calendar routine, to have a simple sample, otherwise seconds will increase beyond 59. So I will use now.jal in a more elaborate time setup. PS. Where to put the calendar lib? --- 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 -~----------~----~----~----~------~----~------~--~---
