Trigger System Commands
ARM <
custom
>
0400
16
This command causes the DSP to load its run-time code into fast RAM, and
pre-settle the first channel of the scan list designated in the “ Next List”
field of the Scan Control Register. The processor then enters the “ Armed”
state, and indicates that it is ready to accept a scan trigger by asserting the
“ Armed” bit in the Scan Status Register. The <custom> parameter should
normally contain zero. If
<
custom
>
is set to a value of one, the Control
Processor will load 2k of user code from location 0C00
16
in its Data Space
RAM in place of the normal run-time routine.
SCPTRIGEN <
enable
>
0860
16
When
<
enable
>
is one (1), SCP triggers are enabled. When zero (0),
SCP triggers are disabled.
TRIGCOUNT <
count
>
2330
16
Sets the number of trigger events that will be accepted. The value of
<
count
>
can be 0 to 65535. The default value is 1. Setting
<
count
>
to 0 allows unlimited trigger events to be accepted.
Debugging Commands
AVERAGE <
channel
> <
range
> <
m
>
0480
16
Takes 2
m
readings (1<m<16) on the specified channel and range, and
returns the mean value, and mean-squared value as IEEE floating point
numbers in the FIFO buffer.
<
range
>
is an integer from -1 to 4, where 4
indicates the highest range. The mean is returned first. No conversions are
supported: the results are in raw volts, and volts
2
respectively. Reference
junction compensation is not used, and the Current Value Table is
unaffected. If
<
m
>
is greater than 7, the readings are taken over an even
number of line cycles at 50 and 60 Hz, e.g.
<
m
>
= 8 yields 256 samples
spaced over .1 second. The mean-squared value is intended to be used to
calculate the rms noise on a channel as follows:
rms noise
=
√
(
mean squared value
)−(
mean
value
)
2
Due to fixed-point arithmetic limits, overflow may occur while
accumulating the mean-squared value when
<
m
>
is large. In these cases, a
“ very large number” is returned. Autoranging is supported by
AVERAGE
Appendix D
Register-Based Programming 373
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com