User manual
Programmer’s Guide Page 35 of 66
3.10.6.1. Sequence of actions for SSR mode with event readout
The SSR Autoswitch semaphore is set by the software and cleared by the FPGA.
If the readout process is longer than the acquisition process, the AutoSwitch occurs directly after the software raises
the AutoSwitch semaphore.
At the moment that the ProcessingEnd interrupt occurs, the FPGA has already cleared the AutoSwitch.
acq Bank 0
readout
disabled int.
disabled int.
acq Bank 1
Processing0
int
AutoSwitch
Processing1
int
3
4
0
1
2
disabled int
2
1
S
Description
Software implementation
0
The software configures the mode, the
acquisition parameters, and the readout.
AcqrsD1_configMode(…);
AcqrsD1_configAvgConfig(…); …
1
The software starts the first acquisition.
AcqrsD1_acquire(instrID);
2
The software sets the AutoSwitch semaphore.
To ensure the shortest response time this
arming function should be done on the order
of 10-20 μs before the expected acquisition
end.
AcqrsD1_processData(instrID, processType, 1);
processType = 0 is used for SSR & Peak
TDC
= 1,2,3, or 4 are for AP101/AP201 or
Peak
TDC
3
When the acquisition has finished, the FPGA
automatically switches the banks, starts a
new acquisition, a new processing and clears
the AutoSwitch semaphore.
4
Once the software receives the
ProcessingEnd interrupt, it can start the
readout.
status = AcqrsD1_waitForEndOfProcessing(instrID,
timeout);
AcqrsD1_readData(instrID, channel, &readParams,
waveformArray, &wfDesc, &segDesc);
Go to 2 to continue.
Here is a sample bit of code showing this principle: