796
Chapter 21
Stepper Motor Controller/Driver (Stepper-C/D)
Preliminary User’s Manual U17566EE1V2UM00
The Stepper Motor Controller/Driver 0 sub-module is comprised of 4 drivers
(k = 1 to 4), Stepper Motor Controller/Driver 1 sub-module is comprised of 2
drivers (k = 5 to 6). Each Stepper Motor Controller/Driver sub-module includes
a free running up counter (CNTm). The counter is controlled by a timer mode
control register (MCNTCnm).
Each of the six drivers consists of two compare registers, MCMPnk0 and
MCMPnk1, respectively. Their contents define the pulse widths for the sine and
the cosine side of the meters. The MCMPnk0/MCMPnk1 registers comprise a
master-slave register combination. This allows to re-write the master register
while the slave register is actually used for comparison with the counter CNTm.
The compare control register MCMPCnk defines whether or not enhanced
pulse width precision by one-bit addition is enabled, and it routes the output
signals to the corresponding output pins (SMk1 to SMk4).
Figure 21-1
Stepper Motor Controller/Driver 0 block diagram
S
M11 (
s
in1+)
8
-
b
it comp
a
re regi
s
ter MCPMn10
OVF
O
u
tp
u
t
Control
S
Q
R
S
Q
R
S
Q
R
S
Q
R
S
Q
R
S
Q
R
S
Q
R
S
Q
R
S
elector
Pre
s
c
a
ler
f
MC0
1-
b
it
a
dd.
circ
u
it
8
-
b
it comp
a
re regi
s
ter MCPMn11
8
-
b
it comp
a
re regi
s
ter MCPMn20
8
-
b
it comp
a
re regi
s
ter MCPMn21
8
-
b
it comp
a
re regi
s
ter MCPMn
3
0
8
-
b
it comp
a
re regi
s
ter MCPMn
3
1
8
-
b
it comp
a
re regi
s
ter MCPMn40
8
-
b
it comp
a
re regi
s
ter MCPMn41
1-
b
it
a
dd.
circ
u
it
1-
b
it
a
dd.
circ
u
it
1-
b
it
a
dd.
circ
u
it
1-
b
it
a
dd.
circ
u
it
1-
b
it
a
dd.
circ
u
it
1-
b
it
a
dd.
circ
u
it
1-
b
it
a
dd.
circ
u
it
8
-
b
it free-r
u
nning co
u
nter CNT0
O
u
tp
u
t
Control
O
u
tp
u
t
Control
O
u
tp
u
t
Control
O
u
tp
u
t
Control
O
u
tp
u
t
Control
O
u
tp
u
t
Control
O
u
tp
u
t
Control
S
M12 (
s
in1-)
S
M1
3
(co
s
1+)
S
M14 (co
s
1-)
S
M21 (
s
in2+)
S
M22 (
s
in2-)
S
M2
3
(co
s
2+)
S
M24 (co
s
2-)
S
M
3
1 (
s
in
3
+)
S
M
3
2 (
s
in
3
-)
S
M
33
(co
s3
+)
S
M
3
4 (co
s3
-)
S
M41 (
s
in4+)
S
M42 (
s
in4-)
S
M4
3
(co
s
4+)
S
M44 (co
s
4-)
S
PCLK1
(
8
MHz)
S
PCLK1
S
PCLK1/2
S
PCLK1/4
S
PCLK1/
8
S
PCLK1/16
S
PCLK1/
3
2
S
PCLK1/64
S
PCLK1/12
8
electronic components distributor