Problem Statement: 8255
Write 8086 ALP to convert an analog signal in the range of 0V to 5V to its corresponding digital signal
using successive approximation ADC and dual slope ADC. Find resolution used in both the ADC's and
compare the results.
0000:4000 MOV AL, 99
0000:4000 MOV AL, 99
0000:4002 OUT 67, AL
0000:4004 MOV AL, 05
0000:4006 OUT 63, AL
0000:4007 MOV AL, 04
0000:4009 OUT 63, AL
0000:400B IN AL, 65
0000:400D AND AL, 01
0000:400F JZ 400B
0000:4011 MOV AL, 02
0000:4013 OUT 63 ,AL
0000:4016 IN AL, 61
0000:4018 INT 3
0000:4004 MOV AL, 05
0000:4006 OUT 63, AL
0000:4007 MOV AL, 04
0000:4009 OUT 63, AL
0000:400B IN AL, 65
0000:400D AND AL, 01
0000:400F JZ 400B
0000:4011 MOV AL, 02
0000:4013 OUT 63 ,AL
0000:4016 IN AL, 61
0000:4018 INT 3
No comments:
Post a Comment