DS MM32F0140 en
DS MM32F0140 en
MM32F0140
Arm® Cortex®-M0 based 32-bit Microcontrollers
Revision: 1.09
1 Introduction ............................................................................................................................................. 1
1.1 Overview ............................................................................................................................................... 1
1.2 Key features .......................................................................................................................................... 1
2 Ordering information .............................................................................................................................. 4
2.1 Ordering table ....................................................................................................................................... 4
2.2 Marking information .............................................................................................................................. 6
2.3 Part identification .................................................................................................................................. 9
3 Functional description ......................................................................................................................... 10
3.1 Block diagram ..................................................................................................................................... 10
3.2 Core introduction ................................................................................................................................. 11
3.3 Bus introduction .................................................................................................................................. 11
3.4 Memory map ....................................................................................................................................... 11
3.5 Flash ................................................................................................................................................... 13
3.6 SRAM .................................................................................................................................................. 13
3.7 NVIC .................................................................................................................................................... 13
3.8 EXTI .................................................................................................................................................... 13
3.9 Clock and boot .................................................................................................................................... 13
3.10 Boot modes ......................................................................................................................................... 14
3.11 Power supply schemes ....................................................................................................................... 14
3.12 Power supply supervisors ................................................................................................................... 14
3.13 Voltage regulator ................................................................................................................................. 15
3.14 Low power mode ................................................................................................................................. 15
3.15 Hardware divider ................................................................................................................................. 16
3.16 DMA .................................................................................................................................................... 16
3.17 Timers and watchdogs ........................................................................................................................ 16
3.18 GPIO ................................................................................................................................................... 19
3.19 UART .................................................................................................................................................. 19
3.20 I2C ....................................................................................................................................................... 19
3.21 SPI ...................................................................................................................................................... 19
3.22 I2S ....................................................................................................................................................... 19
3.23 FlexCAN .............................................................................................................................................. 19
3.24 ADC ..................................................................................................................................................... 20
3.25 COMP ................................................................................................................................................. 20
3.26 CRC .................................................................................................................................................... 20
3.27 SWD .................................................................................................................................................... 21
4 Pinout and assignment ........................................................................................................................ 22
4.1 Pinout diagram .................................................................................................................................... 22
4.1.1 LQFP48 pins layout ................................................................................................................ 22
4.1.2 LQFP32 pins layout ................................................................................................................ 23
4.1.3 QFN32 5x5 mm2 pins layout .................................................................................................. 24
4.1.4 QFN32 4x4 mm2 pins layout .................................................................................................. 25
4.1.5 TSSOP20 pins layout .............................................................................................................. 26
4.2 Pin assignment ................................................................................................................................... 27
4.3 Pin multiplexing ................................................................................................................................... 31
5 Electrical characteristics ..................................................................................................................... 35
5.1 Test condition ...................................................................................................................................... 35
5.1.1 Load capacitor......................................................................................................................... 35
5.1.2 Pin input voltage...................................................................................................................... 35
5.1.3 Power scheme ........................................................................................................................ 35
5.1.4 Current consumption measurement ....................................................................................... 36
5.2 Absolute maximum rating ................................................................................................................... 36
5.3 Operating conditions ........................................................................................................................... 37
5.3.1 General operating conditions .................................................................................................. 37
5.3.2 Operating conditions at power-up/power-down ...................................................................... 38
5.3.3 Embedded reset and power control block characteristics ...................................................... 39
5.3.4 Built-in voltage reference ........................................................................................................ 40
5.3.5 Supply current characteristics ................................................................................................. 40
5.3.6 External clock source characteristics ...................................................................................... 43
5.3.7 Internal clock source characteristics ....................................................................................... 46
5.3.8 PLL characteristics .................................................................................................................. 47
5.3.9 Memory characteristics ........................................................................................................... 47
5.3.10 EMC characteristics ................................................................................................................ 48
5.3.11 Functional EMS (Electrical Sensitivity) ................................................................................... 49
5.3.12 I/O port characteristics ............................................................................................................ 50
5.3.13 NRST pin characteristics ........................................................................................................ 52
5.3.14 Timer characteristics ............................................................................................................... 53
5.3.15 Communication interfaces ...................................................................................................... 54
5.3.16 FlexCAN interface ................................................................................................................... 59
5.3.17 ADC characteristics ................................................................................................................ 59
5.3.18 Temperature sensor characteristics........................................................................................ 63
5.3.19 Comparator characteristics ..................................................................................................... 64
6 Package dimensions ............................................................................................................................ 65
6.1 LQFP48 ............................................................................................................................................... 65
6.2 LQFP32 ............................................................................................................................................... 67
6.3 QFN32 5x5 mm 2 ................................................................................................................................. 69
6.4 QFN32 4x4 mm 2 ................................................................................................................................. 71
6.5 TSSOP20 ............................................................................................................................................ 73
7 Revision history .................................................................................................................................... 75
Tables
1 Introduction
1.1 Overview
The MM32F0140 microcontrollers are based on Arm® Cortex®-M0 core. These devices
have a maximum clocked frequency of 72MHz, built-in 64KB Flash storage, and contain
an extensive range of peripherals and I/O ports. These devices contain one 12-bit ADC,
one analog comparator, one 16-bit advanced timer, one 16-bit and one 32-bit general
purpose timers and three 16-bit basic timers, as well as communication interfaces including
one I2C, two SPI or I2S, three UART and one FlexCAN interface.
The operating voltage of this product series is 2.0V to 5.5V, and the operating temperature
range (ambient temperature) includes the industrial tier -40°C to 85°C and the extended
industrial tier -40°C to 105°C. Multiple sets of power-saving modes make the design of low-
power applications possible.
The target applications of this product series include:
Industrial IoT devices
PC accessories
Electronic door lock
Medical and healthcare devices
Handheld devices
Motor drive
Elevator calling board
Gaming and entertainment
This product series is available in LQFP48, LQFP32, QFN32 and TSSOP20 packages.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 1
Introduction
DS_MM32F0140_Ver1.07 www.mm32mcu.com 2
Introduction
DS_MM32F0140_Ver1.07 www.mm32mcu.com 3
Ordering information
2 Ordering information
DS_MM32F0140_Ver1.07 www.mm32mcu.com 4
Ordering information
Interface I2C 1 1 1
s SPI / I2S 1 (SPI1/I2S1) 1 (SPI1/I2S1) 1 (SPI1/I2S1)
FlexCAN 1
GPIO 16 16 16
12bit Modules 1 1 1
ADC Channels 9 9 9
Comparator 1 1 1
Supply voltage 2.0V to 5.5V
Temperature range 40°C to +85°C / 40°C to +105°C (Suffix V)
TSSOP20
Package
4.35x6.45 mm2
DS_MM32F0140_Ver1.07 www.mm32mcu.com 5
Ordering information
MM32
F014xxxxt
xxxxxxxr
Pin 1 index yyww
DS_MM32F0140_Ver1.07 www.mm32mcu.com 6
Ordering information
MM32
F014xxxt
xxxxxxxr
Pin 1 index yyww
DS_MM32F0140_Ver1.07 www.mm32mcu.com 7
Ordering information
F014xxxt
xxxxxxxr
Pin 1 index yyww
DS_MM32F0140_Ver1.07 www.mm32mcu.com 8
Ordering information
MM32 F 0 1 4 4 C 6 P V
Device family
Product type
Core type
0 = Cortex-M0
Product Series
14 = 14 Series
Interface Configuration
4 = Solo CAN
1 = General Serial Ports
Flash size
C = 64KB
B = 32KB
Pins
6 = 48Pin
4 = 32Pin
3 = 28Pin
1 = 20Pin
Package
Q = QFN, 0.5mm pitch
N = QFN, 0.4mm pitch
P = LQFP
T = TSSOP
Temperature
V = -40℃ ~ 105℃
(blank) = -40℃ ~ 85℃
DS_MM32F0140_Ver1.07 www.mm32mcu.com 9
Functional description
3 Functional description
DS_MM32F0140_Ver1.07 www.mm32mcu.com 10
Functional description
DS_MM32F0140_Ver1.07 www.mm32mcu.com 11
Functional description
DS_MM32F0140_Ver1.07 www.mm32mcu.com 12
Functional description
3.5 Flash
This product provides up to 64KB embedded Flash memory available for storing code and
data.
3.6 SRAM
This product provides up to 8KB embedded SRAM.
3.7 NVIC
This product embeds a Nested vector interrupt controller (NVIC), able to handle multiple
maskable interrupt channels (excluding the 16 interrupt lines of the Cortex®-M0) and
manage 4 programmable priority levels.
Tightly coupled NVIC gives low latency interrupt processing.
Interrupt entry vector table address passed directly to the core.
Allow early processing of interrupts.
Support high priority interrupt preemption.
Support interrupt tail-chaining.
Automatically save processor status.
Automatic restoration when the interrupt returns with no instruction overhead.
This module provides flexible interrupt management with minimal interrupt latency.
3.8 EXTI
The external interrupt/event controller (EXTI) contains multiple edge detectors to capture
the level changes on the I/O ports and generate interrupt/event to CPU. All I/O ports are
connected to 16 external interrupt lines. Each interrupt line can be independently enabled
or disabled and configured to select the trigger mode (rising edge, falling edge or both
edges). A pending register can save all the interrupt request status.
The EXTI can detect a pulse width shorter than the internal APB2 clock period.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 13
Functional description
The system clock can be configured after chip power-on. After the power-on reset, the
default clock is the internal 8MHz high speed oscillator (HSI). User can configure to use
the external 4 to 24MHz crystal oscillator (HSE) as the system clock. The system will
automatically block the external clock source, turn off the PLL and use the internal oscillator
when the external clock is detected to be invalid. Meanwhile, if the clock monitor interrupt
is enabled, an interrupt request will be generated.
The clock system uses multiple pre-dividers to generate the clock for the AHB and APB
(APB1 and APB2) bus. The maximum frequency of the AHB and APB bus clock can reach
up to 72MHz.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 14
Functional description
Sleep mode
In Sleep mode, only the CPU clock is gated off. All peripherals continue to operate and can
wake up the CPU when an interrupt/event occurs.
Stop mode
In Stop mode, low power consumption can be achieved with all RAM and registers content
in retention. In Stop mode, HSI and HSE are powered off. The microcontroller can be
woken up by the EXTI signals. EXTI signals can come from the 16 external I/O ports or
PVD output.
Standby mode
In Standby mode, the lowest power consumption can be achieved. In this mode, the
voltage regulator is powered off, and all the 1.5V domain are shut down. PLL, HSI and
HSE are also powered off. Wakeup sources include rising edge on WKUP pin, active reset
on NRST pin, IWDG reset. SRAM and registers content are lost in this mode. Only standby
circuit are powered.
The peripheral status in each low-power mode is shown in Table 3-2, please note:
Power Down indicates that the module is powered off and all data except Flash is lost.
Optional indicates that the peripheral can be turned on or off through software
configuration.
ON means work.
OFF indicates that the function is turned off.
Retention indicates that data is retained but not operational.
High-z represents a high-impedance state.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 15
Functional description
3.16 DMA
This product has a 5-channel direct memory access (DMA) controller. The DMA controller
can be used to move data from memory to memory, peripherals to memory or memory to
peripherals without CPU intervention. The DMA controller support ring buffer mode, when
data reaches end of the buffer, the ring buffer mode can avoid generating an interrupt.
Each DMA channel has independent DMA request handling logic. All channels can be
triggered by software. For each channel, the data length, source address and destination
address can be independently configured by software.
DMA can be used for peripherals include UART, I2C, SPI, ADC, and general purpose,
advanced, or basic timers.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 16
Functional description
This product has one advanced timer, two general purpose timers, three basic timers, two
watchdog timers and one Systick timer. The table below compares the features of
advanced, general purpose and basic timers.
Table 3-3 Feature summary of advanced, general purpose and basic timers
DS_MM32F0140_Ver1.07 www.mm32mcu.com 17
Functional description
pulse output.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 18
Functional description
3.18 GPIO
Each GPIO pin can be configured by software as output (push-pull or open-drain), input
(with or without pull-up or pull-down) or multiplexed peripherals function port. Most GPIO
pins are shared with digital or analog functions. If necessary, the peripheral functions of
the I/O pins can be locked by specific operation to avoid accidental writing to the I/O
register.
3.19 UART
This product has up to three UART interfaces. The UART interface supports configurable
data length of 5-, 6-, 7-, 8-, and 9-bits. The UART interface also supports LIN master and
slave function and ISO7816 smart card mode. All UART interfaces support DMA operation.
3.20 I2C
This product has up to one I2C interface. The I2C bus interface can work in multi-master
mode or slave mode and supports standard and fast mode. The I2C interface supports 7-
bit or 10-bit addressing.
3.21 SPI
This product has up to two SPI interfaces. The SPI interface can be configured as 1 to 32
bits per frame in master or slave mode, allowing up to 36 Mbps in master mode and 18
Mbps in slave mode. All SPI interfaces support DMA operation.
3.22 I2S
This product has up to two I2S interfaces shared with the SPI module. The I2S module
shares three pins with SPI, supports half-duplex communication (transmitter or receiver
only), master or slave operation, underflow flag in transmit mode (only slave), and overflow
flag in receive mode (master and slave mode) and frame error flag in receive and transmit
mode (only slave). 8-bit programmable linear prescaler is used to achieve precise audio
sampling frequency from 8KHz to 192KHz. The data format can be 16-bit, 24-bit or 32-bit,
and the data packet frame is fixed at 16-bit (16-bit data frame) or 32-bit (16-bit, 24-bit or
32-bit data frame).
3.23 FlexCAN
This product has up to one FlexCAN interface. The FlexCAN interface is compatible with
CAN 2.0A and 2.0B (active) standard, with bit rate up to 1Mbps. It can receive and send
standard frames with 11-bit identifiers, as well as extended frames with 29-bit identifiers.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 19
Functional description
3.24 ADC
This product has one 12-bit analog/digital converter (ADC), with up to 14 external channels
available, supports single-shot single-cycle and continuous scan conversion. In the scan
mode, the conversion of the sampling value on the selected group of analog inputs is
automatically performed. The ADC supports DMA operation.
The analog watchdog function allows the application to monitor one or all selected
channels. When the monitored signal exceeds a preset threshold, an interrupt will be
generated. The triggers generated by the general-purpose timers (TIMx) and the advanced
timers can be selected to trigger the ADC sampling, in this way the ADC sampling can be
synchronized with the timer.
Temperature sensor
The temperature sensor can generate a voltage that varies linearly with temperature. The
temperature sensor is internally connected to the input channel of the ADC to covert the
output of the sensor to a digital value.
3.25 COMP
This product has one build-in analog comparators (COMP), which can be used
independently (applicable to all I/O ports that have comparator function) or combined with
timers. The COMP module can be used for a variety of functions including:
Low power mode wake-up event triggered by analog signal
Adjust analog signals
Combining the PWM output of the timer to form a cycle by cycle current control circuit
Each comparator has an optional threshold
- Reusable I/O pins
- The internal comparison voltage CRV can be selected as VDDA or the divided
voltage value of the internal reference voltage
Programmable hysteresis voltage
Programmable speed and power consumption
The output can be redirected to one I/O port or multiple timer inputs, which can trigger
the following events:
- Capture events
- OCref_clr event (cycle by cycle current control)
To achieve fast PWM turn off braking events
3.26 CRC
The cyclic redundancy check (CRC) module uses a fixed polynomial generator to generate
a CRC code from a 32-bit data word. Among many applications, CRC is used to verify the
DS_MM32F0140_Ver1.07 www.mm32mcu.com 20
Functional description
3.27 SWD
This product equips Arm standard Serial Wire Debug (SWD).
DS_MM32F0140_Ver1.07 www.mm32mcu.com 21
Pinout and assignment
PD5-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 31 PA10
NRST1 7 30 PA9
VSS 8 29 PA8
VDDA 9 28 PB15
PA0-WKUP 10 27 PB14
PA1 11 26 PB13
PA2 12 25 PB12
13
14
15
16
17
18
19
20
21
22
23
24
VDD
VSS
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
PB10
PB11
DS_MM32F0140_Ver1.07 www.mm32mcu.com 22
Pinout and assignment
PD5-BOOT0
PA15
VSS
PB3
PB7
PB6
PB5
PB4
32
31
30
29
28
27
26
25
VDD 1 24 PA14
PD0-OSC_IN 2 23 PA13
PD1-OSC_OUT 3 22 PA12
NRST1 4 21 PA11
VDDA 5 20 PA10
PA0-WKUP 6 19 PA9
PA1 7 18 PA8
PA2 8 17 VDD
10
11
12
13
14
15
16
9
VSS
PA3
PA4
PA5
PA6
PA7
PB0
PB1
DS_MM32F0140_Ver1.07 www.mm32mcu.com 23
Pinout and assignment
PD5-BOOT0
PA15
PB8
PB7
PB6
PB5
PB4
PB3
32
31
30
29
28
27
26
25
VDD 1 24 PA14
PD0-OSC_IN 2 23 PA13
PD1-OSC_OUT 3 22 PA12
NRST1 4 21 PA11
Exposed Pad
VDDA 5 20 PA10
PA0-WKUP 6 19 PA9
PA1 7 18 PA8
PA2 8 17 VDD
10
11
12
13
14
15
16
9
VSS
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
DS_MM32F0140_Ver1.07 www.mm32mcu.com 24
Pinout and assignment
PA15
PA14
PB7
PB6
PB5
PB4
PB3
28
27
26
25
24
23
22
PD5-BOOT0 1 21 PA13
PD0-OSC_IN 2 20 PA10
PD1-OSC_OUT 3 19 PA9
NRST1 4 Exposed Pad 18 PA8
VDDA 5 17 VDD
PA0-WKUP 6 16 VSS
PA1 7 10 15 PB1
11
12
13
14
8
9
VSS/VSSA
PA2
PA3
PA4
PA5
PA6
PA7
PB0
DS_MM32F0140_Ver1.07 www.mm32mcu.com 25
Pinout and assignment
PD5-BOOT0 1 20 PA14
PD0-OSC_IN 2 19 PA13
PD1-OSC_OUT 3 18 PA10
NRST1 4 17 PA9
VDDA 5 16 VDD
PA0-WKUP 6 15 VSS
PA1 7 14 PB1
PA2 8 13 PA7
PA3 9 12 PA6
PA4 10 11 PA5
DS_MM32F0140_Ver1.07 www.mm32mcu.com 26
Pinout and assignment
8 VSS S VSS
9 5 5 1 5 VDDA S VDDA
UART2_CTS
TIM2_CH1/TIM2_ETR
PA0
10 6 6 5 6 I/O TC PA0 SPI2_NSS/I2S2_WS ADC1_VIN[0]
WKUP
TIM2_CH3
COMP1_OUT
UART2_RTS ADC1_VIN[1]
11 7 7 6 7 PA1 I/O TC PA1
TIM2_CH2 COMP_INP[0]
UART2_TX
ADC1_VIN[2]
12 8 8 7 8 PA2 I/O TC PA2 TIM2_CH3
COMP_INP[1]
SPI2_NSS/I2S2_WS
UART2_RX ADC1_VIN[3]
13 9 9 8 9 PA3 I/O TC PA3
TIM2_CH4 COMP_INP[2]
SPI1_NSS/I2S1_WS
TIM1_BKIN ADC1_VIN[4]
14 10 10 9 10 PA4 I/O TC PA4
TIM14_CH1 COMP_INP[3]
I2C_SDA
SPI1_SCK/I2S1_CK
TIM2_CH1/TIM2_ETR
ADC1_VIN[5]
15 11 11 10 11 PA5 I/O TC PA5 TIM1_ETR
COMP_INM[0]
I2C_SCL
TIM1_CH3N
SPI1_MISO/I2S1_MCK
TIM3_CH1
TIM1_BKIN
UART2_RX ADC1_VIN[6]
16 12 12 11 12 PA6 I/O TC PA6
TIM1_ETR COMP_INM[1]
TIM16_CH1
TIM1_CH3
COMP1_OUT
SPI1_MOSI/I2S1_SD
TIM3_CH2
TIM1_CH1N
ADC1_VIN[7]
17 13 13 12 13 PA7 I/O TC PA7 TIM14_CH1
COMP_INM[2]
TIM17_CH1
TIM1_CH2N
TIM1_CH3N
TIM3_CH3
TIM1_CH2N
18 14 14 13 PB0 I/O TC PB0 ADC1_VIN[8]
TIM1_CH1N
TIM1_CH3
TIM14_CH1
TIM3_CH4
TIM1_CH3N
TIM1_CH4
19 15 15 14 14 PB1 I/O TC PB1 ADC1_VIN[9]
TIM1_CH2N
MCO
TIM1_CH2
TIM1_CH1N
20 16 15 PB2 I/O TC PB2
DS_MM32F0140_Ver1.07 www.mm32mcu.com 27
Pinout and assignment
24 17 17 16 VDD S VDD
SPI2_NSS/I2S2_WS
SPI2_SCK/I2S2_CK
25 PB12 I/O TC PB12 TIM1_BKIN
SPI2_MOSI/I2S2_SD
SPI2_MISO/I2S2_MCK
SPI2_SCK/I2S2_CK
SPI2_MISO/I2S2_MCK
TIM1_CH1N
SPI2_NSS/I2S2_WS
26 16 PB13 I/O TC PB13 SPI2_MOSI/I2S2_SD
I2C_SCL
TIM1_CH3N
TIM2_CH1
UART3_CTS
SPI2_MISO/I2S2_MCK
SPI2_MOSI/I2S2_SD
TIM1_CH2N
SPI2_SCK/I2S2_CK
27 17 PB14 I/O TC PB14 SPI2_NSS/I2S2_WS
I2C_SDA
TIM1_CH3
TIM1_CH1
UART3_RTS
SPI2_MOSI/I2S2_SD
SPI2_NSS/I2S2_WS
TIM1_CH3N
28 PB15 I/O TC PB15 SPI2_MISO/I2S2_MCK
SPI2_SCK/I2S2_CK
TIM1_CH2N
TIM1_CH2
MCO
TIM1_CH1
29 18 18 18 PA8 I/O TC PA8
TIM1_CH2
TIM1_CH3
UART1_TX
TIM1_CH2
UART1_RX
I2C_SCL
30 19 19 19 17 PA9 I/O TC PA9
MCO
TIM1_CH1N
TIM1_CH4
CAN_RX
TIM17_BKIN
UART1_RX
TIM1_CH3
UART1_TX
31 20 20 20 18 PA10 I/O TC PA10
I2C_SDA
TIM1_CH1
SPI2_SCK/I2S2_CK
CAN_TX
UART3_TX
UART1_CTS
TIM1_CH4
32 21 21 21 PA11 I/O TC PA11 CAN_RX
SPI2_MOSI/I2S2_SD
I2C_SCL
COMP1_OUT
DS_MM32F0140_Ver1.07 www.mm32mcu.com 28
Pinout and assignment
DS_MM32F0140_Ver1.07 www.mm32mcu.com 29
Pinout and assignment
DS_MM32F0140_Ver1.07 www.mm32mcu.com 30
Pinout and assignment
Pin AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8
UART2_CT TIM2_CH1/T SPI2_NSS/I COMP1_OU
PA0 TIM2_CH3
S IM2_ETR 2S2_WS T
UART2_RT
PA1 TIM2_CH2
S
SPI2_NSS/I
PA2 UART2_TX TIM2_CH3
2S2_WS
PA3 UART2_RX TIM2_CH4
SPI1_NSS/I
PA4 TIM1_BKIN TIM14_CH1 I2C_SDA
2S1_WS
SPI1_SCK/I TIM2_CH1/T
PA5 TIM1_ETR I2C_SCL TIM1_CH3N
2S1_CK IM2_ETR
SPI1_MISO/ COMP1_OU
PA6 TIM3_CH1 TIM1_BKIN UART2_RX TIM1_ETR TIM16_CH1 TIM1_CH3
I2S1_MCK T
SPI1_MOSI/
PA7 TIM3_CH2 TIM1_CH1N TIM14_CH1 TIM17_CH1 TIM1_CH2N TIM1_CH3N
I2S1_SD
PA8 MCO TIM1_CH1 TIM1_CH2 TIM1_CH3
DS_MM32F0140_Ver1.07 www.mm32mcu.com 31
Pinout and assignment
Pin AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8
PB0 TIM3_CH3 TIM1_CH2N TIM1_CH1N TIM1_CH3
PB2
SPI1_SCK/I
PB3 TIM2_CH2 UART1_TX TIM2_CH3 TIM1_CH1 TIM2_CH1
2S1_CK
SPI1_MISO/
PB4 TIM3_CH1 UART1_RX TIM17_BKIN TIM1_CH2 TIM2_CH2
I2S1_MCK
SPI1_MOSI/
PB5 TIM3_CH2 TIM16_BKIN MCO TIM1_CH3 TIM2_CH3
I2S1_SD
TIM16_CH1
PB6 UART1_TX I2C_SCL TIM2_CH1
N
TIM17_CH1
PB7 UART1_RX I2C_SDA UART2_TX
N
PB8 I2C_SCL TIM16_CH1 CAN_RX UART2_RX
SPI2_NSS/I
PB9 I2C_SDA TIM17_CH1 CAN_TX TIM1_CH4
2S2_WS
SPI2_SCK/I
PB10 I2C_SCL TIM2_CH3 UART3_TX
2S2_CK
PB11 I2C_SDA TIM2_CH4 UART3_RX
SPI2_NSS/I SPI2_SCK/I SPI2_MOSI/ SPI2_MISO/
PB12 TIM1_BKIN
2S2_WS 2S2_CK I2S2_SD I2S2_MCK
SPI2_SCK/I SPI2_MISO/ SPI2_NSS/I SPI2_MOSI/ UART3_CT
PB13 TIM1_CH1N I2C_SCL TIM1_CH3N TIM2_CH1
2S2_CK I2S2_MCK 2S2_WS I2S2_SD S
SPI2_MISO/ SPI2_MOSI/ SPI2_SCK/I SPI2_NSS/I UART3_RT
PB14 TIM1_CH2N I2C_SDA TIM1_CH3 TIM1_CH1
I2S2_MCK I2S2_SD 2S2_CK 2S2_WS S
SPI2_MOSI/ SPI2_NSS/I SPI2_MISO/ SPI2_SCK/I
PB15 TIM1_CH3N TIM1_CH2N TIM1_CH2
I2S2_SD 2S2_WS I2S2_MCK 2S2_CK
DS_MM32F0140_Ver1.07 www.mm32mcu.com 32
Pinout and assignment
Pin AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8
PC13 TIM2_CH1
PC14 TIM2_CH2
PC15 TIM2_CH3
DS_MM32F0140_Ver1.07 www.mm32mcu.com 33
Pinout and assignment
Pin AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8
PD0 UART3_TX I2C_SDA
PD2
PD3
PD5
SPI1_MISO/I2S1_MC UART2_R TIM1_ET TIM16_CH TIM1_CH COMP1_
PD6 TIM3_CH1 TIM1_BKIN
K X R 1 3 OUT
DS_MM32F0140_Ver1.07 www.mm32mcu.com 34
Electrical characteristics
5 Electrical characteristics
C = 50 pF
VIN
DS_MM32F0140_Ver1.07 www.mm32mcu.com 35
Electrical characteristics
LSI, IWDG
HSI, PLLs
VDD VCORE
n x VDD
VDD
Regulators
Output
Level shifter
Core logic
n x 100 nF IO logic (CPU, digital
+ 1 x 4.7 μF GPIOs circuit circuits &
Input memory)
n x VSS VSS
VDDA
VDDA
VDDA
VREF+
1 x 10 nF
VREF- ADC COMP
+ 1 x 1 μF
VSS VSSA
IDD
VDD
VDDA
DS_MM32F0140_Ver1.07 www.mm32mcu.com 36
Electrical characteristics
Stresses above the absolute maximum ratings given in "Absolute Group Maximum
Ratings" list (Table 5-1, Table 5-2 and Table 5-3) 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.
4. When VIN > VDDA, a positive injected current is generated; when VIN < VSS, a reverse injected
current is generated. Do not exceed IINJ(PIN).
5. When there is simultaneous injection current for multiple inputs, the maximum value of ΣIINJ(PIN)
is equal to the sum of the absolute values of the forward injection current and the reverse
injection current (instantaneous value) .
DS_MM32F0140_Ver1.07 www.mm32mcu.com 37
Electrical characteristics
2. If TA is low, higher PD values are allowed as long as TJ (TJ=125°C is the absolute maximum
rating value) does not exceed TJmax.
3. In low power dissipation state, TA can be extended to this range as long as TJ (TJ=125°C is the
absolute maximum rating value) does not exceed TJmax.
2. The VDD waveforms of chip power-on and power-down must strictly follow the tr and tf phased
in the following waveform diagram, and no power-down is allowed during power-on process.
3. Note: To ensure the reliability of chip power-on, all power-on should start from 0V.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 38
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 39
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 40
Electrical characteristics
The Flash memory access time is adjusted to the fHCLK (0 ~ 24 MHz is 0 waiting cycle,
24 ~ 48 MHz is 1 waiting cycle, 48 ~ 72 MHz is 2 waiting cycles).
The instruction prefetching function is on. When the peripherals are enabled: f PCLK1 =
fHCLK.
Note: The instruction prefetching function must be set before setting the clock and bus divider.
The parameters given in the table below are based on the ambient temperature and the
VDD supply voltage listed in Table 5-3.
Typical Typical
fHCLK All peripherals enabled All peripherals disabled
Symbol Parameters Condition Unit
(Hz)
40°C 25°C 85°C 105°C 40°C 25°C 85°C 105°C
72M 16.26 16.22 16.30 16.19 10.15 10.12 10.20 10.10
48M 12.38 12.35 12.32 12.30 8.31 8.27 8.25 8.24
24M 7.81 7.74 7.72 7.71 5.78 5.70 5.68 5.68
8M 2.64 2.62 2.64 2.67 1.96 1.94 1.96 2.00
Supply Internal
IDD current in clock 4M 1.99 1.98 2.01 2.03 1.61 1.60 1.63 1.63 mA
Run mode source
2M 1.21 1.19 1.21 1.25 1.02 1.00 1.02 1.06
1M 0.81 0.79 0.81 0.84 0.72 0.69 0.71 0.75
500K 0.62 0.59 0.61 0.64 0.57 0.54 0.56 0.59
125K 0.47 0.44 0.46 0.49 0.46 0.43 0.45 0.48
Typical Typical
fHCLK All peripherals enabled All peripherals disabled
Symbol Parameters Condition Unit
(Hz)
40°C 25°C 85°C 105°C 40°C 25°C 85°C 105°C
72M 10.25 10.13 10.02 9.92 4.13 4.04 3.99 3.94
48M 7.18 7.06 6.97 6.90 3.09 3.30 2.95 2.92
24M 4.10 4.00 3.94 3.90 2.06 1.97 1.93 1.91
Supply Internal 4M 1.91 1.87 1.80 1.19 1.54 1.51 1.34 0.82
IDD current in clock mA
Sleep mode source 2M 1.16 1.11 1.15 1.18 0.97 0.93 0.96 1.00
1M 0.79 0.74 0.77 0.80 0.70 0.65 0.67 0.71
500K 0.60 0.56 0.58 0.61 0.56 0.51 0.53 0.56
125K 0.46 0.42 0.43 0.49 0.45 0.41 0.42 0.45
Table 5-9 Typical and maximum current consumption in stop and Standby modes (1)
DS_MM32F0140_Ver1.07 www.mm32mcu.com 41
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 42
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 43
Electrical characteristics
external clock source, and the ambient temperature and power supply voltage meet
General operating conditions.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 44
Electrical characteristics
4. The relatively low value of the RF resistance can be used to avoid problems arising from the
use of wet conditions to provide protection, this environment results in leakage and bias
conditions have changed. However, if the MCU is applied in bad wet conditions, the design
needs to take this parameter into account.
5. tSU(HSE) is the startup time measured from the moment it is enabled (by software) to a stabilized
8 MHz oscillation is reached. This value is measured for a standard crystal resonator, and it
can vary significantly with the crystal manufacturer.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 45
Electrical characteristics
860676
DS_MM32F0140_Ver1.07 www.mm32mcu.com 46
Electrical characteristics
2. Use the correct multiplication factor to ensure the f PLL_OUT is within the allowable range
according to the PLL input clock frequency.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 47
Electrical characteristics
Software recommendations
The software flowchart must include the management of runaway conditions such as:
Corrupted program counter
DS_MM32F0140_Ver1.07 www.mm32mcu.com 48
Electrical characteristics
Unexpected reset
Critical Data corruption (for example control registers)
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
hardened to prevent unrecoverable errors.
Static latch-up
Two complementary static latch-up tests are required on six parts to assess the latch-up
performance:
DS_MM32F0140_Ver1.07 www.mm32mcu.com 49
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 50
Electrical characteristics
ambient temperature and VDD supply voltage in accordance with the conditions
summarized in Table 5-3. All I/O ports are CMOS compatible.
2. The current IIO output by the chip must always follow the absolute maximum ratings given in
the table, and the sum of IIO (all I/O pins and control pins) cannot exceed IVDD.
3. Resulted from comprehensive evaluation.
Input/output AC characteristics
The definitions and values of the input and output AC characteristics are given in the
following figure and table, respectively.
Unless otherwise stated, the parameters listed in the following table are provided under
the ambient temperature and supply voltage in accordance with the condition Table 5-3.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 51
Electrical characteristics
External output
load is 50pF
DS_MM32F0140_Ver1.07 www.mm32mcu.com 52
Electrical characteristics
(1)
368560
DS_MM32F0140_Ver1.07 www.mm32mcu.com 53
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 54
Electrical characteristics
2. fPCLK1 must be at least 3MHz to achieve standard mode I2C frequencies. It must be at least
12MHz to achieve fast mode I2C frequencies.
3. Ensure SCL drops below 0.3VDD on falling edge before SDA crosses into the indeterminate
range of 0.3VDD to 0.7VDD.
NOTE: For controllers that cannot observe the SCL falling edge then independent
measurement of the time for the SCL transition from static high (VDD) to 0.3VDD should be used
to insert a delay of the SDA transition with respect to SCL.
4. The maximum th(SDA) could be 3.45 us and 0.9 us for Standard mode and Fast mode, but must
be less than the maximum of tvd(DAT) or tvd(ACK) by a transition time. This maximum must only
be met if the device does not stretch the LOW period (t w(SCLL))of the SCL signal. If the clock
stretches the SCL, the data must be valid by the setup time before it releases the clock.
5. tvd(DAT) = time for data signal from SCL LOW to SDA output.
6. tvd(ACK) = time for Acknowledgement signal from SCL LOW to SDA output.
VDD
4.7K 4.7K
100
SDA
I2C BUS
100
SCL
70% 70%
SDA
30% 30%
tvd(DAT)
tw(STO:STA)
SDA
SCL
DS_MM32F0140_Ver1.07 www.mm32mcu.com 55
Electrical characteristics
SPI characteristics
Unless otherwise specified, the parameters given in the following table are derived from
tests performed under the ambient temperature, f PCLKx frequency and VDD supply voltage
conditions summarized in Table 5-3.
Refer to section 5.3.12 I/O port characteristics for more details on the input/output alternate
function characteristics (NSS, SCK, MOSI, MISO).
DS_MM32F0140_Ver1.07 www.mm32mcu.com 56
Electrical characteristics
679527
DS_MM32F0140_Ver1.07 www.mm32mcu.com 57
Electrical characteristics
429658
Figure 5-12 SPI timing diagram-slave mode and CPHA = 1, CPHASEL = 1 (1)
DS_MM32F0140_Ver1.07 www.mm32mcu.com 58
Electrical characteristics
184118
DS_MM32F0140_Ver1.07 www.mm32mcu.com 59
Electrical characteristics
Input impedance
Equation 2
𝑇𝑆
𝑅𝐴𝐼𝑁 < − 𝑅𝐴𝐷𝐶
𝑓𝐴𝐷𝐶 ×𝐶𝐴𝐷𝐶 ×ln(2𝑛+2 )
The formula above is used to determine the maximum external impedance allowed for an
error below 1/4 of LSB. Here N = 12 (12-bit resolution), is derived from tests under fADC =
15MHz.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 60
Electrical characteristics
ET = Total unadjusted error: The maximum deviation between the actual and ideal
transmission 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
transition.
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.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 61
Electrical characteristics
ADC output
EG
4095
4094
4092
Actual transfer
curve
5 EL
EO
4
3
ED
2
1 LSB ideal
1
12-bit
converter
Parasitic
capacitance
1. See Table 5-28 for the values of RAIN, RADC and CADC.
2. Cparasitic represents the capacitance of the PCB (dependent on soldering and PCB layout quality)
plus the pad capacitance (roughly 7pF). A high Cparasitic value will downgrade conversion
accuracy. To remedy this, fADC should be reduced.
DS_MM32F0140_Ver1.07 www.mm32mcu.com 62
Electrical characteristics
326818
Figure 5-16 Power supply and reference power supply decoupling circuit
Temperature formula
𝑉𝑎𝑙𝑢𝑒 ∗ 𝑉𝐷𝐷𝐴 − 𝑜𝑓𝑓𝑠𝑒𝑡 ∗ 3300
𝑇𝑆𝑎𝑑𝑐 = 25 +
4096 ∗ 𝐴𝑣𝑔_𝑆𝑙𝑜𝑝𝑒
Where offset is recorded in the lower 12bits of 0x1FFFF7F6
DS_MM32F0140_Ver1.07 www.mm32mcu.com 63
Electrical characteristics
DS_MM32F0140_Ver1.07 www.mm32mcu.com 64
Package dimensions
6 Package dimensions
6.1 LQFP48
DS_MM32F0140_Ver1.07 www.mm32mcu.com 65
Package dimensions
Millimeters
ID
Minimum Typical Maximum
A 1.6
A1 0.05 0.15
A2 1.35 1.4 1.45
A3 0.59 0.64 0.69
b 0.18 0.27
b1 0.17 0.20 0.23
c 0.13 0.18
c1 0.12 0.127 0.134
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.50
L 0.45 0.60 0.75
L1 1.00REF
L2 0.25BSC
R1 0.08
R2 0.08 0.2
S 0.2
θ 0◦ 3.5 ◦ 7◦
θ1 0◦
θ2 11 ◦ 12 ◦ 13 ◦
Θ3 11 ◦ 12 ◦ 13 ◦
DS_MM32F0140_Ver1.07 www.mm32mcu.com 66
Package dimensions
6.2 LQFP32
D A2
A3
D1 0.61BSC
E1
E
PIN1
IDENTIFICATION
e b 0.20
b
b1
0.25BSC
A
c1
c
L
L1
0.10
989913
DS_MM32F0140_Ver1.07 www.mm32mcu.com 67
Package dimensions
Millimeters
ID
Minimum Typical Maximum
A 1.60
A1 0.05 0.15
A2 1.35 1.40 1.45
A3 0.59 0.64 0.69
b 0.33 0.42
b1 0.32 0.35 0.38
c 0.13 0.18
c1 0.117 0.127 0.137
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
H 8.14 8.17 8.20
L 0.50 0.70
L1 1.00REF
R1 0.08
R2 0.08 0.20
S 0.20
θ 0◦ 3.5 ◦ 7◦
θ1 11 ◦ 12 ◦ 13 ◦
θ2 11 ◦ 12 ◦ 13 ◦
DS_MM32F0140_Ver1.07 www.mm32mcu.com 68
Package dimensions
D A2
e A1
A3
C2
R
c1
e
E2 b
E1 E
H
1
L
32
L
PIN 1 Identifier
D2
978941
DS_MM32F0140_Ver1.07 www.mm32mcu.com 69
Package dimensions
Millimeters
ID
Minimum Typical Maximum
A 0.7 0.75 0.80
A1 0.00 0.02 0.05
A2 0.50 0.55 0.60
A3 0.20REF
b 0.20 0.25 0.30
D 4.90 5.00 5.10
E 4.90 5.00 5.10
D2 3.40 3.50 3.60
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 Pin count = 32
DS_MM32F0140_Ver1.07 www.mm32mcu.com 70
Package dimensions
DS_MM32F0140_Ver1.07 www.mm32mcu.com 71
Package dimensions
Millimeters
ID
Minimum Typical Maximum
A 0.70 0.75 0.80
A1 0.00 0.02 0.05
A3 0.203REF
b 0.15 0.20 0.25
D 3.90 4.00 4.10
E 3.90 4.00 4.10
D2 2.55 2.70 2.85
E2 2.55 2.70 2.85
e 0.40
K 0.30REF
H 0.35REF
L 0.30 0.35 0.40
R 0.075REF
DS_MM32F0140_Ver1.07 www.mm32mcu.com 72
Package dimensions
6.5 TSSOP20
e
b
(2°~13°)
E E1
L Θ1
L2 L1
4 Θ3
D
PIN1
IDENTIFICATION
b
b1
A3
A2 A
A1
618013
DS_MM32F0140_Ver1.07 www.mm32mcu.com 73
Package dimensions
Millimeters
ID
Minimum Typical Maximum
A 1.20
A1 0.05 0.15
A2 1.05
A3 0.34 0.54
b 0.20 0.28
c 0.10 0.19
c1 0.10 0.15
D 6.40 6.45 6.60
E 6.20 6.40 6.60
E1 4.35 4.50
e 0.65BSC
L 0.45 0.60 0.75
L2 0.25BSC
L1 1.0REF
R 0.09
θ1 0◦ 8◦
DS_MM32F0140_Ver1.07 www.mm32mcu.com 74
Revision history
7 Revision history
Table 7-1 Revision history
DS_MM32F0140_Ver1.07 www.mm32mcu.com 75