Omega Engineering DAQ-12 user manual Internal Clock

Page 18

2.5.1Internal Clock

Sampling rates for the internal clock can be calculated using the following equation:

t = 100ns * [N1*N2] or f = 10MHz / [N1*N2]

where N1 is the low 16-bits of the clock divider and N2 is the high 16-bits of the clock divider. The following criteria must be met when selecting values for N1 and N2:

2 < N1 < 65,535

2 < N2 < 65,535

N1 * N2 > 50

Using the equations above, the minimum and maximum data sampling rates for the internal clock can be calculated.

Maximum sampling rate:

Minimum Sampling Rate:

N1 = 2, N2 = 25

N1 = 65535, N2 = 65535

t = 100 x 10

−9 * [(2)*(25)]

t = 100 x 10

−9 * [(65535)*(65535)]

t = 100 x 10

−9 * 50

t = 100 x 10

−9 * [4.295 x 109 ]

t = 5 us

 

t = 429.5 sec

f = 10 x 106 / [(2)*(25)]

f = 10 x 10 6 / [(65535)*(65535)]

f = 10 x 106 / 50

f = 10 x 106 / [4.295 x 109 ]

f = 200 Khz

 

f = 2.328 mHz

If extremely slow data sampling rates are needed, the third 8254 timer, the multi-function timer, can be cascaded with the other two to produce a 48-bit clock divider. The sampling rates are then calculated as follows:

t = 100ns * [N1*N2*N3] or f = 10MHz / [N1*N2*N3]

where N1 is the low 16-bits of the clock divider, N2 is the intermediate 16-bits of the clock divider, and N3 is the high 16-bits of the divider. The following criteria must be met when selecting values for N1, N2, and N3:

2 < N1 < 65,535

2 < N2 < 65,535

2 < N3 < 65,535

N1 * N2 * N3 > 50

DAQ-12 Users Manual

18

Image 18
Contents 15,1*,1 WARRANTY/DISCLAIMER Application of Council Directive Manufacturers NameManufacturer’s Address Standards to which Conformity is DeclaredServicing North America For immediate technical or application assistanceServicing Europe Page Table of Contents Introduction List of Figures and Tables Installation DAQ-12 Specifications Jumper J1 Configuration Analog to Digital ConverterDisable Pre-Scaler Enable Pre-Scaler Factory default Recommended Input Ranges and Gain Settings Code Digital to Analog Converters Voltage Unipolar Bipolar CodeChannel Bipolar Gain =Digital Input/Output Base AddressClock Selection Internal Clock External Clock Trigger Selection Start of ConversionDirect Memory Access 10. Jumpers J8 and J9 Configuration DackInterrupts External InterruptExternal Connections Page Register Description Control Word RegisterINT2 INT1 INT0 Description Start of Conversion Register 3 A/D Converter Data Register5 D/A Converter 1 Register Multi-Function Timer Register4 D/A Converter 0 Register Clock Rate Register low wordProgramming the 8254 Counter/Timer Counter 1 Clock rate register high word Version January 28