4. Functions
58
CNT32-4MT(LPCI)
Control output signal
One control output signal is provided for each channel. Each output signal can be used as a
general-purpose output (level output) or as a one-shot pulse output for sending notification of hardware
events to an external device.
Although all hardware events can be set to trigger a one-shot pulse output, in this case there is no way to
determine which event caused the one-shot pulse to be output and therefore the status needs to be
checked or similar.
The output polarity is set by software.
Table 4.8. Control output signal
Item Purpose
Condition
Note
General-purpose output
Software command
Level output
(Positive logic/Negative logic)
Count match(Register 0)
Count value = Comparison register 0
Count match(Register 1)
Count value = Comparison register 1
Abnormal input error
When phases-A and B are changed at
the same time
Control
output signal
Digital filter error
When a pulse faster than the digital
filter setting is input
A one shot pulse is outputted.
(Positive logic/Negative logic) *
* The one-shot pulse width is set by software to 10
μ
sec, 100
μ
sec, 1 msec, 10 msec, or 100 msec.
General-purpose output
When not used as a hardware event, the control output pin can be used as a general-purpose output. In
this case, the output becomes a level output rather than a one-shot pulse output. The logic polarity can be
switched between positive and negative.
Count match (Register 0)
A one-shot pulse is output to indicate a count match (register 0) output when the count matches the value
set in compare register 0. The logic polarity can be switched between positive and negative.
Count match (Register 1)
A one-shot pulse is output to indicate a count match (register 1) output when the count matches the value
set in compare register 1. The logic polarity can be switched between positive and negative.
Abnormal input error
A one-shot pulse is output to indicate an abnormal input error when the A and B phases change
simultaneously. The logic polarity can be switched between positive and negative.
Digital filter error
A one-shot pulse is output to indicate a digital filter error if a pulse faster than the digital filter time
setting is input. The logic polarity can be switched between positive and negative.