4外文翻译.doc

上传人:土8路 文档编号:10289349 上传时间:2021-05-05 格式:DOC 页数:21 大小:206.50KB
返回 下载 相关 举报
4外文翻译.doc_第1页
第1页 / 共21页
4外文翻译.doc_第2页
第2页 / 共21页
4外文翻译.doc_第3页
第3页 / 共21页
4外文翻译.doc_第4页
第4页 / 共21页
4外文翻译.doc_第5页
第5页 / 共21页
点击查看更多>>
资源描述

《4外文翻译.doc》由会员分享,可在线阅读,更多相关《4外文翻译.doc(21页珍藏版)》请在三一文库上搜索。

1、毕业设计(论文)外文资料翻译学 院: 信息工程学院 专 业: 通信工程092 姓 名: 赵宏志 学 号: 0906220242 (用外文写)外文出处: puter-engineering.org 附 件: 1.外文资料翻译译文;2.外文原文。 指导教师评语: 签名: 2013 年4月 26 日附件1:外文资料翻译译文PS2鼠标键盘协议 摘要:PS/2接口总线只使用数据线和时钟线两条导线来实现主机与设备的通讯,采用集电极开路实现了一种双向同步串行协议。在总线空闲时,两条线都是高电平。在这种状态下,设备才允许开始传输数据。主机对总线有最高的控制权,在任何时候通过将时钟线拉低就可以禁止设备通信。关键

2、词:PS/2接口;数据线;时钟线;双向同步串行协议1. 通讯:概述 PS / 2鼠标和键盘实现双向同步串行协议。该总线是“空闲”时,两条线都高(集电极开路)。这是唯一的状态下,键盘/鼠标开始传输数据。主机总线拥有最终控制权,并可能抑制随时沟通拉时钟线低。该设备总是产生时钟信号。如果主机要发送数据时,它必须先抑制通信设备拉动时钟低。主机然后再换低和释放时钟数据。这是“请求发送”状态和信号设备开始产生时钟脉冲。摘要:公交数据=高,时钟=高: 空闲状态。数据=高,时钟=低: 通信抑制。数据=低,时钟=高: 主机请求到发送 所有的数据都发送一个字节的时间的11-12位构成一帧中发送的每个字节。这些位是

3、: 1个起始位。始终为0。 8个数据位,至少显着位第一。 1个校验位(奇校验)。 1个停止位。这始终是1。 1,应答位(仅主机到设备通信)被设置,如果有偶数个1的数据位和复位(0),如果有一个数据位中的1的奇数奇偶校验位。数1的数据位加上校验位总是加起来奇数(奇校验),这是用于错误检测。键盘/鼠标必须检查此位如果不正确的话,它应该作出反应,如果它已收到一个无效的命令。读取从设备发送到主机的数据在时钟信号的下降 边缘上,从主机到设备发送的数据的上升沿读取 时钟的频率必须在范围10 - 16.7千赫。这意味着时钟要高30 - 50微秒低30 - 50微秒.如果你设计一个键盘,鼠标,或主机的模拟器,

4、你应该修改/采样数据线在中间的每一个细胞。即15 - 25微秒后相应的时钟过渡。同样,键盘/鼠标总是产生时钟信号,但主机总是有通信的最终控制权。定时是绝对至关重要的。在这篇文章中我给每一个时间量必须严格遵守。2.通讯:设备到主机 数据和时钟线都是集电极开路。和+5 V的每一行之间的一个电阻连接,所以在总线的空闲状态是高的。当键盘或鼠标要发送信息,它首先检查时钟线,以确保它是在一个较高的逻辑电平。如果不是的话,主机是抑制通信和设备必须缓冲任何将要发送的数据,直到主机释放时钟。时钟线必须持续至少50微秒之前的设备就可以开始传输数据。 正如我在上一节中提到,键盘和鼠标使用一个串行协议与11位帧。这些

5、位是: 1个起始位。始终为0。 8个数据位,至少显着位第一。 1个校验位(奇校验)。 1个停止位。这始终是1。键盘/鼠标写入的数据线位钟为高时,由主机时钟是低时,它是只读的。图2和图3示出了这一点。图2:设备到主机的通信。数据线改变状态时,钟为高时,时钟是低,数据是有效的。 图3:“Q”键(15H)从键盘发送到计算机的扫描码。通道A是时钟信号通道B的数据信号。 的时钟频率为10-16.7千赫。从一个时钟脉冲的上升沿到数据转换的时间必须是至少为5微秒。从数据转换到一个时钟脉冲的下降沿的时间必须是至少5微秒和不大于25微秒。主机可能抑制拉动低时钟线至少100微秒随时沟通。如果传输被禁止前11个时钟

