IC:

Introduction

To maximize design flexibility under limited pin resources, the chip provides a pin multiplexing (Pinmux) solution. Each pin can be configured to connect to different internal IP circuits.

For the specific mapping between pins and IP circuits, refer to the provided Pinmux table.

Ensure compliance with the following Pinmux guidelines to prevent unexpected behavior and usage issues before development.

Function Multiplexing

Function ID 0~18

For functions with ID number among 0~18, each pin can only be connected to a fixed signal of a certain IP. The functions that can be configured on a pin are very limited, but a dedicated design can maximize the performance of each IP.

Note

For example, both function ID 8 and function ID 29~32 implement SPI functionality. Since function ID 8 is a dedicated pin, it achieves a maximum SPI clock speed of 50MHz (master mode); while the maximum speed of the full-cross pins associated with function ID 29~32 are limited to 12.5 MHz (master mode).

Taking PB30 as an example: when configuring the function ID of PB30 to 1, the pin will be directly connected to the UART1_RXD signal of the UART1 via pinmux.

Refer to the pinmux table for the specific function distribution available on each pin.

../../_images/dplus_schematic_diagram_of_pinmux_connection_of_PB30.svg

Schematic diagram of pinmux connection of PB30

Function ID 19~81

For functions with ID number after 19, each pin can be flexibly connected to different signals of a certain IP. This method maximizes the freedom of use, but the scope of use and some IPs’ performance (maximum transfer speed) is limited.

Taking PA12 as an example: you can connect PA12 with the UART0_TXD signal of UART0 by configuring the function ID of PA12 to 19, and can also connect PA12 with the UART0_RXD signal of UART0 by configuring the function ID of PA12 to 20.

For details, refer to the pinmux table.

../../_images/dplus_schematic_diagram_of_pinmux_connection_of_PA12.svg

Schematic diagram of pinmux connection of PA12

Trap Pins

During the process of power on, the internal circuit will latch the conditions of several pins to determine entry into various modes. The trap pins and descriptions are listed in the table below.

Pin name

Symbol

Active level

Description

PB31

TM_DIS

Low

Test Mode Disable, default internal pull up.
It is for internal test only and should be logical high for normal operation.
  • 1: Normal operation mode

  • 0: Test mode

PB5

UD_DIS

Low

UART Download Disable, default internal pull up

  • 1: Enter into normal boot mode

  • 0: Enter into UART download mode

Note

The trap pin needs to select the external pull-up and pull-down voltages according to the I/O power supply.

Wake Pins & SWD Pins

Wake Pins

The pins PB30 and PB31 are directly connected to the wake-up circuit which is used to wake up the system from deep-sleep state.

Note

Disable the wake-up function first before multiplexing these pins for other purposes.

SWD Pins

The pins PA30 and PA31 are forced to SWD function by default. To multiplex these two pins for other functions, call sys_jtag_off() or Pinmux_Swdoff() before switching.