Page 1
M24LR64-R tool kit user guide Introduction The purpose of this user manual is to teach how to use the M24LR64-R tool kit with the M24LRxx_Application_Software. It describes the M24LRxx_Application_Software interface and its menus, and shows how to send commands to M24LR64-R tags.
RF reader (ISO 15693, RF 13.56 MHz) interfaced via the USB bus, shown in Figure 8 ● an M24LR64-R’s reference antenna: PRIM2-M24LR-A shown in Figure 9 RF antenna size: 20 mm × 40 mm (0.79 in x 1.57 in) ●...
Starting M24LRxx_Application_Software Before starting, you must have: ● previously installed all the drivers. For how to install the required drivers, please refer to UM0863: “M24LR64-R tool driver install guide” ● connected the reader’s USB cable 3.1.1 Choosing your tool kit On the PC desktop, double click on the M24LRxx_Application_Software icon.
UM0853 How to control the RF and I²C channels from your screen Once the kit has been selected, the software checks that the selected readers are well connected. A progress bar appears during the check as shown in Figure Figure 16. Connection check by the software If a problem occurs, a window appears to indicate what the problem is: ●...
You can use the menu at the top of the window to select several applications: Reader Application menu Select show Reader application (Figure 18) to manage all the I²C and RF functions of the M24LR64-R. Figure 18. show Reader application 14/49 Doc ID 16609 Rev 1 Downloaded from Elcodis.com...
Image Transfer Application menu Figure 19 shows the Image Transfer Application menu. Select show Image Transfer application to upload or download a picture to or from the M24LR64-R by RF or I²C. Figure 19. show Image Transfer application 3.1.4 Demo STM32-PRIMER2 menu Figure 20 shows the Demo STM32-PRIMER2 menu.
Select show Reader Application in the main menu. The RF user interface opens. It is shown in Figure 23. With this interface you can send any command to the M24LR64-R tag present in the RF reader field. 16/49 Doc ID 16609 Rev 1 Downloaded from Elcodis.com...
UM0853 How to control the RF and I²C channels from your screen The Show I2C Commands button is used to switch from the RF user interface to the I²C user interface. Figure 23. RF user interface 3.2.1 Inventory command The Inventory button launches an Inventory command and thus detects the tags present in the RF field.
How to control the RF and I²C channels from your screen UM0853 Figure 25. Three tags detected You can select a tag in the list of detected UIDs by clicking on the desired UID in the list as shown in Figure 26.
Selecting the Addressed mode clears bit 5 and sets bit 6 in the Request_flags of the RF request (bit 5 = 0, bit 6 = 1). The request is addressed. The UID field is present (please refer to the M24LR64-R datasheet for details).
If no tag was selected after the Inventory request, the device sends “00 00 00 00 00 00 00 00” instead of the UID value. STAY QUIET The STAY QUIET button is used to send a Stay Quiet RF request (refer to the M24LR64-R datasheet for details). RESET TO READY The RESET TO READY button is used to send a Reset to Ready RF request (refer to the M24LR64-R datasheet for details).
The result of the read operation is displayed in the MEMORY seen by RF area (see Figure 35 Figure 38). From 0000 to 07FF reads all M24LR64-R EEPROM contents. Figure 35 Figure 36 only show the results for sector 0 and sector 3F, respectively.
The first column (sector) indicates the sector read. ● The second column (block) indicates the address of the block read. ● The third column (data) shows the contents of the M24LR64-R at the specified addresses. ● The fourth column (sss) gives the sector security status.
01 (01h Hex) is the fourth piece of data read in block number 0002 (sector 0) 3.2.7 Write command The Write button launches RF requests to write data to the M24LR64-R EEPROM from the block address specified in the from field to the block address entered in the to field. Figure 39, the Write command fills the blocks 0000h to 001Fh with “A1 34 09 67”.
How to control the RF and I²C channels from your screen UM0853 Figure 42. Security status byte for sector 07 Figure 43 shows the security status bytes for the blocks located at addresses 00FAh to 0109h (sector 07 & sector 08). Figure 43.
UM0853 How to control the RF and I²C channels from your screen 3.2.9 Write DSFID command The Write DSFID button launches a Write DSFID command. The data in the dedicated field next to the Write DSFID button are written to the DSFID register. Figure 45.
How to control the RF and I²C channels from your screen UM0853 Figure 49. Warning before locking the DSFID field 3.2.12 RF password management The user interface displays a warning concerning password changes: you should be very careful when you change a password because there is no way of retrieving forgotten RF passwords.
UM0853 How to control the RF and I²C channels from your screen Figure 51. Present-sector Password command The result of the Present-sector Password command appears in the RF answer field. Figure 52 shows a successful command, and Figure 53 shows an example where an error occurred.
You can use the I2C User Interface window, illustrated in Figure 62, to exchange data between a tag connected to the I2C reader and the M24LR64-R. With the Show RF interface button (Figure 61) you can switch from the RF user interface to the I2C user interface.
Figure 62. I2C User Interface window 3.3.1 I2C READ commands The Read button issues read commands to the M24LR64-R connected to the I2C reader. To do so, select the I2C READ area, and then press on the Read button. Read command to the memory array To read the memory array, select Memory from the list and specify the address range to be read.
How to control the RF and I²C channels from your screen UM0853 Figure 64. Result of a Read operation to the memory array Figure 64 illustrates the result of the Read operation to the memory array. The first column shows which sector is read. The second column indicates the address of the first byte in the page.
UM0853 How to control the RF and I²C channels from your screen Figure 66. Result of the read sector security status operation Reading the I2C_Write_Lock bit area To read the 2C_Write_Lock bit area (I2C sector security), select I2C write lock bits (system) and press the Read button.
Please, refers to the M24LR64-R dataheet for the system parameters. 3.3.2 I2C WRITE commands The Write button is used to issue write commands to the M24LR64-R connected to the I2C reader. The button is located in the I2C WRITE area of the I2C User Interface window (see Figure 62).
UM0853 How to control the RF and I²C channels from your screen In this example, a write operation is issued to write the data < 12 34 56 78 > to EEPROM memory addressses 0000 to 003F by I2C communication. Note that in the I2C answer, you are notified of whether the write cycle succeeded or failed (see Figure 72...
How to control the RF and I²C channels from your screen UM0853 Figure 76. Writing A1 to the memory array Writing to the sector security status area To write to the sector security status area, select Sector Security Status (system) and type the address range to be written, then press the Write button.
UM0853 How to control the RF and I²C channels from your screen Figure 78. Result of the write to sector security status area operation Writing to the I2C_Write_Lock bit area To write to the I2C_Write_Lock bit area, select I2C write lock bits (system) and fill the address range to be written, then press the Write button.
How to control the RF and I²C channels from your screen UM0853 3.3.3 I2C PASSWORD commands In the I2C PASSWORD area of the I2C User Interface window (see Figure 62), select Present Password to be able to send an I2C Present Password command. The button at the bottom right-hand side of the I2C PASSWORD area will indicate Present.
UM0853 How to control the RF and I²C channels from your screen Figure 83. Warning Note that in the I2C answer, you are notified of whether the write cycle succeeded or failed (see Figure 84 Figure 85). Figure 84. Write Password cycle successful Figure 85.
With this demo you can load a picture by RF or I2C (.jpeg file of 2 Kbytes) into the M24LR64-R device. You can also download and display the contents of the memory by I2C or RF. If JPG-like contents were previously loaded into the EEPROM, you will be able to visualize them.
Figure 88. RF communication between the tag and the reader is OK If the circle next to the running button is red, the communication by RF between the M24LR64-R and the reader is NOT OK Figure 89. No RF communication between the tag and the reader 4.1.2...
Figure 93. Picture to be uploaded After selecting the picture, you need to choose which of the I2C or RF interface you will use to upload it to the memory of the M24LR64-R device. To upload it by I2C, click on I2C as shown below.
UM0853 Data transfer management (picture demo) Figure 95. Uploading the picture by I2C To upload the picture by RF, click on RF as shown below. Figure 96. Selecting RF to upload the picture You then have to click on the Upload by RF button to launch the upload process (see Figure 97).
Figure 102. READ M24LR64 CONTENT interface You first have to select which of the I2C or RF interface you will use to download the picture from the memory of the M24LR64-R. To download it by I2C, click on I2C as shown below.
Figure 108. Otherwise, an error message appears (see Figure 109). Figure 108. The ST logo is displayed Figure 109. Error message You can use the CHECK COMMUNICATION area to verify whether the data were read successfully or not. If you used the I2C bus to download the picture, click on check I2C communication. The color of the circle will tell you if the upload process was successful (green circle) or failed (red circle).
Demo application for use with DEMOKIT-M24LR-A UM0853 Demo application for use with DEMOKIT-M24LR-A The demo application window, shown in Figure 110, is intended for use with the DEMOKIT- M24LR-A kit. All the pictures are in the bitmap format to be compliant with the STM32- PRIMER2 firmware and LCD screen driver.
Use the frame shown below to upload a picture by RF. Figure 114. Upload frame Click on a picture to upload the picture in bmp format to the M24LR64-R by RF. You can use the three additional icons on the right-hand side (HELLO WORLD, HALLO WELT...) to decrease the upload time (3 seconds versus 20 seconds).
Demo application for use with DEMOKIT-M24LR-A UM0853 Figure 116. HELLO WORLD picture downloaded Figure 117. ST logo downloaded Check communication status You can use the CHECK COMMUNICATION area to verify whether the data were written or read successfully or not.
If the picture was uploaded by RF as described above, you will be able to display it on the LCD screen of your STM32-PRIMER2. Please refer to the UM0850 user guide to configure your STM32-PRIMER2 and use the embedded software. Enjoy your M24LR64-R kit! Doc ID 16609 Rev 1 47/49 Downloaded from Elcodis.com...
Revision history UM0853 Revision history Table 1. Document revision history Date Revision Changes 28-Jan-2010 Initial release. 48/50 Doc ID 16609 Rev 1 Downloaded from Elcodis.com electronic components distributor...
Page 49
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.
Need help?
Do you have a question about the M24LR64-R and is the answer not in the manual?
Questions and answers