xMaster Gabriel, [img]
outsidetrains.com/smile/bowing.gif
" />
In an ATTiny, it took less than an hour to made the ADC read a voltage, including discovering I was reading the wrong pin. On xMega, it's been 4 days so far. "Doesn't anybody know how to make this work?" I was poking around with my dear Gabotron, when I realized, "Here's an xMega using it's ADC! xMaster Gabriel must know how to make them work!"
So, how do you make these blame things work? If I try it single ended, it always tells me 0xfff (full scale). if I try it double ended, it always tells me -2048 (negative full scale).
It's an xMega192D3
Pin B4 is 0.72v
The AVCC is 3.3v with a .1 uF cap to ground just like all the other vcc pins.
I've programmed Port B like this: