hi Rob,

I has a look at MPCC18 compiler and header files, but I wonder how it can
help us for non-18F PIC. I also searched, naively, for any adc.c or any
sources to understand how they did implement ADC feature, but then
remembered this is not an open source project... just a bad (good ?) habit
:)

This ADC lib is currently too much fuzzy for me. I need some time to dig
into it. I was also thinking about diving into our servo controller
project... This ADC lib will definitely be a background job.

Cheers,
Seb




>
> > Indeed this lib needs refactoring, and maybe even rewrite. This is
> > issue 58 (http://code.google.com/p/jallib/issues/detail?id=58).
>
> Ah, I didn't think of looking in the issues! I'll copy some of the info
> in this discussion as comment to issue 58.
>
>  > I don't have much
> > experience in ADC too, but I could give a try. This will take time
> > though... This is quite a big piece of code, quite complex too.
>
> Yes, the main reason for me not to start working on it myself.
>
> > Can you remind me what ADC_GROUP is, and how it would help us ?
>
> Well, I don't know all the details, but this group classification
> originated from the MCC18 compiler. This compiler seems to support ADC
> and apparently uses a system to handle (18F) PICs in one group similarly
> and PICs in other groups differently.  This ADC group system is used in
> the generation of our device files too to _disable_ ADC and change pins
> which are analog by default to digital mode.
> Note: For our device files also the  baseline and midrange PICs with ADC
> module have been assigned an ADC group (and I added group ADC_V0 for the
> little ones). Our group selection is in
>
> So I would think that whoever starts with refactoring the ADC library
> may learn from the way MCC18 supports ADC and how the group assignment
> is used for the different PICs.  You need to install MCC18, and in the
> H(eader) library you can find info about the group selection in
> pconfig.h and about the use of these groups in adc.h.
>
> I'll add a constant 'ADC_group' to the device files for use by the
> refactored ADC library.
>
> > Have you been able to identify the problem for 16f690 ? BTW, could
> > you reply to Carlo about your test ?
>
> I would like to make my test program working first and then jump in.
>
> Regards, Rob.
>
>
> --
> Rob Hamerling, Vianen, NL (http://www.robh.nl/)
>
> >
>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

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