6、脉冲,该设备必须中止当前的传输和准备数据重传的“块”,当主机释放时钟。一个“块”的数据可能是一个品牌代码,断码,设备ID,鼠标运动包等,例如,如果键盘被中断,同时发送两个字节的断码的第二个字节,就需要重传两个字节,断码,而不仅仅是一个被打断。如果主机拉时钟低之前,先高到低时钟过渡,或者最后一个时钟脉冲的下降沿后,键盘/鼠标不需要重新传输任何数据。但是,如果新的数据被创建的,需要进行传输时,它会被缓冲,直到主机发行时钟。键盘有一个16字节的缓冲区用于此目的。如果发生价值超过16字节的按键,进一步击键将被忽略,直到缓冲区中有足够的空间。小鼠只存储最新的移动数据包传输。3. 主机到设备的通讯 主机到

7、设备通信数据包被发送一点点不同.首先,PS / 2设备总是产生时钟信号。如果主机要发送数据时,它必须首先把时钟和数据线“请求发送”状态如下: 禁止通信拉动时钟低至少100微秒。 应用“请求发送”拉动数据低,然后释放时钟。设备应该检查此状态下,间隔不超过10毫秒。当设备检测到这种状态下,它会开始产生时钟信号和时钟在8个数据位和1个停止位。主机改变了数据线,仅当在时钟线为低电平时,数据被读时钟为高时,由设备。这是相反的什么occours设备到主机的通信。收到停止位后,设备将承认接收到的字节,使数据线低,产生最后一个时钟脉冲。如果主机不释放数据线后的第11个时钟脉冲,该设备将继续产生时钟脉冲直到数据

8、线被释放(然后设备将产生一个错误。)主机可能中止传输时前11个时钟脉冲应答位时钟线至少100微秒。为了使这个过程变得更容易理解,这里的主机必须遵循的步骤将数据发送到一个PS / 2设备:1)把时钟线至少100微秒 2)把数据线低。3)释放时钟线。4)等待设备把时钟线拉低 5)设置/复位数据线发送第一个数据位 6)等待设备把时钟拉高7)等待设备把时钟拉低8)重复步骤5-7,其他7个数据位,校验位9)释放数据线10)等待设备把数据线拉低11)等待设备把时钟线拉低12)等待设备释放数据线和时钟图3用图形表示,图4的定时显示由主机产生的信号,而生成的PS / 2设备分开。注意时机“确认”位 - 数据改

9、变发生时,时钟线为高(而不是当它是低,是其它11位的情况下的变化。)图3:主机到设备的通讯。 图4:详细的主机到设备通信。 参考图4,有两个时间数量的主机看起来。(a)是所花费的时间的移动设备以开始产生时钟脉冲后,主机最初需要的时钟线为低,它必须是不大于15毫秒。(b)是所花费的时间的数据包要发送,它必须是不大于2毫秒。如果不符合这些时间限制,主机应产生一个错误。立即收到“确认”后,主机可能会带来抑制通信,数据处理,而它的时钟线低。如果由主机发送的命令,需要一个响应,该响应必须不迟于20毫秒接收主机后释放时钟线。如果不会发生这种情况时,主机将生成一个错误。附件2:外文原文(复印件)PS2 mo

10、use and keyboard AgreementAbstract: PS / 2 interface bus using only two wires of the data and clock lines to host communication with the device, the use of open-collector to achieve a two-way synchronous serial protocol. The two lines are high when the bus is idle. In this state, the device is only

11、allowed to begin transmission of data. The highest level of control over the host bus, device communication can be disabled at any time by the clock line low.Keywords: PS / 2 interface; cable; clock line; bidirectional synchronous serial protocolCommunication: General Description The PS/2 mouse and

12、keyboard implement a bidirectional synchronous serial protocol. The bus is idle when both lines are high (open-collector). This is the only state where the keyboard/mouse is allowed begin transmitting data. The host has ultimate control over the bus and may inhibit communication at any time by pulli

13、ng the Clock line low. The device always generates the clock signal. If the host wants to send data, it must first inhibit communication from the device by pulling Clock low. The host then pulls Data low and releases Clock. This is the Request-to-Send state and signals the device to start generating

14、 clock pulses.Summary: Bus StatesData = high, Clock = high: Idle state.Data = high, Clock = low: Communication Inhibited.Data = low, Clock = high: Host Request-to-Send All data is transmitted one byte at a time and each byte is sent in a frame consisting of 11-12 bits. These bits are:1 start bit. Th

