-
92
-
11-10.
Comparator
11-10-1.
Comparator
types
and
functions
This
LSI
has
2
circuit
28-bit
comparators
per
axis.
These
are
referred
to
as
"Comparator1"
and
"
Comparator2."
Comparator
1
compares
the
setting
in
the
RCMP1
register
with
COUNTER1.
Comparator
2
compares
the
setting
in
the
RCMP2
register
with
COUNTER2.
One
of
three
comparison
methods
can
be
selected
(=,
<,
and
>),
and
the
comparison
results
can
be
output
to
a
terminal.
Also,
the
PCL
can
output
an
signal
such
as
an
event
interrupt
when
comparison
condition
is
met.
A
special
use
of
the
comparator
is
to
control
a
ring
count
function
and
internal
synchronized
start
function.
For
descriptions
of
these
functions,
see
"11-10-2.
Ring
count
function"
and
"11-11-2.
Start
on
an
internal
synchronized
signal."
Use
the
RENV2
and
RENV3
registers
to
set
the
comparators.
Set
the
comparison
conditions
for
Comparator
1
<Set
C1S1,
0
(bits
12,
13)
in
RENV3>
00:
Turn
OFF
the
comparator
function
01:
(RCMP1)
=
(COUNTER1)
10:
(RCMP1)
>
(COUNTER1)
11:
(RCMP1)
<
(COUNTER1)
[RENV3]
(WRITE)
15
8
-
-
n
n
-
-
-
-
Set
the
comparison
conditions
for
Comparator
2
<Set
C2S1,
0
(bits
14,
15)
in
RENV3>
00:
Turn
OFF
the
comparator
function
01:
(RCMP1)
=
(COUNTER1)
10:
(RCMP1)
>
(COUNTER1)
11:
(RCMP1)
<
(COUNTER1)
[RENV3]
(WRITE)
15
8
n
n
-
-
-
-
-
-
Set
an
event
interrupt
factor
<Set
IRC1,
2
(bits
6,
7)
in
RIRQ>
IRC1
(bit
6)
=
1:
Outputs
an
signal
when
Comparator
1
conditions
are
met.
IRC2
(bit
7)
=
1:
Outputs
an
signal
when
Comparator
2
conditions
are
met.
[RIRQ]
(WRITE)
7
0
n
n
-
-
-
-
-
-
Read
the
event
interrupt
factor
<Set
ISC1,
2
(bits
6,
7)
in
RIST>
IRC1
(bit
6)
=
1:
When
the
Comparator
1
conditions
are
met.
IRC2
(bit
7)
=
1:
When
the
Comparator
2
conditions
are
met.
[RIST]
(READ)
7
0
n
n
-
-
-
-
-
-
Read
the
comparator
condition
status
<Set
SCP1,
2
(bits
8,
9)
in
MSTSW>
SCP1
(bit
8)
=
1:
When
the
Comparator
1
conditions
are
met.
SCP2
(bit
9)
=
1:
When
the
Comparator
2
conditions
are
met.
[MSTSW]
(READ)
15
8
-
-
-
-
-
-
n
n
Set
the
specifications
for
the
P3/CP1
terminal
<Set
P3M0
to
1
(bits
6
to
7)
in
RENV2>
00:
General-purpose
input
01:
General-purpose
output
10:
Output
a
CP1
signal
(when
the
Comparator1
conditions
are
met)
using
negative
logic.
11:
Output
a
CP1
signal
(when
the
Comparator1
conditions
are
met)
using
positive
logic.
[RENV2]
(WRITE)
7
0
n
n
-
-
-
-
-
-
Set
the
specifications
for
the
P4/CP2
terminal
<Set
P4M0
to
1
(bits
8
to
9)
in
RENV2>
00:
General-purpose
input
01:
General-purpose
output
10:
Output
a
CP2
signal
(when
the
Comparator2
conditions
are
met)
using
negative
logic.
11:
Output
a
CP2
signal
(when
the
Comparator2
conditions
are
met)
using
positive
logic.
[RENV2]
(WRITE)
15
8
-
-
-
-
-
-
n
n
Summary of Contents for PCL6113
Page 1: ...User s Manual For PCL6113 6123 6143 Pulse Control LSI Nippon Pulse Motor Co Ltd...
Page 11: ...5 3 Terminal Assignment Diagram 3 1 PCL6113 3 2 PCL6123...
Page 20: ...14 5 Block Diagram...
Page 115: ...109 11 Stop timing by error...
Page 116: ...110 13 External Dimensions 13 1 PCL6113...
Page 117: ...111 13 2 PCL6123...
Page 118: ...112 13 3 PCL6143...