Transcription of RF430FRL152H NFC Sensor Tag Application …
1 Application Report SLOA233 October 2016. RF430 FRL152H NFC Sensor Tag Application Example With MSP430 Microcontrollers Ralph Jacobi .. Safety and Security (S2) NFC/RFID applications ABSTRACT. Analog and digital sensors coupled together with wireless technology is an expanding use case across many different areas of growing technology such as diagnostics, data logging, and medical. Near Field Communication (NFC) technology has emerged as a viable option for many of those applications that can benefit from utilizing a contactless short-range wireless solution. texas instruments offers the RF430 FRL15xH family of dynamic NFC Sensor transponders that allow multiple analog and digital sensors to be interfaced to a single chip that can read Sensor data and then transmit it over the air using NFC communication. The RF430 FRL15xH devices use the ISO/IEC 15693. protocol for over-the-air communication, has a 14-bit sigma-delta ADC, and an I2C or SPI data bus.
2 This Application report describes how to use an MSP430FR4133 16-bit FRAM microcontroller and a TRF7970A NFC transceiver to read data from the RF430 FRL152H Sensor patch. The Application report also includes a brief description of how to use TI's MSP-IQMATHLIB to calculate the temperature read by the thermistor while minimizing software overhead and power consumption. The sample code that is described in this document can be downloaded from Contents 1 Introduction .. 2. 2 Out of the Box 3. 3 RF430 FRL152H NFC ISO/IEC 15693 Sensor Transponder .. 4. 4 ISO/IEC 15693 Standard .. 6. 5 TRF7970A NFC Transceiver .. 9. 6 MSP430 IQmathLib .. 10. 7 Hardware Description .. 11. 8 RF430 FRL152H Reader Firmware Example .. 12. 9 Conclusion .. 17. 10 References .. 17. List of Figures 1 RF430 FRL152H Sensor Tag and MSP430FR4133 Reader .. 2. 2 Additional LCD Display Features .. 4. 3 Block Diagram for RF430 FRL152 Sensor Tag .. 6.
3 4 ISO/IEC 15693 Anticollision Flowchart .. 8. 5 Flowchart .. 12. 6 Hardware Initialization 13. 7 Search for RF430 FRL152H Tag Flowchart .. 15. Code Composer Studio, BoosterPack, LaunchPad, MSP430 are trademarks of texas instruments . All other trademarks are the property of their respective owners. SLOA233 October 2016 RF430 FRL152H NFC Sensor Tag Application Example With MSP430 1. Submit Documentation Feedback Microcontrollers Copyright 2016, texas instruments Incorporated Introduction 1 Introduction The RF430 FRL15xH series of devices is a good fit for applications where sensors are used and benefit from having a wireless interface. The RF430 FRL15xH uses NFC/RFID communication to transmit data wirelessly over short distances (typical range is 1 to 5 cm). The RF430 FRL15xH can be powered by an RF field to allow for battery-less applications that use one or more sensors. This document describes the fundamental features of the RF430 FRL15xH parts and the basics of the NFC/RFID communication that they support.
4 To receive Sensor data from a tag using the RF430 FRL152H, an NFC reader supporting ISO/IEC 15693. must be used. Additionally, depending on the Sensor , calculations may be required to convert the raw values into practical data. Therefore, this document also discusses methods that can be implemented to achieve this functionality with minimal MCU resources. The firmware example included with this Application report is designed to implement these concepts to read Sensor data from the RF430-TMPSNS-EVM (see Figure 1). The RF430-TMPSNS-EVM evaluation board and design files can be found at Figure 1. RF430 FRL152H Sensor Tag and MSP430FR4133 Reader 2 RF430 FRL152H NFC Sensor Tag Application Example With MSP430 SLOA233 October 2016. Microcontrollers Submit Documentation Feedback Copyright 2016, texas instruments Incorporated Out of the Box Experience 2 Out of the Box Experience This section describes the steps required to program and use the MSP-EXP430FR4133 and DLP 7970 ABP to read the data from an RF430-TMPSNS-EVM.
5 Before following these steps, make sure to extract the contents of the from Section 1 and make sure that either Uniflash or newer, or Code Composer Studio IDE is installed on the PC. If neither are installed, Uniflash is recommended for simple flash programming. Using Uniflash 1. Connect the DLP-7970 ABP BoosterPack plug-in module to the MSP430FR4133 LaunchPad . development kit. 2. Connect a USB cable from the PC to the LaunchPad development kit. 3. Open Uniflash or newer. 4. Go to File New Configuration. 5. Select Connection = TI MSP430 USB1 and Board or Device = MSP430FR4133. (a) Apply Firmware Update for Emulator if prompted. 6. Go to Program Load Program Browse. 7. Select the .out file found at [Install Path]\TRF7970 ABP_FR4133_FRL_Reader\Debug. 8. Click OK and wait for the program to finish loading. 9. Reset the board by power cycling it. 10. Present the RF430-TMPSNS-EVM to the antenna on the top of the DLP-7970 ABP.
6 11. Read the temperature data from the LCD display. (a) The LCD display also has the following features (see Figure 2): (i) Heart Symbol This is a heartbeat to indicate the code is running (ii) Wireless Connectivity Symbol This indicates the TRF7970A is able to communicate with the RF430 FRL152H. (iii) Signal Strength Bar This indicates how strong or weak the RF communication strength is from the tag. (b) The push button S2 can be used to toggle additional LCD display features. (i) Button S2 ( ) toggles the displayed temperature result units between Fahrenheit and Celsius. The display defaults to degrees Celsius. Using Code Composer Studio IDE. Instead of programming the firmware with CCS Uniflash, the Code Composer Studio IDE can also be used to program the firmware. This option also allows users to modify and debug the firmware for additional custom applications . 1. Connect the DLP-7970 ABP to the MSP430FR4133 LaunchPad development kit.
7 2. Connect a USB cable from the PC to the LaunchPad development kit. 3. Open Code Composer Studios or newer on the PC. 4. Go to Project Import CCS Project Browse. 5. Navigate to contents extracted from the file. 6. Import the TRF7970 ABP_FR4133_FRL_Reader project. 7. Click the Debug button. 8. When the code finishes downloading, click the Stop Button. 9. Reset the board by power cycling it and then resume from Step 10 in Section SLOA233 October 2016 RF430 FRL152H NFC Sensor Tag Application Example With MSP430 3. Submit Documentation Feedback Microcontrollers Copyright 2016, texas instruments Incorporated RF430 FRL152H NFC ISO/IEC 15693 Sensor Transponder Figure 2. Additional LCD Display Features 3 RF430 FRL152H NFC ISO/IEC 15693 Sensor Transponder Features The RF430 FRL15xH family of devices has a programmable 16-bit MSP430 core that is interfaced with an analog front end (AFE) to make a single chip solution. This allows for the interfacing of multiple analog or digital sensors while also supporting the transmission of Sensor data over the short range wireless NFC.
8 Technology. The internal MSP430 core has 2KB of FRAM and 4KB of SRAM available for programming and data storage. It supports SPI and I2C communication, and has a 3-channel 14-bit sigma-delta ADC. The device runs at a clock speed of 2 MHz. The RF430 FRL15xH devices operate at a voltage level that allows for the use of low-voltage coin cell batteries. It is also possible to passively power the device by drawing energy from the RF field of any reader that is communicating with an RF430 FRL15xH. The RF430 FRL15xH portfolio consists of three parts: the RF430 FRL152H, the RF430 FRL153H, and the RF430 FRL154H. The 152H supports all of the hardware features mentioned above. However, the 153H. does not have the SPI and I2C interface, and the 154H does not have the sigma-delta ADC. This Application report describes the fully featured RF430 FRL152H exclusively. Sensor Application The RF430 FRL15xH has a Sensor Application ROM coded into the device that allows for seamless handling of multiple sensors by simply configuring a set of registers.
9 Features that are supported by the Sensor Application include: Number of measurement cycles Skipping of specific Sensor measurements based on the cycle count Measurement frequency (either predefined time steps or a custom time steps). Which samples are stored (all, first, last, highest, lowest, or average). Sensor configurations Gain Filter Type (CIC or Moving Average). Oversampling Rate Monitor and Alarm Conditions All of these features are handled by the ROM code and can be enabled, disabled, and configured with simple register writes that can be part of the FRAM firmware or done over the air with NFC technology. 4 RF430 FRL152H NFC Sensor Tag Application Example With MSP430 SLOA233 October 2016. Microcontrollers Submit Documentation Feedback Copyright 2016, texas instruments Incorporated RF430 FRL152H NFC ISO/IEC 15693 Sensor Transponder 14-Bit Sigma-Delta ADC. The 14-bit sigma-delta ADC allows up to three analog sensors to be interfaced to the RF430 FRL152H.
10 The ADC also has 2 channels (ADC1 and ADC2) that can measure resistance that allows for the use of thermistors. The sigma-delta ADC is a slow-acquisition ADC that has ultra-low-power input current, offset, and low- noise thresholds. This allows users to minimize the power required for taking samples with the device. Due to the nature of how sigma-delta ADCs operate, it takes additional time to get high-accuracy samples. For example, a full 14-bit conversion takes approximately 2 seconds. Much faster samples can be taken at the cost of accuracy. Memory Structure The RF430 FRL15xH has a total of 2KB of FRAM, 4KB of SRAM, and 8KB of ROM. The ROM contains the Sensor App, ISO/IEC 15693 RF Stack, and the Boot Code for the device, and cannot be modified. The 4KB of SRAM is used to store Sensor data and consists of 8 sectors of 512 bytes each. Individual sections can be powered down to save power, but all data stored in a powered down section of SRAM is lost.
