User Guide

RS-Ruby Users’ Manual
22
Appendix A the Format of all Register
A.1 UTC_TIME
UTC Time(in total 10 bytes)
Byte No.
byte1
byte2
byte3
byte4
byte5
byte6
byte7
byte8
Function
year
month
day
hour
min
sec
ms
Byte No.
byte9
byte10
Function
μs
Explanation of each Byte in UTC
1) year
set_year
Byte No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Function
set_year[7:0]Data 0~255 corresponds to year 2000~ year 2255
2) month
set_month
Byte No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Function
reserve
reserve
reserve
reserve
set_month[3:0]1~12 month
3) day
set_day
Byte No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Function
reserve
reserve
reserve
set_day[4:0]1~31 day
4) hour
reg nameset_hour
Byte No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Function
reserve
reserve
reserve
set_hour[4:0]0~23 hour
5) min
set_min
Byte No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Function
reserve
reserve
set_min[5:0]0~59 min
6) sec
set_sec
Byte No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Function
reserve
reserve
set_sec[5:0]0~59 sec