Download AppNote 405 - MERA

Transcript
EM MICROELECTRONIC - MARIN SA
AppNote 405
Application Note 405
Title:
Development Kit EM4095 User’s Manual
Product Family:
RFID
Part Number:
Keywords:
Date:
EMDB401
RFID Design Tools
25 September 2002
TABLE OF CONTENT
1
2
3
4
5
6
7
Introduction....................................................................................................................................................................... 2
Transponder Types........................................................................................................................................................... 2
2.1
Read Only Transponder EM4102 .............................................................................................................................. 2
2.2
Read Only Transponder EM4005 .............................................................................................................................. 2
2.3
1kBit Read / Write Transponder EM4150 .................................................................................................................. 2
2.4
Crypt Read / Write Transponder EM4170 ................................................................................................................. 2
2.5
Read Only with Anticollision Transponder EM4025................................................................................................... 2
2.6
2kBit Read / Write Anticollision Transponder EM4056 .............................................................................................. 2
Initial Start-up ................................................................................................................................................................... 2
Interface............................................................................................................................................................................ 2
4.1
Message structure ..................................................................................................................................................... 2
4.2
Communication link ................................................................................................................................................... 3
4.2.1
Communication syntax ....................................................................................................................................... 3
4.2.2
Request messages to the transponder reader ................................................................................................... 4
4.2.3
Response message from the transponder reader .............................................................................................. 5
4.3
Error List.................................................................................................................................................................... 6
4.3.1
Principle Handling of Transponder Reader ........................................................................................................ 7
Software ........................................................................................................................................................................... 8
5.1
Reader flow chart Start of Reader and UART communication .................................................................................. 8
5.2
Command handling ................................................................................................................................................... 9
5.2.1
Flow Chart Transponder EM4102 .................................................................................................................... 10
5.2.2
Flow Chart Transponder EM4005 .................................................................................................................... 11
5.2.3
Flow chart Transponder EM4150 ..................................................................................................................... 12
5.2.4
Flow chart Transponder EM4170 ..................................................................................................................... 13
5.2.5
Flow chart Transponder EM4025 ..................................................................................................................... 14
5.2.6
Flow chart Transponder EM4056 ..................................................................................................................... 15
5.3
Flow chart communication with Transponder .......................................................................................................... 16
6. Hardware .................................................................................................................................................................... 17
6.1
6.1 Description......................................................................................................................................................... 17
6.2
Development Kit EM4095 Circuit Diagram .............................................................................................................. 18
6.3
Development Kit EM4095 Board image................................................................................................................... 19
6.4
Development Kit EM4095 top Layer Image ............................................................................................................. 20
6.5
Development Kit EM4095 bottom layer image ........................................................................................................ 20
Appendix......................................................................................................................................................................... 21
Copyright  2001, EM Microelectronic-Marin SA
1
www.emmicroelectronic.com
AppNote 405
1
Introduction
The Development Kit EM4095 is designed for a quick step
into RFID System design. It contains the EM reader chip
EM4095 and a programmed µP with an RS 232 interface.
It can be used as a complete reader Module (printed coil
on board) or the programmed microcontroller and the
reader chip EM4095 can be integrated in customer
specific board designs.
The Development Kit EM4095 can communicate with the
following types of EM Transponder chips:
•
EM4100 / EM4102
•
EM4005 / EM4105
•
EM4150
•
EM4170
•
EM4025
•
EM4056
When the DC voltage crosses the Power–On level, the
chip will enter the Standby Mode and expect commands.
In Standby Mode, a continuous sequence of Listen
Windows (LIW) is generated. During this time, the Crypt
transponder will turn to the Receive Mode (RM) if it
receives a valid RM pattern. The chip then expects a
command to enter the desired mode of operation.
2.5
Read Only with Anticollision Transponder
EM4025
A transponder is supplied by means of an electromagnetic
field induced on the attached coil. The AC voltage is
rectified in order to provide a DC internal supply voltage.
When the DC voltage crosses the Power–On level, the
chip will enter the Quit Mode and waits for a command
from the reader. The implemented anticollision protocol
allows identifying a variety of transponders placed in the
reader field by using dedicated commands.
2.6
It allows the user to communicate with the transponders
via serial interface and does not require any knowledge of
transponder technology.
2
Transponder Types
2.1
Read Only Transponder EM4102
The Transponder is powered by an electromagnetic field
and gets the master clock from the same field. By turning
on and off the modulation current, the transponder sends
back the 64 bits of information contained in a factory preprogrammed memory array.
2.2
Read Only Transponder EM4005
The Transponder is powered by an electromagnetic field,
and gets the master clock from the same field. By turning
on and off the modulation current, the transponder sends
back the 64 bits of information contained in a factory preprogrammed memory array.
2.3
1kBit Read / Write Transponder EM4150
A transponder is supplied by means of an electromagnetic
field induced to the attached coil. The AC voltage is
rectified in order to provide a DC internal supply voltage.
When the DC voltage crosses the Power–On level, the
chip will enter the Standard Read Mode and send data.
The data to be sent in this mode is user defined by storing
the first and last addresses to be output. When the last
address is sent, the transponder continues with the first
address until the transceiver sends a request. In the read
mode, a Listen Window (LIW) is generated before each
word. During this time, the EM4150 will turn to the
Receive Mode (RM) if it receives a valid RM pattern. The
Transponder then expects a valid command.
2.4
Crypt Read / Write Transponder EM4170
A transponder is supplied by means of an electromagnetic
field induced on the attached coil. The AC voltage is
rectified in order to provide a DC internal supply voltage.
Copyright  2001, EM Microelectronic-Marin SA
2kBit Read / Write Anticollision Transponder
EM4056
A transponder is supplied by means of an electromagnetic
field induced on the attached coil. The AC voltage is
rectified in order to provide a DC internal supply voltage.
When the DC voltage crosses the Power–On level, the
chip will enter the Quit Mode and waits for a command
from the reader. The implemented anticollision protocol
allows identifying a variety of transponders placed in the
reader field by using dedicated commands.
3
Initial Start-up
Before supplying 5V power to the board, connect a serial
cable (1:1) to your PC.
With a standard terminal program (9600 baud, 8 data bits,
no parity, 1 stop bit) you can send commands to the
reader in hex format.
To start the reader, a request message from the Master
(PC) must be sent. The reader answers by means of a
response message.
4
4.1
Interface
Message structure
A Message starts with byte STX (Start of Text). Its value is
always equal to 0x02. The next byte (n) transmits the
position of the Checksum byte (called CHK), followed by
the command byte and if necessary required data bytes to
the reader.
All the commands for all RFID transponders are described
in the following tables.
The following 8bit checksum (CHK Byte) for the RS 232
interface is needed for Request and Response messages:
The Checksum is calculated byte per byte with XOR
operation since “n” Byte up to CHK Byte.
CRC = byte1 XOR byte2 XOR … byten-1
Send an ETX (End of Text) after the Checksum Byte for
completing the data stream. The value of ETX is equal to
0X03.
The response of the transponder reader has the same
syntax.
2
www.emmicroelectronic.com
AppNote 405
4.2
Communication link
4.2.1
Communication syntax
In the following tables the description of the message
syntax which is needed for the communication to the
Development Kit EM4095 is given.
Inside the response message from the RFID transponder,
the ACK Byte value is equal to 0X06 and the NACK Byte
value is 0X15.
configuration of Serial interface
9600 Baud
8 bits
no parity
no stop bit
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Antenna
Short
JNQ Channel
Reader
Coil
ON/OFF
all values HEX
discription of serial bytes
start of Text
Color /content
STX
position of checksum byte
command
n
0
response ACK or NAK
ACK/
NAK
checksum over byte1 until byte n-1
CHK
end of Text
ETX
error
F
data
ADR
Reader
Status
Bit7
STB0
( control byte 0 )
0
0
0
0
Antenna
fault
STB1
( control byte 1 )
0
0
0
0
0
STB2
( control byte 2 )
0
0
0
0
0
2 ( 2k Baud )
3 ( 3,2k Baud )
4 ( 4k Baud )
0
0
0
Table 1: Message Format
Copyright  2001, EM Microelectronic-Marin SA
3
www.emmicroelectronic.com
AppNote 405
4.2.2
Request messages to the transponder reader
serial data byte
command description ->TagReader
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
CHK
ETX
CHK
ETX
TXP EM4170
read ID
STX
n
01h
CHK
ETX
read UM1
STX
n
02h
CHK
ETX
Authentication
STX
n
03h
write word 0-1
STX
n
04h
write word 12-15
STX
n
04h
write SKEY
STX
n
05h
MSB word 9 LSB
MSB word 8 LSB
MSB word 7 LSB MSB word 6 LSB MSB word 5 LSB MSB word 4 LSB
write PIN
STX
n
06h
LSB IDw2 MSB
LSB IDw3 MSB
MSB PINw10 LSB
MSB PINw11 LSB
CHK
ETX
send PIN
STX
n
07h
LSB IDw2 MSB
LSB IDw3 MSB
MSB PINw10 LSB
MSB PINw11 LSB
CHK
ETX
read UM2
STX
n
08h
CHK
ETX
Read Only Txp read ID 4102
STX
n
10h
CHK
ETX
Read Only Txp read ID 4105
STX
n
11h
CHK
ETX
MSB word 9 LSB
ADR
LSB
ADR
LSB
MSB word 8 LSB
MSB
CHK
MSB
CHK
MSB word 7 LSB MSB word 6 LSB MSB word 5 LSB MSB word 4 LSB
ETX
ETX
TXP EM4102/4105
TXP EM4150
Login
STX
n
30h
0x01
MSB PW LSB
Write Password
STX
n
31h
0x01
MSB OldPW LSB
Write Word*
STX
n
32h
ADR
MSB word LSB
Selective Read Mode
1
STX
n
33h
XX
XX
Reset
STX
n
34h
CHK
ETX
Read Tag define in Control word2
STX
n
35h
CHK
ETX
XX
LWR
CHK
ETX
MSB NewPW LSB
FWR
CHK
ETX
CHK
ETX
CHK
ETX
TXP EM4025
Select - Read ( 30h ) / Toggle ( 24h)
STX
n
40h
Select
Select (22h) / Deselect (12h) Customer ID
STX
n
41h
Select
C.ID
CHK
General - Read(14h)/Read if Enable(06h)/Reset(35h)
STX
n
42h
Genral
CHK
ETX
Start Arbitration
STX
n
43h
StartBit*
CHK
ETX
Stop Arbitration
STX
n
44h
CHK
ETX
ReadRom
STX
n
50h
CHK
ETX
Select - Toggle ( 04h ) / Tag( 05h) / DeSelectTag ( 06h
STX
n
51h
Select
Protection write
STX
n
52h
Adr
Wp/Rp
Read word
STX
n
53h
Adr
CHK
Word Access - Write(0Ch) / Add(0Dh) / Comp(0Eh)
STX
n
54h
Access
Adr
Login
STX
n
55h
CHK
MSB Adress LSB
ETX
ETX
*TAG ID bit address range from D20 ( 001000 ) to D92 ( 100110 )
TXP EM4056
CHK
MSB Adress LSB
LSB Pin MSB
Start Arbitration
STX
n
56h
CHK
ETX
Stop Arbitration
STX
n
57h
CHK
ETX
CHK
ETX
ETX
ETX
MSB word 9 LSB
CHK
CHK
ETX
ETX
Reader command
Status Reader (send autom. after Power ON)
STX
n
FDh
CHK
ETX
switch Coil ON/OFF
STX
n
FEh
ON/OFF
CHK
ETX
Change Baudrate
STX
n
FFh
BRG4
CHK
ETX
Table 2: Request messages to the transponder reader
Copyright  2001, EM Microelectronic-Marin SA
4
www.emmicroelectronic.com
AppNote 405
4.2.3
Response message from the transponder reader
serial data byte
response TagReader
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
12
13
14
15
TXP EM4170
read ID
STX
n
01h
ACK
MSB IDw3 LSB
MSB IDw2 LSB
CHK
ETX
read UM1
STX
n
02h
ACK
MSB UMw1 LSB MSB UMw0 LSB
CHK
ETX
Authentication
STX
n
03h
ACK
CHK
ETX
CHK
ETX
write word 0-1
STX
n
04h
ACK
MSB UMw1 LSB MSB UMw0 LSB
write word 12-15
STX
n
04h
ACK
MSB UMw15 LSB
write SKEY
STX
n
05h
ACK
CHK
ETX
write PIN
STX
n
06h
ACK
CHK
ETX
send PIN
STX
n
07h
ACK
CHK
ETX
read UM2
STX
n
08h
ACK
MSB UMw15 LSB
MSB UMw14 LSB
MSB UMw13 LSB
MSB UMw12 LSB
CHK
ETX
MSB UMw14 LSB
MSB UMw13 LSB
MSB UMw12 LSB
CHK
ETX
TXP EM4102/4105
Read ID 4102
STX
n
10h
ACK
Customer
code
Read ID 4105
STX
n
11h
ACK
MSB IDw7 LSB
MSB IDw1 LSB
MSB IDw0 LSB
CHK
MSB IDw6 LSB
MSB IDw5 LSB
ETX
MSB IDw4 LSB
MSB IDw3 LSB
MSB IDw2 LSB
MSB IDw1 LSB
MSB IDw0 LSB
CHK ETX
TXP EM4150
Login
STX
n
30h
ACK
CHK
ETX
Write Password
STX
n
31h
ACK
CHK
ETX
Write Word*
STX
n
32h
ACK
ADR
MSB word LSB
CHK
ETX
STX
n
33h
ACK
ADR
MSB word LSB
CHK
ETX
STX
n
34h
ACK
CHK
STX
n
33h
3
ACK
ADR
MSB word LSB
CHK
ETX
Select - Read ( 30h )
Toggle ( 24h)
STX
n
40h
ACK
BitVal
CHK
ETX
Select (22h)
Deselect (12h)
Customer ID
STX
n
41h
ACK
BitVal
CHK
ETX
General - Read(14h)
Read if Enable(06h)
STX
n
42h
ACK
Customer
code
MSB IDw1 LSB
MSB IDw0 LSB
CHK
ETX
Start Arbitration
STX
n
43h
ACK
Customer
code
MSB IDw1 LSB
MSB IDw0 LSB
CHK
ETX
Stop Arbitration
STX
n
44h
ACK
CHK
ReadRom
Select - Toggle ( 04h )
Tag( 05h)
DeSelectTag ( 06h )
STX
n
50h
ACK
CHK
ETX
STX
n
51h
TagStat
CHK
ETX
Protection write
STX
n
52h
ACK
TagStat
CHK
ETX
Read word
Write(0Ch)
Add(0Dh)
Comp(0Eh)
STX
n
53h
ACK
MSB word 9 LSB
Prot
STX
n
54h
TagStat
CHK
ETX
Login
STX
n
55h
ACK
TagStat
CHK
ETX
Start Arbitration
STX
n
56h
ACK
Stop Arbitratrion
STX
n
57h
ACK
Selective Read Mode
1
Reset
Read Tag define
2
in Control word
ETX
TXP EM4025
General - Reset(35h)
STX
n
SW_VERSION
CHK
ETX
42h
ACK
BitVal
CHK ETX
ETX
TXP EM4056
MSB Adress LSB
ACK
CHK
ETX
ACK
MSB Adress LSB
CHK
ETX
CHK
ETX
day
month
Reader command
Status Reader
STX
n
FDh
ACK
STB2
STB1
switch Coil ON/OFF
STX
n
FEh
ACK
CHK
ETX
Change Baudrate
STX
n
FFh
ACK
CHK
ETX
(send autom. after Power ON)
STB0
0
year
MSB
LSB
Table 3: Response message from the transponder reader
* Verification automatically
1
2
3
send for each requested word
send for each word defined in the control word
switch automatically to selective read
Copyright  2001, EM Microelectronic-Marin SA
5
www.emmicroelectronic.com
AppNote 405
4.3
Error List
Below you find the Error List sent by the Development Kit
EM4095.
Inside the Response message a Status Byte will indicate
if the message is correct or if something wrong happens.
In effect, if the Development Kit EM4095 send you a
NACK byte (which value is 0X15), you will have to
analyze the value of the next byte and refer to the
following table.
no.
0x01
0x02
0x03
0x04
0x10
0x11
0x12
0x13
0x14
0x15
0x16
0x17
0x18
0x19
0x1A
0x1B
0x1C
0x1D
0x20
0x30
0x31
0x32
0x33
0x34
0x35
0x36
Description
Antenna Fault
timout power up
timout read Txp
10 times IQ changed
read ID- Fault
read ID checksumm Fault
read UM Fault
read UM Parity Fault
None LIW
wrong adress
writing content fault
wrong data
parity error
word write protected
NAK receive
unknown command after sel.read
Logbits not reset
Timeout no answer from Tag
Timeout RF
Error flag
overflow uart buffer
wrong inv. Commmand
wrong crc
unknown command
none ETX
interbyte error
Error from
Reader Asic
Reader Asic
Reader Asic
Reader Asic
STxp
STxp
STxp
STxp
4070/4050
4070/4050
4070/4050
4050
4050
4050
4050
4050
4170
4025
RF
Uart
Uart
Uart
Uart
Uart
Uart
Uart
Error Message example sent Dev. Kit EM4095:
Message: 02 05 10 15 10 10 03
0x02:
0x05:
0x10:
0x15:
0x10:
0x10:
0x03:
Start of Text
Position of the Checksum
Kind of Command
NACK
Kind of Error : Problem of reading tag’s ID
Checksum of the Data Stream = 05 XOR 10
XOR 15 XOR 10
End of Text
Table 4 : Error List
Copyright  2001, EM Microelectronic-Marin SA
6
www.emmicroelectronic.com
AppNote 405
4.3.1
Principle Handling of Transponder Reader
Start of Operation
Switch Power On
Receive Startup
Message ChipSet
4095
Subroutine
Send command
Sub. Send
command
"Coil ON"
Send command
to reader
Sub. Send
command
"Change
Baudrate"
No
Response from
reader
Sub. Send
command
Transponder
command
Yes
Yes
Analyse
received Data
additional
action
End of Subroutine
No
Sub. Send
command
"Coil OFF"
end of Operation
Figure 1 : Principle Handling of Transponder Reader
Copyright  2001, EM Microelectronic-Marin SA
7
www.emmicroelectronic.com
AppNote 405
5
5.1
Software
Reader flow chart Start of Reader and UART communication
Start Reader
Start Receive
UARt INT
Init µC
send Reader
status via Uart
INT occured
enable Receive
Uart INT
Byte receive
OK
No
clr status
"new message"
1
Yes
set status
"NEW
MESSAGE"
1
Yes
if ( 1 )
STX
received
state machine
status
NEW
MESSAGE
No
No
1
No
1
Yes
fill uart buffer
ETX received
Yes
CRC OK
No
clr status
"new message"
1
Yes
Disable
receive Interrupt
Task 1
Analyse
command
clr status
"new message"
1
end of Interrupt
Figure 2: Reader flow chart Start of Reader and UART communication
Copyright  2001, EM Microelectronic-Marin SA
8
www.emmicroelectronic.com
AppNote 405
5.2
Command handling
Task 1
Analyse command
Yes
transfer status
Data to uart buffer
1
Yes
shutdown off
Wait 35ms
1
Yes
shutdown on
1
Yes
Change Baudrate
1
Yes
state
command
4100
1
Yes
state
command
4105
1
Yes
state
command
4150
1
Yes
state
command
4170
1
command
4025
Yes
state
command
4025
1
command
4056
Yes
state
command
4056
1
Status Reader
No
Coil On
command
No
Coil Off
command
No
Change
Baudrate
No
command
4100
No
command
4105
No
command
4150
No
1
command
4170
No
Send
ACK | NAK & Data
via Uart
enable Receive
Uart INT
enable Receive
Uart INT
end Task1
Figure 3: Command handling
Copyright  2001, EM Microelectronic-Marin SA
9
www.emmicroelectronic.com
AppNote 405
5.2.1
Flow Chart Transponder EM4102
command 4100
Start Int errupt
Interrupt occured
Read bit time
save data bit
start Read INT
No
No
status
"READ ID OK"
64bi ts
readed
Yes
Yes
header ok
disabl e Read INT
set st atus
"READ ID OK"
No
Yes
Parity line
chec k O K
No
Yes
Parity row
chec k O K
No
No
10 ti mes
readi ng
invert 64 b its
header ok
No
Yes
1
Yes
Yes
Parit y line
chec k O K
No
Yes
1
Parity row
chec k O K
Yes
No
return
end of Interrupt
Figure 4: Flow Chart Transponder EM4102
Copyright  2001, EM Microelectronic-Marin SA
10
www.emmicroelectronic.com
AppNote 405
5.2.2
Flow Chart Transponder EM4005
command 4105
Start Interrupt
Interrupt occured
Read bit time
save data bit
start Read INT
No
128bits
readed
No
Yes
disable Read INT
set status
"READ ID OK"
status
"READ ID OK"
Yes
header ok
No
Yes
crc ok
No
No
10 times
reading
invert 128bits
header ok
Yes
No
Yes
1
Yes
crc ok
1
No
Yes
return
end of Interrupt
Figure 5: Flow Chart Transponder EM4005
Copyright  2001, EM Microelectronic-Marin SA
11
www.emmicroelectronic.com
AppNote 405
5.2.3
Flow chart Transponder EM4150
2
command 4150
No
10 times
Yes
3
set status
"LIW MODE"
No
Login
command
prep. Login
command
start rd INT
No
Write
Password
prep. write
Password
command
start rd INT
Yes
status
"WRITE
FINISH"
Yes
ACK & Data
OK
3
2
Yes
Yes
No
prep. selct.
read
command
start rd INT
3
3
No
status
"DATA READ
OK"
Yes
ACK & Data
OK
No
prep. Reset
command
start rd INT
prep. read
tag
command
start rd INT
2
Yes
No
status
"DATA READ
OK"
Yes
No
No
ReadTag
define in Ctrl word
ACK & Data
OK
No
status
"WRITE
FINISH"
prep. write
word
command
start rd INT
No
Reset
Yes
2
No
No
Select. Read
Mode
status
"DATA READ
OK"
No
No
Write
word
No
ACK & Data
OK
2
Yes
No
status
"DATA READ
OK"
Yes
ACK & Data
OK
3
3
2
Yes
3
return
Figure 6: Flow chart Transponder EM4150
Copyright  2001, EM Microelectronic-Marin SA
12
www.emmicroelectronic.com
AppNote 405
5.2.4
Flow chart Transponder EM4170
command 4170
2
No
10 times
Yes
3
set status
"LIW MODE"
No
Read ID
Yes
prep. ID
command
start rd INT
status
"DATA READ
OK"
Yes
prep. UM1
command
start rd INT
calc. crypt
prep. Auth.
command
start rd INT
write w0 | w1
Yes
prep. write
command
start rd INT
Yes
prep. write
command
start rd INT
No
Yes
Yes
3
3
status
"WRITE
FINISH"
Yes
3
set status
"LIW MODE"
write next
SKEY word
Yes
last SKEY
written
Yes
3
last PIN
written
Yes
3
set status
"LIW MODE"
write next
PIN word
No
prep. write
command
start rd INT
status
"WRITE
FINISH"
Yes
No
No
Yes
prep. PIN
command
start rd INT
No
read UM2
Yes
Yes
status
"WRITE
FINISH"
No
No
send Pin
2
status
"WRITE
FINISH"
No
prep. write
command
start rd INT
No
write Pin
g-fkt. Ok
3
No
No
write SKEY
Yes
No
No
write w12 |
w15
Yes
3
2
No
status
"DATA READ
OK"
No
Yes
2 of
3 Ok
Yes
No
Yes
2
No
status
"DATA READ
OK"
No
Authentication
ID CRC
Ok
Yes
No
No
Read UM1
No
status
"DATA READ
OK"
Yes
ID CRC
Ok
prep. UM2
command
start rd INT
Yes
No
No
Yes
2
status
"DATA READ
OK"
Yes
2 of
3 Ok
3
2
Yes
3
No
3
return
Figure 7: Flow chart Transponder EM4170
Copyright  2001, EM Microelectronic-Marin SA
13
www.emmicroelectronic.com
AppNote 405
5.2.5
Flow chart Transponder EM4025
Power ON
RdEnb = 0
Init Quiet Mode
No
Get Command
Yes
Abort Abritration
first
two bit = 00
No
Yes
Yes
General
Read / IF
Enabled
if Abort
command
send memory
array
Yes
No
No
Yes
Yes
No
Start
Abritration
General Read
No
RdEnb = 0
No
Yes
No
Modify
RdEnb
bit equal
Yes
Yes
modify RdEnb
No
Bit D93
send RdEnb
Yes
No
send memory
array
RdEnb = 1
send next BitVal
Figure 8: Flow chart Transponder EM4025
Copyright  2001, EM Microelectronic-Marin SA
14
www.emmicroelectronic.com
AppNote 405
5.2.6
Flow chart Transponder EM4056
Power ON
RdEnb = 0
Init Quiet Mode
No
Get Command
Yes
continue
Arbitration
No
Yes
ReadRom
Yes
send memory
array
No
Start
Abritration
Yes
No
RdEnb = 0?
No
Yes
No
Modify
EEPROM
bit equal
Yes
Yes
No
send EEPROM
content / status
& CRC
32nd Bit
Yes
No
send next BitVal
write EEPROM
send CRC
RdEnb = 1
Figure 9: Flow chart Transponder EM4056
Copyright  2001, EM Microelectronic-Marin SA
15
www.emmicroelectronic.com
AppNote 405
5.3
Flow chart communication with Transponder
Start Read INT
Start Write INT
Start Wait Timer
INT occured
INT occured
INT occured
pulse
measurement
write next bit
wait write
time over
LIW MODE
Yes
LIW
Algorithmus
LIW
acknowledged
all bits send
No
READ MODE
No
2
dis. Timer INT
set status
"WRITE FINISH"
Yes
Yes
save bit in buffer
write word
command
Yes
No
complete data
read
Yes
No
enable Read INT
switch to
"READ MODE"
switch to write Tag
enable write INT
start timer for
E2PROM write
time TAG
Yes
Set Status
"DATA READ OK"
No
1
No
disable read INT
disable write INT
1
2
end of read INT
end of write INT
End Timer
Figure 10: Flow chart communication with Transponder
Copyright  2001, EM Microelectronic-Marin SA
16
www.emmicroelectronic.com
AppNote 405
6
Hardware
6.1
Description
The Development Kit EM4095 is a complete Reader
board including coil which only needs an 5 V power
supply and communicates with an RS 232 interface. The
board can be integrated into a customer specific
application or parts of the schematic can be integrated in
a customer specific board design.
The CryptCo microcontroller which calculates the crypt
functions for the EM4170 Crypt Transponder is only
needed for this type of transponder.
On the following pages the circuit diagram of the chip set
board, and the layout is documented. The board can be
used with the printed reading coil or an external coil can
be connected; in this case the connection to the printed
coil should be disabled. When using an external coil the
resonance capacitors should be changed, so that the
circuit is tuned to resonance. Details are described in the
EM4095 application note.
So, if you want to connect your own antenna to the
Development Kit EM4095, you will have to:
•
Disconnect the integrated coil by cutting the two nets,
which are connected, to LB1 & LB2.
•
Connect your antenna to X6 & X7.
•
Use the EM4095 Excel worksheet to calculate the
value of capacitors C1, C2 & C3. This sheet can be
found on EM's website www.emmicroelectronic.com.
To calculate these 3 capacitor values, you will have to
measure previously some specifications of your antenna:
•
Coil value in Henry to determine the value of C1.
•
Q Quality factor: Q = (L * W) / Rs. Rs is the serial
resistor of the Antenna.
With the Development Kit EM4095, you can also boost or
reduce the Antenna current by changing the value of the
resistance R1.
For example, if you decide to reduce the R1 value, you
can increase the Reading and/or Writing distance.
Caution: The Antenna current has to be lower than
200mA (EM4095 maximum AC peak current on ANT1
and ANT2 pads).
For
more
information,
please,
contact
[email protected] Internet email address.
Copyright  2001, EM Microelectronic-Marin SA
17
www.emmicroelectronic.com
AppNote 405
6.2
Development Kit EM4095 Circuit Diagram
Copyright  2001, EM Microelectronic-Marin SA
18
www.emmicroelectronic.com
AppNote 405
6.3
Development Kit EM4095 Board image
Copyright  2001, EM Microelectronic-Marin SA
19
www.emmicroelectronic.com
AppNote 405
6.4
Development Kit EM4095 top Layer Image
6.5
Development Kit EM4095 bottom layer image
Copyright  2001, EM Microelectronic-Marin SA
20
www.emmicroelectronic.com
AppNote 405
7
Appendix
For further information see also:
Datasheet
EM4095 Read/Write analog front end for 125kHz RFID
Basestation
EM Microelectronic-Marin SA, Marin, 2000
Datasheet
EM4170 Crypto Contactless Identification Device
EM Microelectronic-Marin SA, Marin, 2001
Datasheet
EM4150 Read / Write 1Kbit Identification Device
EM Microelectronic-Marin SA, Marin, 2001
Datasheet
EM 4056 Read / Write with Anticollision Identification
Device
EM Microelectronic-Marin SA, Marin, 2001
Datasheet
EM4025 Read Only with Anticollision Identification
Device
EM Microelectronic-Marin SA, Marin, 2001
Datasheet
EM 4102 Read Only 64 bit Identification Device
EM Microelectronic-Marin SA, Marin, 2001
EM Microelectronic-Marin SA cannot assume responsibility for use of any circuitry described other than circuitry
entirely embodied in an EM Microelectronic-Marin SA product. EM Microelectronic-Marin SA reserves the right to
change the circuitry and specifications without notice at any time. You are strongly urged to ensure that the
information given has not been superseded by a more up-to-date version.
© EM Microelectronic-Marin SA, 09/02, Rev. B, Preliminary
Copyright  2001, EM Microelectronic-Marin SA
21
www.emmicroelectronic.com