PIC18F46K80 ADC reference selection error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
PIC-Speed32
Posts: 33
Joined: Tue May 08, 2012 3:48 pm
Location: Germany
Has thanked: 7 times
Contact:

PIC18F46K80 ADC reference selection error

Post by PIC-Speed32 »

Hello User,

I still have the ongoing problem with this V5 and CHIP.
In my opinion, the fault lies in BoostC compiler.

First mistake: If I put the PIN AN6 to 0V indicated 4.99. There are a few millivolt the display jumps to 0.00.
Second error: The ADwandler should take the 5 volt supply to the chip as a reference. He does not. He takes beharlich internal ref of 4.1 volts.
Even if I write in C code
/ *
Add C code to this comment
* /

ADCON0 = 40;
ADCON1 = 0;
adcon2 = 254;

Even if I write in the file PIC CAL ADC ADCON1 = 0, the result is the same.

I've tried in mikroBasic Pro for PIC the same. Here the chip reacts to these settings. 2Volt Reference, 4.1 volt reference and Bestriebsspannung as reference.
Short circuit at AN6 is displayed as 0. 2Volt than 4096 DIG, 4.1 or 5V Dig than 4096 than 4096 Dig.

Unfortunately, I get no indication of whether there is still a VTeam working on this issue, and it's been passed.
So I have returned to upgrade to PIC Basic.

Thanks for your help
Uwe

Post Reply