
Programming
Chapter 4
AT-MIO-16D User Manual
4-70
© National Instruments Corporation
Resetting Counter 4
To reset Counter 4, use the following programming sequence. All writes are 16-bit operations.
All values given are hexadecimal.
1. Write FFC8 to the Am9513A Command Register to disarm Counter 4.
2. Write FF04 to the Am9513A Command Register to select the Counter 4 Mode Register.
3. Write 4 to the Am9513A Data Register to store the Counter 4 mode value such that counter
output becomes high-impedance. If Counter 4 is not to be used during the next data
acquisition operation, write 0 to the Am9513A Data Register to drive the output low.
4. Write FF0C to the Am9513A Command Register to select the Counter 4 Load Register.
5. Write 3 to the Am9513A Data Register to store non-terminal count value in the Counter 4
Load Register.
6. Write FF48 to the Am9513A Command Register to load Counter 4.
7. Write FF48 to the Am9513A Command Register a second time to load Counter 4 again to
guarantee that Counter 4 is not left in a terminal count state.
Resetting Counter 5
To reset Counter 5, use the following programming sequence. All writes are 16-bit operations.
All values given are hexadecimal.
1. Write FFD0 to the Am9513A Command Register to disarm Counter 5.
2. Write FF05 to the Am9513A Command Register to select the Counter 5 Mode Register.
3. Write 4 to the Am9513A Data Register to store the Counter 5 mode value such that counter
output becomes high-impedance.
4. Write FF0D to the Am9513A Command Register to select the Counter 5 Load Register.
5. Write 3 to the Am9513A Data Register to store non-terminal count value in the Counter 5
Load Register.
6. Write FF50 to the Am9513A Command Register to load Counter 5.
7. Write FF50 to the Am9513A Command Register a second time to load Counter 5 again to
guarantee that Counter 5 is not left in a terminal count state.
After resetting the counters, write 0 to the A/D Clear Register to clear all error conditions and to
empty the A/D FIFO.
Summary of Contents for AT-MIO-16D
Page 16: ......
Page 23: ......
Page 185: ......
Page 206: ......
Page 207: ......
Page 208: ......
Page 209: ......
Page 210: ......
Page 211: ......
Page 212: ......
Page 213: ......
Page 214: ......
Page 215: ......
Page 216: ......
Page 217: ......
Page 218: ......
Page 219: ......
Page 220: ......
Page 221: ......
Page 222: ......
Page 223: ......
Page 224: ......
Page 225: ......
Page 226: ......
Page 227: ......
Page 228: ......
Page 229: ......
Page 230: ......
Page 231: ......
Page 232: ......
Page 233: ......
Page 234: ......
Page 235: ......
Page 236: ......
Page 237: ......
Page 238: ......
Page 239: ......
Page 240: ......
Page 241: ......
Page 242: ......
Page 243: ......
Page 244: ......
Page 246: ......
Page 247: ......
Page 248: ......
Page 249: ......
Page 250: ......
Page 251: ......
Page 252: ......
Page 253: ......
Page 254: ......
Page 255: ......
Page 256: ......
Page 257: ......
Page 258: ......
Page 259: ......
Page 260: ......
Page 261: ......