6.27 Motor control
The STM32MP157F-EV1 board supports both asynchronous and synchronous 3-phase brushless motor control
via the 34-pin connector
MB1262/CN22, which provides all required control and feedback signals, to and from the
motor power-driving board.
Available signals on this connector include emergency stop, motor speed, 3-phase motor current, bus voltage,
heatsink temperature coming from the motor driving board and 6 channels of PWM control signal (MC-xH/L)
going to the motor driving circuit.
6.27.1 Motor control I/O interface
Because of I/O consuming limitation, the motor control I/O interface is not enabled by default. As described below,
some board modifications are needed to connect the motor control interface.
T
able 44 describes the assignment of the MB1262/CN22 motor control interface and the I/O function associated
from the STM32MP157FAA1.
Table 44. Motor control terminal and I/O function assignment
Motor control connector CN22 STM32MP157FAA1 microprocessor
Terminal Terminal name
Port
name
Function Alternate function
Board configurations to
enable motor control
1 Emergency Stop PA6 TIM8_BKIN DCMI_PIXCLK Close MB1262/SB22
2 GND - - - -
3 MC_UH PI5 TIM8_CH1 SAI_2_SCK_A
Close MB1262/SB67
Open MB1262
/SB9 and SB66
4 GND - - - -
5 MC_UL PH13 TIM8_CH1N CAN_1_TX Close MB1262/SB76
6 GND - - - -
7 MC_VH PI6 TIM8_CH2 SAI_2_SD_A
Close MB1262/SB75
Open MB1262
/SB10 and SB73
8 GND - - - -
9 MC_VL PH14 TIM8_CH2N DCMI_D4 Close MB1262/SB21
10 GND - - - -
11 MC_WH PI7 TIM8_CH3 SAI_2_FS_A
Close MB1262/SB65
Open MB1262
/SB11 and SB63
12 GND - - - -
13 MC_WL PH15 TIM8_CH3N DCMI_D11 Close MB1262/SB33
14 Bus Voltage PA3 ADC_1_IN15 GPIO6_TIM2_CH4 Close MB1262/SB14
15 PhaseA current PF12 ADC_1_IN6 - Close MB1262/SB20
16 GND - - - -
17 PhaseB current ANA0 ADC_1_IN0 ADC_2_IN0 Close MB1262/SB12
18 GND - - - -
19 PhaseC current ANA1 ADC_2_IN1 - Close MB1262/SB13
20 GND - - - -
21 NTC Bypass PF3 GPIO GPIO7 Close MB1262/SB19
22 GND - - - -
23 Dissipative Brake PH6 TIM12_CH1
GPIO12_TIM12_CH
1
Close MB1262/SB29
UM2648
Motor control
UM2648 - Rev 1
page 38/61