Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NO:6
AIM:
To write an assembly language program for interfacing ADC with 0809 using 8085
microprocessor
APPARATUS REQUIRED:
Power supply(0-5)v
ALGORITHM:
STEP1: Move immediately the content '01' to 'A' register
STEP2: The content of accumulator '01' is moved to the port for selecting the channel 0.
STEP3: Move immediately the content '18' to 'A' register.
STEP4: The content of accumulator '18' is moved to the 8-bit port for selecting the channel 0
STEP5: Send the content of accumulator to the output port C0 to display it.
STEP6: Move immediately the content '01' to 'A' register.
STEP7: Set SOC signal to HIGH
STEP8: Start the DELAY operation.
STEP9: Move immediately the content '00' to 'A' register.
STEP10: Set SOC signal to low to stop the conversion.
STEP11: Check for end of conversion (EOC) signal.
STEP12: Read the converted data from ADC.
STEP13: Store the read data in 4150
STEP14: Stop the program execution
LABEL
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
410A
410B
410C
410D
410E
410F
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
411A
411B
411C
411D
411E
411F
4120
4121
LOOP1
MNEUMONICS OPCODE
COMMENTS
MVI
A,10
OUT
C8
MVI
A,18
OUT
C8
MVI
A,01
OUT
D0
XRA
XRA
XRA
MVI
A
A
A
A,00
OUT
D0
IN
D8
ANI
01
CPI
01
JNZ
LOOP1
IN
C0
STA
4150
HLT
3E
10
D3
C8
3E
18
D3
C8
3E
01
D3
D0
AF
AF
AF
3E
00
D3
D0
DB
D8
E6
01
FE
01
C2
13
41
DB
C0
32
50
41
76
OUTPUT:
INPUT ADDRESS
INPUT DATA
OUTPUT DATA
1111111
FF
01111111
7F
4510
RESULT:
Thus, the ADC was interfaced with 0809 using 8085 microprocessor.