Sorry if I'm being stupid! I am trying to use the 12F1840 to read an ADC 
value and then send over serial hardware. I got a similar program 
from https://sites.google.com/site/molec12f1840/ which does more or less 
what I want, but I am getting compile errors from.
Using the JALPack down load with compiler 2.4o and jaledit 0.9.0.9 I get 
the following errors:

Compilation started at :26/11/2014 09:47:37
jal 2.4o (compiled May  8 2011)
[Warning] (lib/adc_channels.jal) [Line 145]  operation is always FALSE
[Error] (lib/adc_channels.jal) [Line 152]  "adcon1_adnref" not defined
[Error] (lib/adc_channels.jal) [Line 152]  'end' expected (got 
'adcon1_adnref')
[Error] (lib/adc_channels.jal) [Line 152]  {IF starts at 
C:\JALPack\lib/adc_channels.jal:149}
[Error] (lib/adc_channels.jal) [Line 167]  'procedure' expected (got 'if')
[Error] (lib/adc_channels.jal) [Line 167]  {procedure starts at 
C:\JALPack\lib/adc_channels.jal:142}
[Warning] (lib/adc_channels.jal) [Line 167]  boolean expression expected
[Error] (lib/adc_channels.jal) [Line 167]  'then' expected (got 'end')
[Error] (lib/adc_channels.jal) [Line 2780]  "adc_nchannel" not defined
[Error] (lib/adc_channels.jal) [Line 2780]  constant expression expected
[Error] (lib/adc_channels.jal) [Line 2780]  '=' expected (got '*')
[Error] (lib/adc_channels.jal) [Line 2780]  'end' expected (got '*')
[Error] (lib/adc_channels.jal) [Line 2780]  {IF starts at 
C:\JALPack\lib/adc_channels.jal:2777}
[Error] (lib/adc_channels.jal) [Line 2780]  'end' expected (got '*')
[Error] (lib/adc_channels.jal) [Line 2780]  {procedure starts at 
C:\JALPack\lib/adc_channels.jal:183}
[Error] (lib/adc_channels.jal) [Line 2780]  'end' expected (got '*')
[Error] (lib/adc_channels.jal) [Line 2780]  {IF starts at 
C:\JALPack\lib/adc_channels.jal:167}
[Error] (lib/adc_channels.jal) [Line 2780]  unexpected token: "*"
[Error] (lib/adc.jal) [Line 261]  "_adc_setup_pins" not defined
[Error] (lib/adc.jal) [Line 261]  'end' expected (got '_adc_setup_pins')
[Error] (lib/adc.jal) [Line 261]  {procedure starts at 
C:\JALPack\lib/adc.jal:259}
[Error] (lib/adc.jal) [Line 261]  "_adc_setup_pins" not defined
[Error] (lib/adc.jal) [Line 261]  unexpected token: "_adc_setup_pins"
[Error] (12f1840_JAL_molec_adc.jal) [Line 104]  "adc_init" not defined
[Error] (12f1840_JAL_molec_adc.jal) [Line 104]  unexpected token: adc_init
[Warning] (lib/adc_channels.jal) [Line 145]  operation is always FALSE
[Warning] (lib/adc_channels.jal) [Line 167]  boolean expression expected
Compiler CommandLine:  C:\JALPack\compiler\jalv2.exe 
"C:\Users\Alan\Desktop\hexfiles\12f1840_JAL_molec_adc.jal" -s 
"C:\JALPack\lib" -no-variable-reuse  

Errors :23       Warnings :2

I attach the file I tried to compile...
Is this a known issue or am I using an old version by downloading the 
windows installer version?

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Attachment: 12f1840_JAL_molec_adc.jal
Description: Binary data

Reply via email to