15、is is always 0. 8 data bits, least significant bit first. 1 parity bit (odd parity). 1 stop bit. This is always 1. 1 acknowledge bit (host-to-device communication only)The parity bit is set if there is an even number of 1s in the data bits and reset (0) if there is an odd number of 1s in the data bi

16、ts. The number of 1s in the data bits plus the parity bit always add up to an odd number (odd parity.) This is used for error detection. The keyboard/mouse must check this bit and if incorrect it should respond as if it had received an invalid command.Data sent from the device to the host is read on

17、 the falling edge of the clock signal; data sent from the host to the device is read on the rising edge. The clock frequency must be in the range 10 - 16.7 kHz. This means clock must be high for 30 - 50 microseconds and low for 30 - 50 microseconds. If youre designing a keyboard, mouse, or host emul

18、ator, you should modify/sample the Data line in the middle of each cell. I.e. 15 - 25 microseconds after the appropriate clock transition. Again, the keyboard/mouse always generates the clock signal, but the host always has ultimate control over communication.Timing is absolutely crucial. Every time

19、 quantity I give in this article must be followed exactly.Communication: Device-to-Host The Data and Clock lines are both open collector. A resistor is connected between each line and +5V, so the idle state of the bus is high. When the keyboard or mouse wants to send information, it first checks the

20、 Clock line to make sure its at a high logic level. If its not, the host is inhibiting communication and the device must buffer any to-be-sent data until the host releases Clock. The Clock line must be continuously high for at least 50 microseconds before the device can begin to transmit its data. A

21、s I mentioned in the previous section, the keyboard and mouse use a serial protocol with 11-bit frames. These bits are: 1 start bit. This is always 0. 8 data bits, least significant bit first. 1 parity bit (odd parity). 1 stop bit. This is always 1.The keyboard/mouse writes a bit on the Data line wh

22、en Clock is high, and it is read by the host when Clock is low. Figures 2 and 3 illustrate this.Figure 2: Device-to-host communication. The Data line changes state when Clock is high and that data is valid when Clock is low. Figure 3: Scan code for the Q key (15h) being sent from a keyboard to the c

23、omputer. Channel A is the Clock signal; channel B is the Data signal.- The clock frequency is 10-16.7 kHz. The time from the rising edge of a clock pulse to a Data transition must be at least 5 microseconds. The time from a data transition to the falling edge of a clock pulse must be at least 5 micr

24、oseconds and no greater than 25 microseconds. The host may inhibit communication at any time by pulling the Clock line low for at least 100 microseconds. If a transmission is inhibited before the 11th clock pulse, the device must abort the current transmission and prepare to retransmit the current c

25、hunk of data when host releases Clock. A chunk of data could be a make code, break code, device ID, mouse movement packet, etc. For example, if a keyboard is interrupted while sending the second byte of a two-byte break code, it will need to retransmit both bytes of that break code, not just the one

26、 that was interrupted.If the host pulls clock low before the first high-to-low clock transition, or after the falling edge of the last clock pulse, the keyboard/mouse does not need to retransmit any data. However, if new data is created that needs to be transmitted, it will have to be buffered until

27、 the host releases Clock. Keyboards have a 16-byte buffer for this purpose. If more than 16 bytes worth of keystrokes occur, further keystrokes will be ignored until theres room in the buffer. Mice only store the most current movement packet for transmission.Host-to-Device Communication: The packet

28、is sent a little differently in host-to-device communication.First of all, the PS/2 device always generates the clock signal. If the host wants to send data, it must first put the Clock and Data lines in a Request-to-send state as follows: Inhibit communication by pulling Clock low for at least 100

29、microseconds. Apply Request-to-send by pulling Data low, then release Clock.The device should check for this state at intervals not to exceed 10 milliseconds. When the device detects this state, it will begin generating Clock signals and clock in eight data bits and one stop bit. The host changes th

30、e Data line only when the Clock line is low, and data is read by the device when Clock is high. This is opposite of what occours in device-to-host communication.After the stop bit is received, the device will acknowledge the received byte by bringing the Data line low and generating one last clock p

31、ulse. If the host does not release the Data line after the 11th clock pulse, the device will continue to generate clock pulses until the the Data line is released (the device will then generate an error.)The host may abort transmission at time before the 11th clock pulse (acknowledge bit) by holding

32、 Clock low for at least 100 microseconds.To make this process a little easier to understand, heres the steps the host must follow to send data to a PS/2 device:1) Bring the Clock line low for at least 100 microseconds. 2) Bring the Data line low. 3) Release the Clock line. 4) Wait for the device to

