![STMicroelectronics B-G431B-ESC1 Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/stmicroelectronics/b-g431b-esc1/b-g431b-esc1_user-manual_1381057014.webp)
Hardware layout and configuration
UM2516
14/29
UM2516 Rev 4
5.3 Communication,
programming, and command interfaces
The B-G431B-ESC1 Discovery kit is equipped with a USB connector and different pads for
communication, such as:
•
U4 USB port for programming and debugging
•
J1 for CAN port
•
J2 for SWD-STM32F103 (reserved)
•
J3 for PWM/UART/BECout input/output signal
•
J4 for SWD-STM32G431 debug/programming port (without daughterboard)
•
J8 for motor sensor (Hall or encoder)
Figure 9. Communication, programming, and command interfaces
The USB interface is provided on the daughterboard and it allows to program and debug the
main board. It provides also the supply voltage to the STM32G431CB MCU in case of no
voltage on the bus (J5 and J6 not connected to the LiPo battery). The USB port is available
to use the ST MC Workbench and Motor Profiler tool directly connected with the PC (no
external dongle is needed).
The CAN interface is provided with an onboard transceiver and a termination resistor is
provided and manageable by firmware. The J1 connector has also 5V and GND pins (see
for further info)
The J2 is reserved to program the MCU on the daughterboard.
The J3 pads are available on the top side of the main board. They provide the UART TX and
RX (for telemetry and firmware update respectively), the input PWM channel for motor
speed regulation. In particular, the PWM input signal (5 V tolerant) sets the motor speed
according to the Ton duration, for instance, 1060 µs for the minimal speed and 1860 µs for
the maximum speed. Other pins are for GND and 5 V. It is a power line to supply an external
board, for example, a flight control unit or equivalent. This voltage line is available only if the
daughterboard is not removed.