DioSetupClkStrobeSource

Applies To

GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e, GX5295, File

Purpose

Sets the Master board’s clock and strobe source.

Syntax

DioSetupClkStrobeSource (nMasterHandle, nSource, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master or File board handle.

nSource

SHORT

Clock and strobe source values are as follow:

0. Internal Clock and Strobe (default). Clock is programmable using an internal reference. Strobe is internal in accordance with strobe timing (default).

1. External Clock, internal Strobe. External clock. Strobe is internal in accordance with strobe timing. This setting enables the External Clock input without the need to pull down the External Clock Enable line.

2. Clock programmed by external, internal Strobe. Clock is Programmable using external clock reference. Strobe is internal in accordance with strobe timing.

Note: not supported by Gx5055.

3. External Clock and Strobe. Both clock and strobe are external. This setting enables the External Clock and External Strobe inputs without the need to pull down the External Clock Enable and External Strobe Enable lines.

4. Internal Clock, external Strobe. Clock is programmable using an internal reference Strobe is external, setting enables the External Strobe input without the need to pull down the External Strobe Enable line (GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e and GX5295).

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

The DioSetupFrequency function can be used to set the frequency when the selected clock source (nSource) is set to 0. DioSetupClkStrobeDelay may be called to set the time interval between the strobe and clock signals.

Example

The following example sets the the clock to external and strobe to internal:

 

SHORT   nStatus;

DioSetupClkStrobeSource (nMasterHandle, 1, &nStatus);

 

See Also

DioGetClkStrobeSource, DioSetupClkStrobeExternalGateMode, DioGetErrorString