2022年2022年逻辑电平转换 2.pdf
《2022年2022年逻辑电平转换 2.pdf》由会员分享,可在线阅读,更多相关《2022年2022年逻辑电平转换 2.pdf(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Maxim App Notes MICROCONTROLLERSKeywords: logic-level translation, MAX1840, MAX1841, MAX3001, MAX3370-MAX3393, MAX8860, MAX8867Jul 21, 2004 APPLICATION NOTE 3007Logic-Level TranslationAbstract: Logic level translation techniques and pitfalls - and Maxim solutions. Electronic design has changed consi
2、derably since the days when TTL and 5V CMOS were the dominant standards for logic circuits. The increasing complexity of modern electronic systems has led to lower voltage logic, which in turn can cause incompatibility between input and output levels for the logic families within a system. It is not
3、 unusual, for example, that a digital section operating at 1.8V must communicate with an analog subsection operating at 3.3V. This article examines the basics of logic operation and considers, primarily for serial-data systems, the available methods for translating between different domains of logic
4、 voltage.The Need for Logic-Level TranslationThe growth of digital ICs that feature incompatible voltage rails, lower VDD rails, or dual rails for VCORE and VI/Ohas made the translation of logic levels necessary. The use of mixed-signal ICs with lower supply voltages that have not kept pace with tho
5、se of their digital counterparts also creates the need for logic-level translation. Translation methods vary according to the range of voltages encountered, the number of lines to be translated (e.g., a 4-line Serial Peripheral Interface (SPI?) versus a 32-bit data bus), and the speed of the digital
6、 signals. Many logic ICs can translate from high to low levels (such as 5V to 3.3V logic), but fewer can translate from low to high (3.3V to 5V). Level translation can be accomplished with single discrete transistors or even with a resistor-diode combination, but the parasitic capacitance inherent i
7、n these methods can reduce the data-transfer rate. Although byte-wide and word-wide level translators are available, they are not optimal for the 20Mbps serial buses discussed in this article (SPI, I2C, USB, etc.). Thus, translators that require large packages with high pin counts and an I/O-directi
8、on pin are not meant for small serial and peripheral interfaces. The Serial Peripheral Interface consists of the unidirectional control lines data in, data out, clock, and chip select. Data in and data out are also known as master in, slave out (MISO) and master out, slave in (MOSI). SPI can be cloc
9、ked in excess of 20Mbps, and is driven by CMOS push-pull logic. As SPI is unidirectional, translation in both directions on the same signal line is unnecessary. This makes level translation simpler, because you can employ simple techniques involving resistors and diodes (Figure 1) or discrete/digita
10、l transistors (Figure 2). Page 1 of 9名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 9 页 - - - - - - - - - Figure 1. A resistor-diode topology is one alternative technique to translation in both directions on the same signal line.Figure 2. Using discrete/digital
11、 transistors is another alternative to bidirectional translation.The I2C, SMBus?, and 1-Wire?, interfaces are all bidirectional, open-drain I/O topologies. I2C has three speed ranges: standard mode at 100kbps, fast mode at 400kbps, and high-speed mode at 3.4Mbps. Level translation for bidirectional
12、buses is more difficult, because one must translate in both directions on the same data line. Simple topologies based on resistor-diode and single-stage-transistor translators with open collector or drain do not work because they are inherently unidirectional. Unidirectional High- to Low-Level Trans
13、lation Input Overvoltage ToleranceTo translate from higher to lower logic levels, IC manufacturers produce a range of devices that are said to tolerate overvoltage at their inputs. A logic device is defined as input-overvoltage protected if it can withstand (without damage) an input voltage higher t
14、han its supply voltage. Such input-protected devices simplify the task of translating from higher- to lower-VCC logic while increasing the signal-to-noise margin. Page 2 of 9名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 9 页 - - - - - - - - - Overvoltage-tolera
15、nt inputs, for example, allow a logic device to cope with logic levels of 1.8V and higher while powered from a 1.8V supply. Devices in the LVC logic family, which are mostly input-overvoltage protected, work well in applications requiring high-to-low translations. The opposite situation of low-to-hi
16、gh translation is not as easy. It may not be feasible to generate higher voltage logic-level thresholds (VIH) from lower voltage logic. When designing a circuit for which connectors, high fanout, or stray load capacitance produce a high capacitance load, you should remember that for all logic famili
17、es, reducing the supply voltage also decreases the drive capability. An exception occurs between 3.3V CMOS or TTL (LV, LVT, ALVT, LVC, and ALVC) and 5V standard TTL (H, L, S, HS, LS, and ALS). In these logic families, the 3.3V and 5V logic activation points (VOL, VIL, VIH, and VOH) match each other.
18、 Mixed High-Low and Low-High TranslationApplications like the SPI bus require a mixture of high-low and low-high translation. Consider, for example, a processor at 1.8V and a peripheral at 3.3V. Though it is possible to mix techniques as described above, a single chip such as the MAX1840, MAX1841, o
19、r MAX3390 can implement the necessary translation by itself (Figure 3). Figure 3. This diagram shows an example of an IC level translator with an SPI/QSPI?/MICROWIRE? interface that can implement the necessary mixture of high-low and low-high translation.Other systems, such as I2C and 1-Wire buses,
20、require logic translation in both directions. Simple topologies, based on a single transistor with open collector or drain, do not work in a bidirectional bus because they are inherently unidirectional. Page 3 of 9名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共
21、9 页 - - - - - - - - - Bidirectional Transceiver MethodsFor the larger byte- and word-wide buses where WR and RD signals already exist, one method for transferring data across the voltage levels is a bus switch such as the 74CBTB3384. Such devices are typically optimized for operation between 3.3V an
22、d 5V. For smaller 1- and 2-wire buses, this approach raises two issues. Firstly, it requires a separate enable pin to control the direction of data flow, and this ties up valuable port pins. Secondly, it requires large ICs that take up valuable board space. All techniques have their pros and cons. N
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年2022年逻辑电平转换 2022 逻辑 电平 转换
限制150内