2. ADC conversion using 8086 microprocessor
Interface components:
• 8086 microprocessor
Is where the control signal are given
Data transfer
Address generation
Data processing
3. ADC conversion using 8086 microprocessor
• ADC0804 (8-bit analog-to-digital converter)
Converts analog signals to digital values.
Receives an analog input signal to be converted.
Provides an 8-bit digital output representing the converted value
• 74HC373 (8-bit latch)
Acts as a temporary storage device for the digital output of the ADC0804.
Holds the 8-bit digital value during the conversion process.
Provides data output to the 8255A for further processing by the microprocessor.
4. ADC conversion using 8086 microprocessor
• 8255A (programmable peripheral interface)
Facilitates communication between the microprocessor (8086) and other devices.
Acts as an I/O (input/output) port for connecting the ADC0804 and 74HC373 to the
microprocessor.
Controls the data transfer between the microprocessor and the ADC0804/74HC373.
Receives control signals from the microprocessor to initiate conversions and detect the end of
conversion.
Provides address lines for the ADC0804 to select appropriate analog input channels.
Transfers digital data between the ADC0804 and the microprocessor via the data lines.
Manages control signals for the 74HC373 latch to enable data transfer and output.
5. ADC conversion using 8086 microprocessor
Other device used for showing the working of the conversation are
• Logic state
• Logic probe
• DC source
• Voltmeter
6. ADC conversion using 8086 microprocessor
• Conversion process:
1. The microprocessor provided an address on the address bus to select the ADC0804.
2. The microprocessor set the WR signal to initiate the conversion process.
3. The ADC0804 started converting the analog input signal into an 8-bit digital value.
4. The microprocessor received the 8-bit digital value on the data bus and processed it as required.
5. Its is displayed in real time
7. DAC interfacing with 8086
Componenets used
• 8086 microprocessor
It’s use is the some as ADC interfacing with 8086, it Is where the control signal are given ,Data
transfer, Address generation and Data processing
• 74HC373 (8-bit latch)
The use the some as in the ADC interfacing with 8086
• 8255A (programmable peripheral interface)
The build is the some as in the ADC interface with 8086 and the data is output to be processed by
the DAC0808 is PA0-PA7
8. DAC interfacing with 8086
• DAC0808
It take digital input and then it processes it give the anlog signal as an output
Conversion process:
1.The 8086 microprocessor generates an 8-bit digital input code.
2.The digital input code is transferred to the DAC0808 via the data lines (DB0-DB7) of the 8255A.
3.The DAC0808 performs internal digital-to-analog conversion of the input code.
4.The analog output voltage, corresponding to the digital input code, is available on the OUT pin of
the DAC0808.
5.The analog output voltage can be utilized by connecting it to an external circuit or device.
9. DAC interfacing with 8086
Other device used for showing the working of the conversation are
• Logic state
• DC source
• Capacitor
• Operational amplifier
• Resistor
• Oscilloscope for the simulation
10. ADC conversion using 8086 microprocessor
Assembly code used in the process
DATA SEGMENT
PORTA EQU 00H
PORTB EQU 02H
PORTC EQU 04H
PORT_CON EQU 06H
DATA ENDS
CODE SEGMENT
MOV AX,DATA
MOV DS, AX
ORG 0000H
START:
11. Contd.
MOV DX, PORT_CON
MOV AL, 10010000B
OUT DX, AL
MOV AL,00H
XX:
MOV DX,PORTA
IN AL,DX
MOV DX, PORTC
OUT DX,AL
MOV DX, PORTB
MOV AL, 00000000B
OUT DX,AL
12. Contd.
MOV cx, 0ffH
D1: LOOP D1
MOV DX, PORTB
MOV AL, 00000001B
OUT DX,AL
MOV cx, 0ffH
D2: LOOP D2
JMP XX
CODE ENDS
END
ret
17. DAC interfacing with 8086
• Assembly code used in the process
CODE SEGMENT
PORTA EQU 00H ;Address of Port A = 00H
Config EQU 06H ;Address of Config. Word = 06H
ORG 100H
MOV DX, Config
MOV AL, 10000000B;port C=output, port A=output in mode 0, PORT B=output in mode 0
OUT DX, AL
START:
MOV AL, 00000000B;All pins of port A will be (0)
MOV DX, PORTA
OUT DX,AL
18. Contd.
MOV CX, 0ffh ;Small Delay
loopy1:
loop loopy1
MOV AL, 11111111B;All pins of port A will be (1)
MOV DX, PORTA
OUT DX,AL
MOV CX, 0ffh ;Small Delay again
loopy2:
loop loopy2
JMP START ;Loop forever
CODE ENDS
END
HLT ; halt!