Hi Seb,

On 01/30/12 08:25 pm, Sebastien Lelong wrote:
Here's what I can find:

Thanks for the quick response.

ADPREF should enumerated (ADPREF0, ADPREF1)

I'll enumerate it in the device files.

I've adapted adc_channels.jal, can I ask you to try
attached lib ? If it's working I'll report modification
on template file.

Works! And not anymore the error on missing ADCON1_ADNREF.


  I couldn't look for "value out of range", though pretty weird...


I just found the cause! In my source (line 23) you'll see:
const byte ADC_RSOURCE         = 10_000

Strange that the compiler doesn't catch assigning a value of 10000 to a byte, and only complains later with seemingly irrelevant messages. I'll report this to Kyle.

After I changed this to:
const word ADC_RSOURCE         = 10_000

the range errors are gone.

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