BYTE readAD(void) { unsigned int result=0; while( !DELSIG8_bfStatus){;} //warte bis ADC fertig if( DELSIG8_bfStatus) // true wenn fertig => status=1 { DELSIG8_bfStatus = 0; // Zurücksetzen result =DELSIG8_cResult;// Ergebnis speichern } return result; } //---------------------------- BYTE readADstart(void) { WORD counter=255; //wert zur Mittelung über 255 Messungen unsigned int ergb=0; //Ergebnis BYTE i; for(i=0;i