
21
8.6. Real Time Clock configuration
The EXLs3 device is equipped with a Real Time Clock which allow time keeping for proper file creation
and time stamping.
It is possible to read/write the RTC register by using the following commands.
SET_CLOCK
Use this command to set the
time
and
date
value in the RTC.
Byte0
Byte1
Byte2
Byte3
Byte4
Byte5
Byte6
Byte7
0x6E
YY
MM
DD
HH
mm
SS
CHKSUM
YY = Year [0..99]
MM = Month [1..12]
DD = Day [1..31]
HH = Hour [0..23]
Mm = Minute [0..59]
SS = second [0.59]
The sensor responds with an acknowledge:
Byte0
0x01
This command is only accepted if the sensor is not in sampling/streaming mode.
GET_CLOCK
Use this command to GET the
data
and
time
from RTC:
Byte0
Byte1
0x6F
0x6F
The sensor responds with:
Byte0
Byte1
Byte2
Byte3
Byte4
Byte5
Byte6
YY
MM
DD
HH
mm
SS
CHKSUM
YY = Year [0..99]
MM = Month [1..12]
DD = Day [1..31]
HH = Hour [0..23]
Mm = Minute [0..59]
SS = second [0.59]
This command is only accepted if the sensor is not in sampling/streaming mode.