Page 1 of 1

PIC32MM ADC

Posted: Fri May 11, 2018 1:08 pm
by MelvinA
Hello. Can you please help with the ADC on a PIC32MM. Any getbyte, getint or getvoltage component makro is not working.
The program stops there. I downloaded the sample / demo program called ADCByte.fcfx. This program runs fine on 8-bit devices like the PIC18F4620.

I have been able to run other sample project on the PIC32MM just fine

Re: PIC32MM ADC

Posted: Fri May 11, 2018 4:16 pm
by Benj
Hello,

Thanks for letting us know. I have had a look and think I may have found the problem.

Firstly please can you update the PIC32MM definition files. The archive below needs to be extracted into the "Flowcode 7/FCD/PIC32" folder overwriting the files there.
PIC32.zip
(47.95 KiB) Downloaded 194 times
Next you also need to copy the file below into your "Flowcode 7/CAL/PIC32" folder.
PIC32BIT_CAL_ADC.c
(16.64 KiB) Downloaded 214 times
Restart Flowcode if you have it open and hopefully the ADC will now work as expected.

Let us know how you get on.