English
Language : 

ST7MC1XX Datasheet, PDF (167/309 Pages) STMicroelectronics – 8-bit MCU with nested interrupts, Flash, 10-bit ADC, brushless motor control, five timers, SPI, LINSCI™
ST7MC1xx/ST7MC2xx
MOTOR CONTROLLER (Cont’d)
Note on using the 3 MCIx pins as standard
I/Os: When none of the MCIx pins are needed in
the application (for instance when driving an in-
duction motor in open loop), they can be used as
standard I/O ports, by configuring the Motor Con-
troller as follows: PCN=1, TES≠0 and IS=11. This
disables the MCIx alternate functions and switch-
es off the phase comparator. The state of the MCIx
pins is summarized in Table 36.
Table 36. MCIx pin configuration summary
PCN TES SR IS[1:0] MCIA
MCIB
MCIC
Input
Detection
Block Mode
Comments
00 Analog Input Hi-Z or GND Hi-Z or GND
01 Hi-Z or GND Analog Input Hi-Z or GND Sensorless
0
10 Hi-Z or GND Hi-Z or GND Analog input
All MCIx pins are reserved
for the MTC peripheral
11
NA
NA
NA
NA
00
0
00 Analog Input Standard I/O Standard I/O
01 Standard I/O Analog Input Standard I/O
1 10 Standard I/O Standard I/O Analog Input
Position
Sensor
From 1 to 3 MCIx pins reserved
depending on sensor
11 Standard I/O Standard I/O Standard I/O
NA
All MCIx pins are standard I/Os.
Phase comparator is OFF
≠0 x xx
NA
NA
NA
NA
00 Analog Input Standard I/O Standard I/O
Phase comparator is ON.
01 Standard I/O Analog Input Standard I/O
NA
The IS[1:0] bits must not be modified
to avoid spurious event detection
00 x 10 Standard I/O Standard I/O Analog Input
in Motor Controller
All MCIx pins are standard I/Os.
11 Standard I/O Standard I/O Standard I/O
NA
Recommended configuration:
1
phase comparator OFF
≠00 x
00 Digital Input Standard I/O Standard I/O
01
Standard I/O
Digital Input
Standard I/O
Speed Sensor
Tachogenerator
10 Standard I/O Standard I/O Digital Input
Phase comparator is OFF
11
Digital Input
Digital Input Standard I/O
Speed Sensor
Encoder
*When PCN=0, TES=0 SR=0, inputs in OFF-state are put in HiZ or grounded depending on the value of
the DISS bit in the MSCR register.
Notes:
1. Analog input: Based on analog comparator and analog voltage reference. The corresponding digital
I/O is disabled and data in the DR register is not representative of data on the input.
2. Digital input: Use of standard VIL, VIH I/O level. This input can also be read via the associated I/O port.
167/309
1