Professional Documents
Culture Documents
DS_MM32F031xx Hoverboard
DS_MM32F031xx Hoverboard
MM32F031xx
Ver: 1.11_n
MindMotion reserves the right to change the relevant information without prior notification.
Content
1 Introduction 1
1.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Product Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Specification 3
2.1 Device contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
® TM
2.2.1 ARM Cortex -M0 and SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2.2 Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.3 SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.4 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.5 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2.6 Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.7 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.8 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.9 Power supply supervisors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.10 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.11 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.12 Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.13 Backup register (BKP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.14 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.15 Universal asynchronous receiver/transmitter (UART) . . . . . . . . . . . . . . . . . . . . . 10
2.2.16 I2C interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.17 Serial peripheral interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.18 General-purpose inputs/outputs (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.19 Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.20 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.21 Serial single line SWD debug port (SW-DP) . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3 Pin definition 14
4 Memory mapping 22
5 Electrical characteristics 24
5.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1
5.3.2 Operating conditions at power-up/power-down . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.3.3 Embedded reset and power control block characteristics . . . . . . . . . . . . . . . . . . . 28
5.3.4 Embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.3.5 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3.6 External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.3.7 Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.3.8 PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.3.9 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.3.10 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.3.11 Absolute Maximum (Electrical Sensitivity) . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.12 I/O port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.3.13 NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.3.14 Timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.3.15 Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.3.16 12-bit ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.3.17 Temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6 Package information 59
6.1 LQFP48 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.2 LQFP32 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6.3 QFN32 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
6.4 TSSOP20 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
7 Ordering information 67
8 Revision history 68
2
List of Figures
1 Clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3 Clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4 LQFP48 packet pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5 LQFP32 packet pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6 QFN32 packet pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
7 TSSOP20 packet pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
8 Pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
9 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
10 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
11 Current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
12 Typical current consumption in standby mode vs. temperature at VDD = 3.3V . . . . . . . . . . . . 32
13 High-speed external clock source AC timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . 34
14 Low-speed external clock source AC timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 35
15 Typical application with an 8 MHz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
16 Typical application with a 32.768 kHz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
17 I/O AC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
18 Recommended NRST pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
19 I2C bus AC waveform and measurement circuit(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
20 SPI timing diagram-slave mode and CPHA = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
21 SPI timing diagram-slave mode and CPHA = 1(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
22 SPI timing diagram-master mode(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
23 Typical connection diagram using the ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
24 Power supply and reference power supply decoupling circuit . . . . . . . . . . . . . . . . . . . . . 58
25 LQFP48 - 48-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . . . . . . . 59
26 LQFP32 - 32-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . . . . . . . 61
27 QFN32 - 32-pin quad flat no-leads package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
28 TSSOP20 - 20-lead thin shrink small outline package outline . . . . . . . . . . . . . . . . . . . . . 65
29 Ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3
List of Tables
1 MM32F031xx device features and peripheral counts . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4 Alternate functions for port A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5 Alternate functions for port B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6 Alternate functions for port D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8 Voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9 Current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
10 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
11 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
12 Operating conditions at power-up/power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
13 Embedded reset and power control block characteristics . . . . . . . . . . . . . . . . . . . . . . . 28
14 Embedded internal reference voltage(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
15 Typical current consumption in Run mode, code executing from Flash memory . . . . . . . . . . . 30
16 Typical current consumption in Sleep mode, code executing from Flash memory or RAM . . . . . 31
17 Maximum current consumption in Stop and Standby mode, code executing from Flash memory . 31
18 On-chip peripheral current consumption(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
19 High-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
20 Low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
21 HSE oscillator characteristics(1)(2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
22 LSI oscillator characteristics (fLSE =32.768KHz) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
23 HSI oscillator characteristics(1)(2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
24 LSI oscillator characteristics(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
25 Low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
26 PLL characteristics(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
27 Flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
28 Flash memory endurance and data retention(1)(2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
29 EMS characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
30 ESD characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
31 I/O static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
32 Output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
33 I/O AC characteristics(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
34 NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
35 TIMx(1) characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
36 I2C characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
37 SPI characteristics(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
38 ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
39 Maximum RAIN at fADC = 15MHz(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
40 ADC Accuracy - Limit Test Conditions(1)(2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
41 Temperature sensor characteristics(3)(4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
42 LQFP48 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
4
43 LQFP32 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
44 QFN32 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
45 TSSOP20 mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
46 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
5
Introduction
DS_MM32F031xx_n_Ver1.11
1 Introduction
Introduction
1.1 Description
The device works between 2.0V to 5.5V range. The normal temperature for the device
is -40◦ C to +85◦ C and -40◦ C to +105◦ C extended temperature range devices are also
available upon ordering. A comprehensive set of power-saving mode allows the design
of low-power applications.
The devices are available in 3 different packages: LQFP48, LQFP32, QFN32 and TSSOP20.
Depending on the device chosen, different sets of peripherals are included.
The abundant peripheral configurations enable the device to fit wide range of applications
in difference industries, Few examples are as follows:
www.mm32mcu.com 1/68
Introduction
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 2/68
Specification
DS_MM32F031xx_n_Ver1.11
2 Specification
Specification
General purpose
5/5/4/4 5/5/4/4 5/5/4/4 5 5
16 bit
Advanced
1 1 1 1 1
control
UART 1/1/2/2 1/1/2/2 1/1/2/2 1 1
Common
I2C 1 1 1 1 1
interfaces
SPI 1/1/2/2 1 1 1 1
GPIOs 39 25 27 16 16
12-bit ADC 1 1
(number of channels) 10 channels 9 channels
Max CPU frequency 72 MHz
Operating voltage 2.0V ∼ 5.5V
Packages LQFP48 LQFP32 QFN32 QFN20 TSSOP20
2.2 Summary
www.mm32mcu.com 3/68
Specification
DS_MM32F031xx_n_Ver1.11
The ARM® CortexTM -M0 processors feature exceptional code-efficiency, delivering the
high performance expected from an ARM core, with memory sizes usually associated
with 8- and 16-bit devices.
The devices have embedded ARM core and are compatible with all ARM tools and soft-
ware.
2.2.2 Memory
128K Bytes of embedded Flash memory.
2.2.3 SRAM
8K Bytes of embedded SRAM.
Several prescalers allow the application to configure the frequency of the AHB and the
APB domains. The maximum frequency of the AHB and the APB domains is 72MHzz.Refer
to figure 3 for the clock drive block diagram.
www.mm32mcu.com 4/68
Specification
DS_MM32F031xx_n_Ver1.11
HSI HSI /6
48 MHz
/4 HCLK
to AHB bus, core
Clock memory and DMA
Enable (3 bits)
PLLSRC SW /8 to Cortex System !mer
DM
DN HSI/6 FCLK Cortex
Free running clock
PLLCLK AHB APB1
PLL SYSCLK PCLK1
Prescaler Prescaler
HSE to APB1
/1,2..512 /1,2,4,8,16 peripherals
Peripheral Clock
LSI Enable (12 bits)
904593
This hardware block provides flexible interrupt management features with minimal inter-
rupt latency.
www.mm32mcu.com 5/68
Specification
DS_MM32F031xx_n_Ver1.11
The boot loader is located in System Memory. It is used to reprogram the Flash memory
by using UART1.
The device features an embedded programmable voltage detector (PVD) that monitors
the VDD /VDDA power supply and compares it to the VPVD threshold. An interrupt can be
generated when VDD drops below the VPVD threshold and/or when VDD is higher than
the VPVD threshold.The interrupt service routine can then generate a warning message
and/or put the MCU into a safe state. The PVD is enabled by software.
www.mm32mcu.com 6/68
Specification
DS_MM32F031xx_n_Ver1.11
Sleep mode
In Sleep mode, only the CPU is stopped. All peripherals continue to operate and can wake
up the CPU when an interrupt/event occurs.
Stop mode
Stop mode achieves very low power consumption while retaining the content of SRAM
and registers. the HSI and the HSE crystal oscillators are disabled. The voltage regulator
can also be put either in normal or in low power mode.
Standby mode
Standby mode achieves the lowest power consumption of the system. This mode turns
off the voltage regulator in CPU deep sleep mode. The entire 1.5V power supply area is
powered down. PLL、HSI and HSE oscillators are also powered down. SRAM and register
contents are missing. Only the backup registers and standby circuits remain powered.
Each channel is connected to dedicated hardware DMA requests, with support for soft-
ware trigger on each channel. Configuration is made by software and transfer sizes be-
tween source and destination are independent.
www.mm32mcu.com 7/68
Specification
DS_MM32F031xx_n_Ver1.11
• Input capture
• Output compare
• PWM generation (edge or center-aligned modes)
• One-pulse mode output
If configured as a standard 16-bit timer, it has the same features as the TIMx timer. If
configured as the 16-bit PWM generator, it has full modulation capability (0 ∼ 100%).
In debug mode, the counter can be frozen and the PWM output is disabled to cut off the
switches controlled by these outputs.
Many features are shared with those of the standard timers which have the same archi-
tecture. The advanced control timer can therefore work together with the other timers via
the Timer Link feature for synchronization or event chaining.
www.mm32mcu.com 8/68
Specification
DS_MM32F031xx_n_Ver1.11
TIM3
‘The timer is based on a 16-bit auto-reload up/downcounter and a 16-bit prescaler. The
feature is 4 independent channels each for input capture/output compare, PWM or one-
pulse mode output.
The timer can work together or with the TIM1 advanced-control timer via the Timer Link
feature for synchronization or event chaining. Their counter can be frozen in debug mode.
Any of the general-purpose timers can be used to generate PWM outputs. They all have
independent DMA request generation.
These timers are capable of handling quadrature (incremental) encoder signals and the
digital outputs from 1 to 3 hall-effect sensors.
Basic timer
TIM14
This timer is based on a 16-bit auto-reload upcounter and a 16-bit prescaler. TIM14 fea-
tures one single channel for input capture/output compare, PWM or one-pulse mode out-
put. Their counter can be frozen in debug mode.
TIM16/TIM17
Every timer is based on a 16-bit auto-reload upcounter and a 16-bit prescaler. They each
have a single channel for input capture/output compare, PWM or one-pulse mode output.
TIM16 and TIM17 have a complementary output with dead-time generation and indepen-
dent DMA request generation. Their counters can be frozen in debug mode.
www.mm32mcu.com 9/68
Specification
DS_MM32F031xx_n_Ver1.11
SysTick timer
This timer is dedicated to real-time operating systems, but could also be used as a stan-
dard down counter. It features:
It supports 7-bit and 10-bit addressing modes, multiple 7-bit slave addresses (two ad-
dresses, one with configurable mask).
www.mm32mcu.com 10/68
Specification
DS_MM32F031xx_n_Ver1.11
The analog watchdog function allows very precise monitoring of all the way, multiple or
all selected channels, and an interruption occurs when the monitored signal exceeds the
preset threshold. The events generated by the general-purpose timers (TIMx) and the
advanced-control timer (TIM1) can be internally connected to the ADC start trigger to
allow the application to synchronize A/D conversion and timers.
An ARM SW-DP interface is provided to allow a serial wire debugging tool to be connected
to the MCU.
www.mm32mcu.com 11/68
Specification
DS_MM32F031xx_n_Ver1.11
Flash Flash
AHB
interface
System
CPU
Bus Matrix AHB SRAM
DMA
DMA
DMA request
297884
www.mm32mcu.com 12/68
Specification
DS_MM32F031xx_n_Ver1.11
HSI HSI /6
48 MHz
/4 HCLK
to AHB bus, core
Clock memory and DMA
Enable (3 bits)
PLLSRC SW /8 to Cortex System !mer
DM
DN HSI/6 FCLK Cortex
Free running clock
PLLCLK AHB APB1
PLL SYSCLK PCLK1
Prescaler Prescaler
HSE to APB1
/1,2..512 /1,2,4,8,16 peripherals
Peripheral Clock
LSI Enable (12 bits)
904593
www.mm32mcu.com 13/68
Pin definition
DS_MM32F031xx_n_Ver1.11
3 Pin definition
Pin definition
BOOT0
PA15
PA14
VDD
VSS
PB9
PB8
PB7
PB6
PB5
PB4
PB3
48
47
46
45
44
43
42
41
40
39
38
37
NC 1 36 PD3
PC13 2 35 PD2
PC14 3 34 PA13
PC15 4 33 PA12
PD0-OSC_IN 5 32 PA11
PD1-OSC_OUT 6
LQFP48 31 PA10
NRST 7 30 PA9
VSSA 8 29 PA8
VDDA 9 28 PB15
PA0 10 27 PB14
PA1 11 26 PB13
PA2 12 25 PB12
13
14
15
16
17
18
19
20
21
22
23
24
VSS
VDD
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
PB10
PB11
485629
www.mm32mcu.com 14/68
Pin definition
DS_MM32F031xx_n_Ver1.11
BOOT0-PB8
PA15
VSS
PB7
PB6
PB5
PB4
PB3
29
27
26
25
31
30
28
32
VDD 1 24 PA14
PD0-OSC_IN 2 23 PA13
PD1-OSC_OUT 3 22 PA12
NRST 4 21 PA11
LQFP32
VDDA 5 20 PA10
PA0 6 19 PA9
PA1 7 18 PA8
PA2 8 17 VDD
10
11
12
13
14
15
16
9
PA3
PA4
PA5
PA6
PA7
PB0
PB1
VSS
426349
www.mm32mcu.com 15/68
Pin definition
DS_MM32F031xx_n_Ver1.11
BOOT0
PA15
PB5
PB6
PB4
PB3
PB7
PB8
32
31
30
29
28
27
26
25
VDD 1 24 PA14
PD0-OSC_IN 2 23 PA13
PD1-OSC_OUT 3 22 PA12
NRST 4 21 PA11
QFN32
VDDA 5 20 PA10
PA0 6 19 PA9
PA1 7 18 PA8
PA2 8 17 VDD
10
11
12
13
14
15
16
9
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
VSS
022928
PB8/BOOT0 1 20 PA14
PD0/OSC_IN 2 19 PA13
PD1/OSC_OUT 3 18 PA12
NRST 4 17 PA11
VDDA 5 16 VDD
TSSOP20
PA0 6 15 VSS
PA1 7 14 PB1
PA2 8 13 PA7
PA3 9 12 PA6
PA4 10 11 PA5
868390
www.mm32mcu.com 16/68
Pin definition
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 17/68
Pin definition
DS_MM32F031xx_n_Ver1.11
Pin number
I/O Main Alternate Additional
LQFP LQFP QFN TSSOP Pin name Type(1)
structure(2) function functions functions
48 32 32 20
TIM14_CH1/
19 15 15 14 PB1 I/O TC PB1 TIM3_CH4/ ADC1_VIN[9]
TIM1_CH3N
20 - 16 - PB2 I/O FT PB2 - -
I2C1_SCL/
21 - - - PB10 I/O FT PB10 TIM2_CH3/ -
SPI2_SCK
I2C1_SDA/
22 - - - PB11 I/O FT PB11 -
TIM2_CH4
23 16 0 15 VSS S - VSS - -
24 17 17 16 VDD S - VDD - -
SPI2_NSS/
SPI2_SCK/
25 - - - PB12 I/O FT PB12 TIM1_BKIN/ -
SPI2_MOSI/
SPI2_MISO
SPI2_SCK/
SPI2_MISO/
TIM1_CH1N/
26 - - - PB13 I/O FT PB13 -
SPI2_NSS/
SPI2_MOSI/
I2C1_SCL
SPI2_MISO/
SPI2_MOSI/
TIM1_CH2N/
27 - - - PB14 I/O FT PB14 -
SPI2_SCK/
SPI2_NSS/
I2C1_SDA
SPI2_MOSI/
SPI2_NSS/
28 - - - PB15 I/O FT PB15 TIM1_CH3N/ -
SPI2_MISO/
SPI2_SCK
MCO/
29 18 18 - PA8 I/O FT PA8 -
TIM1_CH1
www.mm32mcu.com 18/68
Pin definition
DS_MM32F031xx_n_Ver1.11
Pin number
I/O Main Alternate Additional
LQFP LQFP QFN TSSOP Pin name Type(1)
structure(2) function functions functions
48 32 32 20
UART1_TX/
TIM1_CH2/
30 19 19 - PA9 I/O FT PA9 UART1_RX/ -
I2C1_SCL/
MCO
TIM17_BKIN/
UART1_RX/
31 20 20 - PA10 I/O FT PA10 TIM1_CH3/ -
UART1_TX/
I2C1_SDA
UART1_CTS/
32 21 21 17 PA11 I/O FT PA11 TIM1_CH4/ -
I2C1_SCL
UART1_RTS/
33 22 22 18 PA12 I/O FT PA12 TIM1_ETR/ -
I2C1_SDA
34 23 23 19 PA13 I/O FT PA13 SWDIO -
35 - - - PD2 I/O FT PD2 - -
36 - - - PD3 I/O FT PD3 - -
SWDCLK/
37 24 24 20 PA14 I/O FT PA14 -
UART2_TX
SPI1_NSS/
38 25 25 - PA15 I/O FT PA15 UART2_RX/ -
TIM2_CH1_ETR
SPI1_SCK/
39 26 26 - PB3 I/O FT PB3 -
TIM2_CH2
SPI1_MISO/
40 27 27 - PB4 I/O FT PB4 TIM3_CH1/ -
TIM17_BKIN
SPI1_MOSI/
41 28 28 - PB5 I/O FT PB5 TIM3_CH2/ -
TIM16_BKIN
UART1_TX/
42 29 29 - PB6 I/O FT PB6 I2C1_SCL/ -
TIM16_CH1N
www.mm32mcu.com 19/68
Pin definition
DS_MM32F031xx_n_Ver1.11
Pin number
I/O Main Alternate Additional
LQFP LQFP QFN TSSOP Pin name Type(1)
structure(2) function functions functions
48 32 32 20
UART1_RX/
43 30 30 - PB7 I/O FT PB7 I2C1_SDA/ -
TIM17_CH1N
44 31 31 1 BOOT0 I/O FT BOOT0 - -
I2C1_SCL/
45 31 32 1 PB8 I/O FT PB8 -
TIM16_CH1
I2C1_SDA/
46 - - - PB9 I/O FT PB9 TIM17_CH1/ -
SPI2_NSS
47 32 0 15 VSS S - VSS - -
48 1 1 16 VDD S - VDD - -
www.mm32mcu.com 20/68
Pin definition
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 21/68
Memory mapping
DS_MM32F031xx_n_Ver1.11
4 Memory mapping
Memory mapping
www.mm32mcu.com 22/68
Memory mapping
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 23/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
5 Electrical characteristics
Electrical characteristics
C = 50 pF
296610
www.mm32mcu.com 24/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
VIN
814593
VBAT
Backup circuit
Power switch (40KHz oscillator, RTC
1.8V~5.5V wake-up circuit, backup
register)
OUT
Level shifter
IO
GP I/Os
IN Logic Kernel logic
(CPU, Digital
VDD & Memories)
VDD
1/2/3 /4/5 Regulator
5x100nF VSS
+1x4.7µF 1/2/3/4/5
VDD
VDDA
10nF Analog:
+1µF $'& RC, PLL,
COMP ...
VSSA
236518
www.mm32mcu.com 25/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
I DD_VBAT
VBAT
I DD
VDD
VDDA
046405
Stresses above the absolute maximum ratings listed in Tables(Table 8、Table 9、Table 10)
may cause permanent damage to the device. These are stress ratings only and functional
operation of the device at these conditions is not implied. Exposure to maximum rating
conditions for extended periods may affect device reliability.
1. All main power (VDD , VDDA ) and ground (VSS , VSSA ) pins must always be connected to
the external power supply, in the permitted range.
2. VIN maximum must always be respected. Refer to Table below for maximum allowed
injected current values.
www.mm32mcu.com 26/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
1. All main power(VDD , VDDA ) and ground(VSS , VSSA ) pins must always be connected to
the external power supply, in the permitted range.
2. IINJ(PIN) cannot exceed its limit, that is, to ensure that the VIN does not exceed its
maximum value. If VIN does not guarantee that its maximum value is not exceeded,
ensure that IINJ(PIN) does not exceed its maximum value under external restrictions.
When VIN > VDD , there is a forward injection current; when VIN < VSS , there is a reverse
injection current.
3. Negative injection disturbs the analog performance of the device.
4. When several inputs are submitted to a current injection, the maximum IINJ(PIN) is the
absolute sum of the positive and negative injected currents (instantaneous values).
◦
TSTG Storage temperature range - 45 ∼ + 150 C
Maximum junction
◦
TJ 125 C
temperature
www.mm32mcu.com 27/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
Analog operating
VDDA Must be the same voltage as VDD (1) 2.5 5.5 V
voltage
Backup part of working
VBAT 1.8 5.5 V
voltage
Power dissipation LQFP64 203
PD temperature: LQFP48 mW
1. It is recommended to use the same power supply for VDD and VDDA , the maximum
permissible difference between VDD and VDDA is 300mVduring power up and normal
operation.
2. If TA is low, higher PD values are allowed as long as TJ does not exceed TJmax (See
subsec 5.1).
3. In low power dissipation state, TA can be extended to this range as long as TJ does
not exceed TJmax (See subsec 5.1).
www.mm32mcu.com 28/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
1. The product behavior is guaranteed by design down to the minimum value VPOR/PDR .
2. Guaranteed by design, not tested in production.
Note: The reset duration is measured from power-on (POR reset) to the time when the user appli-
cation code reads the first instruction.
www.mm32mcu.com 29/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
TS_vrefint (1)
ADC sampling time when reading the internal reference voltage10 µS
All Run-mode current consumption measurements given in this section are performed with
a reduced code.
• All I/O pins are in analog input mode, and are connected to a static level —- VDD or VSS
(no load)
• All peripherals are disabled except when explicitly mentioned
• The Flash memory access time is adjusted to the fHCLK (0 ∼ 24 MHz is 0 waiting period
, 24 ∼ 48 MHz is 1 waiting period, 48 ∼ 72 MHz is 2 waiting period, 72 ∼ 96 MHz is 3
waiting period ).
• The instruction prefetching function is on. When the peripherals are enabled:
fPCLK1 = fHCLK .
Note:The instruction prefetching function must be set before setting the clock and bus divider.
The parameters given in the table (Table 15、Table 16、Table 17) are based on the ambient
temperature and the VDD supply voltage listed in Table 11 .
Table 15. Typical current consumption in Run mode, code executing from Flash memory
Typ(1)
Symbol Parameter Conditions fHCLK Unit
All peripherals All peripherals
enabled(2) disabled
www.mm32mcu.com 30/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
1. The typical value is tested at TA = 25◦ C.Guaranteed by design, not tested in production.
2. External clock is 8MHz, when fHCLK > 8MHz enable PLL.
Table 16. Typical current consumption in Sleep mode, code executing from Flash memory or RAM
Typ(1)
Symbol Parameter Conditions fHCLK Unit
All peripherals All peripherals
enabled(2) disabled
Table 17. Maximum current consumption in Stop and Standby mode, code executing from Flash memory
Max
Symbol Parameter Conditions Unit
TA =25◦ C
www.mm32mcu.com 31/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
0
TA = - 40°C TA = 25°C TA = 70°C TA = 105°C
Figure 12. Typical current consumption in standby mode vs. temperature at VDD = 3.3V
• All I/O pins are in analog input configuration, and are connected to a static level —- VDD
or VSS (no load).
• All the peripherals are closed, unless otherwise specified.
• The Flash memory access time is adjusted to the fHCLK (0 ∼ 24 MHz is 0 waiting period
,24 ∼ 48 MHzis 1 waiting period, 48 ∼ 72 MHzis 2 waiting period, 72 ∼ 96 MHzis 3
waiting period ).
• The ambient temperature and VDD supply voltage conditions are summarized in Ta-
ble 11.
• The instruction prefetching function is on. When the peripherals are enabled:
fPCLK1 = fHCLK .
Note: The instruction prefetch function must be set before the clock is set and the bus is divided.
• All I/O pins are in analog input mode, and are connected to a static level —- VDD or VSS
(no load) .
• All peripherals are disabled except when explicitly mentioned.
• The given value is calculated by measuring the current consumption.
– with all peripherals clocked OFF
– with only one peripheral clocked on
www.mm32mcu.com 32/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
• Ambient operating temperature and supply voltage conditions VDD summarized in Ta-
ble 11.
1. fHCLK = 96MHz, fAPB1 = fHCLK /2, fAPB2 = fHCLK , the prescale coefficient for each device
is the default value.
www.mm32mcu.com 33/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
VHSEH
90%
10%
VHSEL
tr(HSE) tf(HSE) tw(HSE) tw(HSE) t
THSE
External Clock IL
Source fHSE_ext OSC_IN
474122
www.mm32mcu.com 34/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
VLSEH
90%
10%
VLSEL
tr(LSE) tf(LSE) tw(LSE) tw(LSE) t
TLSE
214366
www.mm32mcu.com 35/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
Resonator with
intergrated capacitors
CL1
OSC_IN fHSE
Bias
8MHz RF controlled
Resonator gain
OSC_OUT
CL2
860676
www.mm32mcu.com 36/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
the maximum value of CL1 and CL2 (15pF) , it is highly recommended to use a resonator
with a load capacitance of CL ≤ 7pF. A resonator with a load capacitance of 12.5pF cannot
be used. For example, if a resonator with a load capacitance of CL = 6pF is selected and
Cstray = 2pF, then CL1 = CL2 = 8pF.
Table 22. LSI oscillator characteristics (fLSE =32.768KHz) (1)
RF Feedback resistor 25 MΩ
The proposed load
CL1 capacitance corresponds to
RS = 30Ω 4 pF
(2)
CL2 the crystal serial impedance
(RS ) (3)
VDD = 3.3V
I2 LSE current consumption 0.08 μA
VIN = VSS
gm Oscillator transconductance 0.5 μA/V
(4)
tSU(HSE) Startup time VDD is stabilized 1 4 S
䳶ᡀҶ⭥ᇩ
ಘⲴ䉀ᥟಘ
CL1
OSC32_IN fLSE
32.768KHz RF ໎⳺
᧗ࡦ
䉀ᥟಘ
OSC32_OUT
CL2
112577
www.mm32mcu.com 37/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
All times are measured using ambient temperature and supply voltage in accordance with
common operating conditions.
www.mm32mcu.com 38/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
1. The wake-up time is measured from the start of the wake-up event to the user program
to read the first instruction.
Flash memory
The characteristics are given at TA = - 40◦ C ∼ 105◦ Cunless otherwise specified.
Table 27. Flash memory characteristics
TA = -40◦ C ∼
tprog 8-bit programming time 4 μS
125◦ C
www.mm32mcu.com 39/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
TA = -40◦ C ∼
tERASE Page (512K bytes) erase time 4 5 mS
125◦ C
TA = -40◦ C ∼
tME Mass erase time 20 40 mS
125◦ C
Read mode, fHCLK =
5 6 mA
48MHz
Write mode,fHCLK =
7 mA
IDD Supply current 48MHz
Erase mode, fHCLK
2 mA
= 48MHz
ISB Standby current 1@25◦ C 50@125◦ C μA
IDEP Deep Standby current 0.5 15@125◦ C μA
Endurance
(Annotation:
TA = - 40◦ C ∼ 85◦ C
NEND Erase 10 K cycle
TA = - 40◦ C ∼ 105◦ C
number of
times)
Data 1 K cycle(2) at TA = 85◦ C 30
tRET (1)(2) ◦ Year
retention 1 K cycle at TA = 105 C 10
(1)(2) ◦
10 K cycle at TA = 55 C 20
• Electrostatic discharge (ESD) (positive and negative) is applied to all device pins until a
functional disturbance occurs. This test is compliant with the IEC 61000-4-2 standard.
• FTB:A Burst of Fast Transient voltage (positive and negative) is applied to VDD and
VSS through a 100 pF capacitor, until a functional disturbance occurs. This test is
www.mm32mcu.com 40/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
The test results are given in the following table. They are based on the EMS levels and
classes defined in application note.
Therefore it is recommended that the user applies EMC software optimization and pre-
qualification tests in relation with the EMC level requested for his application.
Software recommendations
The software flowchart must include the management of runaway conditions such as:
Prequalification trials
Most of the common failures (unexpected reset and program counter corruption) can be
reproduced by manually forcing a low state on the NRST pin or the Oscillator pins for 1
second.
To complete these trials, ESD stress can be applied directly on the device, over the range
of specification values. When unexpected behavior is detected, the software can be hard-
ened to prevent unrecoverable errors.
www.mm32mcu.com 41/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
Static latch-up
Two complementary static tests are required on six parts to assess the latch-up perfor-
mance:
TA = +25◦ C,
Electrostatic discharge voltage
VESD(HBM) Conforming to 2000
(Human body model) V
JESD22-A114
TA = +25◦ C,
Electrostatic discharge voltage
VESD(CDM) Conforming to 500
(Charging device model)
JESD22-C101
TA =
ILU Latch-up current +25◦ C,Conforming to 200 mA
JESD78A
www.mm32mcu.com 42/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
All I/Os are CMOS (no software configuration required). Their characteristics cover more
than the strict CMOS-technology.
• For VIH :
– If VDD is between [2.50V∼ 3.08V]; use CMOS features.
– If VDD is between [3.08V∼ 3.60V]; include CMOS.
• For VIL :
– Use CMOS features.
n the user application, the number of I/O pins which can drive current must be limited to
respect the absolute maximum rating specified in 5.2:
• The sum of the currents obtained from VDD for all I/O ports, plus the maximum operating
current that the MCU obtains on VDD , cannot exceed the absolute maximum rating IVDD .
• The sum of the currents drawn by all I/O ports and flowing out of VSS , plus the maximum
operating current of the MCU flowing out on VSS , cannot exceed the absolute maximum
rating IVSS .
www.mm32mcu.com 43/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
1. The current absorbed by the chip IIO must always follow the absolute maximum ratings
given in the table, and the sum of IIO (all I/O feet and control pins) must not exceed
IVSS .
2. The current output IIO of the chip must always follow the absolute maximum rating
given in the table, and the sum of IIO (all I/O pins and control pins) must not exceed
IVDD .
3. Data based on characterization results. Not tested in production.
Input/output AC characteristics
The definitions and values of the input and output AC characteristics are given in figure 17
and Table 33, respectively.
Unless otherwise stated, the parameters listed in Table 33 are measured using the ambient
temperature and supply voltage in accordance with the condition Table 8.
Table 33. I/O AC characteristics(1)
OSPEEDRy
Symbol Parameter Conditions Min Max Unit
[1:0] value (1)
Maximum CL = 50pF,
fmax(IO)out 10 MHz
01 frequency(2) VDD = 2V∼3.6V
(10MHz) tf(IO)out Output fall time CL = 50pF, 25(3)
nS
tr(IO)out Output rise time VDD = 2V ∼ 3.6V 25(3)
Maximum CL = 50pF,
fmax(IO)out 20 MHz
10 frequency(2) VDD = 2V ∼ 3.6V
(20MHz) tf(IO)out Output fall time CL = 50pF, 125(3)
VDD = 2V ∼ 3.6V
nS
www.mm32mcu.com 44/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
OSPEEDRy
Symbol Parameter Conditions Min Max Unit
[1:0] value (1)
tr(IO)out Output rise time 125(3)
CL = 30pF,
50
VDD = 2.7V ∼ 3.6V
CL = 30pF,
5
VDD = 2.7V ∼ 3.6V
CL = 50pF, nS
12
VDD = 2V ∼ 2.7V
CL = 30pF,
5
VDD = 2.7V ∼ 3.6V
CL = 50pF,
12
VDD = 2V ∼ 2.7V
EXTI controller
1. The speed of the I/O port can be configured via MODEx[1:0]. See the description of
the GPIO Port Configuration Register in this chip reference manual.
2. The maximum frequency is defined in figure 17.
www.mm32mcu.com 45/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
90% 10%
50% 50%
90%
10%
The external output
Maximum frequency is achieved if ((tr + tf) ≤ 2/3)T, and if the duty cycle is (45 ~ 55%)
when loaded by C/(see the i/O AC characteristics definition)
868304
Unless otherwise stated, the parameters listed in the table below are measured using the
ambient temperature and VDD supply voltage in accordance with the condition Table 8.
www.mm32mcu.com 46/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
External (1)
reset circuit VDD
RPU Internal
NRST(2) reset
Filter
0.1µF
368560
For details on the characteristics of the I/O multiplexing function pins (output compare,
input capture, external clock, PWM output) , see subsubsec 5.3.12.
1 tTIMxCLK
tres(TIM) Timer resolution time
fTIMxCLK =
10.4 nS
96MHz
Timer external clock 0 fTIMxCLK /2
fEXT MHz
frequency on CH1 to CH4 fTIMxCLK =
0 48
96MHz
ResTIM Timer resolution 16 Bit
16-bit timer 1 65536 tTIMxCLK
tCOUNTER
maximum period fTIMxCLK =
0.0104 682 µS
96MHz
65536 × 65536 tTIMxCLK
tMAX_COUNT The maximum possible count
fTIMxCLK =
44.7 S
96MHz
www.mm32mcu.com 47/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
The I2C interface conforms to the standard I2C communication protocol, but has the fol-
lowing limitations: SDA and SCL are not true pins. When configured as open-drain output,
the PMOS transistor between the pin and VDD Was closed but still exists.
The I2C I/Os characteristics are listed in Table 36, the alternate function characteristics of
I/Os (SDA and SCL) refer to subsubsec 5.3.12.
Table 36. I2C characteristics
Standard I2C(1) Fast I2C (1)(2)
Symbol Parameter Unit
Min Max Min Max
tw(SCLL) SCL clock fall time 4.7 1.3 µs
tw(SCLH) SCL clock rise time 4.0 0.6 µs
tsu(SDA) SDA setup time 250 100
th(SDA) SDA data hold time 0(3) 0(4) 900(3)
ns
tr(SDA) tr(SDL) SDA and SCL rise time 1000 2.0+0.1Cb 300
tf(SDA) tf(SDL) SDA and SCL fall time 300 300
th(STA) Start condition hold time 4.0 0.6
tsu(STA) Start condition setup time 4.7 0.6
tsu(STO) Stop condition setup time 4.0 0.6 µs
Time from Stop condition to
tw(STO:STA) 4.7 1.3
Start condition
Cb Capacitive load of each bus 400 400 pF
www.mm32mcu.com 48/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
VDD VDD
4.7KΩ 4.7KΩ
100 Ω
SDA
,&EXV 100 Ω
SCL
Start repeated
Start
t su(STA) Start
SDA
t f(SDA) t r(SDA) t su(SDA) t su(STA:STO)
Stop
t h(STA) t w (SCKL) t h(SDA)
SCL
t w (SCKH) t r(SCK) t f(SCK) t su(STO)
澳
130244
SPI characteristics
Unless otherwise specified, the parameters given in Table 37 are derived from tests per-
formed under the ambient temperature, fPCLKx frequency and VDD supply voltage condi-
tions summarized in Table 11.
Refer to subsubsec 5.3.12 for more details on the input/output alternate function charac-
teristics (NSS, SCK, MOSI, MISO).
Table 37. SPI characteristics(1)
Symbol Parameter Conditions Min Max Unit
Master mode 0 36
fSCK 1/tc(SCK) SPI clock frequency MHz
Slave mode 0 18
tr(SCK) SPI clock rise and fall
Load capacitance: C = 30pF 8
tf(SCK) time
tsu(NSS) (2) NSS setup time Slave mode 4tPCLK
(2)
th(NSS) NSS hold time Slave mode 73
tw(SCKH) (2) Master mode,fPCLK = 36MHz, ns
SCK high and low time 50 60
tw(SCKL) (2) prescale coefficient = 4
www.mm32mcu.com 49/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 50/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 51/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
CPHA =0
CPOL = 1
CPOL = 0
NSS
(to slave)
CAPTURE STROBE
679527
www.mm32mcu.com 52/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
CPHA=1
CPOL = 1
CPOL = 0
MISO
MSBit LSBit
(from master)
MOSI
MSBit LSBit
(from slave)
NSS
(to slave)
CAPTURE STROBE
429658
www.mm32mcu.com 53/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
High
NSS INPUT
t c(SCK)
CPHA = 0
SCK Output
CPOL = 0
CPHA = 0
CPOL = 1
CPHA = 1
SCK Output
CPOL = 0
CPHA = 1
CPOL = 1
t w (SCKH) t r (SCK)
t su(MI ) t w (SCKL) t f (SCK)
t h(M )
t v(MO ) t h(MO )
184118
www.mm32mcu.com 54/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
ADC clock
fADC (1)(3) 15 MHz
frequency
fS (1)(3) Sampling rate 1 MHz
External trigger fADC = 15MHz 833 KHz
fTRIG (1)
frequency 18 1/fADC
0 (VSSA or
Conversion voltage
VAIN (2) VREF− connected VREF+ V
range
to ground)
External sample
RAIN (1) See Formulas 1 and Table 39 kΩ
and hold capactor
Sampling switch
RADC (1) 0.75 kΩ
resistance
Internal sample and
CADC (1) 10 pF
hold capacitor
fADC = 15MHz 0.1 16 µs
tS (1) Sampling time
1.5 239.5 1/fADC
(1)
tSTAB Stabilization time 1 µs
The above formula (Equation 1) is used to determine the maximum external impedance
so that the error can be less than 1/4 LSB. Where N = 12 (representing 12-bit resolution)
. Ln(2) = 0.69314718.
www.mm32mcu.com 55/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
ET Comprehensive error 8 10
EO Offset error fPCLK2 = 60MHz,fADC = 3 3
EG Gain error 15MHz,RAIN < 10KΩ,VDDA 1 1 LSB
ED Differential linearity error = 5V,TA = 25◦ C 6.5 7
EL Integral linearity error 8 8
1. ADC Accuracy vs. Negative Injection Current: Injecting negative current on any of
the standard (non-robust) analog input pins should be avoided as this significantly
reduces the accuracy of the conversion being performed on another analog input. It is
recommended to add a Schottky diode (pin to ground) to standard analog pins which
may potentially inject negative current.
Any positive injection current within the limits specified for IINJ(PIN) and ΣIINJ(PIN) in
subsubsec 5.3.13 does not affect the ADC accuracy.
2. Guaranteed based on test during characterization. Not tested in production.
ET = Total unadjusted error: The maximum deviation between the actual and ideal trans-
mission curves.
EO = Offset error: The deviation between the first actual conversion and the first ideal
conversion.
EG = Gain error: The deviation between the last ideal transition and the last actual transi-
tion.
ED = Differential linearity error: The maximum deviation between the actual step and the
ideal value.
EL = Integral linearity error: The maximum deviation between any actual conversion and
the associated line of the endpoint.
www.mm32mcu.com 56/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
Parasi c
capacitance
439454
www.mm32mcu.com 57/68
Electrical characteristics
DS_MM32F031xx_n_Ver1.11
VDDA
VDDA
1 µF // 10 nF
VSSA
澳
326818
Figure 24. Power supply and reference power supply decoupling circuit
www.mm32mcu.com 58/68
Package information
DS_MM32F031xx_n_Ver1.11
6 Package information
Package information
A3
A2
A
c
A1
R1
L2
R2
s
K
D L
A1
L1
D1
36 25
37 24
b
E1
E
b
b1
48 13
c1
c
PIN 1
IDENTIFICATION 1 12
591233
www.mm32mcu.com 59/68
Package information
DS_MM32F031xx_n_Ver1.11
www.mm32mcu.com 60/68
Package information
DS_MM32F031xx_n_Ver1.11
A3
A2
A
c
A1
R1
L2
R2
s
K
L
A1
D
L1
D1
24 17
25 16
b E1
b
b1
32 9
c1
c
PIN 1
IDENTIFICATION 1 8
989913
www.mm32mcu.com 61/68
Package information
DS_MM32F031xx_n_Ver1.11
Millimeters
Symbol
Min Typ Max
D 8.80 9.00 9.20
D1 6.90 7.00 7.10
E 8.80 9.00 9.20
E1 6.90 7.00 7.10
e 0.80
L 0.45 0.60 0.75
L1 1.00REF
L2 0.25BSC
R1 0.08
R2 0.08 0.20
S 0.20
N Number of pins = 32
www.mm32mcu.com 62/68
Package information
DS_MM32F031xx_n_Ver1.11
A2
D
e A1
A3
C2
R c1
e
E2 b
E1 E
H
1
L
32
L
PIN 1 Identifier
D2
978941
www.mm32mcu.com 63/68
Package information
DS_MM32F031xx_n_Ver1.11
Millimeters
Symbol
Min Typ Max
E2 3.40 3.50 3.60
e 0.5
H 0.30REF
K 0.35REF
L 0.35 0.40 0.45
R 0.09
c1 0.08
c2 0.08
N Number of pins = 32
www.mm32mcu.com 64/68
Package information
DS_MM32F031xx_n_Ver1.11
20 11
E1
c
1 10
PIN1
IDENTIFICATION
SEATING
PLANE
aaa C 0.25 mm
C GAUGE PLANE
A A2
k
b e L
A1
L1
618013
Figure 28. TSSOP20 - 20-lead thin shrink small outline package outline
www.mm32mcu.com 65/68
Package information
DS_MM32F031xx_n_Ver1.11
Millimeters
Symbol
Min Typ Max
e 0.65
L 0.45 0.60 1
L1 0.45 0.75
N Number of pins = 20
www.mm32mcu.com 66/68
Ordering information
DS_MM32F031xx_n_Ver1.11
7 Ordering information
Ordering information
Device family
MM32 = ARM-base 32-bit microcontroller
Product type
F = General purpose
Sub-family
031 = MM32F031xx
Pin count
C = 48 pins
K = 32 pins
F = 20 pins
Package
T = LQFP
U = QFN
P = TSSOP
Temperature range
6 = Industrial temperature range, -40 to 85 °C
Op!ons
xxx = programmed parts
TR = tape and reel packing
blank = tray packing
Core Version
n = Core Version n
p = Core Version p
q = Core Version q
193488
www.mm32mcu.com 67/68
Revision history
DS_MM32F031xx_n_Ver1.11
8 Revision history
Revision history
www.mm32mcu.com 68/68