@Markus
in dem du den ADC-Clock Teiler niedriger wählst (ADPS0..2 im ADCSRA
Register). Der ADC braucht 13 ADC-Clocks zur Wandlung, wenn der Mega48
mit 20MHz läuft und der Clock-Teiler auf 011 =1/8 steht so ergibt sich
eine max ADC Rate von: 20000 8 13 = 192 kSamples.
Mit 1/8 funktionierts noch ganz gut, mit 1/4 aber bei 20MHz nicht mehr
richtig. Die nutzbare Auflösung sinkt aber auf 7-8 Bit (der interne DAC
der für die AD-Wandlung verwendet wird ist dann langsamer als die
Wandlungszeit eine Bits).
Dieses 'überclocken' ist übrigens durchaus zulässig, und sogar im
Datenblatt erwähnt:
"By default, the successive approximation circuitry requires an input
clock frequency between 50 kHz and 200 kHz to get maximum resolution. If
a lower resolution than 10 bits is needed, the input clock frequency to
the ADC can be higher than 200 kHz to get a higher sample rate."
Gruss Andi