st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 201

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Figure 83. Z event generation
1. Preload register; changes taken into account at next C event.
2. Register updated on R event.
Protection for Z
To avoid an erroneous detection of a hardware zero-crossing event, a filter can be enabled by setting the
PZ bit in the MCRA register. This filter ensures the detection of a Z
D event and Z
Without this protection, Z
expected state at the output of the phase comparator. For example, if a falling edge transition (meaning a
transition from 1 to 0 at the output of the phase comparator) is configured for Z
bit in MCRB register, then, the state 0 is expected at the comparator output and once this state is
detected, the Z
previous sample was 1. The purpose of this protection filter is to be sure that the state of the comparator
output at the sample before was really the opposite of the current state which is generating the Z
With this filter, the Z
This filter is not needed in sensor mode (SR = 1) and for simulated zero-crossing event (Z
When the PZ bit is set, the Z event filter ZEF[3:0] in the MZFR register is ignored.
SPLG bit
Sample
C
DS[3:0]
HZ bit
SZ bit
S,H
bits
D
Z
Z
S,H
S
H
H
2
1
H
MCRB register
event.
MPOL register
event is generated without any verification that the state at the comparator output of the
CPB
H
F(x)
REO bit
H
event detection
n
event generation is done on edge transition level comparison.
bit
(1)
H
To D detection
event detection is done directly on the current sample in comparison with the
or
Z = Z
MPOL register
ZVD bit
H
or
and HZ bit + Z
MCRC register
or
HZ bit
MCRA register
S
and SZ bit
PZ bit
Z
H
MZFR register
ZWF[3:0]
ZEF[3:0]
MCRC register
H
event on an edge transition between
SZ bit
To interrupt generator
MTIM [8-bit up counter] (MSB)
Z
H
MZREG [Z
Z
H
event through the CPB
Compare
On-chip peripherals
8
n
]
(2)
MZFR register
Z
S
ZWF[3:0]
S
) generation.
(2)
H
201/371
event.

Related parts for st7pmc2s6