UIC680 Programmer’s Manual
UDN PM090-C2 Rev. 2.3
•
5 (35H) – Set RTC Time
COMMENT
This command is used to set and read device’s RTC Time.
5[CMD, 1 byte][Date or Time, 5 bytes]
[CMD, 1byte]
[CMD, 1 byte] (ASCII – Hex value)
Description
1 (or 31h)
Read Date
2 (or 32h)
Read Time
3 (or 33h)
RFU
4 (or 34h)
Set Date
5 (or 35h)
Set Time
Command: 1, 31h
[Read Date, 5 bytes BCD]
Command
<35><31>
Response
<Year, 2 bytes><Month, 1 byte><Day, 1 byte><Week, 1 byte>
Note: BCD format from 0
10
(0000
BCD
= 0h) to 9
10
(1001
BCD
= 9h)
EXAMPLE <20*><12><07><09><01>
20h 12h = Year 2012
07h = Month July
09h = Day 09
01h = Week Day Monday
(01h – Monday, 02h – Tuesday, … 07h – Sunday)
* The year <20> can be interpreted as space character.
Command: 2, 32h
[Read Time, 5 bytes BCD]
Command
<35><32>
Response
<Hour, 1 byte><Min., 1 byte><Sec., 1 byte><Millisecond, 2 bytes>
Note: BCD format from 0
10
(0000
BCD
= 0h) to 9
10
(1001
BCD
= 9h)
EXAMPLE <14><43><37><08><91>
14h = Hour 2pm
43h = Minute 43
5-7