Chapter 2
Configuration and Installation
© National Instruments Corporation
2-39
AT-MIO-16D User Manual
and 5 of the Am9513A Counter/Timer can be used for general-purpose applications, such as pulse
and square wave generation, event counting, and pulse-width, time-lapse, and frequency
measurements. For these applications, SOURCE and GATE signals can be directly applied to the
counters from the I/O connector, and the counters are programmed for various operations.
The Am9513A Counter/Timer is described briefly in Chapter 3, Theory of Operation. For
detailed programming information, consult Appendix E, Am9513A Data Sheet. For detailed
applications information, consult the Am9513A/Am9513 System Timing Controller technical
manual published by Advanced Micro Devices, Inc.
You can produce pulses and square waves by programming Counter 1, 2, or 5 to generate a pulse
signal at its OUT output pin or to toggle the OUT signal each time the counter reaches the terminal
count.
For event counting, program one of the counters to count rising or falling edges applied to any of
the Am9513A SOURCE inputs. The counter value can then be read to determine the number of
edges that have occurred. You can gate counter operation on and off during event counting.
Figure 2-37 shows connections for a typical event-counting operation where a switch is used to
gate the counter on and off.
4.7 k
Ω
Signal
Source
Switch
33
DIG GND
Counter
OUT
SOURCE
GATE
+5 V
MIO-16 I/O Connector
AT-MIO-16D Board
Figure 2-37. Event-Counting Application with External Switch Gating
To perform pulse-width measurement, program a counter to be level gated. The pulse to be
measured is applied to the counter GATE input. Program the counter to count while the signal at
the GATE input is either high or low. If the counter is programmed to count an internal timebase,
then the pulse width is equal to the counter value multiplied by the timebase period.
Содержание AT-MIO-16D
Страница 16: ......
Страница 23: ......
Страница 185: ......
Страница 206: ......
Страница 207: ......
Страница 208: ......
Страница 209: ......
Страница 210: ......
Страница 211: ......
Страница 212: ......
Страница 213: ......
Страница 214: ......
Страница 215: ......
Страница 216: ......
Страница 217: ......
Страница 218: ......
Страница 219: ......
Страница 220: ......
Страница 221: ......
Страница 222: ......
Страница 223: ......
Страница 224: ......
Страница 225: ......
Страница 226: ......
Страница 227: ......
Страница 228: ......
Страница 229: ......
Страница 230: ......
Страница 231: ......
Страница 232: ......
Страница 233: ......
Страница 234: ......
Страница 235: ......
Страница 236: ......
Страница 237: ......
Страница 238: ......
Страница 239: ......
Страница 240: ......
Страница 241: ......
Страница 242: ......
Страница 243: ......
Страница 244: ......
Страница 246: ......
Страница 247: ......
Страница 248: ......
Страница 249: ......
Страница 250: ......
Страница 251: ......
Страница 252: ......
Страница 253: ......
Страница 254: ......
Страница 255: ......
Страница 256: ......
Страница 257: ......
Страница 258: ......
Страница 259: ......
Страница 260: ......
Страница 261: ......