st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 219

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
The automatically updated registers are: MTIM, MZREG, MZPRV, MCOMP and MDREG.
Access to these registers is summarized in
Debug option
In both switched mode and autoswitched mode, setting the bit DG in MPWME register
enables the debug option. This option consists of outputting the C, D and Z signals in real
time on pins MCZEM and MCDEM. This is very useful during the debug phase of the
application.
debug option.
Note:
This option is also available in speed measurement mode with different signal outputs (see
Figure
These signals are only available if the TES[1:0] bits = 10, 01 or 11.
MCDEM toggles when a capture event is generated.
MCZEM toggles every time a U event is generated.
95):
1
2
shifted left (multiplied by two). The RMI bit in the MISR register is set and an
interrupt is generated if RIM is set.
If the prescaler contents reach the value 0, it can no longer be automatically
decremented, the MTC continues working with the same prescaler value, that is,
with a lower accuracy. No RMI interrupt can be generated.
If the prescaler contents reach the value 15, it can no longer be automatically
incremented. When the timer reaches the value FFh, the prescaler and all the
relevant registers remain unchanged and no interrupt is generated, the timer
restarts counting from 0 x 00h and if the TES[1:0] bits = 00, the OI bit in the MCRC
register is set at each overflow (it has to be reset by software). The RPI bit is no
longer set. The PWM is still generated and the D and Z detection circuitry still
work, enabling the capture of the maximum timer value.
Figure 95
When the delay coefficient equals 0/256 (C event immediately after Z event), a
glitch appears on MCZEM pin to be able to see the event even in this case.
In sensor mode, the MCDEM output pin toggles at each C event. The MCZEM
pin outputs the Z event.
shows the signals output on pins MCDEM and MCZEM with the
Table
99.
On-chip peripherals
219/371

Related parts for st7pmc2s6