I2C 总线协议简介毕业论文外文文献翻译.doc
《I2C 总线协议简介毕业论文外文文献翻译.doc》由会员分享,可在线阅读,更多相关《I2C 总线协议简介毕业论文外文文献翻译.doc(13页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、翻译THE INTRODUCE OF I2C-BUS PROTOCOL1、THE I2C-BUS SPECIFICATION1.1、Here are some of the features of the I2C-bus: Only two bus lines are required; A serial data line (SDA)and a serial clock line (SCL). Each device connected to the bus is software addressable by a unique address and simple master/slave
2、 relationships exist at all times; Masters can operate as master-transmitters or as master-receivers.Its a true multi-master bus including collision detection and arbitration to prevent data corruption if two or more masters simultaneously initiate data transfer.Serial, 8-bit oriented, bi-directiona
3、l data transfers can be made at up to 100 kbit/s in the Standard-mode, up to 400 kbit/s in the Fast-mode, or up to 3.4 Mbit/s in the High-speed mode.On-chip filtering rejects spikes on the bus data line to preserve data integrity The number of ICs that can be connected to the same bus is limited onl
4、y by a maximum bus capacitance of 400 pF.2、INTRODUCTION TO THE I2C-BUS SPECIFICATIONFor 8-bit oriented digital control applications, such as those requiring microcontrollers, certain design criteria can be established: A complete system usually consists of at least one microcontroller and other peri
5、pheral devices such as memories and I/O expanders The cost of connecting the various devices within the system must be minimized A system that performs a control function doesnt require high-speed data transfer Overall efficiency depends on the devices chosen and the nature of the interconnecting bu
6、s structure. To produce a system to satisfy these criteria, a serial bus structure is needed. Although serial buses dont have the throughput capability of parallel buses, they do require less wiring and fewer IC connecting pins. However, a bus is not merely an interconnecting wire, it embodies all t
7、he formats and procedures for communication within the system.Devices communicating with each other on a serial bus must have some form of protocol, which avoids all possibilities of confusion, data loss and blockage of information. Fast devices must be able to communicate with slow devices. The sys
8、tem must not be dependent on the devices connected to it, otherwise modifications or improvements would be impossible. A procedure has also to be devised to decide which device will be in control of the bus and when. And, if different devices with different clock speeds are connected to the bus, the
9、 bus clock source must be defined. All these criteria are involved in the specification of the I2C-bus.3、 THE I2C-BUS CONCEPTThe I2C-bus supports any IC fabrication process (NMOS,CMOS, bipolar). Two wires, serial data (SDA) and serial clock (SCL), carry information between the devices connected to t
10、he bus. Each device is recognized by a unique address (whether its a microcontroller, LCD driver, memory or keyboard interface) and can operate as either a transmitter or receiver, depending on the function of the device. Obviously an LCD driver is only a receiver,whereas a memory can both receive a
11、nd transmit data. In addition to transmitters and receivers, devices can also be considered as masters or slaves when performing data transfers (see Table 1). A master is the device which initiates a data transfer on the bus and generates the clock signals to permit that transfer. At that time, any
12、device addressed is considered a slave. The I2C-bus is a multi-master bus. This means that more than one device capable of controlling the bus can be connected to it. As masters are usually micro-controllers,lets consider the case of a data transfer between twomicrocontrollers connected to the I2C-b
13、us This highlights the master-slave and receiver-transmitter relationships to be found on the I2C-bus. It should be noted that these relationships are not permanent, but only depend on the direction of data transfer at that time. microcontroller A terminates the transfer. Even in this case, the mast
14、er (microcontroller A) generates the timing and terminates the transfer. The possibility of connecting more than one microcontroller to the I2C-bus means that more than one master could try to initiate a data transfer at the same time.To avoid the chaos that might ensue from such an event -an arbitr
15、ation procedure has been developed. This procedure relies on the wired-AND connection of all I2C interfaces to the I2C-bus. If two or more masters try to put information onto the bus,the first to produce a one when the other produces a zero will lose the arbitration. The clock signals during arbitra
16、tion are a synchronized combination of the clocks generated by the masters using the wired-AND connection to the SCL line Generation of clock signals on the I2C-bus is always the responsibility of master devices; each master generates its own clock signals when transferring data on the bus. Bus cloc
17、k signals from a master can only be altered when they are stretched by a slow-slave device holding-down theclock line, or by another master when arbitration occurs.4、 GENERAL CHARACTERISTICS Both SDA and SCL are bi-directional lines, connected to a positive supply voltage via a current-source or pul
18、l-up resistor. When the bus is free, both lines are HIGH. The output stages of devices connected to the bus must have an open-drain or open-collector to perform the wired-AND function. Data on the I2C-bus can be transferred at rates of up to 100 kbit/s in the Standard-mode, up to 400 kbit/s in the F
19、ast-mode, or up to 3.4 Mbit/s in the High-speed mode. The number of interfaces connected to the bus is solely dependent on the bus capacitance limit of 400 pF. For information onHigh-speed mode master devices, see Section 13.5、 BIT TRANSFERDue to the variety of different technology devices (CMOS,NMO
20、S, bipolar) that can be connected to the I2C-bus,the levels of the logical 0 (LOW) and 1 (HIGH) are not fixed and depend on the associated level of VDD. One clock pulse is generated for each data bit transferred.6、 TRANSFERRING DATA6.1、 Byte formatEvery byte put on the SDA line must be 8-bits long.
21、The number of bytes that can be transmitted per transfer is unrestricted. Each byte has to be followed by an acknowledge bit. Data is transferred with the most significant bit (MSB) first. If a slave cant receive or transmit another complete byte of data until it has performed some other function, f
22、or example servicing an internal interrupt, it can hold the clock line SCL LOW to force the master into a wait state. Data transfer then continues when the slave is ready for another byte of data and releases clock line SCL.In some cases, its permitted to use a different format from the I2C-bus form
23、at (for CBUS compatible devices for example). A message which starts with such an address can be terminated by generation of a STOP condition,even during the transmission of a byte. In this case, no acknowledge is generated. 7、 ARBITRATION AND CLOCK GENERATION7.1、 SynchronizationAll masters generate
24、 their own clock on the SCL line to transfer messages on the I2C-bus. Data is only valid during the HIGH period of the clock. A defined lock is therefore needed for the bit-by-bit arbitration procedure to take place.Clock synchronization is performed using the wired-AND connection of I2C interfaces
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- I2C 总线协议简介 毕业论文外文文献翻译 总线 协议 简介 毕业论文 外文 文献 翻译
限制150内