12 Appendix
12.1 Flow chart of a count operation
XI/ON: XNE-2CNT-2PWM
04/2011 MN05002035Z-EN
www.eaton.com
149
12
Appendix
12.1
Flow chart of a count operation
Control interface: CNTx_GENERAL_DISABLE = 1
Control interface: CNTx_LOGMSG = 0
®
1
Check-back interface:
BYTEx(MSG) == 0
?
Control interface: REG_XX_XX = XX
Control interface: CNTx_GENERAL_DISABLE = 0
Check-back interface:
STS_CNTx_GENERAL_ES == 1
?
Control interface: CNTx_DFKT_DISABLE = 0
Control interface: CNTx_SW_LR = 0
®
1
Check-back interface:
STS_CNTx_SFKT_EA == 1
?
Acknowledge in
check-back interface:
MSG_CNTx_SW_LR == 1
?
Acknowledge in
check-back interface:
MSG_CNTx_SFKT == 1
?
Hardware input Zx = 1
Control interface: CNTx_SW_LR = 1
®
0
Control interface: CNTx_ENABLE = 1
Reset message, if CNTx_SW_LR = 0
Control interface: CNTx_LOGMSG = 0
®
1 / 1
®
0
Acknowledge in
check-back interface:
STS_CNTx_RUN == 1
?
Handling of
configuration errors
error handling
error handling
error handling
MSG handling
Control interface: CNTx_LOGMSG = 1
®
0
no
yes
no
yes
no
Yes
no
Yes
no
yes
no
yes
error handling
Checking and handling of messages which are still active
until all messages are reset.
Messages in the check-back interface are reset by copying
the messages generated during the LOG phase into the
message data (check-back interface).
If the counter is active (STS_CNTx_RUN = 1) during the
message handling, it is possible that further messages
occurred during the LOG phase. These message are copied into
the message data with a rising edge at CNTx_LOGMSG = 1
®
0.
Load start conditions into the registers.
Activate function unit CNTx if necessary.
Acknowledge that function unit CNTx is active.
With each edge 0
®
1 of the
Latch-Retrigger signal (CNTx_SW_LR)
after the activation of the function unit
(STS_CNTx_GENERAL_EA = 1), the
actual counter value is copied into the
latch register ( REG_CNTx_LATCH).
The load value is copied into the count value
and the counting operation is restarted.
Acknowledge that a Latch-Retrigger was done.
Software gate of the counter.
The counting operation is enabled with
CNTx_ENABLE = 1 and disabled at
CNTx_ENABLE = 0. Disabling and enabling
the counter during the counting operation
does not change any other register data.
Acknowledge that the counting operation is enabled.
At STS_CNTx_RUN = 1 the counter is enabled,
at STS_CNTx_RUN = 0 it is disabled.
Hardware gate of the counter
(default parameterization).
The HW gate enables the counting
operation with Zx = 1 and disables it
with Zx = 0. Disabling and enabling the
counter during the counting operation
does not change any other register data.
Activate special function if necessary.
Control interface: CNTx_LOGMSG = 1
®
0
Pulses are counted according to the parameterized operation mode as long as Zx = 1 or CNTx_ENABLE = 1.
Zx = 0 closes the HW-gate and CNTx_ENABLE = 0 the SW gate. At Zx = 0 the message MSG_CNTx_SFKT can be reset
(control interface: CNTx_LOGMSG = 0
®
1 / 1
®
0). CNTx_SFKT_DISABLE = 1 deactivates the special function (here HW gate).
CNTx_GENERAL_DISABLE = 1 stops the whole function unit CNTx. During the counting operation, each edge 0
®
1 of
the Latch-Retrigger signal (CNTx_SW_LR) copies the count value into the latch register (REG_CNTx_LATCH), the count value
is overwritten with the latch value and the counting operation is continued. Messages for occurring events are displayed via the
MSG bits in the process data and have to be reset with CNTx_LOGMSG = 0
®
1 and CNTx_LOGMSG = 1
®
0.
Содержание XNE-2CNT-2PWM
Страница 1: ...04 2011 MN05002035Z EN User Manual XI ON XNE 2CNT 2PWM Technology Module...
Страница 10: ...1 About this manual 1 3 Overview 10 XI ON XNE 2CNT 2PWM 04 2011 MN05002035Z EN www eaton com...
Страница 84: ...7 Report of configuration errors 7 1 Error register 84 XI ON XNE 2CNT 2PWM 04 2011 MN05002035Z EN www eaton com...