33、bring the Clock line low. 5) Set/reset the Data line to send the first data bit 6) Wait for the device to bring Clock high. 7) Wait for the device to bring Clock low. 8) Repeat steps 5-7 for the other seven data bits and the parity bit 9) Release the Data line. 10) Wait for the device to bring Data

34、low. 11) Wait for the device to bring Clock low. 12) Wait for the device to release Data and ClockFigure 3 shows this graphically and Figure 4 separates the timing to show which signals are generated by the host, and which are generated by the PS/2 device. Notice the change in timing for the ack bit

35、-the data transition occours when the Clock line is high (rather than when it is low as is the case for the other 11 bits.)Figure 3: Host-to-Device Communication. Figure 4: Detailed host-to-device communication. Referring to Figure 4, theres two time quantities the host looks for. (a) is the time it

36、 takes the device to begin generating clock pulses after the host initially takes the Clock line low, which must be no greater than 15 ms. (b) is the time it takes for the packet to be sent, which must be no greater than 2ms. If either of these time limits is not met, the host should generate an err

37、or. Immediately after the ack is received, the host may bring the Clock line low to inhibit communication while it processes data. If the command sent by the host requires a response, that response must be received no later than 20 ms after the host releases the Clock line. If this does not happen,

38、the host generates an error.REFERENCES1 Daemen J,Rijmen V.The Design of Rijndael:AES-The Advanced Encryption Standard. . 20022 Prof Stephen A,Edwards.The PS/2 Keyboard and Mouse InterfaceDColumbia University,2009:65-673 PS/2 Mouse/Keyboard Protocol, OL.Adam Chapweske, Copyright 1999:112-120.4 Holtek

39、 Semiconductor Inc.PS/2 Mouse Controller Data Sheet. . 20035 Adam Chapweske.PS/2 Mouse/Keyboard Protocol. http:/www.din.de . 1999我的大学爱情观目录:2. 大学概念3. 分析爱情健康观4. 爱情观要三思5. 大学需要对爱情要认识和理解6. 总结1、什么是大学爱情:大学是一个相对宽松,时间自由,自己支配的环境,也正因为这样,培植爱情之花最肥沃的土地。大学生恋爱一直是大学校园的热门话题,恋爱和学业也就自然成为了大学生在校期间面对的两个主要问题。恋爱关系处理得好、正确,健康

40、,可以成为学习和事业的催化剂,使人学习努力、成绩上升;恋爱关系处理的不当,不健康,可能分散精力、浪费时间、情绪波动、成绩下降。因此,大学生的恋爱观必须树立在健康之上,并且树立正确的恋爱观是十分有必要的。因此我从下面几方面谈谈自己的对大学爱情观。2、什么是健康的爱情:1) 尊重对方,不显示对爱情的占有欲,不把爱情放第一位,不痴情过分;2) 理解对方,互相关心,互相支持,互相鼓励,并以对方的幸福为自己的满足; 3) 是彼此独立的前提下结合;3、什么是不健康的爱情:1)盲目的约会,忽视了学业;2)过于痴情,一味地要求对方表露爱的情怀,这种爱情常有病态的夸张;3)缺乏体贴怜爱之心,只表现自己强烈的占有

41、欲;4)偏重于外表的追求;4、大学生处理两人的在爱情观需要三思:2) 不影响学习:大学恋爱可以说是一种必要的经历,学习是大学的基本和主要任务,这两者之间有错综复杂的关系,有的学生因为爱情,过分的忽视了学习,把感情放在第一位;学习的时候就认真的去学,不要去想爱情中的事,谈恋爱的时候用心去谈,也可以交流下学习,互相鼓励,共同进步。3) 有足够的精力:大学生活,说忙也会很忙,但说轻松也是相对会轻松的!大学生恋爱必须合理安排自身的精力,忙于学习的同时不能因为感情的事情分心,不能在学习期间,放弃学习而去谈感情,把握合理的精力,分配好学习和感情。3、 有合理的时间;大学时间可以分为学习和生活时间,合理把握

