|
||
|
Hardware reference : Timers/Counters : Am9513 Counter/Timer | ||||||||||||||
|
|
|||||||||||||||
Am9513 Counter/TimerInterface:
Manufacturer: config file PC_AM9513 = base_address number_of_counters PCI_AM9513 = number_of_counters edconf: DEVICES screen
SCALERS DEVICE ADDR <>MODE NUM <>TYPE
YES 0x340 3 Am9513 Counter/Timer PC Boards
YES 3 Am9513 Counter/Timer PCI Boards
edconf: SCALERS screen
NUMBER NAME MNEMONIC <>DEVICE UNIT CHAN <>USE AS SCALE FACTOR
0 Seconds sec AM9513 0 0 timebase 1000
1 Monitor mon AM9513 0 1 monitor 1
2 Detector det AM9513 0 2 counter 1
The ComputerBoards CIO-CTR05/10/20 cards, the Keithley-Metrabyte
Model CTM-05/10 cards, the Scientific Solutions Labmaster series
cards, and similar models from other manufactures all use the
Advanced Micro Devices Am9513 System Timing Controller chip.
The chip contains five 16-bit counters that can be programmed in a
wide range of configurations. spec 's programming uses two of the
counters for a 32-bit detector counter, two for a 32-bit monitor
counter and one for a 16-bit elapsed time counter. On boards with
two or four chips, the additional chips are each programmed for two
more 32-bit detector counters. You can program the chip through
spec to count to either a time preset using
the tcount() function or a monitor-count preset
using mcount() .You must connect the detector to the input connector pin labeled source 3. Counts received from the monitor go to the pin labeled source 5. In addition, you must wire the connector pin labeled output 1 to the pins gate 2, gate 4 and gate 5.. (In the new Keithley-Metrabyte CTM-05A manual, the source pins are now labeled ACLKIN, the output pins are now labeled ATIMEROUT, and the gate pins are now labeled AGATE.) If it is a two- or four-chip board, the additional detectors are connected to the source 3 and source 5 pins of the chips. In addition, the output 1 from the first chip must be also connected to gate 2 and gate 4 of the additional chips. The counter boards are accessed from user level and are polled to determine when count intervals have elapsed. Thus, interrupts should be disabled on the boards. You will need to enter the base address of the counter chip in the config file. Note that for the Labmaster board, the base address of the counter chip is eight plus the base address of the board itself. When counting to time, the resolution of the clock depends on the length of the count interval. The maximum count time is 71.5 minutes. The time base resolution (in seconds) is set according to the following table:
0.00001 for t < 0.6 sec
0.0001 for t < 6 sec
0.001 for t < 60 sec
0.01 for t < 655.35 sec (10.9 min)
0.0655 for t < 71.5 min
When counting to monitor counts, the 0.01 second time base
is used, and the value returned for the time channel will be
corrected to account for the rollovers that occur every 655.36 seconds. |
|||||||||||||||
|
|
|||||||||||||||