st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 210

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:
210/371
Encoder mode (IS[1:0] = 11)
Figure 91
associated information:
The incremental encoder interface block aims at extracting these signals. As input logic is
both rising and falling edge sensitive (independently from TES[1:0] bits setting), resulting
clock frequency is four times the one of the input signals, thus increasing resolution for
measurements.
It may be noticed that direction bit (EDIR bit in MCRC register) is read only and that it does
not affect counting direction of clocked timer (see
result, one cannot extract position information from encoder inputs during speed reversal.
Figure 90. Tacho capture events configured by the TES[1:0] bits
Figure 91. Incremental encoder output signals and derived information
If only one encoder output is available, it may be input either on MCIA or MCIB and an
encoder clock signal is still generated (in this case the frequency is 50% less than with two
inputs.
The state of EDIR bit depends on signals present on MCIA and MCIB pins, the result is
given by sampling the falling edges of MCIA with MCIB.
Two 90° phased square signals with variable frequency proportional to the speed; they
must be connected to MCIA and MCIB input pins,
Clock derived from incoming signal edges,
Direction information determined by the relative phase shift of input signals (+/-90°).
Encoder inputs
Encoder clock
Direction EDIR bit
Tacho capture
shows the signals delivered by a standard digital incremental encoder and
Tacho input
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
MCIA
MCIB
Section 10.6.7: Delay
Sampling of MCIA to determine direction
manager). As a
TES[1:0] = 11
TES[1:0] = 01
TES[1:0] = 10

Related parts for st7pmc2s6