ST7MC1xx/ST7MC2xx
MOTOR CONTROLLER (Cont’d)
Figure 92. Step Ratio Functional Diagram
fPERIPH
R+
+1
MTIM Timer = 100h? 1 / 2
4
MPRSR Register ST[3:0] Bits
1 / 2Ratio
-1
Zn < 55h?
R-
Tratio
ck
2 MHz - 62.5 Hz
MTIM Timer control over Tratio and register operation
MTIM Timer Overflow
Begin
Z Capture with MTIM Timer Underflow (Zn < 55h)
Begin
No
Ratio < Fh?
Yes
Ratio = Ratio + 1
MZREG = MZREG / 2
MZPRV = MZPRV/2
MDREG = MDREG/2
MCOMP = MCOMP/2**
Counter = Counter/2
End
Slow-down control
** Only in Auto-switched mode (SWA=1 in MCRA register)
No
Ratio > 0?
Yes
Ratio = Ratio - 1
MZREG = MZREG x 2
MZPRV = MZPRV x 2
MDREG = MDREG x 2
Counter = Counter x 2
Compute MCOMP
End
Speed-up control
170/309
1