When the value of the comparison register specified in advance and the current count value become equal, a count match interrupt is generated and the following processing can be performed.
Specify the value of the comparison register in CntNotifyCountUp function.
For devices equipped with the usual counter, one comparison register is equipped per channel.
Devices equipped with the usual counter cannot be preset or cleared to zero.
For the details of each function used and how to set it, please refer to Function Reference.
Generate an interrupt
To disable interrupt notification, use the CntStopNotifyCountUp function.
To enable interrupt notification again, use the CntNotifyCountUp function.
There are two ways to notify interrupt (Message notification and Callback function).
If you want to use message notification, add an event message routine process in your application software.
If you want to use callback function, specify a callback function with the CntCountUpCallbackProc function.
It is possible to notify the application from within the callback function.
For more information about each notification method, please refer to Using Events.
Output a one-shot pulse (Control Output Signal)
For devices equipped with the usual counter, use CntSetPulseWidth function to specify the pulse width.