
Chapter 5
Programming
AT-MIO-16X User Manual
5-16
©
National Instruments Corporation
configuration memory, perform the following write operations where
N is the number of entries in the scan sequence:
•
Strobe the CONFIGMEMCLR Register.
•
For i = 0 to N-1, use the following steps:
a.
Write the desired analog channel selection and gain setting to
the CONFIGMEM Register (this loads the configuration
memory at location i ).
b.
If i = N-1, also set the LASTONE bit when writing to the
CONFIGMEM Register.
•
Strobe the CONFIGMEMLD Register.
Programming the Sample-Interval Counter
Counter 3 of the Am9513A Counter/Timer is used as the
sample-interval counter. Counter 3 can be programmed to generate an
active low pulse once every N counts. N is referred to as the sample
interval, that is, the time between successive A/D conversions. N can be
between 2 and 65,536. One count is equal to the period of the timebase
clock used by the counter. The following internal clocks are available
to the Am9513A: 5 MHz, 1 MHz, 100 kHz, 10 kHz, 1 kHz, and 100 Hz.
In addition, the sample-interval timer can use signals connected to any
of the Am9513A SOURCE input pins.
Using the EXTCONV* signal from the I/O connector to control
multiple A/D conversions involves disabling the sample-interval
counter. This counter should be left in the high-impedance state, see the
Resetting a Single Am9513A Counter/Timer section later in this chapter.
Conversions are generated by the falling edge of the EXTCONV*
signal. Although EXTCONV* may be pulsing, conversions do not
begin until after an active low pulse on DAQ Start or the EXTTRIG*
signal. Conversions are automatically halted irrespective of the
EXTCONV* signal when the sample counter reaches zero.
To program the sample-interval counter for internal conversion signals,
use the following programming sequence. All writes are 16-bit
operations. All values given are hexadecimal.
1.
Write FF03 to the Am9513A Command Register to select the
Counter 3 Mode Register.
2.
Write the mode value to the Am9513A Data Register to store the
Counter 3 mode value. Am9513A counter mode information can be
Содержание DAQ AT-MIO-16X
Страница 240: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 2 National Instruments Corporation...
Страница 241: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 3 AT MIO 16X User Manual...
Страница 242: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 4 National Instruments Corporation...
Страница 243: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 5 AT MIO 16X User Manual...
Страница 244: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 6 National Instruments Corporation...
Страница 245: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 7 AT MIO 16X User Manual...
Страница 246: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 8 National Instruments Corporation...
Страница 247: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 9 AT MIO 16X User Manual...
Страница 248: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 10 National Instruments Corporation...
Страница 249: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 11 AT MIO 16X User Manual...
Страница 250: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 12 National Instruments Corporation...
Страница 251: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 13 AT MIO 16X User Manual...
Страница 252: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 14 National Instruments Corporation...
Страница 253: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 15 AT MIO 16X User Manual...
Страница 254: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 16 National Instruments Corporation...
Страница 255: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 17 AT MIO 16X User Manual...
Страница 256: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 18 National Instruments Corporation...
Страница 257: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 19 AT MIO 16X User Manual...
Страница 258: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 20 National Instruments Corporation...
Страница 259: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 21 AT MIO 16X User Manual...
Страница 260: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 22 National Instruments Corporation...
Страница 261: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 23 AT MIO 16X User Manual...
Страница 262: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 24 National Instruments Corporation...
Страница 263: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 25 AT MIO 16X User Manual...
Страница 264: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 26 National Instruments Corporation...
Страница 265: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 27 AT MIO 16X User Manual...
Страница 266: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 28 National Instruments Corporation...
Страница 267: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 29 AT MIO 16X User Manual...
Страница 268: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 30 National Instruments Corporation...
Страница 269: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 31 AT MIO 16X User Manual...
Страница 270: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 32 National Instruments Corporation...
Страница 271: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 33 AT MIO 16X User Manual...
Страница 272: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 34 National Instruments Corporation...
Страница 273: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 35 AT MIO 16X User Manual...
Страница 274: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 36 National Instruments Corporation...
Страница 275: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 37 AT MIO 16X User Manual...
Страница 276: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 38 National Instruments Corporation...
Страница 277: ...Appendix C AMD Am9513A Data Sheet National Instruments Corporation C 39 AT MIO 16X User Manual...
Страница 278: ...Appendix C AMD Am9513A Data Sheet AT MIO 16X User Manual C 40 National Instruments Corporation...