
Chapter 2
32
•
Threshold trigger
– The start trigger event occurs when the signal attached to a specified
analog input channel rises above or falls below a user-specified threshold value. Using
software, you specify the following parameters:
−
Edge – Specify a rising-edge threshold trigger if you want to trigger when the signal
rises above a threshold level, or a falling-edge threshold trigger if you want to trigger
when the signal falls below a threshold level.
−
Threshold channel – Specify any one of the analog input channels as the threshold
input channel.
−
Threshold level – Specify a value between ±10 V for a gain of 1 or ±1 V for a gain of 10
as the threshold level. Note that in software, this value must be entered as counts.
To convert raw counts to volts, use the following formulas:
Gain of 1:
volts
= ((2.0f * 10.0f *
counts
)/(1<<24) – 10.0f)
Gain of 10:
volts
= ((2.0f *
counts
)/(1<<24) – 1.0f)
Note:
The DT7837 driver sets the threshold level as close as possible to the value that you
specify. However, the value that you specify may not be the actual value that is set. You
can return the actual threshold level that was set using software.
Input Clock Source and Sampling Frequency
The DT7837 module supports an internal A/D clock, which is derived from the 48 MHz
reference clock. The reference clock is generated from the onboard oscillator.
Using software, you specify the frequency at which to pace input operations. The sampling
frequency can range from 195.3125 Hz to 105.469 kHz.
Note:
According to sampling theory (Nyquist Theorem), specify a frequency that is at least
twice as fast as the input’s highest frequency component. For example, to accurately sample a
20 kHz signal, specify a sampling frequency of at least 40 kHz to avoid aliasing.
The DT7837 driver sets the sampling frequency as close as possible to the value that you
specify. However, the value that you specify may not be the actual value that is set. You can
return the actual sampling frequency that was set using software.
Once the sample clock is started, the module requires 39 conversions before the first A/D
sample is valid. The valid sample is aligned with the start trigger.
Содержание DT7837
Страница 1: ...DT7837 UM 26000 A User s Manual Title Page ...
Страница 4: ......
Страница 8: ...Contents 8 ...
Страница 11: ...11 1 Overview Hardware Features 12 Supported Software 18 Supported Accessories 19 Getting Started Procedure 21 ...
Страница 22: ...Chapter 1 22 ...
Страница 49: ...49 3 Troubleshooting Technical Support 50 If Your Module Needs Factory Service 51 ...
Страница 52: ...Chapter 3 52 ...
Страница 53: ...53 4 Calibration Overview 54 Using the Calibration Utility 55 Calibrating the Analog Input Subsystem 56 ...
Страница 94: ...Appendix B 94 ...
Страница 98: ...Index 98 ...