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.
18F47K40 ADC
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
-
- 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
Resolved by changed ADC type from 36 to 34 within fcdx file.
Type 36 was not using for channel selection.
Type 36 was not using
Code: Select all
ADPCH
Martin
- 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
Thanks Martin,
Problem should hopefully be solved now. I've added the ADPCH register to the type 36 code.
Problem should hopefully be solved now. I've added the ADPCH register to the type 36 code.
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
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact: