- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
微型计算机技术课件port
Chapter 11 What is I/O interface(circuit)? Between CPU and IO devices Used to help data transfer and control task All kinds of peripherals Most of them can not directly connect to CPU They need a medium interface circuit between CPU and themselves This kind of circuit is called IO interface. IO interface plays a role in data buffer and information connection of input and output work. signal transform, speed matching, data buffer, etc. I/O space 8086 use AD0~AD15 to locate IO ports. That is to say,ports has a maximum number of 216=65536(64K),the number (address) of the ports from 0000H to FFFFH Each port transfers a byte of data. I/O addressing modes Immediately addressing mode:used in accessing the number of ports before 256(00H~FFH), such as 39H Register indirect addressing mode:used in accessing all ports,the value of DX is the number of port For those have the number larger than 256, only the register indirect addressing mode can be used. 8088/8086 input/output instructions Input (IN:data flow from IO to CPU) IN AL,39H ;bring in 1byte of data IN AL,DX ; bring in 1byte of data output(OUT:CPU transfer data to IO) OUT 39H, AL ;send 1 byte of data OUT DX, AL ;send 1 byte of data Memory-mapped I/O advantage: Use instructions accessing memory locations to access I/O ports (instead of IN and OUT instructions) Data can be transferred into any register, rather than into the accumulator (AL or AX) The number of I/O ports can be as high as 220(of course, many ports are never needed) Memory-mapped I/O disadvantage: It use memory address space, which could lead to memory space fragmentation. (major and severe disadvantage) Program can not be clearly read. The Decoding circuit is expensive since all 20 bits address(A0~A19) should be decoded. advantage: I/O space is isolate with memory space Using IN and OUT instructions to communicate with I/O devices, so program is clearly readable. Address decoder is simple (only A0~A15 are decoded) disadvantage: I/O operation is restr
文档评论(0)