![background image](http://html1.mh-extra.com/html/diamond-systems/alt1300-1g-xt/alt1300-1g-xt_user-manual_2494399043.webp)
Altair User Manual Rev A.02
www.diamondsystems.com
Page
43
7.13 RTC Write
Command:
Byte
Length
Value and Description
0
2
MESSAGE_SIG: Message signature
2
1
COMMAND_RTC_WRITE
3
1
7: Specifying 7 bytes following this
4
1
0
– 99 specifying the year’s last two digits
5
1
1
– 12 specifying Month: 1 for January, 3 for March, 11 for November, and so on
6
1
1
– 31 Date
7
1
1
– 7 Day of week. 1 for Sunday, 3 for Tuesday, 7 for Saturday, and so on
8
1
0
– 23 Hours
9
1
0
– 59 Minutes
10
1
0
– 59 Seconds
Response:
Byte
Length
Value and Description
0
2
MESSAGE_SIG: Message signature
2
1
COMMAND_RECEIVER_ACK: Command id for the message
3
1
1
4
1
Return status for the command
0: Operation completed successfully
1: Some problem in the operation
Comments:
This command is always ten bytes long. The first four bytes contain information just like other commands. The
next seven bytes of information contain data regarding date information as described in the table above. This
command configures and starts the RTC module in the firmware. For example to set 29th Feb 2012 5:00:17 PM
(Wednesday is day of the week), the command is [0x3232] [0x25] [0x07] [12] [02] [04] [17] [00] [17]. While reading
the RTC data, the time information will appear in this format.