Experiment Title::Programming in ADC in ALP Name:: Hrishikesh Rambhau Endait Batch :: E-3 Roll No.:: 33 ======================================================= ; AN ALP PROGRAM FOR ADC
BACK:
HERE: HERE1:
ALE BIT OE BIT SC BIT EOC BIT ADDR_A BIT ADDR_B BIT ADDR_C BIT MYDATA EQU P1 ORG 0H MOV MYDATA,#0FFH SETB EOC CLR ALE CLR SC CLR OE CLR ADDR_C CLR ADDR_B SET ADDR_A ACALL DELAY SETB ALE ACALL DELAY SETB SC ACALL DELAY CLR ALE JB EOC,HERE JNB EOC, HERE1 SETB OE ACALL DELAY MOV A,MYDATA CLR OE MOV MYDATA , P2 SJMP BACK
; ; ; ; ; ; ; ;
MAKEP1 AN INPUT MAKE EOC AN INPUT CLEAR ALE CLEAR WR CLEAR RD C=0 B=0 A=1
; LATCH ADDRESS
; ; ; ; ;
wait until done wait until done ENABLE READ WAIT READ DATA