This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TRF7970A Write process.

Other Parts Discussed in Thread: MSP430F5529, TRF7970A, MSP-EXP430F5529LP

hello,

we have a customized board where we are using MSP430F5529 with TRF7970A. I want to write data on Type 2 Tag (T2T) but i am not able to. Can anyone please help me with this write process. I mean to ask what all steps do i need to perform in order for successfully writing data onto T2T Cards.

Regards

Puru

  • Puru,

    I believe this is the correct forum for your question.

    Paul
  • hello Josh,
    I read the document and found that for writing something i will be required to first write certain values in ISO_CONTROL_REGISTER and SPECIAL_FUNC_REG. I found these macros defined in trf79x0.h file. so do i have to manually overwrite these values (which are initially 0x01 and 0x10 respectively) or is there any function provided to us for doing this task.

    and aslo what all should i do after i am done with changing values of the registers. I mean like what step next in order should i take.

    will we need T2T_writeNDEF() or NFC_RW_T2T_sendWriteCmd() to accomplish the write process ?

    Regards
    Puru
  • which code base are you (thinking of) modifying? 

  • Hi Josh,

    I am  a newbie in embedded domain so cant understand most of the technical jargon but if by CODE BASE you mean to ask which firmware i am using: TRF7970A_RW_1.02.05  > examples > boards > MSP-EXP430F5529LP > F5529LP_TRF7970A_ALL_NFC_MODES.

    I googled this example code and it seems to work perfectly fine. I also got an application TI NFC TOOL along with it.

    When writing using the application i am able to write it without any hassle, but since we are building our own application that is supposed to communicate with our board so i need to understand how write data to tags ?

    Regards

    Puru

  • this document describes how the whole system is set up and how it works.

    www.ti.com/.../sloa227.pdf

    the API guide is in the documents folder of the project which is installed when you got the project. if you can navigate to where that is, then you will see the API guide.

    on my pc it is (for example) the path is ==> C:\ti\msp430\TRF7970A_RW_1.02.05\doc
  • Hi Puru,

    The application which runs on the example you downloaded is designed to read NDEF messages and send the data over USB to the TI NFC Tool GUI. It also allows the GUI to be used to configure different NFC modes.

    The F5529LP_TRF7970A_ALL_NFC_MODES example by default has all Reader/Writer mode technologies enabled.

    To give you some ideas on how you can customize this example for your application you can do the following:

    • If not using a GUI and only needing a specific mode, modify the NFC_configuration function to only enable the modes you need by default
    • To understand how T2T tags are written using the application state machines, check out the t2t_app.c file under the nfc_gui_statemachines folder
      • This app is designed to handle reading and writing of NDEF messages
      • It also has hooks for sending data over USB - which you can change to send data over UART, or to other parts of your application, etc etc
      • It also will show you the API's used to send commands like Type 2 Writes out so you can understand what NFC stack commands needed to be used in order to write an application for Type 2 Tags.