
l
0x6C - R
ETURN
L
AST
C
OMMAND
C
HARACTER
Bytes / Cmd
Scope
0x00..0xFF
1
1
n/a
Get
n/a
n/a
n/a
n/a
Put
Returns
# Bytes Rtnd
Lowercase 'L'. This get-only command reports back with the
value of the prior command received by the part. The
command also reports back any erroneous commands,
allowing the host device to verify that a command was
correctly received.
If this command is repeated, the second and subsequent
instances of 'l' will report back with 0x6C.
There is no put version of the command.
r
0x72 - R
ESET
D
EVICE
Scope
n/a
n/a
n/a
n/a
Get
0x72
0x00
2
n/a
Put
Returns
2nd Byte
Bytes / Cmd
Section 3.11, p. 9
Lowercase 'R'. This put-only command hard-resets the part.
The command 0x72 must be followed by a null (0x00) within
100ms or the command will fail. The part must be in Put
mode for this command to work.
A reset occurs about 16ms after the echo byte 0x72 is
transmitted back to the host. The part will resume
communication and sensing in accordance with the timing
shown in Section 3.13.
If for some reason the part is unable to send back the echo
character 0x72, the command will fail.
There is no get version of the command.
V
0x56 - R
ETURN
P
ART
V
ERSION
Scope
0x00..0xFF
1
1
n/a
Get
n/a
n/a
n/a
n/a
Put
Returns
# Bytes Rtnd
Bytes / Cmd
Uppercase 'V'. This get-only command returns the part
version number.
There is no put version of the command.
W
0x57 - R
ETURN
P
ART
S
IGNATURE
Scope
0x10
1
1
n/a
Get
n/a
n/a
n/a
n/a
Put
Returns
# Bytes Rtnd
Bytes / Cmd
Uppercase 'W'. This get-only command returns the part
signature as follows
:
0x10
(16 decimal)
There is no put version of this command.
Z
0x5A - E
NTER
S
LEEP
Scope
n/a
n/a
n/a
n/a
Get
*0x5A, 0x5A
0x00
2
n/a
Put
Returns
2nd Byte
Bytes / Cmd
Section 3.14, p. 9
Uppercase '
Z
'. This put-only command forces the device to
enter sleep mode. The command 0x5A must be followed by a
null (0x00) within 100ms or the command will fail. The part
must be in Put mode for this command to work.
The command returns 0x5A immediately before going to
sleep, and a second 0x5A upon waking up.
If for some reason the device is unable to transmit the first
return
‘Z’
character back to the host, for example due to the
host not releasing the SS line, the part will completely reset
after about 2 seconds.
The part will reawaken after a logic low is detected for 10μs
on pin 11 (RST
’
pin, see Section 3.11). The device then
sends a second
‘Z’
back to the host, and resumes from its
prior state before it went to sleep without the need for
recalibration. The device resumes in Get mode only.
There is no get version of the command.
^Q
0x11 - D
ATA
R
ATE
S
ELECTION
Scope
0x00..0x04
n/a
1
n/a
Get
0x11
0x00..0x04
2
n/a
Put
Returns
2nd Byte Range
Bytes / Cmd
Section 4, p. 11
Ctrl-Q. This is a put-only command that sets the UART baud
rate and the SPI clock rate. All timings assume a 12MHz
oscillator. The part must be in Put mode for this command to
work.
SPI Settings
-
The acceptable values of the operand for SPI use are
:
0
:
1
:
2
:
3
:
93.75 kHz
187.5 kHz
750 kHz
3 MHz
These values define the maximum SPI clock rate in Master
mode (part originates the clock).
Note that when the part is receiving data, the host can send
to the device at rates up to 3MHz even if the rate setting of ^Q
is slower.
Refer to Sections 4.3 and 4.4 for SPI timing details.
New settings do not become effective until the device has
been powered off and back on again or after the reset (
‘
r
’
)
command.
UART Settings -
The acceptable values of the operand for UART use are
:
0
:
1
:
2
:
3
:
4
:
9600 baud
14400 baud
19200 baud
38400 baud
57600 baud
There is no get version of this function.
Refer to Section 4.5for UART details.
New settings do not become effective until the device has
been powered off and back on again or after the reset (
‘
r
’
)
command.
Quantum Research Group Ltd.
l
Q
25
www.qprox.com QT60161B / R1.03