User Manual
MM32L0xx
32-bit Microcontroller Based on ARM Cortex M0 Core
Version: 1.15_n
We reserve the right to change relevant information without notice.
Table of Contents
1 Memory and bus architecture 1
1.1 System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2.2 Memory map and register addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Overview of FLASH memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Boot configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Embedded flash(FLASH) 6
2.1 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.1 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.2 Reading flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.3 Programming and erasing flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 Storage protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.3.1 Write protection of main space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.3.2 Write protection of option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4 Flash interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.5 Description of option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.6 Description of Flash register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.6.1 Flash access control register(FLASH_ACR) . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.6.2 Flash access control register(FLASH_KEYR) . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.6.3 Flash OPTKEY register(FLASH_OPTKEYR) . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.6.4 Flash status register(FLASH_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.6.5 Flash control register(FLASH_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.6.6 Flash address register(FLASH_AR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.6.7 Option byte register(FLASH_OBR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.6.8 Write protection register(FLASH_WRPR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3 Power control (PWR) 24
3.1 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.1.1 Independent A/D converter supply and reference voltage . . . . . . . . . . . . . . . . . . . 24
3.1.2 Battery backup domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.1.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.2.1 Power on reset (POR)/power down reset (PDR) . . . . . . . . . . . . . . . . . . . . . . . . 25
3.2.2 Programmable voltage detector (PVD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.3 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.3.1 Slowing down system clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.3.2 Peripheral clock gating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.3.3 Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.3.4 Stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1