![Melec C-V870 Скачать руководство пользователя страница 97](http://html1.mh-extra.com/html/melec/c-v870/c-v870_instruction-manual_1767049097.webp)
- 97 -
Counter comparator function
(6)
Each counter has three dedicated comparators.
If a detection condition is met by comparing the
counter value with CCMPAWE WEWISTEWS 1, 2, 3, a signal is output at the CW level.
The output status
can be checked at the STATCS4 PCWT.
Configuration of comparator output and counter interrupt request output
■
CCMP
CCMP1
CCMP1
STCP
STCP
This configuration is
output
Stop command output
TYPE
EWABLE
common to each counter.
IWT
CCCWTEW
TYPE
STATCS4 output
CCMP
IWT
MASK
PCLSE
CCMP1
CCCWTEW CCMP MASK
<CCMP1>
TYPE
IWT
Command setting
EWABLE
CCMP
CCMP2
output
Stop command
CCMP2
STCP
STCP
output
TYPE
EWABLE
IWT
CCCWTEW
TYPE
output
CCMP
STATCS4
IWT
MASK
PCLSE
CCMP2
CCMP
CCCWTEW CCMP MASK
IWT output for
<CCMP2>
TYPE
IWT
WATE
Command setting
each counter
EWABLE
TYPE
CCMP
CCMP3
output
Stop command
CCMP3
STCP
STCP
output
TYPE
EWABLE
IWT
CCCWTEW
TYPE
output
CCMP
STATCS4
IWT
CCCWTEW CCMP MASK
MASK
PCLSE
CCMP3
<CCMP3>
Command setting
TYPE
IWT
EWABLE
Initial status of comparator output
■
( ) indicates an initial
CCCWTEW IWITIALIZE1
value.
CCMP STCP
CCMP1 STCP
TYPE
EWABLE
CCMP1
Cutput of stop command
output
(Immediate
(Don't
(Don't stop)
stop)
stop)
CCCWTEW
CCMP MASK
IWT PCLSE
TYPE
***
IWT
(through-
output width
CCMP1
200 ns)
output
MASK
STATCS4
IWT TYPE
(Don't stop)
indicates CCCWTEW CCMP MASK
(Mask)
(level
latch)
Command setting
IWT clearance conditions
Clear
(Cutputted when CW
IWT TYPE
Level latch
End of STATCS4 PCWT read
is selected in all)
→
→
Edge latch
End of STATCS4 PCWT read
CCMP1 IWT
CCMP WATE
Through-output
Mismatch of detection conditions
→
EWABLE
TYPE
Edge latch
Execution of the IWT FACTCW CLW
→
command with specified bit = 1
(Don't
stop)
Selec
Same configuration for CCMP2 and CCMP3
SIWWAL CCTA and CCTB
●
-tion
of AWD
outputs
or CW
Selec
CCMP2
output
(Don't stop)
-tion
of AWD
or CW
CCMP3
output