Atmel AVR Free Running ADC

Lectura continua de ADC.

 La lectura de ADC se dispara automaticamente cada vez que finaliza la lectura anterior.

En modo 8 bits se puede conseguir una lectura cada 13 uS (con reloj 16 MHz) lo que nos da una frecuencia de muestreo de 76923 sps sin usar tiempo de procesador.

Basta con configurar ADC de la siguiente forma para leer el canal 0:

    ADMUX  = b'01100000'    ' Channel 0, Left justified, Vref = Avcc
    ADCSRA = b'11100100'    ' Enabled, Auto-Trigger, presc = 16
    ADCSRB = 0

Fast linked list without list

If you need a very fast way to iterate over a list of objects and call the same method on all of them, then here is a posible solution. Der...