<?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>Wireless MCUのトピックRe: Filling I2C command bytes for NTAG 5</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1348766#M12129</link>
    <description>&lt;P&gt;Thank you for using our community to answer your questions, we really appreciate it!&lt;/P&gt;
&lt;P&gt;I believe that there might be a confusion with the functionality of the NTAG 5, this device has 2 separate interfaces, NFC and I2C.&lt;/P&gt;
&lt;P&gt;What you are watching in the Cockpit are the readings from the I2C interface. And the frame from table 115 is for NFC interface.&lt;/P&gt;
&lt;P&gt;In order to use the I2C interface with your MCU, please check section 8.3 from the &lt;A href="https://www.nxp.com/docs/en/data-sheet/NTP53x2.pdf" target="_blank" rel="noopener"&gt;Datasheet&lt;/A&gt;. As mentioned in section 8.3.1, the definition is well explained in&amp;nbsp; &lt;A href="https://www.nxp.com/docs/en/user-guide/UM10204.pdf" target="_blank" rel="noopener"&gt;UM10204&lt;/A&gt;. By following this User Manual, you won't have issues implementing the i2c communication with any MCU.&lt;/P&gt;
&lt;P&gt;There is an &lt;A href="https://www.nxp.com/docs/en/application-note/AN12368.pdf" target="_blank" rel="noopener"&gt;Application Note&lt;/A&gt; that might help you understand the implementation of the I2C although it is an I2C master example from the NTAG 5 side, could it be useful for your project.&lt;/P&gt;
&lt;P&gt;There is also a series of tutorials from &lt;A href="https://www.themobileknowledge.com/training/ntag-5-product-support-package/" target="_blank" rel="noopener"&gt;Mobile Knowledge&lt;/A&gt; that could be useful for getting started in the development of a solution using NTAG 5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information may have been useful!&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 16:16:40 GMT</pubDate>
    <dc:creator>Fabian_R</dc:creator>
    <dc:date>2021-09-30T16:16:40Z</dc:date>
    <item>
      <title>Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1347197#M12121</link>
      <description>&lt;P&gt;I am using the OM2NTP5332 evaluation board which has NTA5332 device on it. Using the LPCXpresso LPC11U37H board and NTAG5_I2C_Cockpit_v1.1 software I am able to read the configuration registers. The following are some of the examples:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="623"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;gt; Reading configuration register I2C_SLAVE_CONFIG:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A8 10 3E P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A9&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;54 00 09 02&lt;/FONT&gt; &lt;FONT color="#008000"&gt;P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;gt; Reading configuration register EHCONFIG:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A8 10 3D P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A9&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;00 00 00 00&lt;/FONT&gt; &lt;FONT color="#008000"&gt;P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;gt; Reading configuration register EDCONFIG:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A8&lt;/FONT&gt; 10 3D &lt;FONT color="#008000"&gt;P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A9&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;00 00 00 00&lt;/FONT&gt; &lt;FONT color="#008000"&gt;P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;gt; Writing configuration register EHCONFIG:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A8 10 3D P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A9&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;00 00 00 00&lt;/FONT&gt; &lt;FONT color="#008000"&gt;P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A8 10 3D 01 00 00 00 P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;gt; Reading configuration register EHCONFIG:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A8 10 3D P&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C&amp;gt;&amp;gt; &lt;FONT color="#008000"&gt;S A9&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;01 00 00 00&lt;/FONT&gt; &lt;FONT color="#008000"&gt;P&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In first case above, it appears that the command being issued is “&lt;FONT color="#008000"&gt;A8 10 3E&lt;/FONT&gt;”, and the reply to that is “&lt;FONT color="#008000"&gt;A9&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;54 00 09 02&lt;/FONT&gt;”. Reading the document “NTP53x2 – NTAG 5 link – NFC Forum-compliant I2C bridge”, I know that “&lt;FONT color="#008000"&gt;10 3E&lt;/FONT&gt;” is the block address over I2C for I2C_SLAVE_CONFIG.&lt;/P&gt;&lt;P&gt;I have the following questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What is “A8” byte in the above sequence – “&lt;FONT color="#008000"&gt;A8 10 3E&lt;/FONT&gt;”?&lt;/LI&gt;&lt;LI&gt;I have a custom board where the NTA5332 is connected over I2C to a Microcontroller which acts as the master on I2C bus. I want to issue the ‘READ CONFIGURATION’ command over I2C from my microcontroller code. How do I fill the byte command stream?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the READ CONFIG request format, as given in Table 115 in the above document is as follows:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Flags&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;READ CONFIG&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Manuf. Code&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;UID&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Block Address&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Number of Blocks&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;CRC16&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="89"&gt;&lt;P&gt;8 bits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;8 bits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;8 bits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;64 bits&lt;/P&gt;&lt;P&gt;(optional)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;8 bits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;8 bits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;16 bits&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only fields I know how to fill are as follows:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Flags&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;READ CONFIG&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Manuf. Code&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;UID&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Block Address&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Number of Blocks&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;CRC16&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="89"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;0xC0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;0x4&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="89"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What byte value do I put in Flags field?&lt;/LI&gt;&lt;LI&gt;Since the UID is optional, can I remove it altogether?&lt;/LI&gt;&lt;LI&gt;Block Address – I think should be “10 3E”, but the room for Block Address is only 8 bits, not 16. What do I do?&lt;/LI&gt;&lt;LI&gt;Does the CRC16 value field contain the calculated value from the byte stream consisting of “Flags, READ CONFIG, Manuf. Code, UID, Block Address and the Number of Blocks?”&lt;/LI&gt;&lt;LI&gt;What formula is used to calculate CRC16?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;From the Cockpit App output above, it appears that the output display is showing only the partial values that it sends over I2C to the NTAG board. Is there a way to see the full stream for a single command, e.g., READ CONFIGURATION?&lt;/LI&gt;&lt;LI&gt;Could you give me a complete example of &amp;nbsp;READ CONFIGURATION or any other command in terms of what values are filled in which field? This would be the command being sent over I2C to the NTA5332 slave device.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you in advance for your answers!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 03:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1347197#M12121</guid>
      <dc:creator>PK2021</dc:creator>
      <dc:date>2021-09-28T03:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1348766#M12129</link>
      <description>&lt;P&gt;Thank you for using our community to answer your questions, we really appreciate it!&lt;/P&gt;
