For the devices with sampling function, the hardware operates automatically in response to the change of control input signal, control output signal and count matth. And these are generically called hardware events.
There is a signal line for control input signal and control output signal in each counter channel.
Hardware event of control input signal (the function of CntSetInputHardwareEvent)
One of the following operation can be caused by the rising edge or the falling edge of control input signal.
- Count value preset
- Count value zero clear
- Counter start/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 (the function of CntSetOutputHardwareEvent)
The control output signal can output one-shot pulse when one of the following conditions 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 (the function of CntSetCountMatchHardwareEvent)
The following operation can be generated when the count of the specified register is matched.
- Count value preset
- Count value zero clear