UM0230 User manual
Short-range RFID reader with autonomous functions
This User manual describes the hardware and software of the demokit for the
STMicroelectronics short-range RFID reader with Autonomous functions. The demokit runs under the Windows 98, Windows 2000 and Windows XP operating systems.
The purpose of this demokit is to demonstrate the key features of the STMicroelectronics Short Range RFID family. All products in the family meet global security and cost
requirements by complying with the worldwide ISO 14443-B standard and free licensing policy. This particular demokit can be powered in several ways, has a USB and an RS232 interface, and offers PC and autonomous operating modes.
Owing to this diversity and flexibility, it is easier for the customer to further develop the system according to his needs. All the design source data are delivered with the kit, ready to be reused in further developments. The target applications for this demokit are data collection, access control, medical, traceability, brand protection, e-purse and vending machines.
Figure 1. Demokit hardware for a short-range RFID reader with autonomous functions
Contents UM0230 - User manual
2/19
Contents
1 Demokit overview . . . 5
1.1 RFID Short Range products . . . 5
1.2 µPSD3422EV Turbo Plus Series product . . . 5
1.3 M41T65 (RTC) Serial Real-Time Clock product . . . 5
2 Getting started . . . 7
2.1 Software installation . . . 7
2.2 Physical connections . . . 9
2.3 Launching the short-range RFID reader dashboard software . . . 10
3 Short-range reader . . . 11
3.1 Memory records . . . 12
3.2 Control board description . . . 12
4 Win32 Dashboard Control . . . 14
5 HyperTerminal Control . . . 15
Appendix A Schematic diagrams . . . 16
6 References . . . 18
7 Revision history . . . 18
UM0230 - User manual List of tables
List of tables
Table 1. Event record structure . . . 12
Table 2. Status Byte . . . 12
Table 3. Onboard LED description . . . 12
Table 4. RS232 interface commands . . . 15
Table 5. Document revision history . . . 18
List of figures UM0230 - User manual
4/19
List of figures
Figure 1. Demokit hardware for a short-range RFID reader with autonomous functions . . . 1
Figure 2. Welcome window . . . 7
Figure 3. Choose Destination Location window . . . 8
Figure 4. Connecting the Short-Range RFID reader . . . 9
Figure 5. Dashboard Main Window . . . 10
Figure 6. HyperTerminal . . . 10
Figure 7. HyperTerminal settings . . . 10
Figure 8. Control board description . . . 13
Figure 9. Description of the main Dashboard window . . . 14
Figure 10. Control board schematics . . . 16
Figure 11. Antenna board schematics . . . 17
UM0230 - User manual Demokit overview
1 Demokit overview
The demokit tools for short-range RFID readers with Autonomous functions are designed to demonstrate several STMicroelectronics products (see Section 6: References):
RFID Short Range, Turbo Plus Series and Serial Real-Time Clock products.
1.1 RFID Short Range products
These STMicroelectronics products include the CRX14 and CR14 readers, and several contactless memories/tag products: SRI4K, SRIX4K, SRIX512.
All the contactless memories are powered by a transmitted carrier radio wave at 13.56MHz and are compliant with the ISO 14443-B recommendation for the transfer of power and signals via radio transmission. The Short Range CRX14 / CR14 RFID reader circuitry amplitude modulates (10% modulation) the data on the carrier using amplitude shift keying (ASK) and the tag replies by load modulating the data on the carrier using the BPSK (Bit Phase Shift Keying) of a 847kHz subcarrier. The data transfer rate in each direction is 106 Kbit/second.
1.2 µPSD3422EV Turbo Plus Series product
The µPSD3422EV belongs to the popular µPSD family of 8051-class embedded Flash microcontrollers that offers system-level-integration with world-leading Flash memory and SRAM densities (up to 256-KBytes and 32-KBytes, respectively) for general-purpose 8-bit embedded applications.
The µPSD3422EV Turbo Plus series performs up to 10 MIPS peak and provides full-speed USB. A JTAG interface supports in-system programming and MCU core debug with high- speed instruction tracing capability, eliminating the need for a hardware In-Circuit Emulator (ICE). Other peripherals include a 16-bit Programmable Counter Array (PCA), an 8-channel, 10-bit resolution analog-to-digital converter, SPI and IrDA interfaces, six PWM (pulse-width modulated) channels, an I²C (Intelligent Interface Controller) master/slave bus controller, two standard UARTs (Universal Asynchronous Receiver/Transmitter), supervisory functions such as a watchdog timer and low-voltage detect, and up to 45 general-purpose I/O pins.
1.3 M41T65 (RTC) Serial Real-Time Clock product
The M41T65 (RTC) is used in a broad range of applications. It is available in a lead-free 16- pin QFN package (just 3mm²) and is designed for a bus operating voltage from 3.6V down to 1.3V, but will maintain timekeeping at supply levels as low as 1.0V, thus providing more robust system performance. Operating current is only 350µA on a 3.0V supply, making the RTCs ideal for battery operation and handheld applications. M41T65 operates over the industrial temperature range of –40 to +85° C.
Demokit overview UM0230 - User manual
6/19
The kit consists of:
● Circuit boards – Control board with µPSD3422EV and Boosted antenna board
● USB cable
● I2C cable
● Some transponder samples (of the SRIX4K)
● CD with control software, related user manual, application notes and datasheets.
Application features:
● RAM: 32 Mbit
● HDD free space: 5MB
● USB version 1.1
● Runs on the Windows 98 SE Platform, Windows 2000, Windows XP
UM0230 - User manual Getting started
2 Getting started
2.1 Software installation
● First insert the CD supplied by STMicroelectronics in your CD drive.
● The auto run will bring up the CD content. Install the Win32 Dashboard software from the Reader software section.
● After opening the folder, run the setup.exe program.
● Read the text of the Welcome window (Figure 2), and then click on “Next”.
Figure 2. Welcome window
Getting started UM0230 - User manual
8/19
● Choose your destination location as shown in Figure 3, then click on “Next”. The default folder is C:\Program Files\STMicroelectronics\RFID_DashBoard
Figure 3. Choose Destination Location window
UM0230 - User manual Getting started
2.2 Physical connections
The short-range RFID reader can be connected in different ways as shown in Figure 4. To proceed to the connection do as follows:
● Connect the boosted Antenna board to the Control board using the supplied 4-wire ribbon cable.
● Connect the Control board to your PC/Laptop using the supplied USB cable and let Windows recognize the HID class device (no user action needed).
Optionally you can connect the Control board to your PC/Laptop using the RS232 interface.
● In case you plan to use some of the autonomous functions you can connect a 9V battery or an external DC power supply (6V to 12V).
Caution: Disconnect the battery when it is not being used!
Figure 4. Connecting the Short-Range RFID reader
RS232
USB
I²C
6V-12V Control
Board
Antenna Board
9V battery DC
power supply
– +
ai12808
Getting started UM0230 - User manual
10/19
2.3 Launching the short-range RFID reader dashboard software
In the Start menu, click on Programs and select Reader’s Win32 Dashboard to launch the dashboard software. The Dashboard Main Window shown in Figure 5 appears.
Figure 5. Dashboard Main Window
It is also possible to partially control the demokit via UART. To do so, start Windows HyperTerminal (Figure 6) and set up the port settings according to the screenshot shown on the right-hand-side figure (Figure 7). The UART communication speed is of 9600kbs, 8 data bits with no parity and 1 stop bit.
Figure 6. HyperTerminal Figure 7. HyperTerminal settings
UM0230 - User manual Short-range reader
3 Short-range reader
The reader has two main modes of operation:
● CRX14USB Demokit Mode
● Autonomous Mode
In the CRX14USB Demokit Mode, the reader behaves exactly in the same way as in the CRX14USB Demokit (see the UM0080 User manual) and is fully compatible with the CRX14Demokit software.
In the Autonomous Mode, the PC can send a macro-command to the reader via the USB or the RS232 cable, and the reader can then execute it without any further need of the PC.
There are two Autonomous Mode sub-functions: AutoRead and AutoWrite.
● In the AutoRead cycle: after a “Start” (from either the push button or the PC), the onboard reader reads the UID of whatever tag (STMicroelectronics Short Range family) comes into the antenna field, and deals with the ASCII User Data (either read
(AutoRead) or write operations (AutoWrite)). Every event is logged as a record in the Flash memory of the µPSD.
● In the AutoWrite cycle: first the reader has to memorize the user phrase, then, after a
“Start” (from the push button or the PC), the reader always writes the same ASCII phrase to the User Data area of whatever tag (STMicroelectronics Short Range family) that comes into the antenna field. The rest of the User Data is filled with blanks.
Successful read and write operations are indicated by the flashing of Green LED 1. The cycles have to be ended by a “Stop” (from either the push button or the PC). The only case where a cycle will end automatically is when the Flash memory space is full (full FLASH detected). Once the operation is stopped, the stored data can be downloaded to the PC through a USB or UART macro-command. If the Autonomous reader cycle is stopped the whole Flash memory record storage space can be erased via another macro-command.
Switching between the CRX14USB Demokit Mode and the Autonomous Mode can be done either through a software command from the PC or by pressing and holding the onboard button (SW1) for a few seconds.
Short-range reader UM0230 - User manual
12/19
3.1 Memory records
Autonomous Events are all being stored in the Flash memory space of the onboard microcontroller. To minimize and simplify Flash memory management, a simple principle of incremental write of records with fixed length (32 Bytes) is used. The structure of an event record is described in Table 1.
3.2 Control board description
To use the Control board in Autonomous mode it is useful to get familiar with the onboard diagnostic LEDs:
● Green LED 1 (the green LED closer to the µPSD chip) lights up to indicate an activity on the interface to the higher system, that is on the USB or RS232 ports.
● The red LED shows communication activity on the I²C bus and can therefore be interpreted simply as RF activity.
● Green LED 2 informs about the operating status of the board. It will light up in a continuous way in the CXR14USB Demokit mode and flash in the Autonomous mode.
Table 1. Event record structure
Name Offset [Bytes] Length [Bytes] Description
Header 0 1 Header of the record
Status Byte 1 1 Status byte of the reader
Data Field 2 16 Storage of the User Data received in Auto Read Mode
UID 18 8 Unique identifier of the tag that triggered Autonomous Event
Date Time 26 6 Time Stamp of the Autonomous Event
Table 2. Status Byte
Name Bit order Description
Reader Mode 0 Autonomous / CRX14 Demokit mode (0 / 1) Autonomous Cycle 1 Run / Stop (0 / 1)
Autonomous Status 2 AutoWrite / AutoRead (0 / 1)
Record Type 3 State change notice / Data Record (0 / 1) System Notice 4 Power lost / Default (0 / 1)
RFU 5-7 Reserved
Table 3. Onboard LED description
Onboard LED Description
Green LED 1 Activity on PC interfaces (USB / RS232)
Red LED Activity on I2C interface (delegated to RF activity)
Green LED 2 Reader’s mode of operation
Continuous / Flashing = CRX14USB Demokit mode / Autonomous mode
UM0230 - User manual Short-range reader
Figure 8. Control board description
1. Ext. means Extension header. The extension header is optional.
USB µPSD
JTAG RS232
DC power
PS2
(optional) Button I²C LEDs
Ext.
Win32 Dashboard Control UM0230 - User manual
14/19
4 Win32 Dashboard Control
The dashboard of the short-range RFID reader is divided into five panels: “Mode Switch”,
“Mode Control”, “RTC Control”, “Memory Records” and “Runtime Log”. They are shown in Figure 9.
In the “Mode Switch” panel, located at the center of the window, the user can switch modes (Switch Mode button) or check (Get Mode button) the current operating mode of the reader.
The “Mode Control” panel, on the left-hand side of the window, contains controls for Autonomous cycle setup and supervision: Auto Read Mode button, Auto Write Mode button, AutoWrite Mode Phrase edit box and Start / Stop button.
The panel also accommodates the Download All and Erase All buttons used for the maintenance of the Event Records stored in the onboard memory.
The three software LEDs that mirror the real-time behavior of the reader are also on the
“Mode Control” panel.
The “RTC Control” panel, located below the “Mode Switch” panel, contains the controls related to the reader’s Real Time Clock (RTC) chip: Set Time and Get Time buttons.
By pressing the Sync w PC button the user can easily synchronize the onboard reader’s time with the local PC/Laptop time.
The “Memory Records” panel, located at the bottom of the window, stores the information received from the reader after the Download All button has been pressed.
The “Runtime Log” panel, on the right-hand side of the window, simply traces all the activity managed by the Win32 Dashboard.
Figure 9. Description of the main Dashboard window
Mode Control Mode Switch RTC Control Memory Records Runtime Log
UM0230 - User manual HyperTerminal Control
5 HyperTerminal Control
The short-range reader can also be operated using an RS232 terminal software. A basic list of the commands used for that purpose is provided in Table 4. The response to these commands is usually formatted as a human readable string to be easily displayed on a win32 terminal.
Table 4. RS232 interface commands
Name Command Response/Description
Get Mode ‘m’ Current Status Byte (Hexadecimal)
Switch Mode ‘s’ Status Byte after the change (Hexadecimal) Get Time ‘t’ Board time from RTC
Start/Stop ‘r’ Status Byte after the change (Hexadecimal) Download All ‘d’ Memory record dump
Erase Flash ‘e’ Confirmation of operation Help ‘?’ List of available commands
Schematic diagrams UM0230 - User manual
16/19
Appendix A Schematic diagrams
Figure 10. Control board schematics
VUSB
V5.0V3.3V3.3V3.3V3.3V3.3V3.3V3.3V3.3V3.3V3.3V3.3V3.3 PC7PC7PC7PC7 VUSB GNDUSBR+USBR-
VUSB
VPSDVPSD
V5.0 V3.3
RSTn GND
V3.3 P4.4
V3.3 VPSD PB7
PB6
PB3 PB2 PB4 V3.3
PB1 PB0
PD1PC7 TDO TDI USBR-USBR+
Ai3Ai4Ai5 Ai1Ai2 Ai0
Ai6 Ai7
GND TCKPC2 P3.4
P3.6P3.7
P4.0
P3.5
P3.2 P3.3
TMS
PB5 P4.2
P4.6 P4.7 P4.5 P4.3
VPSD
GND P4.1 P3.1 P3.0 GND
RSTn TCK TMS TDI TDO
V3.3 V3.3P4.6
TDIV3.3 TDO
GND TMS TCKGND GND
V3.3
Rx P4.3Tx
P4.2 TxTxRxGND V5.0SDA GND SCL
V5.0SDA GND SCL SCLP3.7SDAP3.6
V5.0V5.0 V3.3
V3.3V5.0
GND GND
VPSD
V3.3P3.2 P3.2 SCL SDAGND
GND
V3.3
V3.3P4.7 P3.2
plusplusplusplus V5.0SDA GND SCL
V3.3V3.3V3.3 P4.5 P3.3 GNDP3.4P3.4P3.4P3.4V5.0 Ai5 Ai4PB6PB7Ai7Ai6 GNDV5.0V3.3 GND
V5.0V5.0 P3.4P3.4P3.4P3.4 Title SizeDocument Number Date:Sheet
1.1
SHAKY: RFID Reader A3 1WednesdayMarch082006
Title SizeDocument Number Date:Sheet
1.1
SHAKY: RFID Reader A3 1WednesdayMarch082006
Title SizeDocument Number Date:Sheet
1.1
SHAKY: RFID Reader A3 1WednesdayMarch082006
Power management 6.0V - 15V USB connector Mounting Holes Supply decoupling
PSD Voltage selector + Reset
Turbo uPSD Plus
JTAG connection LED Indicators + button
4p-JTAG
RS232 Interface I2C Interface
RTC (Real-Time Clock) 6-pin Mini-DIN (PS/2): 1 - Data 2 - Not Implemented 3 - Ground 4 - Vcc (+5V) 5 - Clock 6 - Not ImplementedPS2 Interface - optional EXD I/F - optional
R422R422
C8100nC8100n R21kR21k
C6 10u / 6.3VC6 10u / 6.3V 64 2135J6 M-DIN_6-R
J6 M-DIN_6-R
R522R522
IN1OUT3
U1 KF52/DPAK
U1 KF52/DPAK XI1 XO2 Vss3 WDO4
Vss 5
nc 6
nc 7
nc 8
SDA9SCL10I/F/O11nc12
13 nc Vcc
14 nc
15 nc
16
U6 M41T65
U6 M41T65
R1 6k8R1 6k8 X1 XTAL 24MHz
X1 XTAL 24MHz
PD1/CLKIN1 PC72 PC6/TDO3 PC5/TDI4 DEBUG5 3.3V Vcc6 USB+/R+7 Vdd (PSD)8 GND9 USB-10 PC2/Vstby11 PC1/TCK12 PC0/TMS13 P4.7 /PCACLK1
/SPISEL 14
P4.6 /TCM5
/SPITXD 15
P4.5 /TCM4
/SPIRXD 16
P4.4 /TCM3
/SPICL
K 17
P4.3 /TXD1(IrDA)/PCACL
K0 18
GND 19
P4.2 /TCM2
/RXD1
(IrDA) 20
P4.1 /TCM1
/T2
X 21
P4.0 /TCM0
/T2 22
P3.0
/RXD0 23
P3.1
/TXD0 24
P3.2 /TG0
/EXINT0 25
P3.3 /TG1
/EXINT1 26
P3.4/C027P3.5/C128P3.6/SDA29P3.7/SCL30XTAL131XTAL232Vdd (PSD)33P1.0/T2/Ai034P1.1/T2X/Ai135P1.2/RXD1(IrDA)/Ai236P1.3/TXD1(IrDA)/Ai337P1.4/SC/Ai438P1.5/SR/Ai539
P1.6 /ST/Ai6
40 /SS/Ai7 P1.7
41 PB7
42 PB6
43 RESET
44 GND
45 PB5
46 Vref Vcc/
47 PB4
48 PB3
49 PB2
50 PB1
51 PB0
52
U5 uPSD34xxT
U5 uPSD34xxT
5 94 8 37 2 61
P1
CONNECTOR DB9
P1
CONNECTOR DB9
C7100nC7100n C1222pC1222p
VCC16
R1IN13 R2IN8 T2IN10 T1IN11 C1+1 C1-3 C2+4 C2-5
R1OUT12 R2OUT9 T1OUT14 T2OUT7 V+2 V-6
U3 ST3232E
U3 ST3232E C18100nC18100n
1
HOLE4HOLE4
C1122pC1122p
RJTG410kRJTG410k
D4 Shottky
D4 Shottky RJTG310kRJTG310k C14100nC14100n
C10 4n7C10 4n7 13
24SW1SW1
C1 47u / 16VC1 47u / 16V R11 10kR11 10k 12 34 5678 910
J5 CON10AP
J5 CON10AP
S1 JP2JP2 1+5VS1 2D-3D+4GNDS2 USB1X90BUSB1X90B S2 RJTG210kRJTG210k +1 +3 +5 +7 +9 +11 +13
+2 +4 +6 +8 +10 +12 +14
J1 CON14AP
J1 CON14AP 12JP7JP7
C16100nC16100n R9100kR9100k
D7 GREEN LED
D7 GREEN LED R14 4k7R14 4k71234
J2 CON4
J2 CON4
1
HOLE2HOLE2
C5 100n
C5 100n X2
XTAL 32768Hz X2
XTAL 32768Hz
D2 Shottky
D2 Shottky R120R120
R7 470
R7 470
Vout1 GND2 GND3 NC4INH5GND6GND7Vin8U2 LE33
U2 LE33 C15100nC15100n R13 4k7R13 4k7
D6 RED LED
D6 RED LED
R6 470
R6 470 R10 470R10 470 C17100nC17100n
R8 0R8 0 C13 100nC13 100n
12JP1 9V BATT JP1 9V BATT
C4 100n
C4 100n
D3 Shottky
D3 Shottky 1234
J4 CON4
J4 CON4
C2 10u / 6.3VC2 10u / 6.3V R15 4k7R15 4k7
C3 1u / 6.3VC3 1u / 6.3V D5 GREEN LEDD5 GREEN LED
1 2 3
CP1SDC-16CP1SDC-16 RJTG110kRJTG110k 1
HOLE1HOLE1 1234
J3 CON4
J3 CON4
R3 100kR3 100k
D1 Shottky
D1 Shottky 12 JP8JP8
R16 4k7R16 4k7
1
HOLE3HOLE3
UM0230 - User manual Schematic diagrams
Figure 11. Antenna board schematics
27p
C3 D2 1N414836pC36 8.2KR2180p
C5 22KR6
15KR3 To RFIN X2 13.56MHz
C447pF C45 7pF
VCC FL1
1 2 3 4
J2
RFIN
C21 22u C29 22u
100nC1010uHL3 100nC11 VCC
C25 22u 22uHl9 22uHL10 0.15uH
L12 1uH
L11 100n
C7 C30 22u10KR13 68R16 47R10
Q2 BCP5616
100pC47
150p
C39 10pC40 330p
C46
vcc C41 68pC42 C48 100pC49option
R7 3.3
R8 0R9
From Ant Vref1 RF IN2 E03 E14 E25 GND_RF6 GND7 GND8SDA9SCL10GND11OSC212OSC113GND_RF14RF OUT15Vcc16U1 CRX14
ANT
18pC1
FL2 FL3 FL4 FL5
References UM0230 - User manual
18/19
6 References
● User manual UM0080: “Reader USB CRX14 (V4.0) Demonstration Software”.
● CR14 datasheet: “Low Cost ISO14443 type-B Contactless Coupler Chip with Anti- Collision and CRC Management”
● CRX14 datasheet: “Low Cost ISO14443 type-B Contactless Coupler Chip with Anti- Collision, CRC Management and Anti-Clone Function”
● µPSD3422EV datasheet: “Turbo Plus Series, Fast Turbo 8032 MCU with USB and Programmable Logic”
● M41T65 datasheet: “Serial Access Real-Time Clock with Alarms”
7 Revision history
Table 5. Document revision history
Date Revision Changes
14-Apr-2006 1 Initial release.
UM0230 - User manual
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
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.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS, WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2006 STMicroelectronics - All rights reserved