DEMO90121LR
RFID Long Range Demo User Manual
Features and Benefits
Application Examples
Output power of 1Watt
Supports ISO15693 international standard
RS232 communication
30$ BOM cost target
Asset tracking
Library’s book inventory control
Bicycle rental checkout
Ordering Information
Part No.
DEMO90121LR
Description
Long Range Demonstrator
1 Scope
2 Related Melexis product
The DEMO90121LR is a turnkey contactless
long range reader example based on the
RFID transceiver IC MLX90121. Once set up,
it can inventory and access ISO15693
compliant tags and cards by sending
corresponding commands.
MLX90121 – 13.56MHz transceiver
The DEMO90121LR is connected to a
computer through its RS232 serial interface.
The Melexis user interface program UT121
can be used for easy and fast evaluation of
the demonstrator. The form factor is
minimized to demonstrate the high level of
integration allowed by the MLX90121. The bill
of material for DEMO90121LR targets a cost
of 30$ per component set for 1000 modules.
Complete schematics, bill of material and
layout are annexed to this document allowing
a fast start for development work. Source
code of the firmware is based on the
FW90121 library and is available on the CD
ROM provided with the DEMO90121LR. This
device is based on ISO15693 RFID standard,
maximizing the operating distance.
This document includes fast start instructions,
describes the performance of the demo and
explains its hardware and software. The
demo and documentation are a starting point
for building customized long range reader
systems by adapting the functions and
performance to meet specific requirements.
390129012104
Rev 003
Important note: The device is for
demonstration purpose and has not been
tested for compliance with FCC, ETSI or
any other regulations.
Page 1 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
Table of Contents
1 Scope...........................................................................................................................................1
2 Related Melexis product.............................................................................................................1
3 Introduction.................................................................................................................................2
4 Box Content ................................................................................................................................3
5 Connections ................................................................................................................................4
6 Function and use ........................................................................................................................4
7 Observations...............................................................................................................................4
8 Hardware .....................................................................................................................................5
8.1 General ..................................................................................................................................5
8.2 MLX90121 Power Booster ....................................................................................................5
8.3 Progressive Field increase...................................................................................................6
8.4 Serial interfaces ....................................................................................................................6
8.5 Power supplies and LEDs ....................................................................................................7
8.6 SPI and Serial memory .........................................................................................................8
8.7 External push button ............................................................................................................9
8.8 Microcontroller ATmega8.....................................................................................................9
8.9 RFID Antenna ......................................................................................................................10
9 Firmware....................................................................................................................................12
9.1 Structure..............................................................................................................................12
9.2 Practical information ..........................................................................................................13
9.3 Instruction set .....................................................................................................................13
10 Conclusion ..............................................................................................................................14
11 Annexes...................................................................................................................................15
11.1 Schematics........................................................................................................................15
11.2 List of components...........................................................................................................17
11.3 RFID Antenna Layout .......................................................................................................19
3 Introduction
You purchased a DEMO90121LR. Thank you for choosing Melexis RFID solutions. This document contains
the instructions to use and evaluate the functions and the performance of this demonstrator. All the
necessary hardware is provided in the packaging box and the microcontroller on-board is pre-programmed
with the firmware on the included CD. All that you need to do is connect the cables, start the UT121 user
interface program, and then to send predefined ISO15693 commands to see the displayed answer from a
compatible transponder(s) placed in front of the long range antenna.
Should you want to start a development based on this demonstrator, you will find in this document and on the
CD all information, like schematics, board layout, list of components, firmware source (C code) and the
related application note. Please note that all this material is provided to support the use of the related Melexis
product. Duplication, circulation or storage on data carriers in any manner for any other type of use are not
authorized by Melexis unless under a specific agreement.
390129012104
Rev 003
Page 2 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
4 Box Content
You will find in the box the following components.
• 1 RFID Reader Board
Power supply connector
Antenna connector
(SMA)
RS232 connector
Figure 1: RFID reader board. Top side
•
1 Board antenna
Figure 2: Antenna ANT3_0
390129012104
Rev 003
Page 3 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
•
•
•
•
•
3 Transponder (Inlays or cards) ISO15693
1 Power supply block with adaptor
1 serial cable RS232
1 CD with the firmware and documentation
The delivered CD contains the complete documentation of the hardware and firmware for
DEMO90121LR, User Manual, Datasheet MLX90121, Source Code of the firmware (written in C,
flavor AVR gcc), Hex file of the firmware, Bill of materials of the board, UT121 software (PC user
interface)
1 Box Content (on paper)
5 Connections
The first step is to connect the component. Connect antenna board to the RFID reader board using the SMA
connector. Then, connect the serial cable from the computer to the RS232 connector (CON5). Finally,
connect the power supply block to the jack connector (CON6). The two LEDs D5 and D6 must be switched
ON.
Important note: Should you want to connect you own power supply, please note that in order to avoid extra
power dissipation, a maximum power supply (CON6) of 15 volts must be applied.
6 Function and use
Once connected, the demonstrator is able to receive commands sent through the RS232 serial interface. The
firmware of the DEMO90121LR handles the RFID communication, according to the ISO15693 international
standard up to the level 2. Meaning that the Start Of Frame, the End Of Frame and the CRC calculation and
check is supported by the firmware while, the protocol understanding has to be managed by a higher level of
application software.
The communication with the long range demonstrator can be established by any RS232 terminal by
configuring the following parameters:
•
•
•
•
•
Data rate = 57600 BAUD
Data bit = 8bits
Parity = None
Stop bits = 1
Flow control = Hardware
For an easy and fast evaluation, the DEMO90121LR is supplied with the UT121 Melexis user interface. For
more information on how to install and use the UT121, please refer to the documentation DVK90121 User
Manual.
After starting the user interface program, one will have access to a list of predefined commands to start the
communication with the demonstrator and with the ISO15693 transponders. For more information on the
command format supported by the DEMO90121LR, please refer to the chapter Firmware below.
7 Observations
•
•
•
•
The delivered output power is 1 Watt to a 50-ohm load.
Reading range of the DEMO90121LR is about 28cm in ISO15693 dual sub-carrier.
The power consumption with the field ON is about 300 mA.
The DEMO90121LR supports the Anti-collision procedure. Therefore, several transponders can be
put in the field and the Anti-collision command can be sent. The unique identifier (UID) of every
transponder detected will be returned.
390129012104
Rev 003
Page 4 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
8 Hardware
8.1 General
The DEMO90121LR is built around the MLX90121 RFID transceiver front-end and the 8bit microcontroller
Atmel ATMega8. The MLX90121 handles the air interface in transmission and in reception. It drives the
antenna through a power booster configuration to provide up to 1Watt of output power to the 50-ohm
antenna. It demodulates the tag answer using an external diode detector to reduce the power fed into the
MLX90121 reception pin. The ATMega8 runs the protocol and the application software. The board has three
interfaces, two for the RS232 and RS485 serial interfaces and a SPI connection for the uC programming. It
includes a reset button and two linear regulators of +5 and +12V DC.
8.2 MLX90121 Power Booster
The power booster schematic is implemented according to the application note “A Power Booster for the
MLX90121” included in the “MLX90121 Cookbook”. For more information about the theory of operation,
please refer to this document available on the Melexis WEB-site.
L1
Vdd
BLM31AJ260SN1
C4
4.7UF/TANTAL
C5
L3
680NH
GND_1W
Close to
MLX90121 pin 2
3.3UH
1
R3
10E
short!
short!
3
330PF
R5
680
C14
C15
220Pf
100NF
U2
1
D3
BAS16
1
L6
GND_TX
1
GND_TX
2
short!
1
1
3
GND
R10
51
M1
PMBF170
1
10K
6
7
13.56MHZ
2
GND_1W
C22
22PF
GND_uC
R13
10M
9
RTB
1
C21
22PF
8
2
MSI
R12
2
1
short!
Y1
2
GND_1W
3
5
short!
GND_TX
R11
6.8
2
Close to
ANTENNA
connector
4
Close to
MLX90121 pin 3
1
TP1
R6
27K
MLX90121
GND_RX
Close to
MLX90121 pin 2
GND_TX
5V
BLM31AJ260SN1
2
GND_1W
C13
270NH
4
GND_1W GND_1W
3
GND_1W
L7
GND_1W
10
VDD1
TX
RX
VSS3
MOD
NC
VSS1
VDD3
XOUT
DSY NC
XIN
VSS2
XBUF
CK
MODE
DIN
NC
VDD2
RTB
DOUT
C19
D4
20
3
19
18
2.2NF
RSSI
R8
22K
GND_RX
17
short!
16
DSY NC
15
CK
14
MODE
13
DIN
GND_RX
12
11
1
BAR18
Det_in
2
Q2
IRFD110
100PF/100V/NPO
4.7UF/TANTAL
GND_TX
C20
100PF
R9
1K5
1
2
2
10NF
C18
GND_TX
2
2.2UH
CV1
5.5-50PF/200V
C10
XXPF/200V
100NF
C9
33PF
1
GND_1W
short!
2
C8
1
short!
L5
short! short!
C6
1
100nF/50V
L4
ANTENNA1
1
2
2
C3
100NF
1
5V
1
L2
560NH
C12
Edge of the
board
2
short!
Det_in
GND_RX
GND_1W
5V
DOUT
C23
100NF
short!
TAG Reader MLX90121
GND_TX
CLK13M
C24
220PF
GND_uC
Figure 3: TAG Reader MLX90121 in power booster configuration
The output of the long range reader is matched for 50-ohm loads. In case other impedance values or more
filtering are required, the capacitor C10 can be mounted to form a π filter with L4 and CV1. The output power
supply Vdd is fixed to 12V by a linear regulator to provide 1 watt of output power.
The modulation depth is fixed to about 100% according to the ISO15693 specification. The resistors R10,
R12 and the transistor M1 are anticipated in the layout to adjust the modulation depth on the fly by the
microcontroller. This function is not used in the DEMO90121LR and these components are not mounted.
To avoid any perturbation, the MLX90121 use its own 13.56MHz signal provided by the crystal resonator Y1.
This signal can be supplied by the microcontroller ATmega8 by replacing the capacitor C24 with a jumper
wire. Care should be taken that the crystal oscillator has to be removed and the microcontroller has to be
configured to be able to drive the clock of the MLX90121. To improve the performance of the long range
reader, the external diode detector solution was chosen to receive the modulation signal from the
transponder (R9, D4, C20, R8 and C19). The C12 capacitor decouples the DC level to protect the diode of
the detector from high voltages.
390129012104
Rev 003
Page 5 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
8.3 Progressive Field increase
It has been observed that some RFID transponders do not operate properly when the field intensity reaches
its maximum in a very short time. Consequently, a progressive field increase mechanism was implemented.
For more information about the theory of operation, please refer to the application note “Progressive Field
Increase for the MLX90121” in the “MLX90121 Cookbook” available on the Melexis internet site
(www.melexis.com).
2
1
12V
R1
4K7
1
C2
100NF
2
C1
10UF/TANTAL
4
6
C11
100NF
5
S2
D2
G2
R2
2K2
3
1
Vdd
2
Q1
2
D1
R4
S1
G1
1
2
1 PFI
10K
FDC6327C
Figure 4: Soft Start PWM Drive
Important note: The Progressive field increase method is not implemented in the version 1.0 of the firmware
but could be in the next revision. Please contact your Melexis representative to get the last revision of the
firmware. The description of the change in the revision list of the firmware will give an indication if the function
has been implemented.
8.4 Serial interfaces
The demonstrator can be externally controlled with an RS232 (CON5 or CON3) or RS485 (CON2) serial
interfaces. The reception signal Rx can be selected from RS232 or RS485 by firmware with the bit
RS232_485.
C42
+5V
100NF
14
U7A
GND_uC
1
RX232
74HC00PW 2
U7B
14
3
6
7
14
4
U7C
74HC00PW 5
8
U7D
74HC00PW 10
7
RX
14
9
12
RX485
11
RS232_485
7
7
74HC00PW 13
GND_uC
Figure 5: RS485/RS232 Rx signal switch
The RS232 allow for connecting the board to a serial COM port of a computer through the serial connector
RS232. The voltage level is adapted using the MAX202 RS232 transceiver (U1).
TX
U1
RX232
9
10
11
12
C40
1
3
4
5
2
6
100NF
C41
100NF
C43
C44
1uF
100NF
R2OUT VCC
T2IN
GND
T1IN
R1OUT
C+
C1C2+
C2V+
V-
T1OUT
R2IN
R1IN
T2OUT
MAX202CSE
16
15
+5Vser
C39
100NF
CON3
14
8
13
7
3
2
1
GND_Ser
RS232
+5Vser
GND_Ser
390129012104
Rev 003
Page 6 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
Figure 6: RS232 transceiver
The RS485 is a complement to the RS232 serial connection as it allows connecting several devices on the
same bus. The voltage level conversion is controlled by the LMS485 transceiver (U6). The communication is
controlled by the signals 485_DE (Output driver enabled, for DATA transmission). A termination load of 120ohms (R27) is also available to correctly match the end of the RS485 cable (Jumper CON4).
L8
+5Vser
+5V
1
BLM31AJ260SN1
C38
4.7UF/TANTAL
CON4
GND_Ser
485_DE
DI
GND_Ser
1
4
2
2
CON2
3
2
1
B82789
1
RO
5
LMS485IM
3 L11
D12
SMBJ12CA
DE
RE
6
7
A
B
1
2
RS485_TER
D11
SMBJ12CA
3
2
VCC
GND
4
8
U6
TX
R27
120
GND_Ser
1
2
C36
100NF
RS485
GND_Ser
RX485
GND_Ser
GND_Ser
Figure 7: RS485
8.5 Power supplies and LEDs
The DEMO90121LR is supplied through the connector CON6. A protection diode D1 protects the board from
supply inversion while a suppression diode D2 protects against over voltage. Two linear regulators have been
chosen to provide clean power supplies of +12 volts for the power booster circuit and +5 volts for the
MLX90121 and the microcontroller. Two LEDs are available at the output of the regulators (D5 and D6) to
indicate operation of the power supplies.
D1
1
2
30BQ060 SMD
Or
CON1
Vpower
F1
2
1
0451.500MRL
1
1
D2
D1 and F1
SMBJ22A
not
assembled
in the same
time
C7
10UF/TANTAL/35V
2
POWER
Edge of the
board
2
U10
VI
VO
3
12V
2
7812C
2
C16
100NF
R7
7K5
C17
100NF
1
1
GND
Vpower
1
D5
2
+5V
L9
VO
BLM31AJ260SN1
R14
7K5
2
C27
100NF
5V
C25
10UF/TANTAL
1
C26
100NF
2
7805C
1
VI
3
2
1
GND
U3
Vpower
1
D6
2
Figure 8: Power supplies
390129012104
Rev 003
Page 7 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
Three additional LEDs can be controlled by the firmware. In the version 1.0 of the firmware, the LEDs D8, D9
and D10 will be always switched ON.
1
1
R26
7K5
1
R24
7K5
1
R23
7K5
2
LEDgeneral
2
LEDserial
2
LEDmlx
1
1
D8
D9
2
D10
2
GND_uC
2
GND_uC
GND_uC
Figure 9: LEDs
8.6 SPI and Serial memory
An external serial memory of type FRAM is available to store the current UIDs of the RFID transponders
inventoried in the field, in stand alone mode. It is accessed by the microcontroller through the SPI serial
interface (MISO, MOSI and SCK). The FRAM has to be selected using the signal EEPROM_CS.
1
MOSI
5
SCK
6
5V
3
7
|CS
SO
2 MISO
SI
5V
SCK
|WP
|HOLD
VSS
EEPROM_CS
VCC
8
5V
U4
C29
100NF
4
FM25C160
GND_uC
GND_uC
Figure 10: Serial memory
Important note: The stand alone application is not implemented in the version 1.0 of the firmware but could
be in the next revision. Please contact your Melexis representative to get the latest revision of the firmware.
The description of the change in the revision list of the firmware will give an indication if the function has been
implemented.
The connector J1 is used to program the microcontroller with the application firmware.
R15
1
5V
C28
100NF
+
+
+
+
+
ISP
+
+
+
+
+
1
3
5
7
9
MOSI
CH_MOSI
RST
CH_RST
CH_SCK
CH_MISO
1K
R17
1
2
SCK
1K
R19
1
2
MISO
J1
2
4
6
8
10
2
1K
R16
1
2
GND_uC
100
Figure 11: Microcontroller programming
390129012104
Rev 003
Page 8 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
8.7 External push button
The button BUTTON1 is used to perform hardware reset of the DEMO90121LR board.
Important note: The extra button BUTTON2 is not implemented in the version 1.0 of the firmware but could
be in the next revision. Please contact your Melexis representative to get the latest revision of the firmware.
The description of the change in the revision list of the firmware will give an indication if the function has been
implemented.
R25
8K2
1
1
2
3
5V
D7
BAS16
1
R22
8K2
2
5V
2
RSTsof t
2
RST
BUTTON1
C37
100NF
BUTTON2
4
3
C45
1NF
4
3
1
1
BUTTON_RESET
BUTTON_RSTSOFT
GND_uC
GND_uC
GND_uC
GND_uC
Figure 12: Push buttons
8.8 Microcontroller ATmega8
The DEMO90121LR is controlled by an Atmel microcontroller ATmega8. It contains the firmware example
written by Melexis to handle the RFID communication and the serial communication with a computer.
The microcontroller also controls the progressive field increase (PFI) block, the external FRAM through the
SPI serial interface, the RS232/RS485 selection and the LEDs.
TX
RX
RST
RSTsof t
LEDserial
LEDmlx
MSI
DSY NC
short!
short!
13.56MHZ
1
R21
10M
C34
22PF
C33
100NF
C35
22PF
R20
8K2
RSSI_f il
short!
C32
100NF
GND_ADC
GND_ADC
GND_uC
GND_uC
C31
10NF
9
10
11
12
13
14
15
16
2
short!
RSSI
C30
10NF
PD5
PD6
PD7
PB0
PB1
PB2
PB3
PB4
Y2
485_DE
EEPROM_CS
2
R18
100
L10
24
23
22
21
20
19
18
17
PD3
PC1
PD4
PC0
GND
ADC7
VCC ATmega8
GND
GND ATMEGA8-16AU AREF
VCC
ADC6
PB6
AVCC
PB7
PB5
1
1
2
3
4
5
6
7
8
BLM31AJ260SN1
DOUT
CK
5V
32
31
30
29
28
27
26
25
U5
PD2
PD1
PD0
PC6
PC5
PC4
PC3
PC2
5V
CLK13M
GND_uC
GND_ADC
GND_ADC
SCK
MISO
MOSI
DIN
RTB
MODE
RS232_485
PFI
LEDgeneral
Figure 13: Microcontroller ATmega8
390129012104
Rev 003
Page 9 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
The microcontroller contains its own 13.56MHz crystal oscillator. When correctly programmed (fuse CKOPT
has to be checked), this 13.56MHz clock generation can be used to drive the MLX90121 by short circuiting
the resistor R18.
The following table shows the digital connections between the I/O of the microcontroller and the different
blocks of the long range demonstrator.
MLX90121
PD2 ↔
PD3 ↔
PD4 ↔
PD5 ↔
PD6 ↔
PD7 ↔
DSYNC
DOUT
CK
DIN
RTB
MODE
Data Synchronization
Data OUT
Clock
Data IN
Receive/Transmit
Config/Comm
LEDs
PB0 ↔
PC3 ↔
PC4 ↔
LEDgeneral
LEDmlx
LEDserial
Not used
RFID communication
Serial communication
PFI block
PB1 ↔ PFI
Progressive field incr.
Reset
PC6 ↔
RST
Reset
Serial communication RS232/RS485
PB2 ↔ RS232_485
RS232/485 selection
PC1 ↔ 485_DE
RS485 driver enable
PD0 ↔ RX
Reception
Transmission
PD1 ↔ TX
External FRAM
PC0 ↔ EEPROM_CS
Serial FRAM selection
SPI
PB3
PB4
PB5
Maste Out Slave In
Master In Slave Out
Serial Clock
↔
↔
↔
MOSI
MISO
SCLK
Table 1: Connections to microcontroller ATmega8
8.9 RFID Antenna
A 50-ohm antenna is supplied with the demonstrator. It is a loop 12x12 square antenna shielded on one side
and matched to 50-ohms.
Following schematic shows the principle of the antenna:
Figure 14: Antenna principal schematic
The loop antenna is formed by an inductance Lant of 523nH and a serial resistor Rant of 290mOhm. The
natural quality factor of the antenna (154 at 13.56MHz) is too big to allow a correct communication at 26kbps
(ISO15693) and has to be reduced by adding the serial resistor Rs of 800mOhm.
The loop antenna is matched to 50-ohm by using two capacitors Cs and Cp. The serial one Cs is used to
adjust the resonance frequency and the parallel one is used to adjust the matching on 50-ohms at 13.56MHz.
390129012104
Rev 003
Page 10 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
Below are the measured values of the long range antenna:
•
•
•
•
•
•
Lant = 523nH (calculated).
Rant = 290mOhm (calculated).
Rs = 800mOhm.
Cs = 270pF.
Cp = 1nF + 220pF.
Qant = 17 (measured)
Orcad schematics and layout of the antenna are provided in Annexes A and B.
The following serial resistor and serial and parallel capacitors have been calculated to provide a resistive 50ohm load at 13.56MHz.
•
•
•
Rs = 1 ohm
Cs = 330pF+10pF+ trimmer capacitor
Cp = 1.2nF
Remarks: The resistive element of the RFID antenna will dissipate the complete amount of power. Therefore,
Rs has to be dimensioned to dissipate at least one watt. Moreover, the quality factor and the voltage swing of
the capacitors which form the matching network have to be chosen as high as possible. Mica capacitors have
quality factor of about 1000 and support voltage swing up to 200V.
390129012104
Rev 003
Page 11 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
9 Firmware
9.1 Structure
The firmware of the DEMO90121LR handles the RS232 serial communication with a computer as well as the
communication with the MLX90121 RFID reader. It can be illustrated by the following flow chart.
UART
Bios
(Bios.c)
Common level
USART & Parser
(Comm.c)
Library
Data reception and
transmission, data
buffering
Set of routines to
facilitate parsing of
received data and
sending of data
Application
1st level Parser
(Exec.c)
Protocol oriented command
Application-specific parsers
(Parser.c)
Device
direct
command
Protocol specific parsers
(Iso15par.c)
Library
Protocol level
Inventory
(Iso15ac.c)
Error code interpretation
(ErrorCodes.c)
Common level
Protocol basic
(Iso15.c)
TAG recv. buffer
(IsoX.c)
Platform level
Mlx90121 direct access
(MLX90121.c)
ATmega8 direct access
(Crt8.c)
TAG
390129012104
Rev 003
Page 12 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
9.2 Practical information
The firmware of the DEMO90121LR is based on the FW121 library. (FW90121: Firmware description) This
library provides the ISO15693 protocol functions as specific commands to control the MLX90121 and address
its internal registers. At power-on or reset, the microcontroller IO ports, timers, ADC, and watch-dog, and the
MLX90121 transceiver registers are configured for the ISO15693 protocol as described in the MLX90121
datasheet.
The firmware was developed using GCC under AVR Studio 4. The firmware can be loaded into the
microcontroller using the SPI interface connected to a STK500, STK300, AVRISP mkII module or similar,
driven by appropriate software (AVR Studio, PonyProg2000, etc). FW_LR21_15.c and FW_LR21_15.h
contain the firmware specific gcc code and the functions’ prototypes. HwDefs.h describes the hardware
(input, output pins, etc.). The file FW_LR21_15.aps is the AVR Studio 4 project file.
9.3 Instruction set
The instructions sent to the DEMO90121 are composed by ASCII parameters which form the operational
code (op-code) and the command parameters. Three main types of command can be sent, MLX90121
registers configuration, RFID commands and Anti-collision sequence.
MLX90121 registers configuration
The write register command starts with the op-code WrReg followed by the hexadecimal values of the
MLX90121’s 13 registers from register 0 to register 12.
WrReg R0R0R1R1R2R2R3R3R4R4R5R5R6R6R7R7R8R8R9R9R10R10R11R11R12R12 ↵
Identification
The identification command is used to identify the module. It has to be sent accordingly.
Idn ↵
RFID commands
The RFID commands start with the op-code Iso15 followed by a variable number of Hexadecimal parameters
which form the RFID command. It has to be filled in accordance with the international standard specification
ISO15693-3. The instruction is ended by several key words according to the command itself.
Iso15
ISO15693 parameters CRC
SLOTx ↵
CRC: The firmware will automatically calculate the CRC according to the ISO15693 specification and will
incorporate it into the command sent to the transponder.
SLOTx: Define the number of slots used during an Inventory or Write command. X must be between 1 and
16.
Anti-collision sequence
The firmware will execute a complete anti-collision sequence as defined in the ISO15693-3 specification. All
the detected UIDs will be returned. The anti-collision command will not select any transponder.
Iso15
Inventory
DS ↵
DS: Specified only when using dual sub-carrier protocol. With single sub-carrier, DS has to be removed.
390129012104
Rev 003
Page 13 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
10 Conclusion
The DEMO90121LR is an example of a small, cost effective, and simple control module for long range
applications, based on the Melexis 13.56MHz transceiver MLX90121. It can also be considered as an
advanced starting point for developers who want to build their own customized system meeting their specific
requirements.
The software library FW121 facilitates software development for the MLX90121 transceiver, and the
programmer can use high level commands to communicate with the MLX90121. By this way, they can
concentrate on the management of the microcontroller and the upper level functionality of the application.
References
•
•
•
•
•
•
•
source files: FW_LR21_15.h, FW_LR21_15.c, FW_LR21_15.aps, Bios.c, Exec.c, Parser.c,
Iso15Par.c, HwDefs.h.
schematics: See below
MLX90121 datasheet
ATMega8 datasheet
FW90121: Firmware description
13.56MHz RFID systems and antennas design guide
DVK90121 User Manual
390129012104
Rev 003
Page 14 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
11 Annexes
11.1 Schematics
DEMO90121LR:
D1
L1
1
1
13.56MHZ
2
10K
C21
22PF
GND_1W
8
C22
22PF
GND_uC
R13
10M
9
RTB
10
GND_1W
2
2
1
2
1
VSS3
D5
MOD
NC
VSS1
VDD3
XOUT
DSY NC
XIN
CK
VSS2
MODE
XBUF
DIN
NC
VDD2
RTB
DOUT
C19
D4
20
3
19
2.2NF
18
RSSI
short!
Det_in
BAR18
R8
22K
GND_RX
17
1
C20
100PF
2
R9
1K5
+5V
L9
16
DSYNC
15
CK
14
MODE
13
DIN
U3
GND_RX
GND_RX
GND_1W
Vpower
1
VI
VO
3
R14
7K5
7805C
C26
100NF
12
C27
100NF
DOUT
C25
10UF/TANTAL
1
5V
11
5V
BLM31AJ260SN1
1
7
12V
R7
7K5
C17
100NF
2
Y1
RX
2
3
VDD1
TX
7812C
1
1
1
M1
PMBF170
R12
1
6
short!
1
2
GND_TX
R11
6.8
2
MSI
5
short!
2
GND_1W
4
Close to
MLX90121 pin 3
2
1
1
3
Close to
ANTENNA
connector
MLX90121
GND_RX
1
GND_TX
2
R10
51
GND
C16
100NF
R6
27K
100NF
U2
GND_TX
short!
TP1
1
C15
220Pf
Close to
MLX90121 pin 2
GND_TX
Vpower
5V
1
R5
680
1
D3
BAS16
C14
C7
10UF/TANTAL/35V
GND
L6
BLM31AJ260SN1
330PF
2
3
GND_1W GND_1W
C13
270NH
4
GND_1W
GND_TX
2
short!
L7
short!
3
GND_1W
GND_TX
R3
10E
Q2
IRFD110
100PF/100V/NPO
C9
33PF
Vpower
1
D2
D1 and F1
SMBJ22A
not
2
assembled
in the same
timeU10
1
3
VI
VO
2
Close to
MLX90121 pin 2
1
1
2
10NF
C18
CV1
5.5-50PF/200V
C10
XXPF/200V
2
POWER
Edge of the
board
1
GND_1W
3.3UH
4.7UF/TANTAL
2
GND_1W
short!
short! short!
2.2UH
C6
100NF
2
C5
L3
680NH
0451.500MRL
GND
C4
4.7UF/TANTAL
2
L5
C8
F1
2
1
1
ANTENNA1
1
short!
2
C3
100NF
2
100nF/50V
L4
2
30BQ060 SMD
Or
CON1
5V
1
L2
560NH
C12
Edge of the
board
1
Vdd
BLM31AJ260SN1
short!
Det_in
D6
C23
100NF
Current too
small
(3V/7k5=0.4mA)
short!
2
GND_TX
TAG Reader MLX90121
C24
220PF
CLK13M
GND_uC
Supply
TX
RX
TX
U1
RST
RSTsof t
RX232
LEDserial
LEDmlx
MSI
14
7
U7D
14
1
12
C36
100NF
RX485
GND_Ser
7
GND_uC
RS485/RS232 RX Signal Switch
3
2
DI
DE
RE
6
7
A
B
1
4
2
J9
1
2
8
|HOLD
5V
C29
100NF
J10
R15
5V
2
FM25C160
GND_uC
GND_uC
R22
8K2
LEDserial
GND_uC
Serial EEPROM
R25
8K2
D7
BAS16
RST
R24
7K5
1
debug connector
C28
100NF
RSTsof t
BUTTON2
4
3
C45
1NF
4
3
2
1
BUTTON_RSTSOFT
1
6
C11
100NF
5
GND
G2
RST
CH_RST
CH_SCK
CH_MISO
1
1K
R17
2
SCK
1
1K
R19
2
MISO
GND_uC
MOSI
GND_uC
uC reset circuit
100
GND_uC
ISP Interface for uC
GND_uC
Soft reset circuit
LEDgeneral
R2
2K2
3
R26
7K5
Close to
CON1
D1
S1
1K
R16
2
1
D2
1
3
5
7
9
2
2
S2
1
4
GND_uC
+
+
+
+
+
1
2
Q1
2
Vdd
GND_uC
2
TP2
+
+
+
+
+
ISP
1
1
D9
R1
4K7
2
4
6
8
10
BUTTON_RESET
12V
C2
100NF
2
1
J1
BUTTON1
C37
100NF
1
CH_MOSI
5V
1
C1
10UF/TANTAL
GND_Ser
D8
|WP
2
J8
1
SCK
2
1
6
1
7
SCK
2
3
J7
GND_Ser
1
5V
2
MSI
J6
1
SI
3
PFI
J5
1
GND_Ser
RS485
R23
7K5
2 MISO
2
DSY NC
5
SO
1
RTB
MOSI
5V
1
|CS
1
DOUT
J4
1
1
1
DIN
U4
EEPROM_CS
VCC
MODE
J3
VSS
GND_uC
J2
1
4
CK
3
2
1
RS485
RX485
Serial Interface
LEDmlx
5
LMS485IM
GND_Ser
5V
CON2
B82789
1
RO
LEDgeneral
1
RS485_TER
D12
SMBJ12CA
4
485_DE
3 L11
D11
SMBJ12CA
TX
PFI
R27
120
GND_Ser
1
2
2
RS232_485
U6
RS232_485
uC (ADC, protocol, memory)
CON4
2
74HC00PW 13
1
SCK
MISO
MOSI
+5V
BLM31AJ260SN1
C38
4.7UF/TANTAL
11
8
GND_uC
+5Vser
9
8
RX
74HC00PW 10
DIN
RTB
MODE
RS232
L8
6
74HC00PW 5
GND_ADC
GND_ADC
RS232
100NF
GND_Ser
VCC
GND
GND_uC
GND_uC
3
2
1
GND_Ser
4
U7C
C32
100NF
GND_ADC
GND_ADC
CON3
+5Vser
RX232
7
C33
100NF
C35
22PF
C39
100NF
14
8
13
7
GND_uC
1
74HC00PW 2
7
1
C34
22PF
100NF
+5Vser
MAX202CSE
14
13.56MHZ
R21
10M
C44
T1OUT
R2IN
R1IN
T2OUT
16
15
3
U7B
C31
10NF
9
10
11
12
13
14
15
16
2
short!
C43
1uF
U7A
R20
8K2
RSSI_f il
short!
C+
C1C2+
C2V+
V-
100NF
+5V
C30
10NF
PD5
PD6
PD7
PB0
PB1
PB2
PB3
PB4
Y2
PC1
PD3
PD4
PC0
GND
ADC7
GND
VCC ATmega8
GND ATMEGA8-16AU AREF
VCC
ADC6
PB6
AVCC
PB5
PB7
C42
RSSI
14
short!
485_DE
EEPROM_CS
2
R18
100
short!
L10
24
23
22
21
20
19
18
17
1
1
2
3
4
5
6
7
8
BLM31AJ260SN1
DOUT
CK
PD2
PD1
PD0
PC6
PC5
PC4
PC3
PC2
CLK13M
C41
5V
32
31
30
29
28
27
26
25
U5
R2OUT VCC
T2IN
GND
T1IN
R1OUT
1
3
4
5
2
6
100NF
DSY NC
5V
9
10
11
12
C40
1
R4
G1
1
2
D10
1 PFI
10K
FDC6327C
2
Soft start PWM drive
GND_uC
LEDs
390129012104
Rev 003
Page 15 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
RFID ANTENNA:
RS1 R
2
CAP
CAP
CAP
CAP
CAP
1
1
1
1
390129012104
Rev 003
Coax
J1
2
1
IN
GND
2
CP4
2
CP3
2
CP2
2
CP1
CV1
5-50pF
1
CS4
2
CAP
1
CS3
2
CAP
1
CS2
2
CAP
CS1
1
5-50pF
CV2
RS2 R
Pad1
1
Copper
Antenna
Page 16 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
11.2 List of components
DEMO90121LR:
Quantity
1
1
1
1
1
1
1
1
2
3
1
21
1
1
3
1
1
1
1
2
1
2
4
1
1
1
1
2
2
2
3
1
9
2
5
1
1
1
390129012104
Rev 003
Reference
Value
ANTENNA1
BUTTON1
BUTTON2
CON1
CON2
CON3
J1
CV1
C1,C25
C4,C6,C38
C7
C2,C3,C5,C11,C14
C16,C17,C23,C26,C27
C28,C29,C32,C33,C36
C37,C39*,C40,C41,C42
C44
C43
C12*
C8,C30,C31
C19
C45
C9*
C10*
C18,C20
C13
C15
C21,C22,C34,C35
C24*
D1
D4
D2
D11,D12
D3,D7
D5,D6
D8,D9,D10
F1*
J2*,J3*,J4*,J5*,J6*,J7*,J8*
J9*,J10*
TP1,TP2
L1,L6,L8,L9,L10
L2
L3
L4
Description
SMA
Reset
RSTsoft
Power supply
RS485
RS232
ISP Connector
5.5-50pF
10uF
4.7uF
10uF
Antenna connector
Push button
Push button
Connector
Connector
Connector
Connector
Trimming capacitor
Tantalum capacitor
Tantalum capacitor
Tantalum capacitor
100nF
Ceramic X7R capacitor
1uF
100nF
10nF
2.2nF
1nF
33pF
xxpF/200V
100pF
330pF
220pF
22pF
220pF
30BQ060
BAR18
SMBJ22A
SMBJ12CA
BAS16
Red LED
Yellow LED
0451.500MRL
Ceramic X7R capacitor
Ceramic X7R capacitor
Ceramic X7R capacitor
Ceramic X7R capacitor
Ceramic X7R capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Schottky diode
Schottky diode
Suppression diode
Suppression diode
Commutation diode
QTLP630C-Y
Fuse
PIN_HEADER_SIL1
Test pin
Gnd
BLM31AJ260SN1
560nH
680nH
2.2uH
Ground connection
EMI filter inductor
Matching coil
Matching coil
Matching coil
Page 17 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
1
1
1
1
1
1
1
1
2
1
1
5
1
1
1
1
1
3
2
3
1
L5
L7
M1*
Q1
Q2
R1
R2
R3
R12*,R4
R5
R6
R7,R14,R23,R24,R26
R8
R9
R10*
R11
R13*,R21*
R15,R16,R17
R18*,R19
R20*,R22,R25
R27*
SH1,SH2,SH3,SH4
SH5,SH6,SH7,SH8
SH9,SH10
U1
U2
U3
U8
U4
U5
U6
U7
Y1,Y2
10
1
1
1
1
1
1
1
1
2
3.3uH
0.27uH
PMBF170
FDC6327C
IRFD110
4K7
2K2
10E
10K
680
27K
7K5
22K
1K5
5,6
6,8
10M
1K
100
8K2
120
Matching coil
Matching coil
10% modulation transistor
Soft start PWM transistor
Power booster transistor
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 1206
Thick film resistor 1206
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
Thick film resistor 0805
1ohm
Ground plane shunt
MAX202CSE
MLX90121
7805C
7812C
FM25C160
ATmega8-16AU
LMS485IM
74HC00PW
13.56MHZ
RS232 transceiver
RFID transceiver
+5V regulator TO220
+12V regulator TO220
Serial FRAM
Microcontroller
RS485 transceiver
4 NAND logical circuit
Quartz resonator
RFID ANTENNA:
Quantity
1
3
1
2
1
1
1
1
1
Reference
CP1
CP2*, CP3*, CP4*
CV1*
CS1*,CS2*
CS3
CS4
CV2
RS2
RS1*
Value
1.2nF
5-50pF
10pF
330pF
5-50pF
1-ohm
-
Description
Ceramic COG/NPO capacitor
Ceramic capacitor
Trimer capacitor
Ceramic capacitor
Ceramic NPO capacitor
Ceramic NPO capacitor
Trimer capacitor
Thick film resistor
Thick film resistor
*These components are not mounted.
390129012104
Rev 003
Page 18 of 19
User Manual
Dec. 2009
DEMO90121LR
RFID Long Range Demo User Manual
11.3 RFID Antenna Layout
390129012104
Rev 003
Page 19 of 19
User Manual
Dec. 2009