Hi Seb,

On 2011/02/25 07:54, Sebastien Lelong wrote:

I had a look at this guilty sample. ADC lib can't find how to setup
Vref. 18f14k50 uses PVCFG and NVCFG bits for this, but it expects
ADCON1_PVCFG0 and ADCON1_PVCFG1 (bit by bit), whereas 18f14k50.jal only
offers a bit*2 ADCON1_PVCFG (same for NVCFG).

grep showed only *k22 and *k50 have these PVCFG and NVCFG registers. All
*k22 chips already have bit PVCFG0 and bit PVCFG1 bit, not just bit*2
PVCFG. Does it sound good to you to normalized these device files,
including them also for k50 chips ?

An omision in the dev2jal script! The xVCFG bits are supposed to be declared both bit*2 fields and enumerated. I'm working on a correction.

As it turns out the script error caused also another error. In the device files of the 18f1230 and 18f1330 a missing ADCON1_VCFG (single bit field). I'll correct that as well.
Thanks to kdiff3 to reveal the differences!

Regards, Rob.

--
R. Hamerling, Netherlands --- http://www.robh.nl

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