Hej!
Skall porta basic-kod från Atmega till C på PIC. Undrar om konfigureringen av ADC:
'Config Analog/Digital Converter
Config Adc = Single , Prescaler = Auto , Reference = Avcc
Jag tolkar det som att den då har Avcc, i detta fall 5V som referens?
Atmega ADC-fråga
Re: Atmega ADC-fråga
Så jo, det borde stämma."The ADC has a separate analog supply voltage pin, AVCC. AVCC must not differ more than ±0.3V from VCC." and "AVCC is the supply voltage pin for the A/D Converter"