st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 270

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
270/371
Control register C (MCRC)
Table 136. MCRC register description
MCRB
Bit
7
6
5
SEI/OI
R/W
EDIR/HZ
7
SEI/OI
Name
Warning:
SZ
EDIR/HZ
Speed error interrupt flag/MTIM overflow flag
Encoder Direction bit/ Hardware zero-crossing event bit
Simulated zero-crossing event bit
RO
Position sensor or sensorless mode (TES[1:0] bits = 00):
OI: MTIM overflow flag
This flag signals an overflow of the MTIM timer. It has to be cleared by software.
0: No MTIM timer overflow
1: MTIM timer overflow
Note: No interrupt is associated with this flag.
Speed sensor mode (TES[1:0] bits = 01, 10, 11):
SEI: Speed error interrupt flag
0: No tacho error interrupt pending
1: Tacho error interrupt pending
Position sensor or sensorless mode (TES[1:0] bits = 00):
HZ: Hardware zero-crossing event bit
This read/write bit selects if the Z event is hardware or not.
0: No hardware zero-crossing event
1: Hardware zero-crossing event
Speed sensor mode (TES[1:0] bits = 01, 10, 11):
EDIR: Encoder direction bit
This bit is read-only. As the rotation direction depends on encoder outputs and
motor phase connections, this bit cannot indicate absolute direction. It therefore
gives the relative phase-shift (that is, advance/delay) between the two signals in
quadrature output by the encoder (see
0: MCIA input delayed compared to MCIB input
1: MCIA input in advance compared to MCIB input
0: No simulated zero-crossing event
1: Simulated zero-crossing event
6
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
As the MCRB register contains preload bits with, it has to be
written as a complete byte. A bit set or bit reset instruction on
a non-preload bit resets has the effect of resetting all the
preload bits.
R/W
SZ
5
R/W
SC
4
Function
SPLG
R/W
3
Figure
91).
2
Reset value: 0000 0000 (00h)
VR[2:0]
R/W
1
0

Related parts for st7pmc2s6