<?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: Issue in reading RFID Card's through MFRC630 in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Issue-in-reading-RFID-Card-s-through-MFRC630/m-p/1403583#M4961</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Santosh P&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the device gets stuck, I would suggest you dump the status register to check the reason.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_1-1642949706474.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168563iE70AA6F15A6C9801/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielchen_1-1642949706474.png" alt="danielchen_1-1642949706474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jan 2022 14:55:47 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2022-01-23T14:55:47Z</dc:date>
    <item>
      <title>Issue in reading RFID Card's through MFRC630</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Issue-in-reading-RFID-Card-s-through-MFRC630/m-p/1394835#M4938</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;We have designed Low Power RFID based device where we are using MFRC630 Plus reader chip,with Mifare 1K classic card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; MFRC630WRITEREG(MFRC630REGCOMMAND, MFRC630CMDIDLE);
//mfrc630_AN1102_recommended_registers_no_transmitter(MFRC630PROTOISO14443A106MILLERMANCHESTER);
    
	MFRC630FLUSHGIFO();

    // Set register such that we sent 7 bits, set DataEn such that we can send data.
    MFRC630WRITEREG(MFRC630REGTXDATANUM, 7 | MFRC630TXDATANUMDATAEN);

    // disable the CRC registers.
    MFRC630WRITEREG(MFRC630REGTXCRCPRESET, MFRC630RECOM14443ACRC | MFRC630CRCOFF);
    MFRC630WRITEREG(MFRC630REGRXCRCCON, MFRC630RECOM14443ACRC | MFRC630CRCOFF);

    MFRC630WRITEREG(MFRC630REGRXBITCTRL, 0); //Receiver control register

    // ready the request.
    uint8_t SENDREQ[] = {instruction};

    // clear interrupts
    MFRC630CLEARIRQ0();
    MFRC630CLEARIRQ1();

    // enable the global IRQ for Rx done and Errors.
    MFRC630WRITEREG(MFRC630REGRQ0EN, MFRC630IRQ0ENRXIRQEN | MFRC630IRQ0ENERRIRQEN );
    MFRC630WRITEREG(MFRC630REGIRQ1EN, MFRC630IRQ1ENTIMER0IRQEN );  // only trigger on timer for irq1

    // configure a timeout timer.
    uint8_t TIMERFORTIMEOUT = 0;

    // Set timer to 221 kHz clock, start at the end of Tx.
    mfrc630_timer_set_control(TIMERFORTIMEOUT, MFRC630_TCONTROLCLK211KHZ | MFRC630TCONTROLSTARTTXEND);
    // Frame waiting time: FWT = (256 x 16/fc) x 2 FWI
    // FWI defaults to four... so that would mean wait for a maximum of ~ 5ms

    MFRC630TIMERSETRELOAD(TIMERFORTIMEOUT, 10000);  // 1000 ticks of 5 usec is 5 ms.
    MFRC630TIMERSETVALUE(TIMERFORTIMEOUT, 10000);

    // Go into send, then straight after in receive.
    MFRC630CMDTRANSCEIVE(send_req, 1);
    // CommunicationUARTSend("Sending REQA\n",13);

    // block until we are done
    uint8_t IRQ1VALUE = 0;
    while (!(IRQ1VALUE &amp;amp; (1 &amp;lt;&amp;lt; TIMERFORTIMEOUT)))
    {
        IRQ1VALUE = mfrc630_irq1();
        if (IRQ1VALUE &amp;amp; MFRC630IRQ1GLOBALIRQ)
        {
            // either ERR_IRQ or RX_IRQ
            // stop polling irq1 and quit the timeout loop.
            break;
        }
    }
    // CommunicationUARTSend("\nAfter waiting for answer",25);
    MFRC630CMDIDLE();

    // if no Rx IRQ, or if there's an error somehow, return 0
    uint8_t irq0 = MFRC630IRQ0();
    if ((!(irq0 &amp;amp; MFRC630IRQ0RXIRQ)) || (irq0 &amp;amp; MFRC630_IRQ0_ERR_IRQ))
    {
//        sprintf((char *)PrintBuffer,"\nNo RX, irq1: %x irq0: %x ", irq1_value, irq0);
        // CommunicationUARTSend(PrintBuffer, 26);
        return 0;
    }

    uint8_t RXLEN = mfrc630_fifo_length();
    uint16_t res;
//    sprintf((char *)PrintBuffer,"\nrx_len: %d", RXLEN);
    // CommunicationUARTSend(PrintBuffer, 11);
    if (RXLEN == 2)
    {
        // ATQA should answer with 2 bytes.
        MFRC630READFIFO((uint8_t*) &amp;amp;res, RXLEN);
        // CommunicationUARTSend("ATQA answer: ",13);
        MFRC630PRINTBLOCK((uint8_t*) &amp;amp;res, 2);
        // CommunicationUARTSend("\n",1);
        return res;
    }
    return 0;

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading version register of the RFID Chip we are understand this is MFRC63002 chip as per data sheet, also we have read Mifare 1K classic card.&lt;/P&gt;&lt;P&gt;After trying authentication say after 2-3 min MFRC630 doesn't detect any card, we can say it gets stuck, hence need to restart.&lt;/P&gt;&lt;P&gt;we are not able to understand where we are going wrong please find below code.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Santosh P&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 13:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Issue-in-reading-RFID-Card-s-through-MFRC630/m-p/1394835#M4938</guid>
      <dc:creator>santosh2</dc:creator>
      <dc:date>2022-01-05T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in reading RFID Card's through MFRC630</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Issue-in-reading-RFID-Card-s-through-MFRC630/m-p/1403583#M4961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Santosh P&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the device gets stuck, I would suggest you dump the status register to check the reason.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_1-1642949706474.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168563iE70AA6F15A6C9801/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielchen_1-1642949706474.png" alt="danielchen_1-1642949706474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2022 14:55:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Issue-in-reading-RFID-Card-s-through-MFRC630/m-p/1403583#M4961</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2022-01-23T14:55:47Z</dc:date>
    </item>
  </channel>
</rss>

