Hi Seb, adc conversion delay is a matter of package temperature, AD input impedance and of course specific PIC values for parasitic capacitance of the package and the sample and hold capacitor value. In my opinion those constants make library nice from the software point of view but has limited practical benefits, more, it confusing the user...or make it reading the datasheet (which is good).
Adding point by point everything is written in the datasheet into a library does not makes things clearer. Vasile On 10/16/09, Sebastien Lelong <[email protected]> wrote: > > >> For the delay, I'm wondering why it can't be a constant, because >> >> adc_conversion_delay = 2 + adc_tc + adc_tcoff >> >> and adc_tc and adc_tcoff are consts, so adc_conversion_delay can be const >> too, unless you want to make it user overridable >> >> > This is because it's computed in one procedure, and used in another one. I > thus need to declare it globally. Since global, it can't be a constant as > constants need to be initialized. Code would have to be re-organized. > > 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 -~----------~----~----~----~------~----~------~--~---
