//read AD channel and sends it to DAC //downscaling is needed because of the difference in datarange LABEL LOOP CALL SEND_AD_TO_DAC WAIT 250 GOTO LOOP SUB SEND_AD_TO_DAC VAR1 = $AD01/4 DAC01 = VAR1 END SUB