The counter device has the following functions when the count value match to the specified "comparison value".
Please define comparison value by
CntSetCountMatchEvent
function.
The number of comparison registers are two for each channel on High-performance
Counter device.
Please refer Function Reference to know more details.
- Generates interrupt (Notified with callback function)
Set the comparison registers with CntSetCountMatchEvent
function.
Set the callback function with CntSetCountMatchCallBackProc
function.
You can notify it to your application from callback function.
- Outputs one-short pulse (Control output signal)
You can set the width of output Pulse by CntSetOutputHardwareEvent function for High-performance Counter device.
- Presets the count value to a specified value
Please set "Count value preset(CNT_MATCH_PRESET)"
by CntSetCountMatchHardwareEvent
function.
And also, you can indicate Preset value by CntSetPresetRegister
function.
- Clears the count value to zero
Please set "Count value zero clear(CNT_MATCH_CLEAR)" by CntSetCountMatchHardwareEvent function.