<?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: PN512 selftest in NFC</title>
    <link>https://community.nxp.com/t5/NFC/PN512-selftest/m-p/807799#M4069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed was my software bug. Read FIFO routine was faulty as didn't correctly set address for next read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2018 10:40:02 GMT</pubDate>
    <dc:creator>slavko_kocjanci</dc:creator>
    <dc:date>2018-07-13T10:40:02Z</dc:date>
    <item>
      <title>PN512 selftest</title>
      <link>https://community.nxp.com/t5/NFC/PN512-selftest/m-p/807798#M4068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello...&lt;BR /&gt;I try to make own reader with PN512 and AtXmega. I assume that board is working, and SPI communication is ok.&lt;BR /&gt;At least if I read some registers from PN512 (CommandReg, CommIRqReg, WaterLevelReg, ModeReg) I got correct values as should be at poweron. Also if I write WaterLevelReg for example and read back I got correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I try to perform selftest I got totally unexpected result.&lt;BR /&gt;Here is 'pseudocode' I execute. What are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//1. Perform a soft reset.&lt;BR /&gt;SpiWrite(CommandReg,SoftReset);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//2. Clear the internal buffer by writing 25 bytes of 00h and perform the Config Command.&lt;BR /&gt;SpiWrite(FIFODataReg,00*25);&lt;BR /&gt;SpiWrite(CommandReg,Configure);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//3. Enable the Selftest by writing the value 09h to the register AutoTestReg.&lt;BR /&gt;SpiWrite(AutoTestReg,0x09);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//4. Write 00h to the FIFO.&lt;BR /&gt;SpiWrite(FIFODataReg,0x00);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//5. Start the Selftest with the CalcCRC Command.&lt;BR /&gt;SpiWrite(CommandReg,CalcCRC);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//6. The Selftest will be performed.&lt;BR /&gt;_delay_ms(1000); //do I need to check bussy? for now just wait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//7. When the Selftest is finished, the FIFO contains the following bytes:&lt;BR /&gt;SpiRead(FIFODataReg,64 bytes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And result is:&lt;BR /&gt;0x00 0x05 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;BR /&gt;0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 12:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN512-selftest/m-p/807798#M4068</guid>
      <dc:creator>slavko_kocjanci</dc:creator>
      <dc:date>2018-07-12T12:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: PN512 selftest</title>
      <link>https://community.nxp.com/t5/NFC/PN512-selftest/m-p/807799#M4069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed was my software bug. Read FIFO routine was faulty as didn't correctly set address for next read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN512-selftest/m-p/807799#M4069</guid>
      <dc:creator>slavko_kocjanci</dc:creator>
      <dc:date>2018-07-13T10:40:02Z</dc:date>
    </item>
  </channel>
</rss>

