1. PCI/PCIe TFP Hardware
Command 0x12: Set Major Time
This command allows the user to load the major time to the TFP Major Time Registers in binary
(UNIX) or BCD format. The format is determined by Command 0x11 as referenced above. The
default major time format is UNIX binary time. This command normally applies to the TFP while in
time modes 1, 2 or 3. The TFP derives its major time from the selected external timing reference sig-
nal in time modes 0 and 6, and from the RTC in mode 3. If time mode 0 or 6 is used, any major time
written by this command will be overwritten when the selected source is providing a valid time to the
TFP.
Byte
Type
Item
Value or Range
0
UINT8
ID
0x12
Case 1: UNIX Time Data Format = 0x01 (Command 0x11, format 0x01) default
Byte
Type
Item
Value or Range
1-4
UINT32
UNIX Time
0 to 0xffffffff
Case 2: BCD Time Data Format = 0x00 (Command 0x11, format 0x00)
Byte
Type
Item
Value or Range
0
UINT8
ID
0x12
1-2
UINT16
Year
1970 - 2036
3-4
UINT16
Days
0 to 0x16e (0 to 366)
5
UINT8
Hours
0 to 0x17 (0 to 23)
6
UINT8
Minutes
0 to 0x3b (0 to 59)
7
UINT8
Seconds
0 to 0x3b (0 to 59)
The time loaded by this command will not be readable until the one-second epoch following the load.
There is a possibility the TFP will have incremented the time during the load. To prevent ambiguities
in the time, the user must issue this command in advance of the 800-millisecond point within the one-
second epoch, referencing the current epoch.
This command normally applies to the TFP modes 1 and 2. The TFP derives its major time from the
timing reference signal in other modes. The format data of this command depends on the Command
0x11 time format selection.
Command 0x13: Set Year
This command allows the user to set the year.
Byte
Type
Item
Value or Range
0
UINT8
ID
0x13
1
UINT16
Year
1970 - 2036
- 42 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com