Sampling Mode

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 the each flowcharts as below.

Category

Counter Type

Name of Flowchart

Sampling

High-performance counter only

Flowchart for Sampling Mode

* Please refer Counter Type Specification as well.

 

See Also

Init and Exit Processing
Counter Operation Mode Setting
Count Match Detection [High-performance counter]
Hardware Event [High-performance counter]
Counter Operation
Sampling Mode Setting
Sampling Condition Setting

Sampling Start

Sampling Completion

Handling Method of Sampling Buffer