172
14.35 Display Date Request
System Control Command Type 1
Function
To request date data (year, month, day).
Command 0091h
Length 1
byte
Parameter
Value 34h
Length 6
byte
Status
Value
Year (2 byte) + Month (2 byte) + Day (2 byte)
Reference •The date data to be returned as followings.
s0~ s1 Year Data
⇒
00h~99h
s2~ s3 Month Data
⇒
01h~12h
s4~ s5 Day Data
⇒
01h~31h
•At the moment of power ON, to be set 00 year 01 month 01 day by default
•Setting data is set BCD type hexadecimal. (20 in decimal equal to 20h)
•Date setting data is to be directly read out from inside Clock IC.
Format of Control Code
d0 d1 d2 d3 d4 d5
d6
Header
Device Num
Command
Parameter
End mark
FFh 30h 3Xh 00h 91h 34h
EFh
Answer Format
In case of No Error
d0 d1 d2 d3 d4
Header
Device Num
Error Code
FEh 30h 3Xh 30h 30h
d5 d6 d7 d8 d9 d10 d11
Year Data
Month Data
Day data
End mark
s0 s1 s2 s3 s4 s5 EFh
⇓
Date data indicates in BCD type hexadecimal 6 figures and status value is its
ASCII code.
Example:
s0 s1 s2 s3 s4 s5
year00 month07 day25
⇒
30h 30h 30h 37h 32h 35h
In case of Error
d0 d1 d2 d3 d4 d5
Header
Device Num
Error Code
End mark
FEh 30h 3Xh e0 e1 EFh
⇓
Error Flag indicates in 2 figures hexadecimal and returns ASCII code value
Example: e0 e1
In case of Parameter Error :
01010000B
⇒
50h
⇒
35h 30h
In case of Mode Error :
10010000B
⇒
90h
⇒
39h 30h
Condition of Error flag to be set
Parameter Error •In case of assigned illegal parameter.
Mode Error
•Not in status of
Camera ON
•Not in status of
Host Control Mode