Devices with sampling function have the ability to automatically operate the hardware in response to the change of control input signal, control output signal and count matth.
These are generically called hardware events.
There is one control input signal line and one control output signal line for each counter channel.
For the details of each function you use and how to set it, please refer to Function Reference.
■ Hardware event of control input signal (CntSetInputHardwareEvent function)
One of the following operation can be generated by the rising edge or the falling edge of control input signal.
・Count value preset
・Count value zero clear
・Counter start, Counter stop
The control input signal can be used as general-purpose input.
In this case, the hardware events mentioned above cannot be set.
■Hardware event of control output signal (CntSetOutputHardwareEvent function)
The control output signal can output one-shot pulse when the following condition is satisfied.
・Count match (Register 0, Register 1)
・Abnormal input error
・Digital filter error
The control output signal can be used as general-purpose output. In this case, the hardware events mentioned above cannot be set.
And when the control output signal is used as general-purpose output, it outputs the level but not the pulse.
■ Hardware event of count match (CntSetCountMatchHardwareEvent function)
The following operation can be generated when the count matches the specified register.
・Count value preset
・Count value zero clear