/** * Analog to Digital converter routines * * @copyright 2012 Institute Automation of Complex Power Systems (ACS), RWTH Aachen University * @license http://www.gnu.org/licenses/gpl.txt GNU Public License * @author Steffen Vogel */ #include #include "adc.h" /** * Initialisierung Analog to digital Converter (ADC) */ void adc_init() { uint16_t result; ADC_DDR = 0x00; // Pins als Eingänge ADC_PORT = 0x00; // Pullups deaktivieren ADMUX = (1<