st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 232

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
On-chip peripherals
Note:
Note:
232/371
Figure 104. Auto-updated prescaler functional diagram
Three kinds of interrupt can be generated in Speed sensor mode, as summarized in
Figure
These interrupts may be masked individually.
Delay manager initialization in speed measurement mode: In order to set-up the
[MTIM:MTIML] counter properly before any speed measurement, the following procedure
must be applied:
1. The peripheral clock must be disabled (resetting the CKE bit in the MCRA register) to
allow write access to ST[3:0], MTIM and MTIML (refer to
2. MTIM, MTIML must be reset and appropriate values must be written in the ST[3:0]
prescaler adapt to the frequency of the signal being measured and to allow speed
measurement with sufficient resolution.
MTIML: The least significant byte of the counter (MTIML) is not used when working in
position sensor or sensorless modes.
Debug option
A signal reflecting the capture events may be output on a standard I/O port for debugging
purposes. Refer to
C interrupt, when a capture event occurs; this interrupt shares resources (mask bit and
flag) with the commutation event in switched/autoswitched mode, as these modes are
mutually exclusive.
RPI/RMI interrupts occur when the ST[3:0] bits of the MPSR register are changed,
either automatically or by hardware.
S interrupt occurs when a speed error happens (that is, a successful comparison
between [MTIM:MTIML] and [MDREG:FF]). This interrupt has the same channel as the
emergency stop interrupt (MCES), as it also warns the user about abnormal system
operation. The respective flag bits have to be tested in the interrupt service routine to
differentiate speed errors from emergency stop events.
105:
[MTIM:MTIML] timer overflow
(MTIM = MTIML = FFh)
Counter = Counter/2
Slow-down control
Ratio = Ratio + 1
Ratio < Fh?
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Begin
End
Debug option on page 219
Yes
No
for more details.
Capture with [MTIM:MTIML] timer < 5500h
Table
Speed-up control
Ratio = Ratio -1
(MZREG < 55h)
Counter = 0
Ratio > 0?
Begin
99)
End
Yes
No

Related parts for st7pmc2s6