&lt;P&gt;I believe that there might be a confusion with the functionality of the NTAG 5, this device has 2 separate interfaces, NFC and I2C.&lt;/P&gt;
&lt;P&gt;What you are watching in the Cockpit are the readings from the I2C interface. And the frame from table 115 is for NFC interface.&lt;/P&gt;
&lt;P&gt;In order to use the I2C interface with your MCU, please check section 8.3 from the &lt;A href="https://www.nxp.com/docs/en/data-sheet/NTP53x2.pdf" target="_blank" rel="noopener"&gt;Datasheet&lt;/A&gt;. As mentioned in section 8.3.1, the definition is well explained in&amp;nbsp; &lt;A href="https://www.nxp.com/docs/en/user-guide/UM10204.pdf" target="_blank" rel="noopener"&gt;UM10204&lt;/A&gt;. By following this User Manual, you won't have issues implementing the i2c communication with any MCU.&lt;/P&gt;
&lt;P&gt;There is an &lt;A href="https://www.nxp.com/docs/en/application-note/AN12368.pdf" target="_blank" rel="noopener"&gt;Application Note&lt;/A&gt; that might help you understand the implementation of the I2C although it is an I2C master example from the NTAG 5 side, could it be useful for your project.&lt;/P&gt;
&lt;P&gt;There is also a series of tutorials from &lt;A href="https://www.themobileknowledge.com/training/ntag-5-product-support-package/" target="_blank" rel="noopener"&gt;Mobile Knowledge&lt;/A&gt; that could be useful for getting started in the development of a solution using NTAG 5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information may have been useful!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:16:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1348766#M12129</guid>
      <dc:creator>Fabian_R</dc:creator>
      <dc:date>2021-09-30T16:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1349382#M12138</link>
      <description>&lt;P&gt;Thanks for clearing my confusion between I2C and NFC and for sending the links to other useful information.&lt;/P&gt;&lt;P&gt;However, I am still not clear about my question 1.&amp;nbsp; What is “A8” byte in the above sequence – “&lt;FONT color="#008000"&gt;A8 10 3E&lt;/FONT&gt;”?&lt;/P&gt;&lt;P&gt;Hoping for a fast reply. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 02:13:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1349382#M12138</guid>
      <dc:creator>PK2021</dc:creator>
      <dc:date>2021-10-01T02:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1350208#M12145</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Please take a look at Figure 22. of &lt;A href="https://www.nxp.com/docs/en/user-guide/UM11406.pdf" target="_blank"&gt;UM11406&lt;/A&gt;, where a Log window is shown. A8 changes to A9 because as mentioned earlier, it is a 7-bit I2C address that changes its last bit to 1 or 0 depending on if the instruction sent by I2C is for Read or Write.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Please check &lt;A href="https://www.nxp.com/docs/en/user-guide/UM10204.pdf" target="_blank"&gt;UM10204&lt;/A&gt;&amp;nbsp;for the full explanation about this matter.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 16:47:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1350208#M12145</guid>
      <dc:creator>Fabian_R</dc:creator>
      <dc:date>2021-10-04T16:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1350223#M12146</link>
      <description>&lt;P&gt;That's what I am confused about! "A8h" in binary is "1010 1000", which clearly occupies 8 bits. So, what is this number representing in this sequence?&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 17:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1350223#M12146</guid>
      <dc:creator>PK2021</dc:creator>
      <dc:date>2021-10-04T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1354451#M12169</link>
      <description>&lt;P&gt;I hope you are doing fine, as you say A8 in binary is&amp;nbsp;&lt;SPAN&gt;1010 1000, in the I2C protocol is mentioned that the 8 bit will indicate if either the frame is a read or a write command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The last bit in&amp;nbsp;1010 100[0] indicates write, if the sequence is&amp;nbsp;1010 100[1] this indicates read. This is why you are watching it change from A8 to A9 depending on the command type in the log.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 21:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1354451#M12169</guid>
      <dc:creator>Fabian_R</dc:creator>
      <dc:date>2021-10-12T21:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filling I2C command bytes for NTAG 5</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1746003#M15828</link>
      <description>&lt;P&gt;so the slave address register for ntag 5 om2ntp5332 is A8/9 or the default 0x00&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Filling-I2C-command-bytes-for-NTAG-5/m-p/1746003#M15828</guid>
      <dc:creator>kkla203</dc:creator>
      <dc:date>2023-10-25T15:03:59Z</dc:date>
    </item>
  </channel>
</rss>

