I made some updates on a software on a micro PIC16F18857 written some time ago and compiled with version 0.98.07 RC32.
After compiling with the latest version of the compiler, the ADC reading does not work.
I enclose the 'offending' routine.
Obviously the various registers needed are set properly.
SubLeggiADCW_Adc=0' - Repeat NUMCAMPIONI ANSELA.ANSA0 = 1 W_Adc = W_Adc + ReadAD10 (AN0) If bSeriale Then Exit Sub End If Wait 2 ms End Repeat'-V_Adc=W_Adc/[Word]NUMCAMPIONI'Pertestlocate0,0Print"L.ADC:"PrintV_Adcprint" - "printw_adcEndSub
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problem solved !
Thanks Evan for the help you gave me.
The GCStudio version is the last one that updated itself, but the a-d.h version was stuck on the previous one.
Thanks
Jack
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you have time; Could you tell me on what specific version of GC Studio you are?
This can be seen on the first window of GC Studio or pressing the "About" button.
Thank you in advance.
Angel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I made some updates on a software on a micro PIC16F18857 written some time ago and compiled with version 0.98.07 RC32.
After compiling with the latest version of the compiler, the ADC reading does not work.
I enclose the 'offending' routine.
Obviously the various registers needed are set properly.
Please update to the latest build.
This was reported last week and resolved already.
See https://sourceforge.net/p/gcbasic/code/HEAD/tree/GCBASIC/trunk/include/lowlevel/a-d.h
Evan
Last edit: Anobium 2022-07-19
Problem solved !
Thanks Evan for the help you gave me.
The GCStudio version is the last one that updated itself, but the a-d.h version was stuck on the previous one.
Thanks
Jack
Hi Jack.
If you have time; Could you tell me on what specific version of GC Studio you are?
This can be seen on the first window of GC Studio or pressing the "About" button.
Thank you in advance.
Angel
The version is 1.68.0
Hi Jack, can you help me to test this fix?
https://sourceforge.net/p/gcbasic/discussion/596084/thread/2f0beef127/?page=17#2454
Thank you.
Angel