• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » RFID/NFC Forum » TRF7970A I can't receive CRC
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

TRF7970A I can't receive CRC

This question is answered
John Crusoe
Posted by John Crusoe
on Apr 04 2012 04:03 AM
Prodigy120 points

I trying comunication with a tag ISO14443B. I would like to see also the CRC, but I can't receive it, b7 in register 0x01 is 0.

This is my configuration:

Register 0x09 => 0x31

Register 0x01 => 0x0C 00001100 so b7 is 0

Page 59 of datasheet

B7 rx_crc_n CRC Receive selection

0 = RX CRC (CRC is present in the response)
1 = no RX CRC (CRC is not present in the response)

Register 0x00 => 0x21

Trasmission with CRC send 2 byte 0x06 and 0x00. It's a tag ST512

WriteSPI(0x8F);
WriteSPI(0x91);
WriteSPI(0x3D);
WriteSPI(0x00);
WriteSPI(0x20);
WriteSPI(0x06);
WriteSPI(0x00);

WriteSPI(0x5C); // Read register 0x1C FIFO Status
i = ReadSpi();
i is always 1, the byte of selection.

Where is CRC?

Thank you for help

TRF7970A CRC
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Marco
    Posted by Marco
    on Apr 04 2012 05:05 AM
    Expert1420 points

    Hello John,

    the CRC is automatically removed by the TRF.  You can check if the CRC was OK by checking if there was a irq_err1 (CRC, or proto in case of NFC).

    If you want to actually see the CRC, then you will have to set b7 in register 0x01 to 1 (CRC is not present in the response).

    The CRC can be read out of FIFO then, if the NFC Target (or RFID Tag) appended a CRC. In your case there should be   Expected Response Bytes + CRC1 + CRC2 in FIFO then.

    That's the way how I checked the correct calculation of CRC by TRF, and it worked for me (NFC active-active).

    Hope this helps.

    Regards Marco

    TRF7970A CRC
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Marco
    Posted by Marco
    on Apr 04 2012 09:54 AM
    Expert1420 points

    Hello John,

    I have to correct myself:

    This worked for me in NFC 106k mode. I also tried it with NFC 212 and NFC 424. In both cases the CRC is always attached independend from the TX method, and RX without CRC delivers only the payload in both cases (424 and 212).

    I do not know if this helps you for your ISO14443B problem, but I will keep in with this issue, as I am currently analysing the physical layer behaviour of TRF in parallel with the NFC standard.

    Regards Marco

    TRF7970A CRC
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Crusoe
    Posted by John Crusoe
    on Apr 05 2012 06:32 AM
    Prodigy120 points
    Hi Marco, thank you for your reply. I tried with 0x8C in register 0x01 but doesn't work. I don't receive the CRC. I would to see it when there is an error. Marco could you tell me your configuration? Thank you John
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Apr 05 2012 06:50 AM
    Verified Answer
    Verified by John Crusoe
    Expert8800 points

    John -

    You would also please notice that you do not see the SOF or EOF in the response either. This is because the TRF79xx devices check and remove these portions of information to ease your firmware development. (likewise you are not needing to send CRC either for ISO compliant devices)

    attached is a .c file which contains support for the ST tags.

    Initiate, Select, and GetUID

    6330.14443_w_ST_TAG_Support.zip

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Crusoe
    Posted by John Crusoe
    on Apr 06 2012 02:01 AM
    Prodigy120 points
    Thank you Josh for your sample code. Have you sample code for read and write with direct mode 1 ISO14443B? Regards John
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Apr 07 2012 20:17 PM
    Verified Answer
    Verified by John Crusoe
    Expert8800 points

    john -

    no - we don't have anything like this since i have not heard any need for it - maybe someone else has and can contribute this/that here -

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Crusoe
    Posted by John Crusoe
    on Apr 11 2012 11:43 AM
    Prodigy120 points

    Ok thank you Josh. I try to develop to my self. I have source of Stellaris for Mifare DM0, so I hope is useful.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use