
#include "aduc841.h"
			org		0000h
			sjmp	ayar
		
ayar:
			mov		ADCCON1,#10111100b; dahili ref, ck1_ck0=11, aq1_aq0=11

basla:		
			mov		ADCCON2,#00000000B; kanal 0
			setb	sconv
			jnb		adci,$
			mov		r0,adcdatah
			mov		r1,adcdatal
			
			mov		ADCCON2,#00000001B; kanal 1
			setb	sconv
			jnb		adci,$
			mov		r2,adcdatah
			mov		r3,adcdatal			

			sjmp 	basla		
			
			


	
			END