Option timestamp, General information, Timestamp modes – Spectrum Brands MI.20xx User Manual

Page 78: Standard mode, Startreset mode, Refclock mode (optional), General information timestamp modes

Advertising
background image

78

MI.20xx Manual

General information

Option Timestamp

Option Timestamp

General information

The timestamp function is used to record trigger events relative to the beginning of the measurement, relative to a fixed time-zero point or
synchronized to an external radio clock. This is done by a wide resetable counter that is incremented with every sample rate. With every
detected trigger event the actual counter value is stored in a seperate timestamp memory.

This function is designed as an enhancement to the Multiple Recording and the Gated Sampling mode but can also be used without these
options. If Gated Sampling mode is used, then both the start and end of a recorded segment are timestamped.

The timestamp memory is designed as a FIFO buffer so that it can be read out even while the Spectrum board is recording data continuously
to the PC in the FIFO mode. This extra memory is 64 K Timestamps in size.

Each recorded timestamp consists of the number of samples that has been counted since the last
counter reset has been done. The actual time from the point since the last reset has been done so
can easily be calculated by the formular besides.

If you want to know the time between two timestamps, you can simply calculate this by the for-
mular besides.

Timestamp modes

Standard mode

In standard mode the timestamp counter is set to zero
once by writing the TS_RESET commando to the com-
mand register. After that command the counter counts
continuously.
The timestamps of all recorded trigger events are refe-
renced to this common zero time. With this mode you
can calculate the exact time difference between diffe-
rent recordings.
The following table shows the valid values that can be
written to the timestamp command register.

StartReset mode

In StartReset mode the timestamp counter is set to zero
on every start of the board. After starting the board the
counter counts continuously.
The timestamps of one recording are referenced to the
start of the recording. This mode is very useful for Multi-
ple Recording and Gated Sampling (see according
chapters for detailed information on these two optional
modes).
The following table shows the valid values that can be
written to the timestamp command register.

RefClock mode (optional)

The counter is spilt in a HIGH and a LOW part and an additional secons signal, that affects both parts of the counter (TTL pulse with f = 1
Hz) is must be externally fed in.

Register

Value

Direction

Description

SPC_TIMESTAMP_CMD

47000

w

Writes a command to the timestamp command register.

SPC_TIMESTAMP_CMD

47000

r

Reads out the actual timestamp mode.

TS_RESET

0

Resets the counter of the timestamp module to zero.

TS_MODE_DISABLE

10

Disables the timestamp module. No timestamps are recorded.

TS_MODE_STANDARD

12

Must be written to enable the Standard timestamp mode. The counter must be manually reset by writing the command
TS_RESET to the command register. The timestamps values will be relative to this reset time.

Register

Value

Direction

Description

SPC_TIMESTAMP_CMD

47000

w

Writes a command to the timestamp command register.

SPC_TIMESTAMP_CMD

47000

r

Reads out the actual timestamp mode.

TS_RESET

0

Resets the counter of the timestamp module to zero.

TS_MODE_DISABLE

10

Disables the timestamp module. No timestamps are recorded.

TS_MODE_STARTRESET

11

Must be written to enable the StartReset timestamp mode. The counter is reset on each start of the board. The
timestamps values are relative to the board start.

t

Timestamp

Sample rate

----------------------------

=

t

Timestamp

n 1

+

Timestamp

n

Sample rate

------------------------------------------------------------------------

=

Advertising