Using version 1.6.1, analogReference(EXTERNAL) does not work as expected on AVR128DA28. With 3.3vdc on the AREF pin (PIN_PD7, IC pin 13), the ADC reads a 1.65vdc input as 0x0FFF (4095).
Writing the same sketch to the same hardware using version 1.5.11 results in the ADC reading the same 1.65vdc input at around 0x07FF (2047).
This issue was encountered after uploading and running the code found here using the current version 1.6.1. After uploading the same code using version 1.5.11 the issue was not present.
Using version 1.6.1,
analogReference(EXTERNAL)does not work as expected on AVR128DA28. With 3.3vdc on the AREF pin (PIN_PD7, IC pin 13), the ADC reads a 1.65vdc input as 0x0FFF (4095).Writing the same sketch to the same hardware using version 1.5.11 results in the ADC reading the same 1.65vdc input at around 0x07FF (2047).
This issue was encountered after uploading and running the code found here using the current version 1.6.1. After uploading the same code using version 1.5.11 the issue was not present.