Omega Vehicle Security DAQ-16 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 > 100

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 = 50

N1 = 65535, N2 = 65535

t = 100 x 10

9 * [(2)*(50)]

t = 100 x 10

9 * [(65535)*(65535)]

t = 100 x 10

9 * 100

t = 100 x 10

9 * [4.295 x 109 ]

t = 10 us

 

t = 429.5 sec

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

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

f = 10 x 106 / 100

f = 10 x 106 / [4.295 x 109 ]

f = 100 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 > 100

DAQ-16 Users Manual

18

Image 18
Contents 15,1*,1 WARRANTY/DISCLAIMER Servicing North America For immediate technical or application assistanceServicing Europe Page Application of Council Directive Manufacturers NameManufacturers Address Standards to which Conformity is DeclaredTable of Contents List of Figures and Tables Installation IntroductionDAQ-16 Specifications Analog to Digital Converter Maximum Input Voltage Amplifier RangeJumper J7 Configuration Volt range Unipolar Bipolar Binary 2s complement Voltage Binary ’s Complement Digital to Analog Converters Unipolar Digital Input/OutputChannel Bipolar Gain =Base Address I/O Base Address SelectionClock Selection Internal Clock External Clock Trigger Selection Start of ConversionDirect Memory Access 10. Jumpers J8 and J9 ConfigurationInterrupts External InterruptExternal Connections Page Register Description Control Word RegisterCHSL2 CHSL1 CHSL0 3 DAC0 Register Multi-Function Timer RegisterStart of Conversion Register 4 DAC1 RegisterProgramming the 8254 Counter/Timer Counter 1 Clock rate register high word Version January 28