
#include "aduc841.h"
			org		0000h
			sjmp	ayar
		
ayar:
			mov		ADCCON1,#11111100b; eneji, harici ref, ck1_ck0=11, aq1_aq0=11
			mov		ADCCON2,#00100000B; surekli cevrim modu yaptim
			
			mov		DACCON,#00101101B	; 12 bit, rng0=1, sync=1, pd0=1
basla:			
			jnb		ADCI,$
			clr		ADCI
			mov		DAC0H,ADCDATAH
			mov		DAC0L,ADCDATAL
			sjmp	basla
	
			END