Comment #7 on issue 139 by robhamerling: problem with adc on 16F1827 http://code.google.com/p/jallib/issues/detail?id=139
In relation to the recent changes in the device files for this issue the adc_clock.jal library needs to be revised: - Number of bits of the ADCONx_ADCS field cannot be determined by the library
(compiler doesn't have a 'count' function for bit fields). Suggestion: add constant 'ADC_ADCS_BITCOUNT' to the device files (like there is a constant ADC_NTOTAL_CHANNEL) - The compiler function 'defined()' seems not to work for pseudo-variables, therefore a different method is needed to detect the existence of pseudo variable ADCON0_ADCS. Suggestion: add check on ADCON0_ADCS10 (present with scattered ADCS bits) Not strictly related to this issue, but while revising this library the calculation of the required ADCONx_ADCS bit settings might be improved! -- 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.
