微機(jī)原理與接口技術(shù)第七章作業(yè)_第1頁(yè)
微機(jī)原理與接口技術(shù)第七章作業(yè)_第2頁(yè)
微機(jī)原理與接口技術(shù)第七章作業(yè)_第3頁(yè)
微機(jī)原理與接口技術(shù)第七章作業(yè)_第4頁(yè)
微機(jī)原理與接口技術(shù)第七章作業(yè)_第5頁(yè)
已閱讀5頁(yè),還剩4頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Chapter 73.(1) Program-controlled I/O: All control is directly under the control of the program, so changes can be readily implemented. The order in which devices are serviced is determined by the program, this order is not necessarily fixed but can be altered by the program, as necessary. It is rel

2、atively easy to add or delete devices. But a great deal of time may be spent on testing the status inputs of the I/O devices, when the devices do not need servicing.(2) Interrupt-controlled I/O: It is accomplished by having the I/O device generate an interrupt signal which is tested directly by the

3、hardware of the CPU. The simplest type of interrupt facility is that the processor executes a subprogram branch at some specific address whenever an interrupt input is detected by the CPU. The return address is saved by the processor as a part of the interrupt process.(3) DMA: Direct memory access (

4、DMA) is a feature of modern computers which allows certain hardware subsystems within the computer to access system memory independently of the central processing unit (CPU). In the process of data transmitting, the DMA controller is participated in the process, and dont need the interference of the

5、 CPU.6. MOV DX ,43H MOV AL ,10100010 OUT DX,AL7.Suppose the address of 8255 is 0FFE0H0FFE3H. The program is as follows:DATA SEGMENTDB 100H DUP(?)DATA ENDSCODE SEGMENT ASSUME CS:CODE ,DS DATASTART:MOV AX,DATA MOV DS,AX MOV AL,10010000 MOV DX,0FFE3H OUT DX,AL MOVDX, 0FFE0H IN AL,DX INC DX NOTAL OUTDX,

6、ALRETCODE ENDS END START11. Suppose the port address of 8254 is 40H-43H,the control word of counter 0 is 00110000B=30H, and the count constant is 1000.The initialization program is as follows:MOV AL,30HOUT43H,ALMOV AX,1000OUT40H,AL MOV AL,AHOUT40H,AL12. The port address of 8254 is 38H-3BH. The contr

7、ol word of counter 0 is 00110110B=36H. The count constant is 100K*10ms=1000.The initialization is as follows:MOV AL,36HOUT3BH,ALMOV AX,1000OUT38H,AL MOV AL,AHOUT38H,AL16. The baud rate is 100*(1+7+1+2)=1100bps19. Suppose the port address of 8250 is 3F8H-3FEH.XTAL1=1.8432MHz, BAUD=2400.Programmable b

8、aud generator: 1.8432M/(2400*16)=48=30H 3F8HLine control register: 10011111B=1FH 3FBHInterrupt enable register: 00000001B=01H 3F9HThe initialization program is as follows:MOVDX,3FBHMOVAL,80HOUTDX,ALMOVDX,3F8HMOVAX,30HOUTDX,AL INC DXMOV AL,AHOUTDX,ALMOVDX,3FBHMOVAL,1FHOUTDX,AL MOVDX,3FCHMOVAL,03HOUTD

9、X,ALMOVDX,3F9HMOVAL,01HOUTDX,AL21. (1) (2) The initialization program of 8255:MOVDX,103HMOVAL,10010000B MOVDX,ALThe port address of 8250 is 108H10EH.XTAL1=1.8432MHz, BAUD=2400 Programmable baud generator=1.8432M/(2400*16)=48=30H 108HLine control register: 00001111B=0FH 10BHInterrupt enable register:

10、 00000000B=00H 109HThe initialization program of 8250 is as follows:MOVDX,10BHMOVAL,80HOUTDX,ALMOVDX,108HMOVAX,30HOUTDX,ALMOVDX,109HMOVAL,AHOUTDX,ALMOVDX,10BHMOVAL,0FHOUTDX,AL MOVDX,10CHMOVAL,03HOUT DX,ALMOV DX,109HMOV AL,0 OUT DX,AL 24. Suppose DREQ1 is active high, DACK1 is active low. Use block transfer mode.Address of 8237 is 0310H031FH.The program is as follows: MOV DX, 031DH MOV AL, 0 OUT DX, AL MOV DX, 0312H MOV AL, 00H MOV DX, AL MOV AL, 20H MOV DX, AL MOV DX, 03

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論