ST7MC1/ST7MC2
138/308
MOTOR CONTROLLER (Cont’d)
Table 23. MTC Registers
10.6.2 Main Features
■ Two on-chip analog comparators, one for BEMF
zero-crossing detection, the other for current
regulation or limitation
■ Seven selectable reference voltages for the
hysteresis comparator (0.2 V, 0.6 V, 1 V, 1.5 V,
2 V, 2.5 V, 3.5 V) and the possibility to select an
external reference pin (MCVREF).
■ 8-bit timer (MTIM) with three compare registers
and two capture features, which may be used as
the Delay manager of a speed measurement
unit
■ Measurement
window generator for BEMF
zero-crossing detection
■ Filter option for the zero-crossing detection.
■ Auto-calibrated prescaler with 16 division steps
■ 8x8-bit multiplier
■ Phase input multiplexer
■ Sophisticated output management:
– The six output channels can be split into two
groups (high & low)
– The PWM signal can be multiplexed on high,
low or both groups, alternatively or simultane-
ously, for six-step motor drives
– 12-bit PWM generator with full modulation ca-
pability (0 and 100% duty cycle), edge or cent-
er-aligned patterns
– Dedicated interrupt for PWM duty cycles up-
dating and associated PWM repetition coun-
ter.
– Programmable deadtime insertion unit.
– Programmable High frequency Chopper in-
sertion and high current PWM outputs for di-
rect optocoupler drives.
– The output polarity is programmable channel
by channel.
– A programmable bit (active low) forces the
outputs in HiZ, Low or High state, depending
on option byte 1 (refer to “ST7FMC Device
Configuration And Ordering Information” sec-
tion).
– An “emergency stop” input pin (active low)
asynchronously forces the outputs in HiZ, Low
or High state, depending on option byte 1 (re-
fer to “ST7FMC Device Configuration And Or-
dering Information” section).
Register
Description
Register
page
(RPGS
bit)
Page
MTIM
Timer Counter Register
0
MTIML
Timer LSB (mode depend-
ent)
0
MZPRV
Capture Zn-1 Register
0
MZREG
Capture Zn Register
0
MCOMP Compare Cn+1 Register
0
MDREG
Demagnetization Reg.
0
MWGHT An Weight Register
0
MPRSR
Prescaler & Sampling Reg.
0
MIMR
Interrupt Mask Register
0
MISR
Interrupt Status Register
0
MCRA
Control Register A
0
MCRB
Control Register B
0
MCRC
Control Register C
0
MPHST
Phase State Register
0
MDFR
D Event Filter Register
0
MCFR
Current Feedback Filter
Register
0
MREF
Reference register
0
MPCR
PWM Control Register
0
MREP
Repetition Counter Reg.
0
MCPWH Compare W Register High
0
MCPWL
Compare W Register Low
0
MCPVH
Compare V Register High
0
MCPVL
Compare V Register Low
0
MCPUH
Compare U Register High
0
MCPUL
Compare U Register Low
0
MCP0H
Compare 0 Register High
0
MCP0L
Compare 0 Register Low
0
MDTG
Dead Time Generator reg.
1
MPOL
Polarity Register
1
MPWME PWM register
1
MCONF
Configuration register
1
MPAR
Parity register
1
MZFR
Z Event Filter Register
1
MSCR
Sampling Clock Register
1
1