For devices that support the sampling function of high-performance counter, it is possible to retrieve the count value (Sampling) periodically by using Internal Clock or External Clock.
It is necessary to perform sampling setting not only for using counter
in sampling mode but also for using a usual counter.
The sampling data is stored directly in the memory of the specified application.
In sampling mode, two or more continuous channels from channel 0 to a specified channel of the counter are sampled at the same time.
Except for software start/stop, sampling can also start/stop by the
rising edge or falling edge of external signal.
Moreover, It is possible to stop sampling with specified times, or start/stop
sampling when the count becomes a specified value.
For sampling, except for condition setting of channel/start/clock/stop mentioned above, it is also need to set items such as the buffer for storing sampling data, sampling completion notification and specified time sampling completion notification.
Please refer to the flow chart for each function.
Function Category |
Supported Counter Type |
Flow Chart Name |
Sampling |
High-performance counter only |
For devices with a synchronous control connector, if the number of channels
you want to sample is insufficient on a single board, you can connect
multiple boards with synchronous control connectors to perform sampling
under the same conditions simultaneously on multiple boards.
For details, please refer to When
Using Two or More Boards at the Same Time or Synchronous
Control Connector (SC Connector).
Init and Exit Processing
Counter Operation
Mode Setting
Count Match Setting
[High-performance Counter]
Hardware Event Setting [High-performance
Counter]
Counter Operation
Flow Chart for Sampling Mode
Sampling Mode Setting
Sampling Condition Setting
Sampling Start
Sampling Completion
When Using Two
or More Boards at the Same Time