![Melec C-875 Instruction Manual Download Page 33](http://html1.mh-extra.com/html/melec/c-875/c-875_instruction-manual_1767048033.webp)
- 33 -
6-5. PULSE COUNTER INITIALIZE Command
COMMAND………
02
Function : Defines PULSE COUNTER operation specifications.
H
Execution sequence
PULSE COUNTER specifications are defined in DRIVE DATA1, DRIVE DATA2
and DRIVE DATA3 PORT.
N
BUSY=0 in
The contents of DRIVE DATA1 WRITE PORT are as follows.
STATUS1?
DATA1 PORT
7
0
Y
D
D
DATA1 PORT
WRITE
The order
COMP STOP TYPE
DATA2 PORT
may not
CNTINT OUTPUT TYPE
WRITE
be observed.
CNTINT LATCH TRIGGER TYPE
DATA3 PORT
WRITE
Note: The bit D
to D must to be set 0.
7
3
H
COMMAND 02
WRITE
The details of each bit are shown below.
The bit is set to the underlined side at POWER ON/RESET.
(1) COMP STOP TYPE (D )
0
When the "Stop Enable" is selected for the PULSE COUNTER COMP STOP ENABLE, this bit is used for specifying
the fast stop or slow stop. (The same specification is selected for the COMPARE REGISTER1 to 5).
0: Fast stop
1: Slow stop
(2) CNTINT OUTPUT TYPE (D )
1
This bit is used for specifying a CNTINT output specification on the PULSE COUNTER.
(The same specification is selected for the COMPARE REGISTER1 to 5).
0: Latches and outputs detection done on each comparator (executing the STATUS3 READ resets the latch).
1: Detection done on each comparator is output without being latched.
Note: Selecting 1 outputs the comparator detection as it is, thus reset with the STATUS3 READ becomes
unavailable.
(3) CNTINT LATCH TRIGGER TYPE (D )
2
When "Latch" is selected for the CNTINT output specification of the PULSE COUNTER, this bit is used for
selecting a latch type (the same specification is selected for the COMPARE REGISTER1 to 5).
0: Level latch (Even if you may execute the STATUS3 READ while the detection conditions are met,
current active state of CNTINT output remains the same).
1: Edge latch
(Executing the STATUS3 READ generates CNTINT output reset even if the detection
conditions are met).
Note: When the output without latch is selected for CNTINT output, this bit does not have any effect.
Summary of Contents for C-875
Page 98: ... 98 2 M TYPE 3 H TYPE ...