MCUdude / MegaCoreX

An Arduino hardware package for ATmega4809, ATmega4808, ATmega3209, ATmega3208, ATmega1609, ATmega1608, ATmega809 and ATmega808
GNU Lesser General Public License v2.1
239 stars 47 forks source link

Is it possible to configure the internal bandgap via ADC portmux? #191

Open mikrocoder opened 5 months ago

mikrocoder commented 5 months ago

Hi,

basically I realize that an ATmega4809 and relatives cannot measure their own Ub. What, for example, an ATmega328P can do. Measure its own UB backwards via bandgap. Measuring Vcc I'm asking you anyway. Is there perhaps a hidden possibility for megaAVR0 to configure an internal bandgap via ADC Portmux?