//--------------------------------------------------------------------------------------- // Programm Nr.: 09 // Content : ADC (free running) output high byte on PORT D // Author : digital AG Halle // Date : 16.07.2008 // System : ATmega8-16PU - Dai Hoc Hue Development Board //--------------------------------------------------------------------------------------- //--included Files----------------------------------------------------------------------- #include //--declarations------------------------------------------------------------------------- #ifndef F_CPU #define F_CPU 8000000 //CPU frequency = 8 MHz #endif uint8_t result_H; uint8_t result_L; //--MAIN PROGRAMM------------------------------------------------------------------------ int main(void) { //--INITIALISATION--------------------------------------------------------------- //ADC_INIT: ADMUX |= (1<