News:

Let's find out together what makes a PIC Tick!

Main Menu

Error pic18F25K83

Started by Ivano, May 17, 2022, 03:03 PM

Previous topic - Next topic

Ivano

hi,
I encountered an error on the 18f25k83 datasheets.
to acquire from the Dac output via Adc it is necessary to write dac = adin 61 and not 62 as on the datasheet.
the last values ��Fvr, temperature ... are shifted down by 1
 20220517_165738.jpg

Ivano

Good evening,
Some time ago I bought from Farnell the PIC18F25K83 with 12 bit adc.
When compiling it gave me an error. In the .def and .ppi files I added EEADR, now everything works perfectly.
I attach the 2 files to be replaced in their respective folders if someone who uses these Pic may be interested

Yasin

There is an errata that concerns the ADC. Maybe indirectly causing this.

See page 4

I may be misinterpreted because my English is poor. If so, I apologize in advance.

QuoteWhen the ADC2 is operated in Burst Average
mode (MD = 0b011 in the ADCON2 register) while
enabling non-continuous operation and
double-sampling (CONT = 0 in the ADCON0
register and DSEN = 1 in the ADCON1 register),
the value in the ADCNT register does not
increment beyond 0b1 toward the value in the
ADRPT register.

GaryC

What the Lord giveth the Eratta taketh away!

Ivano


Ivano

For the ADC there is an error in the datasheet table as attached image.
eeadr was missing from the ppi and def files, an error reported by the compiler.
For me now everything is solved.