18F47K40 ADC

Moderator: Benj

Post Reply
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:

18F47K40 ADC

Post by medelec35 »

ADC only works on AN0.

Select any other channel and it's ignored.

For example changed from AN0 to AN27.
ADC is still being picked up from AN0 and ignoring AN27.
Attachments
ADC TEST.fcfx
(9.56 KiB) Downloaded 179 times
Martin

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: 18F47K40 ADC

Post by medelec35 »

Resolved by changed ADC type from 36 to 34 within fcdx file.
Type 36 was not using

Code: Select all

ADPCH
for channel selection.
Martin

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: 18F47K40 ADC

Post by Benj »

Thanks Martin,

Problem should hopefully be solved now. I've added the ADPCH register to the type 36 code.

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: 18F47K40 ADC

Post by medelec35 »

Thanks Ben,
Update working.
Martin

Post Reply