Contactless Card Read/Write Module
(
YW-201
)
User’s Manual
e)
Command: Refer to the Command List.
f)
The Content of n bytes: the parameter.
g)
CheckSum: XOR result from [
Length
] to then last byte of [
DATA
].
2)
Respond Format(YW-201module
→
MCU)
[LEN]
[CMD]
[STATUS]
[DATA]
[CHK]
Content
Package Length
Command
0x00:Success
0xFF: Fail
The
Content
of n bytes
CheckSum
Num of
Byte
1 1
1
n
1
Table 5
h)
Package Length: the byte from Length itself to Checksum
.
i)
Command: Refer to the Command List.
j)
Status: Operation result. Success: 0x00. Fail: 0xFF.
k)
The Content of n bytes: the parameter.
l)
CheckSum: XOR result from [
Length
] to then last byte of [
DATA
].
5.3 Switch of Uart and IIC
YW-201 Contactless card read/write module
support UART and IIC, they can
be switched by the port PORTSEL
PORTSEL = 1(High), UART is selected.
PORTSEL = 0(Low), IIC is selected.
6
Command List
[CMD
Name]
[Dir
]
[LEN
]
[CMD
]
[STATUS
and DATA]
[Description]
System Command
1 Modue
Send
0x04 0x01
0x00
4 combination with bit0 and bit1:
Contactless Card, RFID… Page 8 / 15
http://www.youwokeji.com.cn