PIC18F45Q10 ADC

Moderator: Benj

Post Reply
dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

PIC18F45Q10 ADC

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC18F45Q10 ADC

Post by medelec35 »

Can you be more specific?
You mean you can't select FVR?
Martin

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: PIC18F45Q10 ADC

Post 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
Attachments
AD_Test.fcfx
(9.73 KiB) Downloaded 175 times

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: PIC18F45Q10 ADC

Post 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

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: PIC18F45Q10 ADC

Post by dz28 »

Has there been any movement on this issue?

Thanks,
Dave

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: PIC18F45Q10 ADC

Post 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

User avatar
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

Post 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.

User avatar
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

Post 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.

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: PIC18F45Q10 ADC

Post 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

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: PIC18F45Q10 ADC

Post by dz28 »

Ben,

Any updates on this problem?

Thanks,
Dave

Post Reply