Download X-Ray Diffraction Software USER MANUAL and TUTORIALS

Transcript
Timers and Counters
Am9513-based Counter/Timer PC Boards
config file:
PC_AM9513 = base_address number_of_counters
edconf devices screen:
SCALERS
YES
DEVICE
ADDR
0x340
<>MODE
NUM
3
<>TYPE
Am9513 Counter/Timer PC Boards
edconf scalers screen:
NUMBER
0
1
2
NAME
Seconds
Monitor
Detector
MNEMONIC
sec
mon
det
<>DEVICE
AM9513
AM9513
AM9513
UNIT
0
0
0
CHAN
0
1
2
<>USE AS
timebase
monitor
counter
SCALE FACTOR
1000
1
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.
HARDWARE REFERENCE
251