Chapter 5 Programming
AT-MIO-16X User Manual 5-24
©
National Instruments Corporation
Figure 5-6. Resetting an Am9513A Counter/Timer
Write 0xFF00 + ctr to the
Am9513A Command Register
Write 0x0004 to the
Am9513A Data Register
END
START
Point to the Counter X mode register
Store the Counter X mode value
Store a nonterminal count value
Load Counter X
Write 0xFFC0 + 2 ^ (ctr -1) to
the Am9513A Command
Register
Write 0x0003 to the
Am9513A Data Register
Write 0xFF08 + ctr to the
Am9513A Command Register
Point to the Counter X load register
Write 0xFF40 + 2 ^ (ctr -1) to
the Am9513A Command
Register
Write 0xFF40 + 2 ^ (ctr -1) to
the Am9513A Command
Register
Disarm X mode
Load Counter X (guarantee nonterminal count state)