GX5296, GX5961, GX5964, File
Sets the specified step timing set index.
GtDio6xStepSetTimingSetIndex (nHandle, lStep, nTimingSet, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Session identifier:● Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization. ● File handle is used when communicating with a file. The File handle session identifier is returned by calling GtDio6xFileOpen. |
lStep |
LONG |
Step Number to access 0-4095. |
nTimingSet |
SHORT |
Used to specify the timing set to apply to a particular Step (0-255). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
Each Timing Set Index sequence step contains one or four signal groups. Each signal group contains four settings:
Each Step points to a particular timing set in the index Timing Set Memory. The Timing Set Memory contains 256 timing set groups, each Timing Set memory index is compos of four pairs of timing sets signals for a total of 16 as follows:
Phase Assert 0 |
First pair of Phase and Window in the specified Timing Set Memory Index. |
Phase Return 0 |
|
Window Open 0 |
|
Window Close 0 |
|
Phase Assert 1 |
Second pair of Phase and Window in the specified Timing Set Memory Index. |
Phase Return 1 |
|
Window Open 1 |
|
Window Close 1 |
|
Phase Assert 2 |
Third pair of Phase and Window in the specified Timing Set Memory Index. |
Phase Return 2 |
|
Window Open 2 |
|
Window Close 2 |
|
Phase Assert 3 |
Fourth pair of Phase and Window in the specified Timing Set Memory Index. |
Phase Return 3 |
|
Window Open 3 |
|
Window Close 3 |
The phase and window signals are programmed in master clock edges (rising and falling), i.e., 1/2 the master clock period. For example, if the master clock is set to 500 MHz, then a setting of 5 would be: 5 * (1/2 (2ns)) = 5ns.
With a master clock of 100 MHz it would be: 5 * (1/2 (10ns)) = 25ns.
The following example sets Step 5 timing set to 2 and configures timing set to with a phase assert of 0, phase return of 500, window open of 200, and window close of 300:
SHORT nGroup;
LONG lPhaseAssert, lPhaseReturn, lWindowOpen, lWindowClose;
SHORT nStatus;
GtDio6xStepSetTimingSetsData(nHandle, 2, GTDIO6X_STEP_TIMING_SET_1, 0, 500, 200, 300, &nStatus);
GtDio6xStepGetTimingSetIndex(nHandle, 5, 2, &nStatus);
GtDio6xStepGetTimingSetIndex, GtDio6xTimingSetMemoryWriteData, GtDio6xTimingSetMemoryReadData, GtDio6xGetErrorString