28440 Parallax Inc, 28440 Datasheet - Page 10

RFID Modules & Development Tools RFID Read/Write Serial Module

28440

Manufacturer Part Number
28440
Description
RFID Modules & Development Tools RFID Read/Write Serial Module
Manufacturer
Parallax Inc
Datasheet

Specifications of 28440

Operating Current
10 mA
Operating Voltage
5 V
Product
RFID Readers
Wireless Frequency
125 KHz
Dimensions
3.25 in x 2.45 in
Operating Temperature Range
- 40 C to + 85 C
For Use With/related Products
EM4x50
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
' Status/error return codes
ERR_OK
ERR_LIW
ERR_NAK
ERR_NAK_OLDPW
ERR_NAK_NEWPW
ERR_LIW_NEWPW
ERR_PARITY
' -----[ Variables ]------------------------------------------------------------------
buf
idx
idy
' -----[ EEPROM Data ]----------------------------------------------------------------
' -----[ Initialization ]-------------------------------------------------------------
Initialize:
' -----[ Program Code ]---------------------------------------------------------------
Main:
Read_Tag:
Write_Tag:
' -----[ End of File ]----------------------------------------------------
Copyright © Parallax Inc.
PAUSE 250
DEBUG CLS
DEBUG "Parallax RFID Read/Write Module Test Application", CR,
DEBUG "Reading tag's unique serial number..."
SEROUT RFID_TX, Baud, ["!RW", RFID_Read, ADDR_Serial]
SERIN
IF buf(0) <> ERR_OK THEN Read_Tag
FOR idx = 1 TO 4
NEXT
DEBUG CR
DEBUG "Writing and verifying data to tag..."
SEROUT RFID_TX, Baud, ["!RW", RFID_Write, 3, $FE, $ED, $BE, $EF] ' Write $FEEDBEEF
SERIN RFID_RX, Baud, [buf(0)]
IF buf(0) <> ERR_OK THEN Write_Tag
DEBUG "Success!", CR
DEBUG "End of test.", CR
END
DEBUG HEX2 buf(idx)
"------------------------------------------------", CR, CR
VAR
VAR
VAR
RFID_RX, Baud, [STR buf\5]
' let DEBUG open
' clear the screen
CON
CON
CON
CON
CON
CON
CON
Byte(12)
Byte
Byte
$01
$02
$03
$04
$05
$06
$07
RFID Read/Write Module, Serial (#28440)
' No errors
' Did not find a listen window
' Received a NAK, could be invalid command
' Received a NAK sending old password (RFID_SetPass),
' could be incorrect password
' Received a NAK sending new password (RFID_SetPass)
' Did not find a listen window after sending
' old password (RFID_SetPass)
' Parity error when reading data
' data buffer
' index
' Get status byte and data bytes
' If we get an error, keep trying
' until the read is successful
' Print data
' into address 4 (user EEPROM area)
' Wait for status byte
' If we get an error, keep trying
' until the write is successful
' Read tag's serial number
v1.0 6/29/2010 Page 10 of 10

Related parts for 28440