<?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: UART smart card mode in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834807#M33317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Kerry, but&amp;nbsp;unfortunately this formula is invalid in case of smart card mode.I've already slove this problem (there are some mistakes in anither part of firmware). Maybe it should be usefull to know: when we speak about smart card the 16 in divider in this formula shlould be changed to Fi/Di (ISO7816-3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2018 07:22:14 GMT</pubDate>
    <dc:creator>rudomanenko</dc:creator>
    <dc:date>2018-11-21T07:22:14Z</dc:date>
    <item>
      <title>UART smart card mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834805#M33315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I'm try to implement connection between LPC11u12 and smart card via UART. To provide the right clock to the smart card I should to fill UART DLL and DLM registers this way:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;uint32_t divider &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; sys_clk &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scale&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; baudrate&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

LPC_USART&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;DLM &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;divider &lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
LPC_USART&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;DLL &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; divider &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is work correctly. But (scale/2)/baudrate it is a card clock and initialy equal to 3.57MHz. When I change this equation to value in Hz, it doesnt work. It is stgange, bacause value of divider with equation and value are absolutely the same! Where is a mistake??&lt;BR /&gt;&lt;BR /&gt;P.S. I saw the LPC example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 09:43:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834805#M33315</guid>
      <dc:creator>rudomanenko</dc:creator>
      <dc:date>2018-11-14T09:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: UART smart card mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834806#M33316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anton Rudomanenko,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It seems your baudrate calculate code have the problem, please refer to the user manual, this baud rate calculation formula:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78156i395AEAC256702D61/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To get your DivAddval, MulVal, DLM, DLL.&lt;/P&gt;&lt;P&gt;Then test it again.&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 03:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834806#M33316</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-11-21T03:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: UART smart card mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834807#M33317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Kerry, but&amp;nbsp;unfortunately this formula is invalid in case of smart card mode.I've already slove this problem (there are some mistakes in anither part of firmware). Maybe it should be usefull to know: when we speak about smart card the 16 in divider in this formula shlould be changed to Fi/Di (ISO7816-3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 07:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834807#M33317</guid>
      <dc:creator>rudomanenko</dc:creator>
      <dc:date>2018-11-21T07:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: UART smart card mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834808#M33318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your updated valuable information.&lt;/P&gt;&lt;P&gt;Yes, maybe the user manual really also need to add the according formula for smart card.&lt;/P&gt;&lt;P&gt;Anyway, thanks a lot for your information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:11:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-smart-card-mode/m-p/834808#M33318</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-11-21T10:11:56Z</dc:date>
    </item>
  </channel>
</rss>

