<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best way to interface TTL and CMOS levels to processor with VDD=5V? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Best-way-to-interface-TTL-and-CMOS-levels-to-processor-with-VDD/m-p/274768#M20197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your switching speed requirement, there may be simpler methods of achieving CMOS to CMOS interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 3.3 volt output to 5 volt input, a series diode can be fitted between the two pins, with output to cathode.&amp;nbsp; This is in conjunction with enabling the input pullup, or possibly using a lower value external pullup resistor, for greater speed.&amp;nbsp; The diode would remain conducting during both low and high logic states, and would increase both low and high logic levels by about 0.7 volts.&amp;nbsp; So 0 -&amp;gt; 3.3 volts at the CMOS output would translate to 0.7 -&amp;gt; 4.0 volts at the input pin, which should provide satisfactory switching for a Vdd of 5 volts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 5 volt output to 3.3 volts input, exactly the same series diode method could be used.&amp;nbsp; In this case, the diode would conduct only during the logic low state.&amp;nbsp; Here, the diode will prevent a voltage in excess of 3.3 volts reaching the input pin.&amp;nbsp; Another method would be the use of a simple resistive voltage divider (with input pullup disabled), to reduce the voltage swing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the series diode method, the speed limitation is because the input pin is not actively driven to the high state when the diode is non-conducting, and the transition period will depend on the RC time constant caused by the pin input capacitance and the pullup resistor.&amp;nbsp; Should a substantially faster transition be needed, the provision of an actively driven input would then require the use of a separate buffer device.&amp;nbsp; A buffer from the 74HCT CMOS family (with 5 volt Vdd}, can provide inputs that are compatible with a 3.3 volt output swing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, before including additional interface circuitry, check to see whether the input to a 5 volt peripheral is directly compatible with a 3.3 volt MCU output.&amp;nbsp; For example, this is true of some LCD displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a "true" TTL output connected to an input of a 5 volt MCU, use an additional 4k7 pullup resistor.&amp;nbsp; This should raise the TTL output voltage to a sufficient degree.&amp;nbsp; With a 3.3 volt MCU, the TTL levels should be compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 16:41:41 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2013-06-05T16:41:41Z</dc:date>
    <item>
      <title>Best way to interface TTL and CMOS levels to processor with VDD=5V?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Best-way-to-interface-TTL-and-CMOS-levels-to-processor-with-VDD/m-p/274767#M20196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am busy interfacing things to the inputs of a microcontroller.&lt;BR /&gt;If I look at the datasheet for the So8DZ128, in the Appendix A, Electrical Characteristics, DC Characteristics, I find the following:&lt;/P&gt;&lt;P&gt;Input high voltage; all digital inputs,&lt;BR /&gt;VIH (input high) for 5V = 0.65 x VDD&lt;/P&gt;&lt;P&gt;VIH (input high) for 3V = 0.7 x VDD&lt;/P&gt;&lt;P&gt;So I interpret this for a 5V supply that the input must be at least 3.25V to register as a logic 1.&lt;/P&gt;&lt;P&gt;Therefore all TTL or 3.3V CMOS devices (Vout high = 2.4V) will need a level-shifter before connecting to the input of the CPU.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using a Schmitt trigger/buffer to do this (NC7WZ17). The buffer is connected to a supply of 5V.&lt;/P&gt;&lt;P&gt;(And for the reverse direction the same buffer is used, connected to 3.3V)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that the inputs of the microcontroller have a pull-up resistor that can be enabled via software, but I do not think this is of much help in this case, only if you connect the controller input to something that is floating (high impedance).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the necessary and correct/best/easiest way to do level shifting ? (and correct me if I am wrong).&lt;BR /&gt;What cheap/commonly available integrated circuits do you use to do TTL/CMOS level-shifting for your microcontroller application ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 06:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Best-way-to-interface-TTL-and-CMOS-levels-to-processor-with-VDD/m-p/274767#M20196</guid>
      <dc:creator>infrared</dc:creator>
      <dc:date>2013-06-05T06:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to interface TTL and CMOS levels to processor with VDD=5V?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Best-way-to-interface-TTL-and-CMOS-levels-to-processor-with-VDD/m-p/274768#M20197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your switching speed requirement, there may be simpler methods of achieving CMOS to CMOS interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 3.3 volt output to 5 volt input, a series diode can be fitted between the two pins, with output to cathode.&amp;nbsp; This is in conjunction with enabling the input pullup, or possibly using a lower value external pullup resistor, for greater speed.&amp;nbsp; The diode would remain conducting during both low and high logic states, and would increase both low and high logic levels by about 0.7 volts.&amp;nbsp; So 0 -&amp;gt; 3.3 volts at the CMOS output would translate to 0.7 -&amp;gt; 4.0 volts at the input pin, which should provide satisfactory switching for a Vdd of 5 volts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 5 volt output to 3.3 volts input, exactly the same series diode method could be used.&amp;nbsp; In this case, the diode would conduct only during the logic low state.&amp;nbsp; Here, the diode will prevent a voltage in excess of 3.3 volts reaching the input pin.&amp;nbsp; Another method would be the use of a simple resistive voltage divider (with input pullup disabled), to reduce the voltage swing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the series diode method, the speed limitation is because the input pin is not actively driven to the high state when the diode is non-conducting, and the transition period will depend on the RC time constant caused by the pin input capacitance and the pullup resistor.&amp;nbsp; Should a substantially faster transition be needed, the provision of an actively driven input would then require the use of a separate buffer device.&amp;nbsp; A buffer from the 74HCT CMOS family (with 5 volt Vdd}, can provide inputs that are compatible with a 3.3 volt output swing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, before including additional interface circuitry, check to see whether the input to a 5 volt peripheral is directly compatible with a 3.3 volt MCU output.&amp;nbsp; For example, this is true of some LCD displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a "true" TTL output connected to an input of a 5 volt MCU, use an additional 4k7 pullup resistor.&amp;nbsp; This should raise the TTL output voltage to a sufficient degree.&amp;nbsp; With a 3.3 volt MCU, the TTL levels should be compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 16:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Best-way-to-interface-TTL-and-CMOS-levels-to-processor-with-VDD/m-p/274768#M20197</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-06-05T16:41:41Z</dc:date>
    </item>
  </channel>
</rss>

