Page 1 of 1
PIC18F45Q10 ADC
Posted: Thu Apr 30, 2020 10:02 pm
by dz28
Using the PIC18F45Q10 and the ADC is not working in Hardware.
Simulation is fine inside of flowcode.
I had a similar problem with the ADC on the PIC18F25Q10 part.
Hopefully it is a similar solution.
Thanks,
Dave
Re: PIC18F45Q10 ADC
Posted: Thu Apr 30, 2020 11:16 pm
by medelec35
Can you be more specific?
You mean you can't select FVR?
Re: PIC18F45Q10 ADC
Posted: Fri May 01, 2020 4:48 am
by dz28
I have not got to trying FVR yet but I see it in the Drop down.
I expect to need a C code block to select the FVR voltage.
For now I am just doing a simple test to check the ADC functionality.
Reference is Vdd, Pin An19
Just reading a slide pot with "GetInt" and displaying the result on a display.
FlowChart attached.
Thanks,
Dave
Re: PIC18F45Q10 ADC
Posted: Fri May 01, 2020 9:03 pm
by dz28
For a reality check I swapped out the PIC18F45Q10 with a PIC18F45K40
and the ADC works correctly including the FVR register.
The Chips are functionally similar so it looks like there is a real issue with the PIC18F45Q10 part.
Thanks,
Dave
Re: PIC18F45Q10 ADC
Posted: Mon May 04, 2020 3:52 pm
by dz28
Has there been any movement on this issue?
Thanks,
Dave
Re: PIC18F45Q10 ADC
Posted: Tue May 05, 2020 5:57 pm
by dz28
Ben,
Sorry to push ...
Do you know if this issue will be resolved soon?
Should I pick another Chip to develop with or move it to MPLab.
Thanks,
Dave
Re: PIC18F45Q10 ADC
Posted: Wed May 06, 2020 12:05 pm
by Benj
Hi Dave,
I'll have a look into this for you today and see if I can work out what the problem is.
Re: PIC18F45Q10 ADC
Posted: Wed May 06, 2020 11:48 pm
by Benj
I've now had a go at making a change that will hopefully allow the ADC to work on the Q10 devices.
Let me know how you get on.
Re: PIC18F45Q10 ADC
Posted: Thu May 07, 2020 3:31 pm
by dz28
Ben,
Sorry to report things are still not working.
Tried AN1 and AN16
Verified voltage on A/D input pins
A/D Setup
VDD
Fosc/32
40
Thanks,
Dave
Re: PIC18F45Q10 ADC
Posted: Mon May 11, 2020 6:19 pm
by dz28
Ben,
Any updates on this problem?
Thanks,
Dave