<?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: Transmit data from SMARTCARD0 interface, I/O in open-drain? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030996#M40131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check below image, 20 Kohm resistors are recommended. For push-pull output you can change OD bit in IOCON registers. Here you will change pen-drain output or push-pull output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97154iA96AC98B324FC1FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the level translator, I am not expert in this matter so I recommend you to create a different question with a detail description in the community space below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/space/2021"&gt;Other NXP Products&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2020 17:09:27 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2020-01-21T17:09:27Z</dc:date>
    <item>
      <title>Transmit data from SMARTCARD0 interface, I/O in open-drain?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030995#M40130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am realising ISO7816-3 SmartCard interface with level translator. I am using MCU LPC54608 and TXB0104 as level translator. Power level on smart card - 3.0V (Class B), voltage level on MCU - 3.3V. In future also need support Class A (5.0V) and Class C (1.8V). In MCU side I/O pin have pull-up resistor 100k, in SmartCard side pull-up 100k too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I correct receive ATR, oscillograme of it (clock frequency 2MHz):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Receive_ATR_First_Byte.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96866i09604143CAE2446D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Receive_ATR_First_Byte.png" alt="Receive_ATR_First_Byte.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, if I try to send data to interface, I see this (data byte 0xAA):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Transmit_With_SC_Enable_Bit.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96867iF64A712D3A30A643/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transmit_With_SC_Enable_Bit.png" alt="Transmit_With_SC_Enable_Bit.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I see, that data transmited, but translator switch from 1 to 0 and locked in this state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I didn't setup "Smart Card Interface Enable" bit in SCICTRL register, I have this oscillograme:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Transmit_Without_SC_Enable_Bit.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96891i20FB955C6A2D5608/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transmit_Without_SC_Enable_Bit.png" alt="Transmit_Without_SC_Enable_Bit.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thus levels sets ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in experiments with SC0IO pin (P0.20) in GPIO-mode, I made a state transition table:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Switch Pin State L to Pin State H, then real bus level H.&lt;/LI&gt;&lt;LI&gt;Switch Pin State H to Pin State L, then real bus level L.&lt;/LI&gt;&lt;LI&gt;Switch Pin State Z to Pin State L, then real bus level L.&lt;/LI&gt;&lt;LI&gt;Switch Pin State Z to Pin State H, then real bus level H.&lt;/LI&gt;&lt;LI&gt;Switch Pin State L to Pin State Z, then real bus level L. &lt;EM&gt;&lt;STRONG&gt;No switching! Because translator so work.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Switch Pin State H to Pin State Z, then real bus level H.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I conclude, that SC0IO in SmartCard mode work as Open-Drain. But open-drain pins (and L-Z pin-switching) - features of I2C or iButton interfaces, in ISO7816-3 this did not use!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without TXB0104 and speed setup TA=0x96 (clock frequency 5MHz, etu value is 16) and pull up 100k, I have this oscillograme on transmit:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WorkSpeedPullUp100k.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96933i9D1DA31E2483A410/image-size/large?v=v2&amp;amp;px=999" role="button" title="WorkSpeedPullUp100k.png" alt="WorkSpeedPullUp100k.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This confirms, that IO pin work in Open-Drain mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How I can use SMARTCARD interface in push-pull mode?&lt;/LI&gt;&lt;LI&gt;Chapter 31.5.11 of UM10912 recommended push-up resistor on I/O pin. What value should be this resistor for big baudrates (TA=0x96 or TA=0x97, i.e. ~300bps and 600bsp) on smartcard bus?&lt;/LI&gt;&lt;LI&gt;What the level translator recommended by NXP?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SmartCard interface initialization example in attach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2020 15:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030995#M40130</guid>
      <dc:creator>kovalenkoi</dc:creator>
      <dc:date>2020-01-17T15:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transmit data from SMARTCARD0 interface, I/O in open-drain?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030996#M40131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check below image, 20 Kohm resistors are recommended. For push-pull output you can change OD bit in IOCON registers. Here you will change pen-drain output or push-pull output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97154iA96AC98B324FC1FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the level translator, I am not expert in this matter so I recommend you to create a different question with a detail description in the community space below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/space/2021"&gt;Other NXP Products&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 17:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030996#M40131</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-01-21T17:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transmit data from SMARTCARD0 interface, I/O in open-drain?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030997#M40132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code:&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;// Program IOCON register to select the SCIn_IO function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; IOCON_PinMuxSet(IOCON, PORT_NUM__SMART_CARD_IO, PIN_NUM__SMART_CARD_IO,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; IOCON_FUNC5 | /* Pin is configured as SCI0_IO */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_MODE_INACT | /* No addition pin function */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_DIGITAL_EN | /* Enables digital function */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_INPFILT_OFF | /* Input filter disabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace; "&gt; &lt;SPAN style="font-weight: 400;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;IOCON_OPENDRAIN_EN /* TEST TEST TEST */&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;); /* I/O as SCIO */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and this:&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;// Program IOCON register to select the SCIn_IO function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; IOCON_PinMuxSet(IOCON, PORT_NUM__SMART_CARD_IO, PIN_NUM__SMART_CARD_IO,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_FUNC5 | /* Pin is configured as SCI0_IO */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_MODE_INACT | /* No addition pin function */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_DIGITAL_EN | /* Enables digital function */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;IOCON_INPFILT_OFF | /* Input filter disabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;); /* I/O as SCIO */&lt;/SPAN&gt;&lt;BR /&gt;no effect, in SC-interface mode always Open-Drain mode! As I understand, in IOCON-mode FUNC5, OD-bit didn't actual .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In You picture 20k pull-up sets on SCLK. My question about SCIO-line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030997#M40132</guid>
      <dc:creator>kovalenkoi</dc:creator>
      <dc:date>2020-01-22T10:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transmit data from SMARTCARD0 interface, I/O in open-drain?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030998#M40133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If compare documentation on LPC11U and LPC54xxx familys, then we can see:&lt;span class="lia-inline-image-display-wrapper" image-alt="Compare docs.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98787iC6FC0A08FE538CD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Compare docs.png" alt="Compare docs.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We see, that in LPC11Uxx&amp;nbsp;SCIO pin (USART TXD) work as open-drain. In LPC54xxx this information didn't present. But my issue show that in LPC54xxx&amp;nbsp;SCIO work as open-drain too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fact very important for choosing level translator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 09:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Transmit-data-from-SMARTCARD0-interface-I-O-in-open-drain/m-p/1030998#M40133</guid>
      <dc:creator>kovalenkoi</dc:creator>
      <dc:date>2020-01-24T09:36:40Z</dc:date>
    </item>
  </channel>
</rss>