42、好学习时间和生活时间的“度”很重要;学习的时候,不能分配学习时间去安排两人的在一起的事情,应该以学习为第一;生活时间,两人可以相互谈谈恋爱,用心去谈,也可以交流下学习,互相鼓励,共同进步。5、大学生对爱情需要认识与理解,主要涉及到以下几个方面:(1) 明确学生的主要任务“放弃时间的人,时间也会放弃他。”大学时代是吸纳知识、增长才干的时期。作为当代大学生,要认识到现在的任务是学习学习做人、学习知识、学习为人民服务的本领。在校大学生要集中精力,投入到学习和社会实践中,而不是因把过多的精力、时间用于谈情说爱浪费宝贵的青春年华。因此,明确自己的目标,规划自己的学习道路,合理分配好学习和恋爱的地位。(2

43、) 树林正确的恋爱观提倡志同道合、有默契、相互喜欢的爱情:在恋人的选择上最重要的条件应该是志同道合,思想品德、事业理想和生活情趣等大体一致。摆正爱情与学习、事业的关系:大学生应该把学习、事业放在首位,摆正爱情与学习、事业的关系,不能把宝贵的大学时间,锻炼自身的时间都用于谈情说有爱而放松了学习。 相互理解、相互信任,是一份责任和奉献。爱情是奉献而不时索取,是拥有而不是占有。身边的人与事时刻为我们敲响警钟,不再让悲剧重演。生命只有一次,不会重来,大学生一定要树立正确的爱情观。(3) 发展健康的恋爱行为 在当今大学校园,情侣成双入对已司空见惯。抑制大学生恋爱是不实际的,大学生一定要发展健康的恋爱行为

44、。与恋人多谈谈学习与工作,把恋爱行为限制在社会规范内,不致越轨,要使爱情沿着健康的道路发展。正如马克思所说:“在我看来,真正的爱情是表现在恋人对他的偶像采取含蓄、谦恭甚至羞涩的态度,而绝不是表现在随意流露热情和过早的亲昵。”(4) 爱情不是一件跟风的事儿。很多大学生的爱情实际上是跟风的结果,是看到别人有了爱情,看到别人幸福的样子(注意,只是看上去很美),产生了羊群心理,也就花了大把的时间和精力去寻找爱情(5) 距离才是保持爱情之花常开不败的法宝。爱情到底需要花多少时间,这是一个很大的问题。有的大学生爱情失败,不是因为男女双方在一起的时间太少,而是因为他们在一起的时间太多。相反,很多大学生恋爱成

45、功,不是因为男女双方在一起的时间太少,而是因为他们准确地把握了在一起的时间的多少程度。(6) 爱情不是自我封闭的二人世界。很多人过分的活在两人世界,对身边的同学,身边好友渐渐的失去联系,失去了对话,生活中只有彼此两人;班级活动也不参加,社外活动也不参加,每天除了对方还是对方,这样不利于大学生健康发展,不仅影响学习,影响了自身交际和合作能力。总结:男女之间面对恋爱,首先要摆正好自己的心态,树立自尊、自爱、自强、自重应有的品格,千万不要盲目地追求爱,也不宜过急追求爱,要分清自己的条件是否成熟。要树立正确的恋爱观,明确大学的目的,以学习为第一;规划好大学计划,在不影响学习的条件下,要对恋爱认真,专一

46、,相互鼓励,相互学习,共同进步;认真对待恋爱观,做健康的恋爱;总之,我们大学生要树立正确的恋爱观念,让大学的爱情成为青春记忆里最美的风景,而不是终身的遗憾! 我的大学爱情观目录:7. 大学概念8. 分析爱情健康观9. 爱情观要三思10. 大学需要对爱情要认识和理解11. 总结1、什么是大学爱情:大学是一个相对宽松,时间自由,自己支配的环境,也正因为这样,培植爱情之花最肥沃的土地。大学生恋爱一直是大学校园的热门话题,恋爱和学业也就自然成为了大学生在校期间面对的两个主要问题。恋爱关系处理得好、正确,健康,可以成为学习和事业的催化剂,使人学习努力、成绩上升;恋爱关系处理的不当,不健康,可能分散精力、浪费时间、情绪波动、成绩下降。因此,大学生的恋爱观必须树立在健康之上,并且树立正确的恋爱观是十分有必要的。因此我从下面几方面谈谈自己的对大学爱情观。2、什么是健康的爱情:4) 尊重对方,不显示对爱情的占有欲,不把爱情放第一位,不痴情过分;5) 理解对方,互相关心,互相支持,互相鼓励,并以对方的幸福为自己的满足; 6) 是彼此独立的前提下结合;3、什么是不健康的爱情:1)盲目的约会,忽视了学业;2)过于痴情,一味地要求对方表露爱的情怀,这种爱情常有病态的夸张;3)缺乏体贴怜爱之心,只表现自己强烈的占有欲;4)偏重于外表的追求;4、大学生处理两人的在爱情观需要三思:4) 不影响学

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1