RM0090-STM32F405-415-407-417-427-437-429-439
This reference manual targets application developers. It provides complete information on how to use the STM32F405xx/07xx, STM32F415xx/17xx, STM32F42xxx and STM32F43xxx microcontroller memory and peripherals.
The STM32F405xx/07xx, STM32F415xx/17xx, STM32F42xxx and STM32F43xxx constitute a family of microcontrollers with different memory sizes, packages and peripherals.
For ordering information, mechanical and electrical device characteristics please refer to the datasheets.
For information on the Arm® Cortex®-M4 with FPU core, please refer to the Cortex®-M4 with FPU Technical Reference Manual.
The STM32F405xx/07xx, STM32F415xx/17xx, STM32F42xxx and STM32F43xxx microcontrollers include ST state-of-the-art patented technology.
Related documents
Available from STMicroelectronics web site (www.st.com):
- • STM32F40x and STM32F41x datasheets
- • STM32F42x and STM32F43x datasheets
- • STM32F40x and STM32F41x errata sheets
- • STM32F42x and STM32F43x errata sheets
- • For information on the Arm® Cortex®-M4 with FPU, refer to the STM32F3xx/F4xxx Cortex®-M4 with FPU programming manual (PM0214).
Contents
| 1 | Documentation conventions | 57 |
| 1.1 | List of abbreviations for registers | 57 |
| 1.2 | Glossary | 58 |
| 1.3 | Peripheral availability | 58 |
| 2 | Memory and bus architecture | 59 |
| 2.1 | System architecture | 59 |
| 2.1.1 | I-bus | 62 |
| 2.1.2 | D-bus | 62 |
| 2.1.3 | S-bus | 62 |
| 2.1.4 | DMA memory bus | 63 |
| 2.1.5 | DMA peripheral bus | 63 |
| 2.1.6 | Ethernet DMA bus | 63 |
| 2.1.7 | USB OTG HS DMA bus | 63 |
| 2.1.8 | LCD-TFT controller DMA bus | 63 |
| 2.1.9 | DMA2D bus | 63 |
| 2.1.10 | BusMatrix | 63 |
| 2.1.11 | AHB/APB bridges (APB) | 64 |
| 2.2 | Memory organization | 64 |
| 2.3 | Memory map | 64 |
| 2.3.1 | Embedded SRAM | 68 |
| 2.3.2 | Flash memory overview | 68 |
| 2.3.3 | Bit banding | 68 |
| 2.4 | Boot configuration | 69 |
| 3 | Embedded flash memory interface | 73 |
| 3.1 | Introduction | 73 |
| 3.2 | Main features | 73 |
| 3.3 | Embedded flash memory in STM32F405xx/07xx and STM32F415xx/17xx | 74 |
| 3.4 | Embedded flash memory in STM32F42xxx and STM32F43xxx | 76 |
| 3.5 | Read interface | 80 |
| 3.5.1 | Relation between CPU clock frequency and flash memory read time | 80 |
| 3.5.2 | Adaptive real-time memory accelerator (ART Accelerator™) | 82 |
| 3.6 | Erase and program operations | 84 |
| 3.6.1 | Unlocking the Flash control register | 84 |
| 3.6.2 | Program/erase parallelism | 85 |
| 3.6.3 | Erase | 85 |
| 3.6.4 | Programming | 86 |
| 3.6.5 | Read-while-write (RWW) | 87 |
| 3.6.6 | Interrupts | 88 |
| 3.7 | Option bytes | 88 |
| 3.7.1 | Description of user option bytes | 88 |
| 3.7.2 | Programming user option bytes | 92 |
| 3.7.3 | Read protection (RDP) | 93 |
| 3.7.4 | Write protections | 94 |
| 3.7.5 | Proprietary code readout protection (PCROP) | 95 |
| 3.8 | One-time programmable bytes | 97 |
| 3.9 | Flash interface registers | 98 |
| 3.9.1 | Flash access control register (FLASH_ACR) for STM32F405xx/07xx and STM32F415xx/17xx | 98 |
| 3.9.2 | Flash access control register (FLASH_ACR) for STM32F42xxx and STM32F43xxx | 99 |
| 3.9.3 | Flash key register (FLASH_KEYR) | 100 |
| 3.9.4 | Flash option key register (FLASH_OPTKEYR) | 100 |
| 3.9.5 | Flash status register (FLASH_SR) for STM32F405xx/07xx and STM32F415xx/17xx | 101 |
| 3.9.6 | Flash status register (FLASH_SR) for STM32F42xxx and STM32F43xxx | 102 |
| 3.9.7 | Flash control register (FLASH_CR) for STM32F405xx/07xx and STM32F415xx/17xx | 103 |
| 3.9.8 | Flash control register (FLASH_CR) for STM32F42xxx and STM32F43xxx | 105 |
| 3.9.9 | Flash option control register (FLASH_OPTCR) for STM32F405xx/07xx and STM32F415xx/17xx | 106 |
| 3.9.10 | Flash option control register (FLASH_OPTCR) for STM32F42xxx and STM32F43xxx | 108 |
| 3.9.11 | Flash option control register (FLASH_OPTCR1) for STM32F42xxx and STM32F43xxx | 110 |
| 3.9.12 | Flash interface register map | 111 |
| 4 | CRC calculation unit | 113 |
| 4.1 | CRC introduction ..... | 113 |
| 4.2 | CRC main features ..... | 113 |
| 4.3 | CRC functional description ..... | 114 |
| 4.4 | CRC registers ..... | 114 |
| 4.4.1 | Data register (CRC_DR) ..... | 114 |
| 4.4.2 | Independent data register (CRC_IDR) ..... | 114 |
| 4.4.3 | Control register (CRC_CR) ..... | 115 |
| 4.4.4 | CRC register map ..... | 115 |
| 5 | Power controller (PWR) ..... | 116 |
| 5.1 | Power supplies ..... | 116 |
| 5.1.1 | Independent A/D converter supply and reference voltage ..... | 117 |
| 5.1.2 | Battery backup domain ..... | 118 |
| 5.1.3 | Voltage regulator for STM32F405xx/07xx and STM32F415xx/17xx .. | 120 |
| 5.1.4 | Voltage regulator for STM32F42xxx and STM32F43xxx ..... | 121 |
| 5.2 | Power supply supervisor ..... | 124 |
| 5.2.1 | Power-on reset (POR)/power-down reset (PDR) ..... | 124 |
| 5.2.2 | Brownout reset (BOR) ..... | 125 |
| 5.2.3 | Programmable voltage detector (PVD) ..... | 125 |
| 5.3 | Low-power modes ..... | 126 |
| 5.3.1 | Slowing down system clocks ..... | 128 |
| 5.3.2 | Peripheral clock gating ..... | 128 |
| 5.3.3 | Sleep mode ..... | 129 |
| 5.3.4 | Stop mode (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 130 |
| 5.3.5 | Stop mode (STM32F42xxx and STM32F43xxx) ..... | 133 |
| 5.3.6 | Standby mode ..... | 136 |
| 5.3.7 | Programming the RTC alternate functions to wake up the device from the Stop and Standby modes ..... | 138 |
| 5.4 | Power control registers (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 141 |
| 5.4.1 | PWR power control register (PWR_CR) for STM32F405xx/07xx and STM32F415xx/17xx ..... | 141 |
| 5.4.2 | PWR power control/status register (PWR_CSR) for STM32F405xx/07xx and STM32F415xx/17xx ..... | 142 |
| 5.5 | Power control registers (STM32F42xxx and STM32F43xxx) ..... | 145 |
| 5.5.1 | PWR power control register (PWR_CR) for STM32F42xxx and STM32F43xxx ..... | 145 |
| 5.5.2 | PWR power control/status register (PWR_CSR) for STM32F42xxx and STM32F43xxx ..... | 148 |
| 5.6 | PWR register map ..... | 150 |
| 6 | Reset and clock control for STM32F42xxx and STM32F43xxx (RCC) ..... | 151 |
| 6.1 | Reset ..... | 151 |
| 6.1.1 | System reset ..... | 151 |
| 6.1.2 | Power reset ..... | 151 |
| 6.1.3 | Backup domain reset ..... | 152 |
| 6.2 | Clocks ..... | 152 |
| 6.2.1 | HSE clock ..... | 155 |
| 6.2.2 | HSI clock ..... | 156 |
| 6.2.3 | PLL configuration ..... | 156 |
| 6.2.4 | LSE clock ..... | 157 |
| 6.2.5 | LSI clock ..... | 157 |
| 6.2.6 | System clock (SYSCLK) selection ..... | 157 |
| 6.2.7 | Clock security system (CSS) ..... | 158 |
| 6.2.8 | RTC/AWU clock ..... | 158 |
| 6.2.9 | Watchdog clock ..... | 159 |
| 6.2.10 | Clock-out capability ..... | 159 |
| 6.2.11 | Internal/external clock measurement using TIM5/TIM11 ..... | 159 |
| 6.3 | RCC registers ..... | 162 |
| 6.3.1 | RCC clock control register (RCC_CR) ..... | 162 |
| 6.3.2 | RCC PLL configuration register (RCC_PLLCFGR) ..... | 164 |
| 6.3.3 | RCC clock configuration register (RCC_CFGR) ..... | 166 |
| 6.3.4 | RCC clock interrupt register (RCC_CIR) ..... | 168 |
| 6.3.5 | RCC AHB1 peripheral reset register (RCC_AHB1RSTR) ..... | 171 |
| 6.3.6 | RCC AHB2 peripheral reset register (RCC_AHB2RSTR) ..... | 174 |
| 6.3.7 | RCC AHB3 peripheral reset register (RCC_AHB3RSTR) ..... | 175 |
| 6.3.8 | RCC APB1 peripheral reset register (RCC_APB1RSTR) ..... | 175 |
| 6.3.9 | RCC APB2 peripheral reset register (RCC_APB2RSTR) ..... | 179 |
| 6.3.10 | RCC AHB1 peripheral clock register (RCC_AHB1ENR) ..... | 181 |
| 6.3.11 | RCC AHB2 peripheral clock enable register (RCC_AHB2ENR) ..... | 183 |
| 6.3.12 | RCC AHB3 peripheral clock enable register (RCC_AHB3ENR) ..... | 184 |
| 6.3.13 | RCC APB1 peripheral clock enable register (RCC_APB1ENR) ..... | 184 |
| 6.3.14 | RCC APB2 peripheral clock enable register (RCC_APB2ENR) ..... | 188 |
| 6.3.15 | RCC AHB1 peripheral clock enable in low power mode register (RCC_AHB1LPENR) ..... | 190 |
| 6.3.16 | RCC AHB2 peripheral clock enable in low power mode register (RCC_AHB2LPENR) ..... | 193 |
| 6.3.17 | RCC AHB3 peripheral clock enable in low power mode register (RCC_AHB3LPENR) ..... | 194 |
| 6.3.18 | RCC APB1 peripheral clock enable in low power mode register (RCC_APB1LPENR) ..... | 194 |
| 6.3.19 | RCC APB2 peripheral clock enabled in low power mode register (RCC_APB2LPENR) ..... | 198 |
| 6.3.20 | RCC Backup domain control register (RCC_BDCR) ..... | 200 |
| 6.3.21 | RCC clock control & status register (RCC_CSR) ..... | 201 |
| 6.3.22 | RCC spread spectrum clock generation register (RCC_SSCGR) .... | 203 |
| 6.3.23 | RCC PLLI2S configuration register (RCC_PLLI2SCFGR) ..... | 204 |
| 6.3.24 | RCC PLL configuration register (RCC_PLLSAICFGR) ..... | 207 |
| 6.3.25 | RCC Dedicated Clock Configuration Register (RCC_DCKCFGR) ... | 208 |
| 6.3.26 | RCC register map ..... | 211 |
| 7 | Reset and clock control for STM32F405xx/07xx and STM32F415xx/17xx(RCC) ..... | 214 |
| 7.1 | Reset ..... | 214 |
| 7.1.1 | System reset ..... | 214 |
| 7.1.2 | Power reset ..... | 215 |
| 7.1.3 | Backup domain reset ..... | 215 |
| 7.2 | Clocks ..... | 216 |
| 7.2.1 | HSE clock ..... | 218 |
| 7.2.2 | HSI clock ..... | 219 |
| 7.2.3 | PLL configuration ..... | 220 |
| 7.2.4 | LSE clock ..... | 220 |
| 7.2.5 | LSI clock ..... | 221 |
| 7.2.6 | System clock (SYSCLK) selection ..... | 221 |
| 7.2.7 | Clock security system (CSS) ..... | 221 |
| 7.2.8 | RTC/AWU clock ..... | 222 |
| 7.2.9 | Watchdog clock ..... | 222 |
| 7.2.10 | Clock-out capability ..... | 223 |
| 7.2.11 | Internal/external clock measurement using TIM5/TIM11 ..... | 223 |
| 7.3 | RCC registers ..... | 225 |
| 7.3.1 | RCC clock control register (RCC_CR) ..... | 225 |
| 7.3.2 | RCC PLL configuration register (RCC_PLLCFGR) ..... | 227 |
| 7.3.3 | RCC clock configuration register (RCC_CFGR) ..... | 229 |
| 7.3.4 | RCC clock interrupt register (RCC_CIR) ..... | 231 |
| 7.3.5 | RCC AHB1 peripheral reset register (RCC_AHB1RSTR) ..... | 234 |
| 7.3.6 | RCC AHB2 peripheral reset register (RCC_AHB2RSTR) ..... | 237 |
| 7.3.7 | RCC AHB3 peripheral reset register (RCC_AHB3RSTR) ..... | 238 |
| 7.3.8 | RCC APB1 peripheral reset register (RCC_APB1RSTR) ..... | 238 |
| 7.3.9 | RCC APB2 peripheral reset register (RCC_APB2RSTR) ..... | 241 |
| 7.3.10 | RCC AHB1 peripheral clock enable register (RCC_AHB1ENR) .... | 243 |
| 7.3.11 | RCC AHB2 peripheral clock enable register (RCC_AHB2ENR) .... | 245 |
| 7.3.12 | RCC AHB3 peripheral clock enable register (RCC_AHB3ENR) .... | 246 |
| 7.3.13 | RCC APB1 peripheral clock enable register (RCC_APB1ENR) ..... | 246 |
| 7.3.14 | RCC APB2 peripheral clock enable register (RCC_APB2ENR) .... | 249 |
| 7.3.15 | RCC AHB1 peripheral clock enable in low power mode register (RCC_AHB1LPENR) ..... | 251 |
| 7.3.16 | RCC AHB2 peripheral clock enable in low power mode register (RCC_AHB2LPENR) ..... | 253 |
| 7.3.17 | RCC AHB3 peripheral clock enable in low power mode register (RCC_AHB3LPENR) ..... | 254 |
| 7.3.18 | RCC APB1 peripheral clock enable in low power mode register (RCC_APB1LPENR) ..... | 255 |
| 7.3.19 | RCC APB2 peripheral clock enabled in low power mode register (RCC_APB2LPENR) ..... | 258 |
| 7.3.20 | RCC Backup domain control register (RCC_BDCR) ..... | 260 |
| 7.3.21 | RCC clock control & status register (RCC_CSR) ..... | 261 |
| 7.3.22 | RCC spread spectrum clock generation register (RCC_SSCGR) .... | 263 |
| 7.3.23 | RCC PLLI2S configuration register (RCC_PLLI2SCFGR) ..... | 264 |
| 7.3.24 | RCC register map ..... | 266 |
| 8 | General-purpose I/Os (GPIO) ..... | 269 |
| 8.1 | GPIO introduction ..... | 269 |
| 8.2 | GPIO main features ..... | 269 |
| 8.3 | GPIO functional description ..... | 269 |
| 8.3.1 | General-purpose I/O (GPIO) ..... | 271 |
| 8.3.2 | I/O pin multiplexer and mapping ..... | 272 |
| 8.3.3 | I/O port control registers ..... | 276 |
| 8.3.4 | I/O port data registers ..... | 276 |
| 8.3.5 | I/O data bitwise handling ..... | 276 |
| 8.3.6 | GPIO locking mechanism ..... | 276 |
| 8.3.7 | I/O alternate function input/output ..... | 277 |
| 8.3.8 | External interrupt/wake-up lines | 277 |
| 8.3.9 | Input configuration | 277 |
| 8.3.10 | Output configuration | 278 |
| 8.3.11 | Alternate function configuration | 279 |
| 8.3.12 | Analog configuration | 280 |
| 8.3.13 | Using the OSC32_IN/OSC32_OUT pins as GPIO PC14/PC15 port pins | 280 |
| 8.3.14 | Using the OSC_IN/OSC_OUT pins as GPIO PH0/PH1 port pins | 280 |
| 8.3.15 | Selection of RTC_AF1 and RTC_AF2 alternate functions | 281 |
| 8.4 | GPIO registers | 283 |
| 8.4.1 | GPIO port mode register (GPIOx_MODER) (x = A..I/J/K) | 283 |
| 8.4.2 | GPIO port output type register (GPIOx_OTYPER) (x = A..I/J/K) | 283 |
| 8.4.3 | GPIO port output speed register (GPIOx_OSPEEDR) (x = A..I/J/K) | 284 |
| 8.4.4 | GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A..I/J/K) | 284 |
| 8.4.5 | GPIO port input data register (GPIOx_IDR) (x = A..I/J/K) | 285 |
| 8.4.6 | GPIO port output data register (GPIOx_ODR) (x = A..I/J/K) | 285 |
| 8.4.7 | GPIO port bit set/reset register (GPIOx_BSRR) (x = A..I/J/K) | 286 |
| 8.4.8 | GPIO port configuration lock register (GPIOx_LCKR) (x = A..I/J/K) | 286 |
| 8.4.9 | GPIO alternate function low register (GPIOx_AFRL) (x = A..I/J/K) | 287 |
| 8.4.10 | GPIO alternate function high register (GPIOx_AFRH) (x = A..I/J) | 288 |
| 8.4.11 | GPIO register map | 289 |
| 9 | System configuration controller (SYSCFG) | 291 |
| 9.1 | I/O compensation cell | 291 |
| 9.2 | SYSCFG registers for STM32F405xx/07xx and STM32F415xx/17xx | 291 |
| 9.2.1 | SYSCFG memory remap register (SYSCFG_MEMRMP) | 291 |
| 9.2.2 | SYSCFG peripheral mode configuration register (SYSCFG_PMC) | 292 |
| 9.2.3 | SYSCFG external interrupt configuration register 1 (SYSCFG_EXTICR1) | 293 |
| 9.2.4 | SYSCFG external interrupt configuration register 2 (SYSCFG_EXTICR2) | 293 |
| 9.2.5 | SYSCFG external interrupt configuration register 3 (SYSCFG_EXTICR3) | 294 |
| 9.2.6 | SYSCFG external interrupt configuration register 4 (SYSCFG_EXTICR4) | 295 |
| 9.2.7 | Compensation cell control register (SYSCFG_CMPCR) . . . . . | 295 |
| 9.2.8 | SYSCFG register maps for STM32F405xx/07xx and STM32F415xx/17xx . . . . . | 296 |
| 9.3 | SYSCFG registers for STM32F42xxx and STM32F43xxx . . . . . | 296 |
| 9.3.1 | SYSCFG memory remap register (SYSCFG_MEMRMP) . . . . . | 296 |
| 9.3.2 | SYSCFG peripheral mode configuration register (SYSCFG_PMC) . . . . . | 298 |
| 9.3.3 | SYSCFG external interrupt configuration register 1 (SYSCFG_EXTICR1) . . . . . | 299 |
| 9.3.4 | SYSCFG external interrupt configuration register 2 (SYSCFG_EXTICR2) . . . . . | 300 |
| 9.3.5 | SYSCFG external interrupt configuration register 3 (SYSCFG_EXTICR3) . . . . . | 300 |
| 9.3.6 | SYSCFG external interrupt configuration register 4 (SYSCFG_EXTICR4) . . . . . | 301 |
| 9.3.7 | Compensation cell control register (SYSCFG_CMPCR) . . . . . | 302 |
| 9.3.8 | SYSCFG register maps for STM32F42xxx and STM32F43xxx . . . . . | 303 |
| 10 | DMA controller (DMA) . . . . . | 304 |
| 10.1 | DMA introduction . . . . . | 304 |
| 10.2 | DMA main features . . . . . | 304 |
| 10.3 | DMA functional description . . . . . | 306 |
| 10.3.1 | General description . . . . . | 306 |
| 10.3.2 | DMA transactions . . . . . | 308 |
| 10.3.3 | Channel selection . . . . . | 309 |
| 10.3.4 | Arbiter . . . . . | 310 |
| 10.3.5 | DMA streams . . . . . | 311 |
| 10.3.6 | Source, destination and transfer modes . . . . . | 311 |
| 10.3.7 | Pointer incrementation . . . . . | 314 |
| 10.3.8 | Circular mode . . . . . | 315 |
| 10.3.9 | Double buffer mode . . . . . | 315 |
| 10.3.10 | Programmable data width, packing/unpacking, endianness . . . . . | 316 |
| 10.3.11 | Single and burst transfers . . . . . | 318 |
| 10.3.12 | FIFO . . . . . | 319 |
| 10.3.13 | DMA transfer completion . . . . . | 321 |
| 10.3.14 | DMA transfer suspension . . . . . | 322 |
| 10.3.15 | Flow controller . . . . . | 322 |
| 10.3.16 | Summary of the possible DMA configurations . . . . . | 324 |
| 10.3.17 | Stream configuration procedure . . . . . | 324 |
| 10.3.18 | Error management ..... | 325 |
| 10.4 | DMA interrupts ..... | 326 |
| 10.5 | DMA registers ..... | 327 |
| 10.5.1 | DMA low interrupt status register (DMA_LISR) ..... | 327 |
| 10.5.2 | DMA high interrupt status register (DMA_HISR) ..... | 328 |
| 10.5.3 | DMA low interrupt flag clear register (DMA_LIFCR) ..... | 329 |
| 10.5.4 | DMA high interrupt flag clear register (DMA_HIFCR) ..... | 329 |
| 10.5.5 | DMA stream x configuration register (DMA_SxCR) (x = 0..7) ..... | 330 |
| 10.5.6 | DMA stream x number of data register (DMA_SxNDTR) (x = 0..7) ..... | 333 |
| 10.5.7 | DMA stream x peripheral address register (DMA_SxPAR) (x = 0..7) ..... | 333 |
| 10.5.8 | DMA stream x memory 0 address register (DMA_SxM0AR) (x = 0..7) ..... | 334 |
| 10.5.9 | DMA stream x memory 1 address register (DMA_SxM1AR) (x = 0..7) ..... | 334 |
| 10.5.10 | DMA stream x FIFO control register (DMA_SxFCR) (x = 0..7) ..... | 335 |
| 10.5.11 | DMA register map ..... | 337 |
| 11 | Chrom-Art Accelerator™ controller (DMA2D) ..... | 341 |
| 11.1 | DMA2D introduction ..... | 341 |
| 11.2 | DMA2D main features ..... | 342 |
| 11.3 | DMA2D functional description ..... | 342 |
| 11.3.1 | General description ..... | 342 |
| 11.3.2 | DMA2D control ..... | 343 |
| 11.3.3 | DMA2D foreground and background FIFOs ..... | 343 |
| 11.3.4 | DMA2D foreground and background pixel format converter (PFC) ..... | 344 |
| 11.3.5 | DMA2D foreground and background CLUT interface ..... | 346 |
| 11.3.6 | DMA2D blender ..... | 347 |
| 11.3.7 | DMA2D output PFC ..... | 347 |
| 11.3.8 | DMA2D output FIFO ..... | 348 |
| 11.3.9 | DMA2D AHB master port timer ..... | 348 |
| 11.3.10 | DMA2D transactions ..... | 349 |
| 11.3.11 | DMA2D configuration ..... | 349 |
| 11.3.12 | DMA2D transfer control (start, suspend, abort and completion) ..... | 352 |
| 11.3.13 | Watermark ..... | 353 |
| 11.3.14 | Error management ..... | 353 |
| 11.3.15 | AHB dead time ..... | 353 |
| 11.4 | DMA2D interrupts ..... | 353 |
| 11.5 | DMA2D registers ..... | 354 |
| 11.5.1 | DMA2D control register (DMA2D_CR) ..... | 354 |
| 11.5.2 | DMA2D Interrupt Status Register (DMA2D_ISR) ..... | 356 |
| 11.5.3 | DMA2D interrupt flag clear register (DMA2D_IFCR) ..... | 357 |
| 11.5.4 | DMA2D foreground memory address register (DMA2D_FGMAR) ... | 358 |
| 11.5.5 | DMA2D foreground offset register (DMA2D_FGOR) ..... | 358 |
| 11.5.6 | DMA2D background memory address register (DMA2D_BGMAR) .. | 359 |
| 11.5.7 | DMA2D background offset register (DMA2D_BGOR) ..... | 359 |
| 11.5.8 | DMA2D foreground PFC control register (DMA2D_FGPFCCR) .... | 360 |
| 11.5.9 | DMA2D foreground color register (DMA2D_FGCOLR) ..... | 362 |
| 11.5.10 | DMA2D background PFC control register (DMA2D_BGPFCCR) .... | 363 |
| 11.5.11 | DMA2D background color register (DMA2D_BGCOLR) ..... | 365 |
| 11.5.12 | DMA2D foreground CLUT memory address register (DMA2D_FGCMAR) ..... | 365 |
| 11.5.13 | DMA2D background CLUT memory address register (DMA2D_BGCMAR) ..... | 366 |
| 11.5.14 | DMA2D output PFC control register (DMA2D_OPFCCR) ..... | 366 |
| 11.5.15 | DMA2D output color register (DMA2D_OCOLR) ..... | 367 |
| 11.5.16 | DMA2D output memory address register (DMA2D_OMAR) ..... | 368 |
| 11.5.17 | DMA2D output offset register (DMA2D_OOR) ..... | 369 |
| 11.5.18 | DMA2D number of line register (DMA2D_NLR) ..... | 369 |
| 11.5.19 | DMA2D line watermark register (DMA2D_LWR) ..... | 370 |
| 11.5.20 | DMA2D AHB master timer configuration register (DMA2D_AMTCR) . | 370 |
| 11.5.21 | DMA2D register map ..... | 371 |
| 12 | Interrupts and events ..... | 373 |
| 12.1 | Nested vectored interrupt controller (NVIC) ..... | 373 |
| 12.1.1 | NVIC features ..... | 373 |
| 12.1.2 | SysTick calibration value register ..... | 373 |
| 12.1.3 | Interrupt and exception vectors ..... | 373 |
| 12.2 | External interrupt/event controller (EXTI) ..... | 373 |
| 12.2.1 | EXTI main features ..... | 381 |
| 12.2.2 | EXTI block diagram ..... | 382 |
| 12.2.3 | Wake-up event management ..... | 382 |
| 12.2.4 | Functional description ..... | 382 |
| 12.2.5 | External interrupt/event line mapping ..... | 384 |
| 12.3 | EXTI registers ..... | 386 |
| 12.3.1 | Interrupt mask register (EXTI_IMR) ..... | 386 |
| 12.3.2 | Event mask register (EXTI_EMR) ..... | 386 |
| 12.3.3 | Rising trigger selection register (EXTI_RTSR) ..... | 387 |
| 12.3.4 | Falling trigger selection register (EXTI_FTSR) ..... | 387 |
| 12.3.5 | Software interrupt event register (EXTI_SWIER) ..... | 388 |
| 12.3.6 | Pending register (EXTI_PR) ..... | 388 |
| 12.3.7 | EXTI register map ..... | 389 |
| 13 | Analog-to-digital converter (ADC) ..... | 390 |
| 13.1 | ADC introduction ..... | 390 |
| 13.2 | ADC main features ..... | 390 |
| 13.3 | ADC functional description ..... | 391 |
| 13.3.1 | ADC on-off control ..... | 392 |
| 13.3.2 | ADC clock ..... | 392 |
| 13.3.3 | Channel selection ..... | 392 |
| 13.3.4 | Single conversion mode ..... | 393 |
| 13.3.5 | Continuous conversion mode ..... | 394 |
| 13.3.6 | Timing diagram ..... | 394 |
| 13.3.7 | Analog watchdog ..... | 394 |
| 13.3.8 | Scan mode ..... | 395 |
| 13.3.9 | Injected channel management ..... | 396 |
| 13.3.10 | Discontinuous mode ..... | 397 |
| 13.4 | Data alignment ..... | 398 |
| 13.5 | Channel-wise programmable sampling time ..... | 399 |
| 13.6 | Conversion on external trigger and trigger polarity ..... | 399 |
| 13.7 | Fast conversion mode ..... | 401 |
| 13.8 | Data management ..... | 402 |
| 13.8.1 | Using the DMA ..... | 402 |
| 13.8.2 | Managing a sequence of conversions without using the DMA ..... | 402 |
| 13.8.3 | Conversions without DMA and without overrun detection ..... | 403 |
| 13.9 | Multi ADC mode ..... | 403 |
| 13.9.1 | Injected simultaneous mode ..... | 406 |
| 13.9.2 | Regular simultaneous mode ..... | 407 |
| 13.9.3 | Interleaved mode ..... | 409 |
| 13.9.4 | Alternate trigger mode ..... | 410 |
| 13.9.5 | Combined regular/injected simultaneous mode ..... | 412 |
| 13.9.6 | Combined regular simultaneous + alternate trigger mode ..... | 413 |
| 13.10 | Temperature sensor | 414 |
| 13.11 | Battery charge monitoring | 416 |
| 13.12 | ADC interrupts | 416 |
| 13.13 | ADC registers | 417 |
| 13.13.1 | ADC status register (ADC_SR) | 417 |
| 13.13.2 | ADC control register 1 (ADC_CR1) | 418 |
| 13.13.3 | ADC control register 2 (ADC_CR2) | 420 |
| 13.13.4 | ADC sample time register 1 (ADC_SMPR1) | 422 |
| 13.13.5 | ADC sample time register 2 (ADC_SMPR2) | 422 |
| 13.13.6 | ADC injected channel data offset register x (ADC_JOFRx) (x=1..4) | 423 |
| 13.13.7 | ADC watchdog higher threshold register (ADC_HTR) | 423 |
| 13.13.8 | ADC watchdog lower threshold register (ADC_LTR) | 424 |
| 13.13.9 | ADC regular sequence register 1 (ADC_SQR1) | 424 |
| 13.13.10 | ADC regular sequence register 2 (ADC_SQR2) | 425 |
| 13.13.11 | ADC regular sequence register 3 (ADC_SQR3) | 425 |
| 13.13.12 | ADC injected sequence register (ADC_JSQR) | 426 |
| 13.13.13 | ADC injected data register x (ADC_JDRx) (x= 1..4) | 427 |
| 13.13.14 | ADC regular data register (ADC_DR) | 427 |
| 13.13.15 | ADC Common status register (ADC_CSR) | 428 |
| 13.13.16 | ADC common control register (ADC_CCR) | 429 |
| 13.13.17 | ADC common regular data register for dual and triple modes (ADC_CDR) | 432 |
| 13.13.18 | ADC register map | 432 |
| 14 | Digital-to-analog converter (DAC) | 435 |
| 14.1 | DAC introduction | 435 |
| 14.2 | DAC main features | 435 |
| 14.3 | DAC functional description | 437 |
| 14.3.1 | DAC channel enable | 437 |
| 14.3.2 | DAC output buffer enable | 437 |
| 14.3.3 | DAC data format | 437 |
| 14.3.4 | DAC conversion | 438 |
| 14.3.5 | DAC output voltage | 439 |
| 14.3.6 | DAC trigger selection | 439 |
| 14.3.7 | DMA request | 440 |
| 14.3.8 | Noise generation | 440 |
| 14.3.9 | Triangle-wave generation | 441 |
| 14.4 | Dual DAC channel conversion | 442 |
| 14.4.1 | Independent trigger without wave generation | 443 |
| 14.4.2 | Independent trigger with single LFSR generation | 443 |
| 14.4.3 | Independent trigger with different LFSR generation | 443 |
| 14.4.4 | Independent trigger with single triangle generation | 444 |
| 14.4.5 | Independent trigger with different triangle generation | 444 |
| 14.4.6 | Simultaneous software start | 444 |
| 14.4.7 | Simultaneous trigger without wave generation | 445 |
| 14.4.8 | Simultaneous trigger with single LFSR generation | 445 |
| 14.4.9 | Simultaneous trigger with different LFSR generation | 445 |
| 14.4.10 | Simultaneous trigger with single triangle generation | 446 |
| 14.4.11 | Simultaneous trigger with different triangle generation | 446 |
| 14.5 | DAC registers | 447 |
| 14.5.1 | DAC control register (DAC_CR) | 447 |
| 14.5.2 | DAC software trigger register (DAC_SWTRIGR) | 450 |
| 14.5.3 | DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1) | 450 |
| 14.5.4 | DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1) | 451 |
| 14.5.5 | DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1) | 451 |
| 14.5.6 | DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2) | 452 |
| 14.5.7 | DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2) | 452 |
| 14.5.8 | DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2) | 452 |
| 14.5.9 | Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD) | 453 |
| 14.5.10 | DUAL DAC 12-bit left aligned data holding register (DAC_DHR12LD) | 453 |
| 14.5.11 | DUAL DAC 8-bit right aligned data holding register (DAC_DHR8RD) | 454 |
| 14.5.12 | DAC channel1 data output register (DAC_DOR1) | 454 |
| 14.5.13 | DAC channel2 data output register (DAC_DOR2) | 454 |
| 14.5.14 | DAC status register (DAC_SR) | 455 |
| 14.5.15 | DAC register map | 455 |
Chapters
- 15. Digital camera interface (DCMI) 457
- 1. Documentation conventions
- 2. Memory and bus architecture
- 3. Embedded flash memory interface
- 4. CRC calculation unit
- 5. Power controller (PWR)
- 6. Reset and clock control for STM32F42xxx and STM32F43xxx (RCC)
- 7. Reset and clock control for STM32F405xx/07xx and STM32F415xx/17xx(RCC)
- 8. General-purpose I/Os (GPIO)
- 9. System configuration controller (SYSCFG)
- 10. DMA controller (DMA)
- 11. Chrom-Art Accelerator™ controller (DMA2D)
- 12. Interrupts and events
- 13. Analog-to-digital converter (ADC)
- 14. Digital-to-analog converter (DAC)
- 15. Digital camera interface (DCMI)
- 16. LCD-TFT controller (LTDC)
- 17. Advanced-control timers (TIM1 and TIM8)
- 18. General-purpose timers (TIM2 to TIM5)
- 19. General-purpose timers (TIM9 to TIM14)
- 20. Basic timers (TIM6 and TIM7)
- 21. Independent watchdog (IWDG)
- 22. Window watchdog (WWDG)
- 23. Cryptographic processor (CRYP)
- 24. Random number generator (RNG)
- 25. Hash processor (HASH)
- 26. Real-time clock (RTC)
- 27. Inter-integrated circuit (I2C) interface
- 28. Serial peripheral interface (SPI)
- 29. Serial audio interface (SAI)
- 30. Universal synchronous asynchronous receiver transmitter (USART)
- 31. Secure digital input/output interface (SDIO)
- 32. Controller area network (bxCAN)
- 33. Ethernet (ETH): media access control (MAC) with DMA controller
- 34. USB on-the-go full-speed (OTG_FS)
- 35. USB on-the-go high-speed (OTG_HS)
- 36. Flexible static memory controller (FSMC)
- 37. Flexible memory controller (FMC)
- 38. Debug support (DBG)
- 39. Device electronic signature
- 40. Important security notice
- 41. Revision history
- Index