MF RC522 HARDWARE COMMANDS:
Command: SR
Synopsis: SR <address> <data>
Description:
The SR function sets a Rc52x register, located at address <address> according to data <data>, both specified as an 8-bit HEX value.
Command: GR
Synopsis: GR <address>
Description:
The GR function gets data from a Rc52x register, located at address <address> (8-bit HEX). The retrieved value is stored in IOR.
Command: MR
Synopsis: MR <address> <mask> <set>
Description:
The MR function modifies a Rc52x register, located at address <address>. The mask <mask> specifies which bits to modify by having
the corresponding bits set. If the <set> parameter is nonzero, the corresponding bits are set, otherwise cleared. All values are in 8-bit
HEX format.
Command: RE
Synopsis: RE <address> <data>
Description:
The RE function compares a Rc52x register, located at address <address> to data, specified in the <data> parameter. If equal, IOR is 0,
otherwise 1. All values are in 8-bit HEX format.
Command: RF
Synopsis: RF <address> <data> <mask>
Description:
The RF function compares a Rc52x register, located at address <address> to data, specified in the <data> parameter, AND'ed with the
content of <mask>. If equal, IOR is 0, otherwise 1. All values are in 8-bit HEX format.
APPLICATION COMMANDS:
Command: CHB
Synopsis: CHB <bitrate>
Description:
The CHB function sets the <bitrate> (in bps) of the PC serial port. Possible values are: {9600, 19200, 38400, 57600, 115200}.
Command: WIE
Synopsis: WIE <timeout_ms>
Description:
The WIE function waits for an edge at the serial port's RI pin. Maximum waiting time is specified by <timeout_ms>, in [ms]. This
function should be used with caution only (not recommended).
Command: WIL
Synopsis: WIL <level> <timeout_ms>
Description:
The WIL function waits for the serial port's RI pin to reach a certain logical level, specified by <level>, (= {0, 1}) Maximum waiting time
is specified by <timeout_ms>, in [ms]. This is the preferred intr. function.
Command: SLP
Synopsis: SLP <timeout_ms>
Description:
The SLP function waits for the time is specified by <timeout_ms>, in [ms] to expire.
Command: CLL
Synopsis: CLL
Description:
The CLL function removes all content from the application's LOG window.
Command: //
Synopsis: // <Comment Text>
Description:
The // function does nothing but allow comments being added to a script. The text <Comment Text> must be separated from the