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
PIC18F45Q10 ADC
Moderator: Benj
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: PIC18F45Q10 ADC
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
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
- Attachments
-
- AD_Test.fcfx
- (9.73 KiB) Downloaded 207 times
Re: PIC18F45Q10 ADC
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
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
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC18F45Q10 ADC
Hi Dave,
I'll have a look into this for you today and see if I can work out what the problem is.
I'll have a look into this for you today and see if I can work out what the problem is.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC18F45Q10 ADC
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.
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel