background image

3

Overview

3.1

ST25DV-I2C tag

The ST25DV-I2C tag is a dynamic tag IC for contactless applications (ISO 15693). It manages the RF
communication with a reader. It also includes frame coding, RF modulation and manages the anti-collision
process.
The ST25DV-I2C tag works as an NFC Forum Type 5 tag, supporting: detection, read and write operations. As
shown in 

Figure 1

, this device communicates with a reader without any external controller.

Figure 1. 

Communication scheme

MCU

ST25DV-I2C

RF

I

2

C

3.2

STM32L476xx microcontroller devices

The STM32L476xx microcontroller devices are ultra-low-power microcontrollers based on the high-performance
Arm

®

 32-bit RISC core operating at a frequency of up to 80 MHz. The Arm

®

 Cortex

®

-M4 core features a

floating point unit (FPU) single precision, which supports all Arm

®

 single-precision data-processing instructions

and data types. It also implements a full set of DSP instructions and a memory protection unit (MPU) to enhance
application security.
The STM32L476xx microcontroller devices embed high-speed memories (up to 1 Mbytes of Flash memory,
up to 128 Kbytes of SRAM), a flexible external memory controller (FSMC) for static memories (for devices
with packages of 100 pins and more), a Quad-SPI Flash memory interface (available on all packages) and an
extensive range of enhanced I/Os and peripherals connected to two APB buses, two AHB buses and a 32-bit
multi-AHB bus matrix.
The STM32L476xx microcontroller devices embed several protection mechanisms for embedded Flash memory
and SRAM: readout protection, write protection, proprietary code readout protection and firewall.
These devices offer up to three fast 12-bit ADCs (5 Msps), two comparators, two operational amplifiers, two
DAC channels, an internal voltage reference buffer, a low-power RTC, two general-purpose 32-bit timers, two
16-bit PWM timers dedicated to motor control, seven general-purpose 16-bit timers, and two 16-bit low-power
timers. The STM32L476xx microcontroller devices support four digital filters for external sigma delta modulators
(DFSDM).
In addition, up to 24 capacitive sensing channels are available. The devices also embed an integrated LCD driver
8x40 or 4x44, with internal step-up converter.
They also feature standard and advanced communication interfaces:

Three I²Cs

Three SPIs

Three USARTs, two UARTs and one Low-power UART.

Two SAIs (serial audio interfaces)

One SDMMC

One CAN

One USB OTG full-speed

One SWPMI (single wire protocol master interface)

For full details of the STM32L476xx microcontroller device specifications, refer to 

www.st.com

.

UM2949

Overview

UM2949

 - 

Rev 1

page 4/60

Содержание STSW-ST25DV002

Страница 1: ...es the content of the tag when close by The reader communicates with the ST25DV64KC DISCO board using the ISO 15693 protocol while the STM32L476xx microcontroller device communicates with the ST25DV I...

Страница 2: ...This document applies to the STM32L476xx Arm based microcontroller devices Note Arm is a registered trademark of Arm Limited or its subsidiaries in the US and or elsewhere UM2949 General information U...

Страница 3: ...erial peripheral interface URI Uniform resource identifier URL Uniform resource locator USB Universal serial bus 2 2 Number convention and notation The following conventions and notations apply in thi...

Страница 4: ...00 pins and more a Quad SPI Flash memory interface available on all packages and an extensive range of enhanced I Os and peripherals connected to two APB buses two AHB buses and a 32 bit multi AHB bus...

Страница 5: ...cro and mini connectors and no external power supply is required This motherboard embeds the STM32L476VG microcontroller and different peripherals LCD display and touchscreen to interface with the use...

Страница 6: ...eds the ST25DV64KC device and a 40 mm x 23 mm 13 56 MHz double layer inductive etched antenna no need for any tuning components The ST25DV64KC communicates with the STM32L476VG 32 bit MCU via the I C...

Страница 7: ...NFC software Refer to Software toolbox for NFC tags user manual UM2444 available on www st com The ST25DV I2C tag is fully compliant with the NFC Forum Type 5 standard As this standard is recently in...

Страница 8: ...the firmware behavior the descriptions are detailed from the microcontroller point of view 4 2 1 Discover ST25DV I2C tag menu As shown in Figure 5 the Discover ST25DV I2C tag menu proposes several dem...

Страница 9: ...agement and Generating the RF and RF user interrupts using the ST25PC NFC software with the CR95HF sections respectively for Android ST25 NFC application and for the CR95HF reader used with the ST25PC...

Страница 10: ...any RF reader or Android smart phone Using the CR95HF IC and ST25PC NFC software the user is able to send interrupts or drive the GPO see Figure 8 and Figure 9 Select the ST25DV I2C tag product Selec...

Страница 11: ...Figure 8 ST25DV I2C tag contextual menu Figure 9 PC software ST25DV I2C tag special commands interface UM2949 Main menu UM2949 Rev 1 page 11 60...

Страница 12: ...SCO energy harvesting measurement display A LED is also turned on to simulate the effect of the energy harvesting when the RF field is approaching or when it leaves The energy harvesting pin is connec...

Страница 13: ...1 Area 1 contains an NDEF with a vCard This area is readable by anyone but can only be written after presenting password 1 2 Area 2 contains an NDEF with a different vCard This area cannot be read wi...

Страница 14: ...n the ST25DV I2C tag tag see Figure 8 2 In the contextual menu select the Multi Area Editor item 3 Move the sliders for each area until the desired value is reached see Figure 12 for an example of an...

Страница 15: ...en see Figure 13 1 From the table select the area to protect up to four areas 2 In the Area protection column set one of four options for read and write operations only three are available for Area 1...

Страница 16: ...6 byte ST25DVxxKC EEPROM page When entering this menu the following screens show the difference by emulating an ST25DVxxKC EEPROM page write and performing the actual write on the ST25DVxxKC EEPROM Fi...

Страница 17: ...Figure 16 ST25DVxxKC EEPROM write screen Figure 17 ST25DVxxKC EEPROM write results UM2949 Main menu UM2949 Rev 1 page 17 60...

Страница 18: ...sage requires an additional Bluetooth Low Energy module Wi Fi OOB NDEF message requires an additional Wi Fi module Figure 18 ST25DV64KC DISCO NFC NDEF demonstrations menu display URI demonstration Thi...

Страница 19: ...2C tag memory the SMS is displayed on the screen Figure 20 ST25DV64KC DISCO read SMS content display Note If the MCU reads the ST25DV I2C tag memory it does not contain an SMS an error message is disp...

Страница 20: ...vCard may or may not embed a picture Reads the ST25DV I2C tag content If the vCard was previously stored the following information is displayed on the board screen name title organization cell phone n...

Страница 21: ...ion content in the ST25DV I2C tag With the MCU the user Stores an NDEF message containing a geolocation it is then read with an NFC reader or with a smart phone Reads any geolocation that is stored in...

Страница 22: ...the message If the data written to the ST25DV I2C tag is not a valid Proprietary configuration record the MCU displays an error message and continues waiting for a valid Proprietary configuration reco...

Страница 23: ...e with this name HID The HID protocol is natively supported by Android 6 0 smart phones and this demonstration allows the user to control a pointer on the paired phone by touching the screen of the ST...

Страница 24: ...CU reads the ST25DV I2C tag memory it does not contain a WPS OOB an error message is displayed Smart phone and Wi Fi pairing Refer to Reading and writing NDEF on a smart phone with the Android ST25 ap...

Страница 25: ...screen displays the content of the tag Click on the Read from selected tag button to refresh the list content The right most list helps the user compose an NDEF message The current tag content is the...

Страница 26: ...nge is only carried out in one direction at a time half duplex The mailbox contains indicators giving the reader status and generates pulses on a GPO which must be connected to an external interrupt G...

Страница 27: ...se actions are described in the following sections Smart phone and Fast transfer mode use cases Available actions can be accessed after tag has been taped and are available in the ST25DV I2C tag featu...

Страница 28: ...ST25DV I2C tag tag in the Inventory pane see Figure 31 then select the Fast Transfer Mode option in the menu Two tabs appear below the tag selection box Read Message by default and Write Message Clic...

Страница 29: ...in bytes of the mailbox content and on the Read Message button to display the current content of the mailbox In the ST25PC NFC software the full FTM set of demonstrations are accessible from the menu...

Страница 30: ...ST25PC NFC software Access to ST25V I2C FTM demonstrations Smart phone and FTM data transfers Several menus accessible by the drawer menu are dealing with the Fast transfer mode data transfers Mailbo...

Страница 31: ...box management FTM demonstration Stopwatch demonstration As prerequisite to any data transfer the mailbox has to be enabled without any pending message The correct status is shown in Figure 35 UM2949...

Страница 32: ...Figure 35 Mailbox status UM2949 Main menu UM2949 Rev 1 page 32 60...

Страница 33: ...aulty packets This is the default and recommended mode Error recovery disabled Data transfer is done at max throughput There is no recovery in case of transmission error PC software and FTM data trans...

Страница 34: ...n the Flash memory and it is not intended to be used for new demonstrations To come back to the initial firmware press the reset button and it reboots the reader with the with this firmware To prepare...

Страница 35: ...9 if not the user has to enter a new password to continue Figure 40 Figure 39 ST25DV64KC DISCO firmware upgrade password OK Figure 40 ST25DV64KC DISCO firmware upgrade wrong password During the transf...

Страница 36: ...rade Features Upgrade a new firmware to the ST25DV64KC DISCO board Demonstration steps see the screen illustration in Figure 43 1 Check the mailbox status Must be enable withtout any pending messages...

