st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 209

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
Tachogenerator mode (IS[1:0] = 00, 01 or 10)
Any of the MCIx input pins can be used as a tachogenerator input, with a digital signal (externally
amplified for instance); the two remaining pins can be used as standard I/O ports.
A digital multiplexer connects the chosen MCIx input to an edge detection block. Input selection is done
with the IS[1:0] bits in the MPHST register.
An edge selection block is used to select one of three ways to trigger capture events: rising edge, falling
edge or both rising and falling edge sensitive; set-up is done with the TES[1:0] bits (keeping in mind that
TES[1:0] = 00 configuration is reserved for position sensor/
sensorless modes).
Having only one edge selected eliminates any incoming signal dissymmetry, which may due to pole-to-
pole magnet dissymmetry or from a comparator threshold with low level signals.
Figure 91
Hall sensors
This configuration is also suitable for motors using three hall sensors for position detection and not driven
in six-step mode (refer to
Initializing the input stage
As the IS[1:0] bits in the MPHST register are preload bits (new values taken into account at C event), the
initialization value of the IS[1:0] bits has to be entered in direct access mode. This is done by setting the
DAC bit in the MCRA register during the speed sensor input initialization routine.
Figure 89. Input stage in speed sensor mode (TES[1:0] bits = 01, 10, 11)
1. According to IS[1:0] bits setting.
Tacho
Tacho
Tacho
1)
1)
1)
presents the signals generated internally with different tacho input and TES bit settings.
or encoder
or encoder
or free I/O
MCIA
MCIB
MCIC
I
nput block
Speed measurement mode on page
00
01
10
Input
n
Input comparator block
sel
MPHST register
IS[1:0]
MPAR register
or
227).
TES[1:0]
or
In1
In2
Incremental
interface
encoder
Tacho capture
Event detection
On-chip peripherals
Clk
D
MCRC register
Direction
Encoder clock
EDIR bit
209/371

Related parts for st7pmc2s6