Spectrum Brands MC.31XX 用户手册

下载
页码 102
48
MC.31xx Manual
Programming
Standard acquisition modes
Maximum posttrigger in MSamples
The amount of memory that can be either set for the used memsize and postcounter values can only be set by certain steps. These steps are 
results of the internal memory organization. For this reason these steps also define the minimum size for the data memory and the postcounter. 
The values depend on the number of activated channels and on the type of board being used. The minimum stepsizes for setting up the mem-
size and the postcounter are shown in the table below.
Minimum memsize and posttrigger in samples
Stepsize of memsize and posttrigger in samples
Starting without interrupt (classic mode)
Command register
In this mode the board is started by writing the SPC_START value to the command register. All settings like for example the size of memory 
and postcounter, the number of activated channels and the trigger settings must have been programmed before. If the start command has 
been given, the setup data is transferred to the board and the board will start.
If your board has relays to switch between different settings a programmed time will be waited to prevent having the influences of the relays 
settling time in the signal. For additional information please first see the chapter about the relay settling time. You can stop the board at any 
time with the command SPC_STOP. This command will stop immediately.
Once the board has been started, it is running totally independent from the host system. Your program has full CPU time to do any calculations 
or display. The status register shown in the table below shows the current status of the board. The most simple programming loop is simply 
waiting for the status SPC_READY. This status shows that the board has stopped automatically.
The read only status register can be read out at any time, but it is mostly used for polling on the board’s status after the board has been 
started. However polling the status will need CPU time.
31
10
31
11
31
12
31
20
31
21
31
22
31
30
31
31
31
32
31
40
ch0
ch1
ch2
ch3
ch4
ch5
ch6
ch7
x
128
128
128
128
128
128
128
128
128
128
x
x
64
64
64
64
64
64
64
64
64
64
x
x
n.a.
n.a.
128
n.a.
n.a.
128
n.a.
n.a.
128
n.a.
x
x
x
x
n.a.
n.a.
64
n.a.
n.a.
64
n.a.
n.a.
64
n.a.
x
x
x
x
n.a.
32
32
n.a.
32
32
n.a.
32
32
n.a.
x
x
x
x
x
x
x
x
n.a.
n.a.
32
n.a.
n.a.
32
n.a.
n.a.
32
n.a.
3
110
3
111
3
112
3
120
3
121
3
122
3
130
3
131
3
132
3
140
ch0
ch1
ch2
ch3
ch4
ch5
ch6
ch7
x
32
32
32
32
32
32
32
32
32
32
x
x
16
16
16
16
16
16
16
16
16
16
x
x
n.a.
n.a.
32
n.a.
n.a.
32
n.a.
n.a.
32
n.a.
x
x
x
x
n.a.
n.a.
16
n.a.
n.a.
16
n.a.
n.a.
16
n.a.
x
x
x
x
n.a.
16
16
n.a.
16
16
n.a.
16
16
n.a.
x
x
x
x
x
x
x
x
n.a.
n.a.
16
n.a.
n.a.
16
n.a.
n.a.
16
n.a.
3
110
3
111
3
112
3
120
3
121
3
122
3
130
3
131
3
132
3
140
ch0
ch1
ch2
ch3
ch4
ch5
ch6
ch7
x
32
32
32
32
32
32
32
32
32
32
x
x
16
16
16
16
16
16
16
16
16
16
x
x
n.a.
n.a.
32
n.a.
n.a.
32
n.a.
n.a.
32
n.a.
x
x
x
x
n.a.
n.a.
16
n.a.
n.a.
16
n.a.
n.a.
16
n.a.
x
x
x
x
n.a.
8
8
n.a.
8
8
n.a.
8
8
n.a.
x
x
x
x
x
x
x
x
n.a.
n.a.
8
n.a.
n.a.
8
n.a.
n.a.
8
n.a.
Register
Value
Direction
Description
SPC_COMMAND
0
r/w
Command register of the board.
SPC_START
10
Starts the board with the current register settings.
SPC_STOP
20
Stops the board manually.