Страница 37: ...To execute a R2H firmware upgrade first select a binary file to send with the Select File button see Figure 44 CRC computation is done when loading the file and is displayed on the screen To start th...

Страница 38: ...tinue the demonstration as illustrated in the Smart phone and picture transfers and Smart phone and picture download transfer sections During the transfer the full length of data transmitted is displa...

Страница 39: ...ick on Send picture to tag Select a picture in phone memory The upload display screens are illustrated in Figure 45 and Figure 45 Transfer from smart phone to tag UM2949 Main menu UM2949 Rev 1 page 39...

Страница 40: ...VERY Demos menu see Figure 33 select the FTM Picture Transfer item To run a R2H transfer from CR95HF reader to Host board first select the Pick a picture to upload item from the command list see Figur...

Страница 41: ...ads the mailbox message To start this demonstration the user must perform an action on the firmware side The picture icon at bottom left allows the user to enter a new menu see Figure 48 which lets th...

Страница 42: ...KC DISCO image upload start The kit is now waiting for the reader to read the message in the mailbox see Smart phone and picture transfers and PC software and picture upload transfer sections to conti...

Страница 43: ...from tag button Select a picture on the ST25 discovery kit The transfer starts Smart phone and picture upload transfers display Figure 51 Smart phone and picture upload transfers display PC software...

Страница 44: ...reader In this demonstration the data takes random binary values Each time the mailbox is free the MCU writes data and the GPO informs it when the reader consumes the mailbox message To start this de...

Страница 45: ...computed CRC and transfer time see Figure 50 In case of failure the display shows an error message To return to the Fast transfer mode demonstration simply touch the screen Smart phone and H2R data t...

Страница 46: ...nsfer item To send data from the ST25DV64KC DISCO board to the HF reader select Receive a buffer in a file in the command menu Select the buffer size to be sent from the ST25DV64KC DISCO board and cli...

Страница 47: ...ossible stopwatch values 8 byte frames to the MCU using the mailbox The MCU displays these values on the LCD screen and computes the duration between two consecutive updates The average and maximum in...

Страница 48: ...atus Start Starts the stopwatch the display is updated accordingly and frames are sent to the host if a tag is in the field The display is updated starting from 00 00 00 minutes seconds milliseconds S...

Страница 49: ...SCOVERY Demos menu see Figure 33 select the FTM Picture Transfer item Click on the Start button to begin sending time data to the board Click on Pause to temporarily stop the timer The Resume button s...

Страница 50: ...Figure 58 ST25PC NFC software and Stopwatch demonstration UM2949 Main menu UM2949 Rev 1 page 50 60...

Страница 51: ...tain up to 256 bytes Packet is called the amount of data that fits into the ST25DV mailbox Depending of the size of the data to send there are one or more packets to transmit When sending big data fil...

Страница 52: ...response to one or more received packets to indicate if the transmission was successful or not Figure 61 Structure of a status packet MS54574V1 S Unused Bytes Status Byte 1 byte The following table de...

Страница 53: ...et s received 00 SEGMENT_OK 01 SEGMENT_ERROR Ex CRC error packet lost etc So a status byte with the value 0x80 corresponds to SEGMENT_OK and 0x81 corresponds to SEGMENT_ERROR A 4 ST Light Protocol On...

Страница 54: ...sponse data contains 4 bytes one indicating the board name and 3 indicating the firmware version 0x01 FTM_SEND_PICTURE Data must contain the picture Null 0x02 FTM_READ_PICTURE Null The response data c...

Страница 55: ...Revision history Table 6 Document revision history Date Revision Description of changes 03 Fev 22 1 Initial release UM2949 UM2949 Rev 1 page 55 60...

Страница 56: ...Main menu 7 4 2 1 Discover ST25DV I2C tag menu 8 4 2 2 RF GPO interrupt demonstration 9 4 2 3 ST25DV I2C tag energy harvesting demonstration 12 4 2 4 ST25DV I2C tag states demonstration 13 4 2 5 ST25...

Страница 57: ...s 3 Table 2 Main menu item definition 7 Table 3 Control byte structure definition 52 Table 4 Status byte structure 53 Table 5 FTM commands list 54 Table 6 Document revision history 55 UM2949 List of t...

Страница 58: ...e 27 Smart phone and URL NDEF write menu display 25 Figure 28 ST25PC NFC software NDEF interface 26 Figure 29 ST25DV64KC DISCO Fast transfer mode display 27 Figure 30 Smart phone and Fast transfer mod...

Страница 59: ...Smart phone and stopwatch transfers 49 Figure 58 ST25PC NFC software and Stopwatch demonstration 50 Figure 59 Example of transmission with three packets per segment 51 Figure 60 Structure of a packet...

Страница 60: ...ts and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted by ST herein Resale of ST pro...

Отзывы: