Solution: ①
MOV DX,0FF63H
MOV aluminum, 0000000 1B
Output DX, AL
Moval, 0000 10 10B
Output DX, AL
②
MOV El, 100 10000B
Out of 63H, aluminum
Test: In aluminum, 60 hours.
Not Al.
OUT 6 1H,AL
JMP test _ IT
Six,
There are two main ways to connect the output of 1. Interface between A/D converter and microcomputer: one is that the output of A/D chip is directly connected to the system bus; The other is that the output of the A/D chip is connected to the bus through the interface circuit. The following figure shows that the output of the A/D chip is directly connected to the system bus.
2. Solution: Assuming that the DELAY program can call the delay, the time is enough to ensure the end of an A/D conversion. Solution: Assuming that the DELAY program can call delay, the time is enough to ensure the end of an A/D conversion.
data field
BUF0 DB 1(? )
ed
code segment
Suppose CS: code, DS: data.
Start: MOV axe, data
MOV DS,AX
MOV CX, 1; Set collection time
MOV SI,0000H
AA: MOV BX, offset, BUF0
MOV DX,0260H
OUT DX,AL; Start with channel 0.
Call delay
In AL, dx; Read the IN0 channel conversion result.
MOV [BX+SI],AL; Save results
Company SI
Cyclic aa; The collection time does not conform to the cycle.
MOV, 4CH
INT 2 1H
End of code
End start