This reference manual provides complete information on how to use the STM32WB09xE microcontroller memory and peripherals.
The STM32WB09xE is a powerful and ultra-low-power 2.4 GHz RF transceiver with an Arm® Cortex®-M0+ microcontroller that can operate up to 64 MHz.
The STM32WB09xE is suitable to implement applications compliant with the Bluetooth® LE SIG specification.
STM32WB09xE microcontrollers include ST state-of-the-art patented technology.
| 5.4 | Operating modes | 60 |
| 5.4.1 | Run mode | 60 |
| 5.4.2 | Deepstop mode | 62 |
| 5.4.3 | Shutdown mode | 65 |
| 5.4.4 | Operating modes transition management | 67 |
| 5.5 | SMPS step down regulator | 68 |
| 5.6 | I/O pull-ups/pull-downs during low power mode | 70 |
| 5.7 | PWRC registers | 71 |
| 5.7.1 | Control register 1 (PWRC_CR1) | 71 |
| 5.7.2 | Control register 2 (PWRC_CR2) | 72 |
| 5.7.3 | Control register 3 (PWRC_CR3) | 73 |
| 5.7.4 | Control register 4 (PWRC_CR4) | 75 |
| 5.7.5 | Status register 1 (PWRC_SR1) | 77 |
| 5.7.6 | Status register 2 (PWRC_SR2) | 79 |
| 5.7.7 | Control register 5 (PWRC_CR5) | 81 |
| 5.7.8 | I/O Port A pull-up control register (PWRC_PUCRA) | 83 |
| 5.7.9 | I/O Port A pull-down control register (PWRC_PDCRA) | 84 |
| 5.7.10 | I/O Port B pull-up control register (PWRC_PUCRB) | 85 |
| 5.7.11 | I/O Port B pull-down control register (PWRC_PDCRB) | 87 |
| 5.7.12 | Control register 6 (PWRC_CR6) | 89 |
| 5.7.13 | Control register 7 (PWRC_CR7) | 90 |
| 5.7.14 | Status register 3 (PWRC_SR3) | 91 |
| 5.7.15 | Shutdown I/O Wakeup Enable register (PWRC_SDWN_WUEN) | 92 |
| 5.7.16 | Shutdown I/O Wakeup Polarity register (PWRC_SDWN_WUPOL) | 93 |
| 5.7.17 | Shutdown I/O Wakeup Flag register (PWRC_SDWN_WUF) | 93 |
| 5.7.18 | Debug register (PWRC_DBGR) | 94 |
| 5.7.19 | Extended status and reset register (PWRC_EXTSRR) | 95 |
| 5.7.20 | Trimming values register (PWRC_TRIMR) | 96 |
| 5.7.21 | Software trimming values register (PWRC_ENGTRIM) | 97 |
| 5.7.22 | PWRC register map | 98 |
| 5.8 | Programmer's model | 101 |
| 5.8.1 | Reset reason management | 101 |
| 5.8.2 | SMPS output level re-programming | 102 |
| 6 | Reset and clock controller (RCC) | 103 |
| 6.1 | Reset management | 103 |
| 6.1.1 | General description ..... | 103 |
| 6.1.2 | Power reset ..... | 104 |
| 6.1.3 | Watchdog reset ..... | 104 |
| 6.1.4 | LOCKUP reset ..... | 104 |
| 6.1.5 | System reset request ..... | 104 |
| 6.1.6 | Deepstop exit ..... | 104 |
| 6.2 | Clock management ..... | 105 |
| 6.2.1 | System clock details ..... | 107 |
| 6.2.2 | Peripherals clock details ..... | 107 |
| 6.2.3 | Slow clock frequency details ..... | 109 |
| 6.3 | System frequency switch while MR_BLE is used ..... | 109 |
| 6.4 | Clock observation on external pad ..... | 110 |
| 6.5 | Miscellaneous ..... | 111 |
| 6.5.1 | IO BOOSTER ..... | 111 |
| 6.6 | RCC registers ..... | 112 |
| 6.6.1 | Clock sources control register (RCC_CR) ..... | 112 |
| 6.6.2 | Clock configuration register (RCC_CFGR) ..... | 114 |
| 6.6.3 | Clocks source software calibration register (RCC_CSSWCR) ..... | 118 |
| 6.6.4 | Clock interrupt enable register (RCC_CIER) ..... | 119 |
| 6.6.5 | Clock interrupt flag register (RCC_CIFR) ..... | 121 |
| 6.6.6 | Clock switch command register (RCC_CSCMDR) ..... | 123 |
| 6.6.7 | AHB0 macrocell reset register (RCC_AHBRSTR) ..... | 125 |
| 6.6.8 | APB0 macrocell reset register (RCC_APB0RSTR) ..... | 126 |
| 6.6.9 | APB1 macrocell reset register (RCC_APB1RSTR) ..... | 128 |
| 6.6.10 | APB2 macro cells reset register (RCC_APB2RSTR) ..... | 129 |
| 6.6.11 | AHB0 macrocell clock enable register (RCC_AHBENR) ..... | 130 |
| 6.6.12 | APB0 macrocell clock enable register (RCC_APB0ENR) ..... | 131 |
| 6.6.13 | APB1 macrocell clock enable register (RCC_APB1ENR) ..... | 132 |
| 6.6.14 | APB2 macrocell clock enable register (RCC_APB2ENR) ..... | 133 |
| 6.6.15 | Clock control and reset status register (RCC_CSR) ..... | 134 |
| 6.6.16 | RF software high speed external register (RCC_RFSWHSECR) .... | 135 |
| 6.6.17 | RF high speed external register (RCC_RFHSECR) ..... | 136 |
| 6.6.18 | RCC register map ..... | 137 |
| 6.7 | Programmer's model ..... | 140 |
| 6.7.1 | Switch the system on the PLL64M clock tree ..... | 140 |
| 6.7.2 | Use the direct HSE instead of the RC64MPLL block ..... | 140 |
| 7 | General-purpose I/Os (GPIO) . . . . . | 142 |
| 7.1 | Introduction . . . . . | 142 |
| 7.2 | GPIO main features . . . . . | 142 |
| 7.3 | GPIO functional description . . . . . | 142 |
| 7.3.1 | General-purpose I/O (GPIO) . . . . . | 144 |
| 7.3.2 | I/O pin alternate function multiplexer and mapping . . . . . | 144 |
| 7.3.3 | I/O port control registers . . . . . | 145 |
| 7.3.4 | I/O port data registers . . . . . | 145 |
| 7.3.5 | I/O data bitwise handling . . . . . | 146 |
| 7.3.6 | GPIO locking mechanism . . . . . | 146 |
| 7.3.7 | I/O alternate function input/output . . . . . | 146 |
| 7.3.8 | External interrupt/wakeup lines . . . . . | 147 |
| 7.3.9 | Input configuration . . . . . | 147 |
| 7.3.10 | Output configuration . . . . . | 148 |
| 7.3.11 | Alternate function configuration . . . . . | 148 |
| 7.3.12 | Analog configuration . . . . . | 149 |
| 7.3.13 | Using the LSE oscillator pins as GPIOs . . . . . | 150 |
| 7.4 | GPIO registers . . . . . | 151 |
| 7.4.1 | GPIOA port mode register (GPIOA_MODER) . . . . . | 151 |
| 7.4.2 | GPIOB port mode register (GPIOB_MODER) . . . . . | 151 |
| 7.4.3 | GPIOA port output type register (GPIOA_OTYPER) . . . . . | 152 |
| 7.4.4 | GPIOB port output type register (GPIOB_OTYPER) . . . . . | 152 |
| 7.4.5 | GPIOA port output speed register (GPIOA_OSPEEDR) . . . . . | 153 |
| 7.4.6 | GPIOB port output speed register (GPIOB_OSPEEDR) . . . . . | 153 |
| 7.4.7 | GPIOA port pull-up/pull-down register (GPIOA_PUPDR) . . . . . | 153 |
| 7.4.8 | GPIOB port pull-up/pull-down register (GPIOB_PUPDR) . . . . . | 154 |
| 7.4.9 | GPIOA port input data register (GPIOA_IDR) . . . . . | 154 |
| 7.4.10 | GPIOB port input data register (GPIOB_IDR) . . . . . | 154 |
| 7.4.11 | GPIOA port output data register (GPIOA_ODR) . . . . . | 155 |
| 7.4.12 | GPIOB port output data register (GPIOB_ODR) . . . . . | 155 |
| 7.4.13 | GPIOA port bit set/reset register (GPIOA_BSRR) . . . . . | 156 |
| 7.4.14 | GPIOB port bit set/reset register (GPIOB_BSRR) . . . . . | 156 |
| 7.4.15 | GPIOA port configuration lock register (GPIOA_LCKR) . . . . . | 157 |
| 7.4.16 | GPIOB port configuration lock register (GPIOB_LCKR) . . . . . | 158 |
| 7.4.17 | GPIOA alternate function low register (GPIOA_AFRL) . . . . . | 159 |
| 7.4.18 | GPIOB alternate function low register (GPIOB_AFRL) . . . . . | 159 |
| 7.4.19 | GPIOA alternate function high register (GPIOA_AFRH) . . . . . | 160 |
| 7.4.20 | GPIOB alternate function high register (GPIOB_AFRH) . . . . . | 160 |
| 7.4.21 | GPIOA port bit reset register (GPIOA_BRR) . . . . . | 161 |
| 7.4.22 | GPIOB port bit set/reset register (GPIOB_BSRR) . . . . . | 161 |
| 7.4.23 | GPIO register map . . . . . | 163 |
| 8 | System controller (SYSCFG) . . . . . | 165 |
| 8.1 | SYSCFG main features . . . . . | 165 |
| 8.2 | System controller registers . . . . . | 166 |
| 8.2.1 | Die ID register (DIE_ID) . . . . . | 166 |
| 8.2.2 | JTAG ID register (JTAG_ID) . . . . . | 166 |
| 8.2.3 | Fast-Mode Plus pin capability control register (I2C_FMP_CTRL) . . . . | 166 |
| 8.2.4 | I/O Interrupt detection type register (IO_DTR) . . . . . | 167 |
| 8.2.5 | I/O Interrupt Edge register (IO_IBER) . . . . . | 168 |
| 8.2.6 | I/O Interrupt polarity event register (IO_IEVR) . . . . . | 168 |
| 8.2.7 | I/O Interrupt Enable register (IO_IER) . . . . . | 168 |
| 8.2.8 | I/O Interrupt Status and Clear register (IO_ISCR) . . . . . | 169 |
| 8.2.9 | Power Controller Interrupt Enable register (PWRC_IER) . . . . . | 169 |
| 8.2.10 | Power Controller Interrupt Status and Clear register (PWRC_ISCR) . . . | 170 |
| 8.2.11 | IMR_BLE RX or TX sequence information detection type register (BLERXTX_DTR) . . . . . | 171 |
| 8.2.12 | MR_BLE RX or TX sequence information detection type register (BLERXTX_IBER) . . . . . | 171 |
| 8.2.13 | MR_BLE RX or TX sequence information detection event register (BLERXTX_IEVR) . . . . . | 172 |
| 8.2.14 | MR_BLE RX or TX sequence information detection interrupt enable register (BLERXTX_IER) . . . . . | 172 |
| 8.2.15 | MR_BLE RX or TX sequence information detection status and clear register (BLERXTX_ISCR) . . . . . | 173 |
| 8.2.16 | System controller register map . . . . . | 174 |
| 9 | Embedded flash memory (FLASH) . . . . . | 176 |
| 9.1 | Flash main features . . . . . | 176 |
| 9.2 | Description . . . . . | 176 |
| 9.3 | Flash controller registers . . . . . | 177 |
| 9.3.1 | Command register (COMMAND) . . . . . | 177 |
| 9.3.2 | Configuration register (CONFIG) . . . . . | 178 |
| 9.3.3 | Interrupt status register (IRQSTAT) ..... | 179 |
| 9.3.4 | Interrupt mask register (IRQMASK) ..... | 180 |
| 9.3.5 | Raw status register (IRQRAW) ..... | 181 |
| 9.3.6 | SIZE register (SIZE) ..... | 182 |
| 9.3.7 | Address register (ADDRESS) ..... | 183 |
| 9.3.8 | Linear Feedback Shift register (LFSRVAL) ..... | 184 |
| 9.3.9 | Main flash page protection registers (PAGEPROTx) ..... | 185 |
| 9.3.10 | Data registers (DATA0-DATA3) ..... | 186 |
| 9.3.11 | Flash controller register map ..... | 188 |
| 9.4 | Programmer's model ..... | 189 |
| 9.4.1 | General information ..... | 189 |
| 9.4.2 | Read function example ..... | 190 |
| 9.4.3 | Erase function example ..... | 191 |
| 9.4.4 | Write function example ..... | 191 |
| 9.4.5 | Enabling protection example ..... | 192 |
| 9.4.6 | OTP function example ..... | 193 |
| 9.4.7 | Write page protection example ..... | 194 |
| 10 | DMA controller (DMA) ..... | 195 |
| 10.1 | DMA introduction ..... | 195 |
| 10.2 | DMA main features ..... | 195 |
| 10.3 | DMA functional description ..... | 195 |
| 10.3.1 | DMA transactions ..... | 195 |
| 10.3.2 | Arbiter ..... | 196 |
| 10.3.3 | DMA channels ..... | 196 |
| 10.3.4 | Programmable data width, data alignment and endians ..... | 198 |
| 10.3.5 | Error management ..... | 199 |
| 10.3.6 | Interrupts ..... | 200 |
| 10.3.7 | DMA request mapping ..... | 200 |
| 10.4 | DMA registers ..... | 201 |
| 10.4.1 | DMA interrupt status register (DMA_ISR) ..... | 201 |
| 10.4.2 | DMA interrupt flag clear register (DMA_IFCR) ..... | 202 |
| 10.4.3 | DMA channel x configuration register (DMA_CCRx) (x = 1..8, where x = channel number) ..... | 203 |
| 10.4.4 | DMA channel x number of data register (DMA_CNDTRx) (x = 1..8, where x = channel number) ..... | 205 |
| 10.4.5 | DMA channel x peripheral address register (DMA_CPARx) (x = 1..8, where x = channel number) ..... | 205 |
| 10.4.6 | DMA channel x memory address register (DMA_CMARx) (x = 1..8, where x = channel number) ..... | 206 |
| 10.4.7 | DMA register map ..... | 207 |
| 11 | DMA request multiplexer (DMAMUX) ..... | 210 |
| 11.1 | Introduction ..... | 210 |
| 11.2 | DMAMUX main features ..... | 210 |
| 11.3 | DMAMUX implementation ..... | 210 |
| 11.3.1 | DMAMUX instantiation ..... | 210 |
| 11.3.2 | DMAMUX mapping ..... | 211 |
| 11.4 | DMAMUX functional description ..... | 212 |
| 11.4.1 | DMAMUX block diagram ..... | 212 |
| 11.4.2 | DMAMUX channels ..... | 212 |
| 11.4.3 | DMAMUX request line multiplexer ..... | 213 |
| 11.5 | DMAMUX registers ..... | 214 |
| 11.5.1 | DMAMUX request line multiplexer Channel x Configuration Register DMAMUX register x (DMAMUX_CxCR) ..... | 214 |
| 11.5.2 | DMAMUX register map ..... | 215 |
| 12 | Analog to digital converter (ADC) ..... | 217 |
| 12.1 | Features ..... | 217 |
| 12.2 | ADC presentation ..... | 217 |
| 12.2.1 | Temperature sensor subsystem ..... | 218 |
| 12.2.2 | Battery sensor ..... | 219 |
| 12.2.3 | ADC input modes conversion ..... | 219 |
| 12.2.4 | Steady state input impedance ..... | 220 |
| 12.2.5 | Input signal sampling transient response ..... | 220 |
| 12.2.6 | Calibration points ..... | 221 |
| 12.2.7 | Down sampler (DS) ..... | 222 |
| 12.3 | Interrupts ..... | 222 |
| 12.4 | DMA interface ..... | 223 |
| 12.5 | ADC mode ..... | 223 |
| 12.5.1 | ADC mode overview ..... | 223 |
| 12.6 | ADC registers ..... | 226 |
| 12.6.1 | Version register (VERSION_ID) ..... | 226 |
| 12.6.2 | ADC configuration register (CONF) ..... | 227 |
| 12.6.3 | ADC control register (CTRL) ..... | 229 |
| 12.6.4 | ADC input voltage switch selection register (SWITCH) ..... | 230 |
| 12.6.5 | Down sampler configuration register (DS_CONF) ..... | 232 |
| 12.6.6 | ADC sequence programming 1 register (SEQ_1) ..... | 233 |
| 12.6.7 | ADC sequence programming 2 register (SEQ_2) ..... | 234 |
| 12.6.8 | ADC gain and offset correction 1 register (COMP_1) ..... | 235 |
| 12.6.9 | ADC gain and offset correction 2 register (COMP_2) ..... | 235 |
| 12.6.10 | ADC gain and offset correction 3 register (COMP_3) ..... | 236 |
| 12.6.11 | ADC gain and offset correction 4 register (COMP_4) ..... | 236 |
| 12.6.12 | ADC gain and offset selection register (COMP_SEL) ..... | 237 |
| 12.6.13 | ADC watchdog threshold register (WD_TH) ..... | 239 |
| 12.6.14 | ADC watchdog configuration register (WD_CONF) ..... | 240 |
| 12.6.15 | Down sampler data out register (DS_DATAOUT) ..... | 241 |
| 12.6.16 | ADC interrupt status register (IRQ_STATUS) ..... | 242 |
| 12.6.17 | ADC Interrupt enable register (IRQ_ENABLE) ..... | 244 |
| 12.6.18 | ADC register map ..... | 245 |
| 13 | Public key accelerator (PKA) ..... | 247 |
| 13.1 | Introduction ..... | 247 |
| 13.2 | PKA main features ..... | 247 |
| 13.3 | PKA functional description ..... | 247 |
| 13.3.1 | Enabling/disabling PKA ..... | 248 |
| 13.3.2 | PKA RAM ..... | 248 |
| 13.3.3 | Executing a PKA operation ..... | 248 |
| 13.3.4 | Security level ..... | 249 |
| 13.3.5 | PKA error management ..... | 249 |
| 13.4 | Operating modes ..... | 250 |
| 13.4.1 | Compute Montgomery parameter ..... | 251 |
| 13.4.2 | Compute modular exponentiation ..... | 251 |
| 13.4.3 | Compute the ECC scalar multiplication ..... | 252 |
| 13.4.4 | Point check ..... | 253 |
| 13.4.5 | ECDSA sign ..... | 255 |
| 13.4.6 | ECDSA verification ..... | 257 |
| 13.4.7 | RSA CRT exponentiation ..... | 258 |
| 13.4.8 | Modular reduction ..... | 258 |
| 13.4.9 | Arithmetic addition ..... | 259 |
| 13.4.10 | Arithmetic subtraction | 260 |
| 13.4.11 | Comparison | 261 |
| 13.4.12 | Arithmetic multiplication | 262 |
| 13.4.13 | Modular addition | 262 |
| 13.4.14 | Modular inversion | 262 |
| 13.4.15 | Modular subtraction | 263 |
| 13.4.16 | Montgomery multiplication | 264 |
| 13.4.17 | ECC complete addition | 264 |
| 13.4.18 | ECC double base ladder | 266 |
| 13.5 | Processing time | 267 |
| 13.5.1 | PKA interrupts | 269 |
| 13.6 | PKA registers | 270 |
| 13.6.1 | PKA control register (PKA_CR) | 270 |
| 13.6.2 | PKA status register (PKA_SR) | 272 |
| 13.6.3 | PKA clear flag register (PKA_CLRFR) | 273 |
| 13.6.4 | PKA RAM memory | 274 |
| 13.6.5 | PKA register map | 274 |
| 14 | True random number generator (TRNG) | 275 |
| 14.1 | Overview | 275 |
| 14.2 | Features | 275 |
| 14.3 | TRNG block diagram | 276 |
| 14.4 | TRNG functional description | 277 |
| 14.5 | TRNG register access | 279 |
| 14.6 | Memory map | 279 |
| 14.7 | TRNG registers | 281 |
| 14.7.1 | Core Control Register (TRNG_CR) | 281 |
| 14.7.2 | Core Status Register (TRNG_SR) | 282 |
| 14.7.3 | 32-bit Random Value (TRNG_VAL) | 284 |
| 14.7.4 | Oscillator Control Register (TRNG_OSCS_CR) | 285 |
| 14.7.5 | Post Processing Control Register (TRNG_POSTP_CR) | 286 |
| 14.7.6 | Post Processing Status Register (TRNG_POSTP_SR) | 287 |
| 14.7.7 | Bits 31 to 0 of AES 128-bit Default Key (TRNG_DEFKEY0) | 288 |
| 14.7.8 | Bits 63 to 32 of AES 128-bit Default Key (TRNG_DEFKEY1) | 288 |
| 14.7.9 | Bits 95 to 64 of AES 128-bit Default Key (TRNG_DEFKEY2) | 289 |
| 14.7.10 | Bits 127 to 96 of AES 128-bit Default Key (TRNG_DEFKEY3) | 289 |
| 14.7.11 | Health Test Control Register (TRNG_HEALTH_CR) ..... | 290 |
| 14.7.12 | OSC1 Health Tests Control Register (TRNG_HEALTH_OSC1_CR) .. | 291 |
| 14.7.13 | OSC2 Health Tests Control Register (TRNG_HEALTH_OSC2_CR) .. | 292 |
| 14.7.14 | OSC3 Health Tests Control Register (TRNG_HEALTH_OSC3_CR) .. | 293 |
| 14.7.15 | OSC1 Health Tests Status Register (TRNG_HEALTH_OSC1_SR) .. | 294 |
| 14.7.16 | OSC2 Health Tests Status Register (TRNG_HEALTH_OSC2_SR) .. | 295 |
| 14.7.17 | OSC3 Health Tests Status Register (TRNG_HEALTH_OSC3_SR) .. | 296 |
| 14.7.18 | TRNG Interrupt Control Register (TRNG_IRQ_CR) ..... | 297 |
| 14.7.19 | Interrupt Status Register (TRNG_IRQ_SR) ..... | 298 |
| 15 | Cyclic redundancy check calculation unit (CRC) ..... | 299 |
| 15.1 | Introduction ..... | 299 |
| 15.2 | CRC main features ..... | 299 |
| 15.3 | CRC functional description ..... | 300 |
| 15.3.1 | CRC block diagram ..... | 300 |
| 15.3.2 | CRC operation ..... | 300 |
| 15.4 | CRC registers ..... | 302 |
| 15.4.1 | Data register (CRC_DR) ..... | 302 |
| 15.4.2 | Independent data register (CRC_IDR) ..... | 302 |
| 15.4.3 | Control register (CRC_CR) ..... | 303 |
| 15.4.4 | Initial CRC value (CRC_INIT) ..... | 304 |
| 15.4.5 | CRC polynomial (CRC_POL) ..... | 304 |
| 15.4.6 | CRC register map ..... | 305 |
| 16 | General purpose timer (TIM2) ..... | 306 |
| 16.1 | TIM2 introduction ..... | 306 |
| 16.2 | TIM2 main features ..... | 306 |
| 16.3 | TIM2 functional description ..... | 308 |
| 16.3.1 | Time-base unit ..... | 308 |
| 16.3.2 | Counter modes ..... | 309 |
| 16.3.3 | Repetition counter ..... | 317 |
| 16.3.4 | External trigger input ..... | 319 |
| 16.3.5 | Clock selection ..... | 319 |
| 16.3.6 | Capture/compare channels ..... | 322 |
| 16.3.7 | Input capture mode ..... | 324 |
| 16.3.8 | PWM input mode ..... | 325 |
| 16.3.9 | Forced output mode ..... | 326 |
| 16.3.10 | Output compare mode ..... | 326 |
| 16.3.11 | PWM mode ..... | 328 |
| 16.3.12 | Asymmetric PWM mode ..... | 331 |
| 16.3.13 | Combined PWM mode ..... | 331 |
| 16.3.14 | Clearing the OCxREF signal on an external event ..... | 332 |
| 16.3.15 | One-pulse mode ..... | 334 |
| 16.3.16 | Retriggerable one pulse mode (OPM) ..... | 335 |
| 16.3.17 | Encoder interface mode ..... | 336 |
| 16.3.18 | UIF bit remapping ..... | 338 |
| 16.3.19 | Timer input XOR function ..... | 339 |
| 16.3.20 | DMA burst mode ..... | 339 |
| 16.4 | TIM2 registers ..... | 341 |
| 16.4.1 | TIM2 control register 1 (TIMx_CR1) ..... | 341 |
| 16.4.2 | TIM2 control register 2 (TIMx_CR2) ..... | 343 |
| 16.4.3 | TIM2 slave mode control register (TIMx_SMCR) ..... | 344 |
| 16.4.4 | TIM2 DMA/interrupt enable register (TIMx_DIER) ..... | 347 |
| 16.4.5 | TIM2 status register (TIMx_SR) ..... | 348 |
| 16.4.6 | TIM2 event generation register (TIMx_EGR) ..... | 350 |
| 16.4.7 | TIM2 capture/compare mode register 1 (TIMx_CCMR1) ..... | 351 |
| 16.4.8 | TIM2 capture/compare mode register 2 (TIMx_CCMR2) ..... | 355 |
| 16.4.9 | TIM2 capture/compare enable register (TIMx_CCER) ..... | 356 |
| 16.4.10 | TIM2 counter (TIMx_CNT) ..... | 358 |
| 16.4.11 | TIM2 prescaler (TIMx_PSC) ..... | 358 |
| 16.4.12 | TIM2 auto-reload register (TIMx_ARR) ..... | 359 |
| 16.4.13 | TIM2 repetition counter register (TIMx_RCR) ..... | 359 |
| 16.4.14 | TIM2 capture/compare register 1 (TIMx_CCR1) ..... | 360 |
| 16.4.15 | TIM2 capture/compare register 2 (TIMx_CCR2) ..... | 361 |
| 16.4.16 | TIM2 capture/compare register 3 (TIMx_CCR3) ..... | 361 |
| 16.4.17 | TIM2 capture/compare register 4 (TIMx_CCR4) ..... | 362 |
| 16.4.18 | TIM2 DMA control register (TIM2_DCR) ..... | 362 |
| 16.4.19 | TIM2 DMA address for full transfer (TIM2_DMAR) ..... | 363 |
| 16.4.20 | TIM2 input selection register (TIM2_TISEL) ..... | 364 |
| 16.4.21 | TIM2 register map ..... | 365 |
| 17 | General-purpose timers (TIM16/17) ..... | 367 |
| 17.1 | TIM16/17 introduction ..... | 367 |
| 17.2 | TIM16/TIM17 main features ..... | 367 |
| 17.3 | TIM16/17 functional description ..... | 369 |
| 17.3.1 | Time-base unit ..... | 369 |
| 17.3.2 | Counter modes ..... | 371 |
| 17.3.3 | Repetition counter ..... | 374 |
| 17.3.4 | Clock selection ..... | 376 |
| 17.3.5 | Capture/compare channels ..... | 376 |
| 17.3.6 | Input capture mode ..... | 378 |
| 17.3.7 | Forced output mode ..... | 379 |
| 17.3.8 | Output compare mode ..... | 380 |
| 17.3.9 | PWM mode ..... | 381 |
| 17.3.10 | Outputs and dead-time insertion ..... | 382 |
| 17.3.11 | Using the break function ..... | 384 |
| 17.3.12 | Bidirectional break inputs ..... | 387 |
| 17.3.13 | One-pulse mode ..... | 389 |
| 17.3.14 | UIF bit remapping ..... | 390 |
| 17.3.15 | DMA burst mode ..... | 390 |
| 17.4 | TIM16/TIM17 registers ..... | 392 |
| 17.4.1 | TIM16 and TIM17 control register 1 (TIMx_CR1) ..... | 392 |
| 17.4.2 | TIM16 and TIM17 control register 2 (TIMx_CR2) ..... | 394 |
| 17.4.3 | TIM16 and TIM17 DMA/interrupt enable register (TIMx_DIER) ..... | 395 |
| 17.4.4 | TIM16 and TIM17 status register (TIMx_SR) ..... | 396 |
| 17.4.5 | TIM16 and TIM17 event generation register (TIMx_EGR) ..... | 397 |
| 17.4.6 | TIM16 and TIM17 capture/compare mode register 1 (TIMx_CCMR1) ..... | 398 |
| 17.4.7 | TIM16 and TIM17 capture/compare enable register (TIMx_CCER) ..... | 401 |
| 17.4.8 | TIM16 and TIM17 counter (TIMx_CNT) ..... | 403 |
| 17.4.9 | TIM16 and TIM17 prescaler (TIMx_PSC) ..... | 403 |
| 17.4.10 | TIM16 and TIM17 auto-reload register (TIMx_ARR) ..... | 403 |
| 17.4.11 | TIM16 and TIM17 repetition counter register (TIMx_RCR) ..... | 404 |
| 17.4.12 | TIM16 and TIM17 capture/compare register 1 (TIMx_CCR1) ..... | 404 |
| 17.4.13 | TIM16 and TIM17 break and dead-time register (TIMx_BDTR) ..... | 405 |
| 17.4.14 | TIM16 and TIM17 DMA control register (TIMx_DCR) ..... | 408 |
| 17.4.15 | TIM16 and TIM17 DMA address for full transfer (TIMx_DMAR) ..... | 408 |
| 17.4.16 | TIM17 option register 1 (TIM17_OR1) ..... | 409 |
| 17.4.17 | TIM16 and TIM17 alternate function register 1 (TIMx_AF1) ..... | 410 |
| 17.4.18 | TIM16 input selection register (TIM16_TISEL) ..... | 411 |
| 17.4.19 | TIM16/TIM17 register map ..... | 412 |
| 18 | Infrared interface (IRTIM) ..... | 414 |
| 19 | Real-time clock (RTC) ..... | 415 |
| 19.1 | Introduction ..... | 415 |
| 19.2 | RTC main features ..... | 415 |
| 19.3 | RTC functional description ..... | 416 |
| 19.3.1 | RTC block diagram ..... | 416 |
| 19.3.2 | Clock and prescalers ..... | 416 |
| 19.3.3 | Real-time clock and calendar ..... | 417 |
| 19.3.4 | Programmable alarm ..... | 417 |
| 19.3.5 | Periodic auto-wakeup ..... | 418 |
| 19.3.6 | RTC initialization and configuration ..... | 419 |
| 19.3.7 | Reading the calendar ..... | 420 |
| 19.3.8 | Resetting the RTC ..... | 421 |
| 19.3.9 | RTC synchronization ..... | 421 |
| 19.3.10 | RTC smooth digital calibration ..... | 422 |
| 19.3.11 | Calibration clock output ..... | 424 |
| 19.3.12 | Alarm output ..... | 424 |
| 19.4 | RTC low power modes ..... | 425 |
| 19.5 | RTC interrupts ..... | 425 |
| 19.6 | RTC registers ..... | 426 |
| 19.6.1 | RTC time register (RTC_TR) ..... | 426 |
| 19.6.2 | RTC date register (RTC_DR) ..... | 427 |
| 19.6.3 | RTC control register (RTC_CR) ..... | 428 |
| 19.6.4 | RTC initialization and status register (RTC_ISR) ..... | 430 |
| 19.6.5 | RTC prescaler register (RTC_PRER) ..... | 432 |
| 19.6.6 | RTC wakeup timer register (RTC_WUTR) ..... | 433 |
| 19.6.7 | RTC alarm A register (RTC_ALRMAR) ..... | 434 |
| 19.6.8 | RTC write protection register (RTC_WPR) ..... | 435 |
| 19.6.9 | RTC sub second register (RTC_SSR) ..... | 436 |
| 19.6.10 | RTC shift control register (RTC_SHIFTR) ..... | 437 |
| 19.6.11 | RTC calibration register (RTC_CALR) ..... | 438 |
| 19.6.12 | RTC alarm A sub second register (RTC_ALRMASSR) ..... | 439 |
| 19.6.13 | RTC backup registers (RTC_BKPxR) ..... | 440 |
| 19.6.14 | RTC register map ..... | 441 |
| 20 | Independent watchdog (IWDG) . . . . . | 443 |
| 20.1 | Introduction . . . . . | 443 |
| 20.2 | IWDG main features . . . . . | 443 |
| 20.3 | IWDG functional description . . . . . | 443 |
| 20.3.1 | Window option . . . . . | 443 |
| 20.3.2 | Register access protection . . . . . | 444 |
| 20.3.3 | Debug mode . . . . . | 444 |
| 20.4 | IWDG registers . . . . . | 446 |
| 20.4.1 | Key register (IWDG_KR) . . . . . | 446 |
| 20.4.2 | Prescaler register (IWDG_PR) . . . . . | 447 |
| 20.4.3 | Reload register (IWDG_RLR) . . . . . | 448 |
| 20.4.4 | Status register (IWDG_SR) . . . . . | 449 |
| 20.4.5 | Window register (IWDG_WINR) . . . . . | 450 |
| 20.4.6 | IWDG register map . . . . . | 451 |
| 21 | Inter-integrated circuit (I2C) interface . . . . . | 452 |
| 21.1 | Introduction . . . . . | 452 |
| 21.2 | I2C main features . . . . . | 452 |
| 21.3 | I2C implementation . . . . . | 453 |
| 21.4 | I2C functional description . . . . . | 453 |
| 21.4.1 | I2C block diagram . . . . . | 454 |
| 21.4.2 | I2C clock requirements . . . . . | 455 |
| 21.4.3 | Mode selection . . . . . | 455 |
| 21.4.4 | I2C initialization . . . . . | 457 |
| 21.4.5 | Software reset . . . . . | 461 |
| 21.4.6 | Data transfer . . . . . | 461 |
| 21.4.7 | I2C target mode . . . . . | 464 |
| 21.4.8 | I2C controller mode . . . . . | 472 |
| 21.4.9 | I2C_TIMINGR register configuration examples . . . . . | 484 |
| 21.4.10 | SMBus specific features . . . . . | 485 |
| 21.4.11 | SMBus initialization . . . . . | 488 |
| 21.4.12 | SMBus: I2C_TIMEOUTR register configuration examples . . . . . | 490 |
| 21.4.13 | SMBus target mode . . . . . | 491 |
| 21.4.14 | Error conditions . . . . . | 498 |
| 21.4.15 | DMA requests . . . . . | 499 |
| 21.5 | I2C interrupts . . . . . | 500 |
| 21.6 | I2C registers | 502 |
| 21.6.1 | Control register 1 (I2C_CR1) | 502 |
| 21.6.2 | Control register 2 (I2C_CR2) | 505 |
| 21.6.3 | Own address 1 register (I2C_OAR1) | 508 |
| 21.6.4 | Own address 2 register (I2C_OAR2) | 509 |
| 21.6.5 | Timing register (I2C_TIMINGR) | 510 |
| 21.6.6 | Timeout register (I2C_TIMEOUTR) | 511 |
| 21.6.7 | Interrupt and status register (I2C_ISR) | 512 |
| 21.6.8 | Interrupt clear register (I2C_ICR) | 515 |
| 21.6.9 | PEC register (I2C_PECR) | 516 |
| 21.6.10 | Receive data register (I2C_RXDR) | 517 |
| 21.6.11 | Transmit data register (I2C_TXDR) | 517 |
| 21.6.12 | I2C register map | 518 |
| 22 | Universal synchronous asynchronous receiver transmitter (USART) | 520 |
| 22.1 | USART introduction | 520 |
| 22.2 | USART main features | 521 |
| 22.3 | USART extended features | 522 |
| 22.4 | USART implementation | 522 |
| 22.5 | USART functional description | 524 |
| 22.5.1 | USART character description | 525 |
| 22.5.2 | FIFOs and thresholds | 528 |
| 22.5.3 | Transmitter | 528 |
| 22.5.4 | Receiver | 532 |
| 22.5.5 | Baud rate generation | 538 |
| 22.5.6 | Tolerance of the USART receiver to clock deviation | 539 |
| 22.5.7 | Auto baud rate detection | 540 |
| 22.5.8 | Multiprocessor communication | 542 |
| 22.5.9 | Modbus communication | 544 |
| 22.5.10 | Parity control | 545 |
| 22.5.11 | LIN (local interconnection network) mode | 546 |
| 22.5.12 | USART synchronous mode | 548 |
| 22.5.13 | Single-wire half-duplex communication | 552 |
| 22.5.14 | Receiver timeout | 553 |
| 22.5.15 | Smartcard mode | 553 |
| 22.5.16 | IrDA SIR ENDEC block | 558 |
| 22.5.17 | Continuous communication using DMA | 560 |
| 22.5.18 | RS232 Hardware flow control and RS485 Driver Enable | 562 |
| 22.6 | USART interrupts | 565 |
| 22.7 | USART registers | 566 |
| 22.7.1 | Control register 1 (USARTx_CR1) | 566 |
| 22.7.2 | Control register 2 (USARTx_CR2) | 570 |
| 22.7.3 | Control register 3 (USARTx_CR3) | 574 |
| 22.7.4 | Baud rate register (USARTx_BRR) | 578 |
| 22.7.5 | Guard time and prescaler register (USARTx_GTPR) | 579 |
| 22.7.6 | Receiver timeout register (USARTx_RTOR) | 580 |
| 22.7.7 | Request register (USARTx_RQR) | 581 |
| 22.7.8 | Interrupt and status register (USARTx_ISR) | 582 |
| 22.7.9 | Interrupt flag clear register (USARTx_ICR) | 588 |
| 22.7.10 | Receive data register (USART_RDR) | 589 |
| 22.7.11 | Transmit data register (USART_TDR) | 590 |
| 22.7.12 | Prescaler register (USARTx_PRESC) | 590 |
| 22.7.13 | USART register map | 592 |
| 23 | Low power universal asynchronous receiver transmitter (LPUART) | 594 |
| 23.1 | LPUART introduction | 594 |
| 23.2 | LPUART main features | 595 |
| 23.3 | LPUART functional description | 596 |
| 23.3.1 | LPUART character description | 598 |
| 23.3.2 | FIFOs and thresholds | 599 |
| 23.3.3 | Transmitter | 600 |
| 23.3.4 | Receiver | 603 |
| 23.3.5 | Baud rate generation | 607 |
| 23.3.6 | Multiprocessor communication | 608 |
| 23.3.7 | Parity control | 610 |
| 23.3.8 | Single-wire half-duplex communication | 611 |
| 23.3.9 | Continuous communication using DMA | 612 |
| 23.3.10 | RS232 Hardware flow control and RS485 Driver Enable | 614 |
| 23.3.11 | Wakeup from Deepstop mode | 617 |
| 23.4 | LPUART interrupts | 619 |
| 23.5 | LPUART registers | 621 |
| 23.5.1 | Control register 1 (LPUART_CR1) | 621 |
| 23.5.2 | Control register 2 (LPUART_CR2) . . . . . | 624 |
| 23.5.3 | Control register 3 (LPUART_CR3) . . . . . | 626 |
| 23.5.4 | Baud rate register (LPUART_BRR) . . . . . | 629 |
| 23.5.5 | Request register (LPUART_RQR) . . . . . | 630 |
| 23.5.6 | Interrupt and status register (LPUART_ISR) . . . . . | 630 |
| 23.5.7 | Interrupt flag clear register (LPUART_ICR) . . . . . | 635 |
| 23.5.8 | Receive data register (LPUART_RDR) . . . . . | 636 |
| 23.5.9 | Transmit data register (LPUART_TDR) . . . . . | 636 |
| 23.5.10 | Prescaler register (LPUART_PRESC) . . . . . | 637 |
| 23.5.11 | LPUART register map . . . . . | 638 |
| 24 | Serial peripheral interface / inter-IC sound (SPI/I2S) . . . . . | 639 |
| 24.1 | Introduction . . . . . | 639 |
| 24.2 | SPI main features . . . . . | 639 |
| 24.3 | I2S main features . . . . . | 640 |
| 24.4 | SPI/I2S implementation . . . . . | 640 |
| 24.5 | SPI functional description . . . . . | 641 |
| 24.5.1 | General description . . . . . | 641 |
| 24.5.2 | Communications between one master and one slave . . . . . | 642 |
| 24.5.3 | Standard multi-slave communication . . . . . | 644 |
| 24.5.4 | Slave select (NSS) pin management . . . . . | 646 |
| 24.5.5 | Communication formats . . . . . | 647 |
| 24.5.6 | SPI configuration . . . . . | 649 |
| 24.5.7 | Procedure for enabling SPI . . . . . | 650 |
| 24.5.8 | Data transmission and reception procedures . . . . . | 650 |
| 24.5.9 | SPI status flags . . . . . | 660 |
| 24.5.10 | SPI error flags . . . . . | 661 |
| 24.5.11 | NSS pulse mode . . . . . | 662 |
| 24.5.12 | TI mode . . . . . | 662 |
| 24.5.13 | CRC calculation . . . . . | 663 |
| 24.6 | SPI interrupts . . . . . | 665 |
| 24.7 | I2S functional description . . . . . | 666 |
| 24.7.1 | I2S general description . . . . . | 666 |
| 24.7.2 | Supported audio protocols . . . . . | 667 |
| 24.7.3 | Clock generator . . . . . | 673 |
| 24.7.4 | I2S master mode . . . . . | 678 |
| 24.7.5 | I2S slave mode | 679 |
| 24.7.6 | I2S error flags | 681 |
| 24.7.7 | DMA features | 682 |
| 24.8 | I2S interrupts | 682 |
| 24.9 | SPI and I2S registers | 683 |
| 24.9.1 | SPI control register 1 (SPIx_CR1) | 683 |
| 24.9.2 | SPI control register 2 (SPIx_CR2) | 685 |
| 24.9.3 | SPI status register (SPIx_SR) | 688 |
| 24.9.4 | SPI data register (SPIx_DR) | 690 |
| 24.9.5 | SPI CRC polynomial register (SPIx_CRCPR) | 690 |
| 24.9.6 | SPI Rx CRC register (SPIx_RXCRCR) | 691 |
| 24.9.7 | SPI Tx CRC register (SPIx_TXCRCR) | 691 |
| 24.9.8 | SPIx_I2S configuration register (SPIx_I2SCFGR) | 692 |
| 24.9.9 | SPIx_I2S prescaler register (SPIx_I2SPR) | 694 |
| 24.9.10 | SPI/I2S register map | 695 |
| 25 | Radio IP | 696 |
| 25.1 | Overview | 696 |
| 25.1.1 | Architecture overview of the Radio controller MR_BLE IP | 696 |
| 25.1.2 | Global scenario for Bluetooth LE protocol usage | 698 |
| 25.1.3 | Miscellaneous features: RF activity monitoring | 698 |
| 25.1.4 | Radio controller MR_BLE IP evolution | 699 |
| 25.2 | Interfacing with the Radio controller MR_BLE IP | 700 |
| 25.2.1 | Interrupt lines to the CPU | 700 |
| 25.2.2 | Interface with the RAM embedded in the SoC | 702 |
| 25.2.3 | Interface with the power, clock and reset controllers | 703 |
| 25.3 | Radio resource manager (RRM) | 704 |
| 25.3.1 | Overview | 704 |
| 25.3.2 | Semaphore | 705 |
| 25.3.3 | UDRA | 705 |
| 25.3.4 | Direct register access | 709 |
| 25.4 | RRM registers | 710 |
| 25.4.1 | UDRA_CTRL0 register (UDRA_CTRL0) | 711 |
| 25.4.2 | UDRA_IRQ_ENABLE register (UDRA_IRQ_ENABLE) | 712 |
| 25.4.3 | UDRA_IRQ_STATUS register (UDRA_IRQ_STATUS) | 713 |
| 25.4.4 | UDRA_RADIO_CFG_PTR register (UDRA_RADIO_CFG_PTR) | 714 |
| 25.4.5 | SEMA_IRQ_ENABLE register (SEMA_IRQ_ENABLE) . . . . . | 714 |
| 25.4.6 | SEMA_IRQ_STATUS register (SEMA_IRQ_STATUS) . . . . . | 715 |
| 25.4.7 | BLE_IRQ_ENABLE register (BLE_IRQ_ENABLE) . . . . . | 716 |
| 25.4.8 | BLE_IRQ_STATUS register (BLE_IRQ_STATUS) . . . . . | 717 |
| 25.4.9 | VP_CPU_CMD_BUS register (VP_CPU_CMD_BUS) . . . . . | 718 |
| 25.4.10 | VP_CPU_SEMA_BUS register (VP_CPU_SEMA_BUS) . . . . . | 719 |
| 25.4.11 | VP_CPU_IRQ_ENABLE register (VP_CPU_IRQ_ENABLE) . . . . . | 720 |
| 25.4.12 | VP_CPU_IRQ_STATUS register (VP_CPU_IRQ_STATUS) . . . . . | 721 |
| 25.5 | Radio registers . . . . . | 722 |
| 25.5.1 | AA0_DIG_USR register (AA0_DIG_USR) . . . . . | 724 |
| 25.5.2 | AA1_DIG_USR register (AA1_DIG_USR) . . . . . | 724 |
| 25.5.3 | AA2_DIG_USR register (AA2_DIG_USR) . . . . . | 725 |
| 25.5.4 | AA3_DIG_USR register (AA3_DIG_USR) . . . . . | 725 |
| 25.5.5 | DEM_MOD_DIG_USR register (DEM_MOD_DIG_USR) . . . . . | 726 |
| 25.5.6 | RADIO_FSM_USR register (RADIO_FSM_USR) . . . . . | 727 |
| 25.5.7 | PHYCTRL_DIG_USR register (PHYCTRL_DIG_USR) . . . . . | 728 |
| 25.5.8 | AFC1_DIG_ENG register (AFC1_DIG_ENG) . . . . . | 729 |
| 25.5.9 | CR0_DIG_ENG register (CR0_DIG_ENG) . . . . . | 730 |
| 25.5.10 | CR0_LR register (CR0_LR) . . . . . | 731 |
| 25.5.11 | VIT_CONF_DIG_ENG register (VIT_CONF_DIG_ENG) . . . . . | 732 |
| 25.5.12 | LR_PD_THR_DIG_ENG register (LR_PD_THR_DIG_ENG) . . . . . | 733 |
| 25.5.13 | LR_RSSI_THR_DIG_ENG register (LR_RSSI_THR_DIG_ENG) . . . . . | 733 |
| 25.5.14 | LR_AAC_THR_DIG_ENG register (LR_AAC_THR_DIG_ENG) . . . . . | 734 |
| 25.5.15 | SYNTHCAL0_DIG_ENG register (SYNTHCAL0_DIG_ENG) . . . . . | 735 |
| 25.5.16 | DTB5_DIG_ENG register (DTB5_DIG_ENG) . . . . . | 736 |
| 25.5.17 | RXADC_ANA_USR register (RXADC_ANA_USR) . . . . . | 737 |
| 25.5.18 | LDO_ANA_ENG register (LDO_ANA_ENG) . . . . . | 738 |
| 25.5.19 | CBIAS0_ANA_ENG register (CBIAS0_ANA_ENG) . . . . . | 739 |
| 25.5.20 | CBIAS1_ANA_ENG register (CBIAS1_ANA_ENG) . . . . . | 740 |
| 25.5.21 | SYNTHCAL0_DIG_OUT register (SYNTHCAL0_DIG_OUT) . . . . . | 741 |
| 25.5.22 | SYNTHCAL1_DIG_OUT register (SYNTHCAL1_DIG_OUT) . . . . . | 741 |
| 25.5.23 | SYNTHCAL2_DIG_OUT register (SYNTHCAL2_DIG_OUT) . . . . . | 742 |
| 25.5.24 | SYNTHCAL3_DIG_OUT register (SYNTHCAL3_DIG_OUT) . . . . . | 742 |
| 25.5.25 | SYNTHCAL4_DIG_OUT register (SYNTHCAL4_DIG_OUT) . . . . . | 743 |
| 25.5.26 | SYNTHCAL5_DIG_OUT register (SYNTHCAL5_DIG_OUT) . . . . . | 743 |
| 25.5.27 | FSM_STATUS_DIG_OUT register (FSM_STATUS_DIG_OUT) . . . . . | 744 |
| 25.5.28 | RSSI0_DIG_OUT register (RSSI0_DIG_OUT) . . . . . | 745 |
| 25.5.29 | RSSI1_DIG_OUT register (RSSI1_DIG_OUT) . . . . . | 745 |
| 25.5.30 | AGC_DIG_OUT register (AGC_DIG_OUT) . . . . . | 746 |
| 25.5.31 | DEMOD_DIG_OUT register (DEMOD_DIG_OUT) . . . . . | 746 |
| 25.5.32 | AGC2_ANA_TST register (AGC2_ANA_TST) . . . . . | 747 |
| 25.5.33 | AGC0_DIG_ENG register (AGC0_DIG_ENG) . . . . . | 748 |
| 25.5.34 | AGC1_DIG_ENG register (AGC1_DIG_ENG) . . . . . | 749 |
| 25.5.35 | AGC10_DIG_ENG register (AGC10_DIG_ENG) . . . . . | 750 |
| 25.5.36 | AGC11_DIG_ENG register (AGC11_DIG_ENG) . . . . . | 751 |
| 25.5.37 | AGC12_DIG_ENG register (AGC12_DIG_ENG) . . . . . | 751 |
| 25.5.38 | AGC13_DIG_ENG register (AGC13_DIG_ENG) . . . . . | 752 |
| 25.5.39 | AGC14_DIG_ENG register (AGC14_DIG_ENG) . . . . . | 752 |
| 25.5.40 | AGC15_DIG_ENG register (AGC15_DIG_ENG) . . . . . | 753 |
| 25.5.41 | AGC16_DIG_ENG register (AGC16_DIG_ENG) . . . . . | 754 |
| 25.5.42 | AGC17_DIG_ENG register (AGC17_DIG_ENG) . . . . . | 754 |
| 25.5.43 | AGC18_DIG_ENG register (AGC18_DIG_ENG) . . . . . | 755 |
| 25.5.44 | AGC19_DIG_ENG register (AGC19_DIG_ENG) . . . . . | 755 |
| 25.5.45 | RXADC_HW_TRIM_OUT register (RXADC_HW_TRIM_OUT) . . . . . | 756 |
| 25.5.46 | CBIAS0_HW_TRIM_OUT register (CBIAS0_HW_TRIM_OUT) . . . . . | 757 |
| 25.5.47 | AGC_HW_TRIM_OUT register (AGC_HW_TRIM_OUT) . . . . . | 758 |
| 25.5.48 | ANTSW0_DIG_USR register (ANTSW0_DIG_USR) . . . . . | 759 |
| 25.5.49 | ANTSW1_DIG_USR register (ANTSW1_DIG_USR) . . . . . | 759 |
| 25.5.50 | ANTSW2_DIG_USR register (ANTSW2_DIG_USR) . . . . . | 760 |
| 25.5.51 | ANTSW3_DIG_USR register (ANTSW3_DIG_USR) . . . . . | 760 |
| 25.5.52 | Trimming information . . . . . | 761 |
| 25.6 | Radio FSM . . . . . | 762 |
| 25.6.1 | Radio FSM sequence . . . . . | 762 |
| 25.6.2 | Radio FSM states overview . . . . . | 764 |
| 25.6.3 | Radio FSM interrupts . . . . . | 765 |
| 25.7 | Radio controller . . . . . | 767 |
| 25.7.1 | Slow clock measurement . . . . . | 767 |
| 25.7.2 | Radio FSM interrupt management . . . . . | 767 |
| 25.8 | Radio controller registers . . . . . | 768 |
| 25.8.1 | RADIO_CONTROL_ID register (RADIO_CONTROL_ID) . . . . . | 768 |
| 25.8.2 | CLK32COUNT_REG register (CLK32COUNT_REG) . . . . . | 769 |
| 25.8.3 | CLK32PERIOD_REG register (CLK32PERIOD_REG) . . . . . | 770 |
| 25.8.4 | CLK32FREQUENCY_REG register (CLK32FREQUENCY_REG) . . . . . | 771 |
| 25.8.5 | RADIO_CONTROL_IRQ_STATUS register (RADIO_CONTROL_IRQ_STATUS) 772 |
| 25.8.6 | RADIO_CONTROL_IRQ_ENABLE register (RADIO_CONTROL_IRQ_ENABLE) 773 |
| 25.9 | IP_BLE ..... 774 |
| 25.9.1 | Overview ..... 774 |
| 25.9.2 | Bluetooth LE link layer sequencer ..... 774 |
| 25.9.3 | IP_BLE interrupts ..... 788 |
| 25.9.4 | IP_BLE RAM table ..... 789 |
| 25.10 | GlobalStatMach registers ..... 793 |
| 25.10.1 | WORD0 register (WORD0) ..... 794 |
| 25.10.2 | WORD1 register (WORD1) ..... 795 |
| 25.10.3 | WORD2 register (WORD2) ..... 796 |
| 25.10.4 | WORD3 register (WORD3) ..... 797 |
| 25.10.5 | WORD4 register (WORD4) ..... 799 |
| 25.10.6 | WORD5 register (WORD5) ..... 800 |
| 25.10.7 | WORD6 register (WORD6) ..... 802 |
| 25.10.8 | StatMach RAM table ..... 803 |
| 25.11 | StatMach registers ..... 807 |
| 25.11.1 | WORD0 register (WORD0) ..... 808 |
| 25.11.2 | WORD1 register (WORD1) ..... 811 |
| 25.11.3 | WORD2 register (WORD2) ..... 812 |
| 25.11.4 | WORD3 register (WORD3) ..... 812 |
| 25.11.5 | WORD4 register (WORD4) ..... 813 |
| 25.11.6 | WORD5 register (WORD5) ..... 813 |
| 25.11.7 | WORD6 register (WORD6) ..... 814 |
| 25.11.8 | WORD7 register (WORD7) ..... 815 |
| 25.11.9 | WORD8 register (WORD8) ..... 816 |
| 25.11.10 | WORD9 register (WORD9) ..... 818 |
| 25.11.11 | WORDA register (WORDA) ..... 819 |
| 25.11.12 | WORDB register (WORDB) ..... 820 |
| 25.11.13 | WORDC register (WORDC) ..... 821 |
| 25.11.14 | WORDD register (WORDD) ..... 821 |
| 25.11.15 | WORDE register (WORDE) ..... 822 |
| 25.11.16 | WORDF register (WORDF) ..... 822 |
| 25.11.17 | WORD10 register (WORD10) ..... 823 |
| 25.11.18 | WORD11 register (WORD11) ..... 823 |
| 25.11.19 WORD12 register (WORD12) ..... | 824 |
| 25.11.20 WORD13 register (WORD13) ..... | 824 |
| 25.11.21 WORD14 register (WORD14) ..... | 825 |
| 25.11.22 WORD15 register (WORD15) ..... | 827 |
| 25.11.23 WORD16 register (WORD16) ..... | 828 |
| 25.11.24 TxRxPack registers ..... | 831 |
| 25.11.25 WORD0 register (WORD0) ..... | 831 |
| 25.11.26 WORD1 register (WORD1) ..... | 832 |
| 25.11.27 WORD2 register (WORD2) ..... | 835 |
| 25.11.28 WORD3 register (WORD3) ..... | 836 |
| 25.11.29 Complementary information ..... | 838 |
| 25.11.30 Angle of arrival (AoA) and angle of departure (AoD) ..... | 844 |
| 25.11.31 AES ..... | 853 |
| 25.11.32 MSB-first feature ..... | 855 |
| 25.12 Bluetooth LE IP registers ..... | 856 |
| 25.12.1 INTERRUPT1REG register (INTERRUPT1REG) ..... | 857 |
| 25.12.2 INTERRUPT2REG register (INTERRUPT2REG) ..... | 860 |
| 25.12.3 TIMEOUTDESTREG register (TIMEOUTDESTREG) ..... | 861 |
| 25.12.4 TIMEOUTREG register (TIMEOUTREG) ..... | 862 |
| 25.12.5 TIMERCAPTUREREG register (TIMERCAPTUREREG) ..... | 862 |
| 25.12.6 CMDREG register (CMDREG) ..... | 863 |
| 25.12.7 STATUSREG register (STATUSREG) ..... | 864 |
| 25.12.8 INTERRUPT1ENABLEREG register (INTERRUPT1ENABLEREG) .. | 867 |
| 25.12.9 INTERRUPT1LATENCYREG register (INTERRUPT1LATENCYREG) .. | 869 |
| 25.12.10 MANAESKEY0REG register (MANAESKEY0REG) ..... | 869 |
| 25.12.11 MANAESKEY1REG register (MANAESKEY1REG) ..... | 870 |
| 25.12.12 MANAESKEY2REG register (MANAESKEY2REG) ..... | 870 |
| 25.12.13 MANAESKEY3REG register (MANAESKEY3REG) ..... | 870 |
| 25.12.14 MANAESCLEARTEXT0REG register (MANAESCLEARTEXT0REG) .. | 871 |
| 25.12.15 MANAESCLEARTEXT1REG register (MANAESCLEARTEXT1REG) .. | 871 |
| 25.12.16 MANAESCLEARTEXT2REG register (MANAESCLEARTEXT2REG) .. | 871 |
| 25.12.17 MANAESCLEARTEXT3REG register (MANAESCLEARTEXT3REG) .. | 872 |
25.12.18 MANAESCIPHERTEXT0REG register (MANAESCIPHERTEXT0REG) ..... | 872 |
25.12.19 MANAESCIPHERTEXT1REG register (MANAESCIPHERTEXT1REG) ..... | 872 |
25.12.20 MANAESCIPHERTEXT2REG register (MANAESCIPHERTEXT2REG) ..... | 873 |
25.12.21 MANAESCIPHERTEXT3REG register (MANAESCIPHERTEXT3REG) ..... | 873 |
| 25.12.22 MANAESCMDREG register (MANAESCMDREG) ..... | 874 |
| 25.12.23 MANAESSTATREG register (MANAESSTATREG) ..... | 874 |
| 25.12.24 AESLEPRIVPOINTERREG register (AESLEPRIVPOINTERREG) ..... | 875 |
| 25.12.25 AESLEPRIVHASHREG register (AESLEPRIVHASHREG) ..... | 875 |
| 25.12.26 AESLEPRIVPRANDREG register (AESLEPRIVPRANDREG) ..... | 876 |
| 25.12.27 AESLEPRIVCMDREG register (AESLEPRIVCMDREG) ..... | 876 |
| 25.12.28 AESLEPRIVSTATREG register (AESLEPRIVSTATREG) ..... | 877 |
| 25.12.29 STATUS2REG register (STATUS2REG) ..... | 878 |
| 25.13 Wakeup block ..... | 880 |
| 25.13.1 Time features management ..... | 880 |
| 25.13.2 Sleep feature management ..... | 881 |
| 25.13.3 Wakeup management ..... | 881 |
| 25.13.4 CPU wakeup management ..... | 883 |
| 25.14 Wakeup registers ..... | 884 |
| 25.14.1 WAKEUP_OFFSET register (WAKEUP_OFFSET) ..... | 885 |
| 25.14.2 ABSOLUTE_TIME register (ABSOLUTE_TIME) ..... | 885 |
25.14.3 MINIMUM_PERIOD_LENGTH register (MINIMUM_PERIOD_LENGTH) ..... | 886 |
25.14.4 AVERAGE_PERIOD_LENGTH register (AVERAGE_PERIOD_LENGTH) ..... | 886 |
25.14.5 MAXIMUM_PERIOD_LENGTH register (MAXIMUM_PERIOD_LENGTH) ..... | 887 |
| 25.14.6 STATISTICS_RESTART register (STATISTICS_RESTART) ..... | 887 |
| 25.14.7 BLUE_WAKEUP_TIME register (BLUE_WAKEUP_TIME) ..... | 888 |
25.14.8 BLUE_SLEEP_REQUEST_MODE register (BLUE_SLEEP_REQUEST_MODE) ..... | 888 |
| 25.14.9 CM0_WAKEUP_TIME register (CM0_WAKEUP_TIME) ..... | 890 |
25.14.10 CM0_SLEEP_REQUEST_MODE register (CM0_SLEEP_REQUEST_MODE) ..... | 891 |
25.14.11 WAKEUP_BLE_IRQ_ENABLE register (WAKEUP_BLE_IRQ_ENABLE) ..... | 892 |
25.14.12 WAKEUP_BLE_IRQ_STATUS register (WAKEUP_BLE_IRQ_STATUS) ..... | 892 |
25.14.13 WAKEUP_CM0_IRQ_ENABLE register (WAKEUP_CM0_IRQ_ENABLE) ..... | 893 |
25.14.14 WAKEUP_CM0_IRQ_STATUS register (WAKEUP_CM0_IRQ_STATUS) ..... | 893 |
| 26 | Debug support (DBG) ..... | 913 |
| 26.1 | SWD debug features ..... | 913 |
| 27 | Device electronic signature (DESIG) ..... | 914 |
| 27.1 | DESIG registers ..... | 914 |
| 27.1.1 | DESIG ADC trimming max diff (DESIG_ADCMAXDIFF) ..... | 914 |
| 27.1.2 | DESIG ADC trimming max negative (DESIG_ADCMAXNEG) ..... | 914 |
| 27.1.3 | DESIG ADC trimming max positive (DESIG_ADCMAXPOS) ..... | 915 |
| 27.1.4 | DESIG ADC trimming mean diff (DESIG_ADCMEANDIFF) ..... | 915 |
| 27.1.5 | DESIG ADC trimming mean negative (DESIG_ADCMEANNEG) ..... | 916 |
| 27.1.6 | DESIG ADC trimming max positive (DESIG_ADCMEANPOS) ..... | 916 |
| 27.1.7 | DESIG ADC trimming min diff (DESIG_ADCMINDIFF) ..... | 917 |
| 27.1.8 | DESIG ADC trimming min negative (DESIG_ADCMINNEG) ..... | 917 |
| 27.1.9 | DESIG ADC trimming min positive (DESIG_ADCMINPOS) ..... | 918 |
| 27.1.10 | DESIG reference temperature register (DESIG_TSREFR) ..... | 918 |
| 27.1.11 | DESIG temperature calibration register (DESIG_TSCAL1R) ..... | 919 |
| 27.1.12 | DESIG package data register (DESIG_PKGR) ..... | 919 |
| 27.1.13 | DESIG 64-bit unique device identifier register 1 (DESIG_UID64R1) ..... | 919 |
| 27.1.14 | DESIG 64-bit unique device identifier register 2 (DESIG_UID64R2) ..... | 920 |
| 27.1.15 | DESIG register map ..... | 921 |
| 28 | Important security notice ..... | 922 |
| 29 | Revision history ..... | 923 |
| Table 1. | Acronyms ..... | 35 |
| Table 2. | Document references ..... | 39 |
| Table 3. | Memory map and peripheral register boundary addresses ..... | 44 |
| Table 4. | SRAM0 reserved locations ..... | 46 |
| Table 5. | Address remapping depending on the REMAP bit ..... | 46 |
| Table 6. | Interrupt vectors ..... | 48 |
| Table 7. | Alternate modes 0, 1 and 2 ..... | 53 |
| Table 8. | Alternate modes 3, 4, and 6 ..... | 54 |
| Table 9. | I/O Analog feature mapping ..... | 55 |
| Table 10. | I/O Additional function mapping ..... | 56 |
| Table 11. | SMPS BOM information ..... | 69 |
| Table 12. | PWRC register map and reset values ..... | 98 |
| Table 13. | Flags versus CPU reboot reason ..... | 101 |
| Table 14. | Wakeup reason flags ..... | 101 |
| Table 15. | CPU versus MR_BLE clock dependency ..... | 108 |
| Table 16. | RCC register map and reset values ..... | 137 |
| Table 17. | Port bit configuration table ..... | 143 |
| Table 18. | GPIO register map and reset values ..... | 163 |
| Table 19. | SYSCFG register map and reset values ..... | 174 |
| Table 20. | Flash memory section address ..... | 176 |
| Table 21. | Command list available ..... | 177 |
| Table 22. | Flash size information ..... | 182 |
| Table 23. | Flash controller register map and reset values ..... | 188 |
| Table 24. | System memory protection ..... | 193 |
| Table 25. | Programmable data width and endian behavior (when PINC=MINC=1 and NDT=4) ..... | 198 |
| Table 26. | DMA interrupt requests ..... | 200 |
| Table 27. | DMA register map and reset values ..... | 207 |
| Table 28. | DMAMUX instantiation ..... | 210 |
| Table 29. | DMAMUX: assignment of multiplexer inputs to resources ..... | 211 |
| Table 30. | DMAMUX register map and reset values ..... | 215 |
| Table 31. | Calibration points ..... | 221 |
| Table 32. | ADC interrupt requests ..... | 222 |
| Table 33. | ADC register map and reset values ..... | 245 |
| Table 34. | Operating modes ..... | 250 |
| Table 35. | Montgomery parameter computation inputs ..... | 251 |
| Table 36. | Montgomery paramater computation outputs ..... | 251 |
| Table 37. | Modular exponentiation computation inputs ..... | 251 |
| Table 38. | ECC scalar multiplication computation inputs ..... | 252 |
| Table 39. | Point check computation inputs ..... | 253 |
| Table 40. | Point check computation outputs ..... | 254 |
| Table 41. | ECDSA sign computation inputs ..... | 255 |
| Table 42. | ECDSA sign computation outputs ..... | 256 |
| Table 43. | Extended ECDSA outputs ..... | 256 |
| Table 44. | ECDSA verification computation inputs ..... | 257 |
| Table 45. | ECDSA verification computation outputs ..... | 257 |
| Table 46. | RSA CRT exponentiation computation inputs ..... | 258 |
| Table 47. | RSA CRT exponentiation computation outputs ..... | 258 |
| Table 48. | Modular reduction computation inputs ..... | 259 |
| Table 49. | Modular reduction computation outputs | 259 |
| Table 50. | Arithmetic addition inputs | 259 |
| Table 51. | Arithmetic subtraction outputs | 259 |
| Table 52. | Arithmetic subtraction inputs | 260 |
| Table 53. | Arithmetic subtraction outputs | 260 |
| Table 54. | Comparison computation inputs | 261 |
| Table 55. | Comparison computation outputs | 261 |
| Table 56. | Arithmetic multiplication inputs | 262 |
| Table 57. | Arithmetic multiplication outputs | 262 |
| Table 58. | Modular addition inputs | 262 |
| Table 59. | Modular addition outputs | 262 |
| Table 60. | Inverse op1 modulus op2 computation inputs | 263 |
| Table 61. | Inverse op1 modulus op2 computation outputs | 263 |
| Table 62. | Modular subtraction inputs | 263 |
| Table 63. | Modular subtraction outputs | 263 |
| Table 64. | Montgomery multiplication inputs | 264 |
| Table 65. | Montgomery multiplication outputs | 264 |
| Table 66. | ECC complete addition inputs | 264 |
| Table 67. | ECC complete addition outputs | 265 |
| Table 68. | ECC double base ladder operation inputs | 266 |
| Table 69. | ECC double base ladder operation outputs | 266 |
| Table 70. | Modular exponentiation | 267 |
| Table 71. | ECC scalar multiplication(1) | 267 |
| Table 72. | ECDSA signature average computation time(1)(2) | 268 |
| Table 73. | ECDSA verification average computation times | 268 |
| Table 74. | Montgomery parameters average computation times | 268 |
| Table 75. | PKA interrupt requests | 269 |
| Table 76. | PKA register map | 274 |
| Table 77. | TRNG memory map and address offsets | 279 |
| Table 78. | PKA register map | 305 |
| Table 79. | Counting direction versus encoder signals | 337 |
| Table 80. | TIMx Internal trigger connection | 346 |
| Table 81. | Output control bits for OCx channels | 358 |
| Table 82. | TIM2 register map and reset values | 365 |
| Table 83. | Break protection disarming conditions | 387 |
| Table 84. | Output control bits for complementary OCx and OCxN channels with break feature | 402 |
| Table 85. | TIM16andTIM17 register map and reset values | 412 |
| Table 86. | RTC register map and reset values | 441 |
| Table 87. | IWDG register map and reset values | 451 |
| Table 88. | I2C implementation | 453 |
| Table 89. | I2C-SMBUS specification data setup and hold times | 460 |
| Table 90. | I2C configuration table | 463 |
| Table 91. | I2C-SMBUS specification clock timings | 473 |
| Table 92. | Examples of timings settings for fI2CCLK = 16 MHz | 484 |
| Table 93. | Examples of timings settings for fI2CCLK = 48 MHz | 485 |
| Table 94. | SMBus timeout specifications | 487 |
| Table 95. | SMBUS with PEC configuration | 489 |
| Table 96. | Examples of TIMEOUTA settings (max \(t_{TIMEOUT} = 25\) ms) | 490 |
| Table 97. | Example of TIMEOUTB settings | 490 |
| Table 98. | Example of TIMEOUTA settings (max \(t_{IDLE} = 50\) μs) | 491 |
| Table 99. | I2C Interrupt requests | 500 |
| Table 100. | I2C register map and reset values | 518 |
| Table 101. | Instance implementation..... | 522 |
| Table 102. | USART / LPUART features ..... | 523 |
| Table 103. | Noise detection from sampled data ..... | 537 |
| Table 104. | Tolerance of the USART receiver when BRR [3:0] = 0000 (high-density devices)..... | 540 |
| Table 105. | Tolerance of the USART receiver when BRR[3:0] is different from 0000 (high-density devices)..... | 540 |
| Table 106. | Frame formats ..... | 545 |
| Table 107. | USART interrupt requests..... | 565 |
| Table 108. | USART register map and reset values ..... | 592 |
| Table 109. | Error calculation for programmed baudrates at fck = 32,768 KHz ..... | 608 |
| Table 110. | Error calculation for programmed baudrates at fck = 16 MHz ..... | 608 |
| Table 111. | Frame formats ..... | 610 |
| Table 113. | LPUART interrupt requests..... | 619 |
| Table 114. | LPUART register map and reset values ..... | 638 |
| Table 115. | SPI implementation..... | 640 |
| Table 116. | SPI interrupt requests..... | 665 |
| Table 117. | Audio frequency precision using I2SCLK = 64 MHz..... | 675 |
| Table 118. | Audio frequency precision using I2SCLK = 32 MHz..... | 676 |
| Table 119. | Audio frequency precision using I2SCLK = 16 MHz..... | 677 |
| Table 120. | I2S interrupt requests ..... | 682 |
| Table 121. | SPI register map and reset values ..... | 695 |
| Table 122. | Radio controller MR_BLE interruptions summary..... | 701 |
| Table 123. | Command start list details ..... | 707 |
| Table 124. | UDRA command format in RAM..... | 708 |
| Table 125. | RRM register list ..... | 710 |
| Table 126. | RADIO register list ..... | 722 |
| Table 127. | Radio FSM states summary (including exit conditions and timings)..... | 764 |
| Table 128. | ACTIVE2 to TX or RX state duration ..... | 765 |
| Table 129. | Radio control register list ..... | 768 |
| Table 130. | Summary of flags and RAM table pointers behavior versus TX Skip command..... | 786 |
| Table 131. | Summary of flags and RAM table pointers behavior versus RX Skip command ..... | 786 |
| Table 132. | GlobalStatMach RAM table ..... | 791 |
| Table 133. | GLOBALSTATMACH_REG_BLOCK register list ..... | 793 |
| Table 134. | StatMach RAM table..... | 803 |
| Table 135. | STATMACH_REG_BLOCK register list ..... | 807 |
| Table 136. | PaPower bit field value and associated output power ..... | 829 |
| Table 137. | TxRxPack RAM table ..... | 830 |
| Table 138. | TxRxPack register list..... | 831 |
| Table 139. | Truth table to select the correct algorithm ..... | 840 |
| Table 140. | RAM table bit fields usage versus algorithm number ..... | 840 |
| Table 141. | Time capture parameters on transmission sequence..... | 841 |
| Table 142. | Time capture parameters on transmission sequence..... | 841 |
| Table 143. | Delays for sequencer 2nd INIT step proposal ..... | 843 |
| Table 144. | Behavior versus CTEDisable and CTEAndSampling bits value..... | 848 |
| Table 145. | BLE IP register list ..... | 856 |
| Table 146. | Wakeup register list ..... | 884 |
| Table 147. | Radio IP register map and reset values ..... | 894 |
| Table 148. | DESIG register map and reset values ..... | 921 |
| Table 149. | Document revision history ..... | 923 |
| Figure 1. | System architecture | 41 |
| Figure 2. | Memory map | 43 |
| Figure 3. | AHB up/down converter | 51 |
| Figure 4. | Power supply domains overview | 58 |
| Figure 5. | Power on reset/power down reset waveform | 59 |
| Figure 6. | Power regulators and SMPS configuration in Run mode | 61 |
| Figure 7. | Power regulators and SMPS configuration in Deepstop mode | 64 |
| Figure 8. | Power regulators and SMPS configuration in Shutdown mode | 66 |
| Figure 9. | PWRC state machine for operating modes transition | 67 |
| Figure 10. | Power supply configuration | 68 |
| Figure 11. | PWRC SMPS state machine overview | 69 |
| Figure 12. | Reset generation | 103 |
| Figure 13. | Clock tree generation | 106 |
| Figure 14. | RCC_LCO / RCC_MCO output clocks | 110 |
| Figure 15. | Input floating/pull up/pull down configurations | 147 |
| Figure 16. | Output configuration | 148 |
| Figure 17. | Alternate function configuration | 149 |
| Figure 18. | High impedance-analog configuration | 149 |
| Figure 19. | DMAMUX block diagram | 212 |
| Figure 20. | ADC top level diagram | 218 |
| Figure 21. | ADC sampling time Tsw and sampling period Ts | 220 |
| Figure 22. | Effect of analog source resistance | 220 |
| Figure 23. | Block diagram | 247 |
| Figure 24. | TRNG core embedding in the TRNG Core Block | 276 |
| Figure 25. | CRC calculation unit block diagram | 300 |
| Figure 26. | General purpose timer block diagram | 307 |
| Figure 27. | Counter timing diagram with prescaler division change from 1 to 2 | 309 |
| Figure 28. | Counter timing diagram with prescaler division change from 1 to 4 | 309 |
| Figure 29. | Counter timing diagram, internal clock divided by 1 | 310 |
| Figure 30. | Counter timing diagram, internal clock divided by 2 | 310 |
| Figure 31. | Counter timing diagram, internal clock divided by 4 | 311 |
| Figure 32. | Counter timing diagram, internal clock divided by N | 311 |
| Figure 33. | Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) | 311 |
| Figure 34. | Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) | 312 |
| Figure 35. | Counter timing diagram, internal clock divided by 1 | 313 |
| Figure 36. | Counter timing diagram, internal clock divided by 2 | 313 |
| Figure 37. | Counter timing diagram, internal clock divided by 4 | 313 |
| Figure 38. | Counter timing diagram, internal clock divided by N | 314 |
| Figure 39. | Counter timing diagram, update event when repetition counter is not used | 314 |
| Figure 40. | Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 | 315 |
| Figure 41. | Counter timing diagram, internal clock divided by 2 | 316 |
| Figure 42. | Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 | 316 |
| Figure 43. | Counter timing diagram, internal clock divided by N | 316 |
| Figure 44. | Counter timing diagram, update event with ARPE=1 (counter underflow) | 317 |
| Figure 45. | Counter timing diagram, Update event with ARPE=1 (counter overflow) | 317 |
| Figure 46. | Update rate examples depending on mode and TIMx_RCR register settings | 318 |
| Figure 47. | External trigger input block | 319 |
| Figure 48. | Control circuit in normal mode, internal clock divided by 1 | 320 |
| Figure 49. | TI2 external clock connection example. .... | 320 |
| Figure 50. | Control circuit in external clock mode 1 ..... | 321 |
| Figure 51. | External trigger input block ..... | 321 |
| Figure 52. | Control circuit in external clock mode 2 ..... | 322 |
| Figure 53. | Capture/compare channel (example: channel 1 input stage) ..... | 322 |
| Figure 54. | Capture/compare channel 1 main circuit ..... | 323 |
| Figure 55. | Output stage of capture/compare channel (channels 4,3,2,1) ..... | 323 |
| Figure 56. | PWM input mode timing ..... | 325 |
| Figure 57. | Output compare mode, toggle on OC1 ..... | 327 |
| Figure 58. | Edge-aligned PWM waveforms (ARR=8) ..... | 329 |
| Figure 59. | Center-aligned PWM waveforms (ARR=8) ..... | 330 |
| Figure 60. | Generation of 2 phase-shifted PWM signals with 50% duty cycle ..... | 331 |
| Figure 61. | Combined PWM mode on channel 1 and 3 ..... | 332 |
| Figure 62. | Clearing TIMx OCxREF ..... | 333 |
| Figure 63. | Example of one pulse mode. .... | 334 |
| Figure 64. | Retrigerrable one pulse mode ..... | 336 |
| Figure 65. | Example of counter operation in encoder interface mode. .... | 337 |
| Figure 66. | Example of encoder interface mode with TI1FP1 polarity inverted. .... | 338 |
| Figure 67. | Measuring time interval between edges on 3 signals ..... | 339 |
| Figure 68. | TIM16 and TIM17 block diagram ..... | 368 |
| Figure 69. | Counter timing diagram with prescaler division change from 1 to 2 ..... | 370 |
| Figure 70. | Counter timing diagram with prescaler division change from 1 to 4 ..... | 370 |
| Figure 71. | Counter timing diagram, internal clock divided by 1 ..... | 371 |
| Figure 72. | Counter timing diagram, internal clock divided by 2 ..... | 372 |
| Figure 73. | Counter timing diagram, internal clock divided by 4 ..... | 372 |
| Figure 74. | Counter timing diagram, internal clock divided by N ..... | 373 |
| Figure 75. | Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) ..... | 373 |
| Figure 76. | Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) ..... | 374 |
| Figure 77. | Update rate examples depending on mode and TIMx_RCR register settings ..... | 375 |
| Figure 78. | Control circuit in normal mode, internal clock divided by 1 ..... | 376 |
| Figure 79. | Capture/compare channel (example: channel 1 input stage) ..... | 377 |
| Figure 80. | Capture/compare channel 1 main circuit ..... | 377 |
| Figure 81. | Output stage of capture/compare channel (channel 1) ..... | 378 |
| Figure 82. | Output compare mode, toggle on OC1 ..... | 381 |
| Figure 83. | Edge-aligned PWM waveforms (ARR=8) ..... | 382 |
| Figure 84. | Complementary output with dead-time insertion. .... | 383 |
| Figure 85. | Dead-time waveforms with delay greater than the negative pulse. .... | 383 |
| Figure 86. | Dead-time waveforms with delay greater than the positive pulse. .... | 383 |
| Figure 87. | Output behavior in response to a break ..... | 386 |
| Figure 88. | Output redirection ..... | 388 |
| Figure 89. | Example of one pulse mode. .... | 389 |
| Figure 90. | IR internal hardware connections with TIM16 and TIM17. .... | 414 |
| Figure 91. | RTC block diagram ..... | 416 |
| Figure 92. | Independent watchdog block diagram ..... | 444 |
| Figure 93. | I2C block diagram ..... | 454 |
| Figure 94. | I2C bus protocol ..... | 456 |
| Figure 95. | Setup and hold timings ..... | 458 |
| Figure 96. | I2C initialization flowchart ..... | 461 |
| Figure 97. | Data reception ..... | 462 |
| Figure 98. | Data transmission ..... | 462 |
| Figure 99. | Target initialization flowchart ..... | 466 |
| Figure 100. | Transfer sequence flowchart for I2C target transmitter, NOSTRETCH=0 ..... | 467 |
| Figure 101. Transfer sequence flowchart for I2C target transmitter, NOSTRETCH=1 | 468 |
| Figure 102. Transfer bus diagrams for I2C target transmitter | 469 |
| Figure 103. Transfer sequence flowchart for target receiver with NOSTRETCH=0 | 470 |
| Figure 104. Transfer sequence flowchart for target receiver with NOSTRETCH=1 | 471 |
| Figure 105. Transfer bus diagrams for I2C target receiver | 471 |
| Figure 106. Controller clock generation | 473 |
| Figure 107. Controller initialization flowchart | 475 |
| Figure 108. 10-bit address read access with HEAD10R=1 | 475 |
| Figure 109. Transfer sequence flowchart for I2C controller transmitter for N≤255 bytes | 477 |
| Figure 110. Transfer sequence flowchart for I2C controller transmitter for N>255 bytes | 478 |
| Figure 111. Transfer bus diagrams for I2C controller transmitter | 479 |
| Figure 112. Transfer sequence flowchart for I2C controller receiver for N≤255 bytes | 481 |
| Figure 113. Transfer sequence flowchart for I2C controller receiver for N >255 bytes | 482 |
| Figure 114. Transfer bus diagrams for I2C controller receiver | 483 |
| Figure 115. Timeout intervals for tLOW:SEXT, tLOW:MEXT | 488 |
| Figure 116. Transfer sequence flowchart for SMBus target transmitter N bytes + PEC | 492 |
| Figure 117. Transfer bus diagrams for SMBus target transmitter (SBC=1) | 492 |
| Figure 118. Transfer sequence flowchart for SMBus target receiver N Bytes + PEC | 494 |
| Figure 119. Bus transfer diagrams for SMBus target receiver (SBC=1) | 495 |
| Figure 120. Bus transfer diagrams for SMBus controller transmitter | 496 |
| Figure 121. Bus transfer diagrams for SMBus controller receiver | 497 |
| Figure 122. I2C interrupt mapping diagram | 501 |
| Figure 123. USART block diagram | 525 |
| Figure 124. Word length programming | 527 |
| Figure 125. Configurable stop bits | 529 |
| Figure 126. TC/TXE behavior when transmitting | 531 |
| Figure 127. Start bit detection when oversampling by 16 or 8 | 532 |
| Figure 128. usart_ker_ck clock divider block diagram | 535 |
| Figure 129. Data sampling when oversampling by 16 | 536 |
| Figure 130. Data sampling when oversampling by 8 | 537 |
| Figure 131. Mute mode using Idle line detection | 543 |
| Figure 132. Mute mode using address mark detection | 544 |
| Figure 133. Break detection in LIN mode (11-bit break length - LBDL bit is set) | 547 |
| Figure 134. Break detection in LIN mode vs. Framing error detection | 548 |
| Figure 135. USART example of synchronous Master transmission | 549 |
| Figure 136. USART data clock timing diagram (M=0) | 549 |
| Figure 137. USART data clock timing diagram (M bits = 01) | 550 |
| Figure 138. RX data setup/hold time | 550 |
| Figure 139. ISO 7816-3 asynchronous protocol | 554 |
| Figure 140. Parity error detection using the 1.5 stop bits | 555 |
| Figure 141. IrDA SIR ENDEC- block diagram | 559 |
| Figure 142. IrDA data modulation (3/16) -Normal Mode | 559 |
| Figure 143. Transmission using DMA | 561 |
| Figure 144. Reception using DMA | 562 |
| Figure 145. Hardware flow control between 2 USARTs | 562 |
| Figure 146. RS232 RTS flow control | 563 |
| Figure 147. RS232 CTS flow control | 564 |
| Figure 148. LPUART Block diagram | 597 |
| Figure 149. LPUART Word length programming | 599 |
| Figure 150. Configurable stop bits | 601 |
| Figure 151. TC/TXE behavior when transmitting | 603 |
| Figure 152. CLock source selection | 606 |
| Figure 153. Mute mode using Idle line detection . . . . . | 609 |
| Figure 154. Mute mode using address mark detection . . . . . | 610 |
| Figure 155. Transmission using DMA . . . . . | 613 |
| Figure 156. Reception using DMA . . . . . | 614 |
| Figure 157. Hardware flow control between 2 LPUARTs . . . . . | 614 |
| Figure 158. RS232 RTS flow control . . . . . | 615 |
| Figure 159. RS232 CTS flow control . . . . . | 616 |
| Figure 160. SPI block diagram . . . . . | 641 |
| Figure 161. Full-duplex single master/ single slave application . . . . . | 642 |
| Figure 162. Half-duplex single master/ single slave application . . . . . | 643 |
Figure 163. Simplex single master/single slave application (master in transmit-only/ slave in receive-only mode) . . . . . | 644 |
| Figure 164. Master and three independent slaves . . . . . | 645 |
| Figure 165. Hardware/software slave select management . . . . . | 647 |
| Figure 166. Data clock timing diagram . . . . . | 648 |
| Figure 167. Data alignment when data length is not equal to 8-bit or 16-bit . . . . . | 649 |
| Figure 168. Packing data in FIFO for transmission and reception . . . . . | 653 |
| Figure 169. Master full duplex communication . . . . . | 656 |
| Figure 170. Slave full duplex communication . . . . . | 657 |
| Figure 171. Master full duplex communication with CRC . . . . . | 658 |
| Figure 172. Master full duplex communication in packed mode . . . . . | 659 |
| Figure 173. NSSP pulse generation in Motorola SPI master mode . . . . . | 662 |
| Figure 174. TI mode transfer . . . . . | 663 |
| Figure 175. I2S block diagram . . . . . | 666 |
| Figure 176. I2S Philips protocol waveforms (16/32-bit full accuracy, CPOL = 0) . . . . . | 668 |
| Figure 177. I2S Philips standard waveforms (24-bit frame with CPOL = 0) . . . . . | 668 |
| Figure 178. Transmitting 0x8EAA33 . . . . . | 669 |
| Figure 179. Receiving 0x8EAA33 . . . . . | 669 |
| Figure 180. I2S Philips standard (16-bit extended to 32-bit packet frame with CPOL = 0) . . . . . | 669 |
| Figure 181. Example of 16-bit data frame extended to 32-bit channel frame . . . . . | 669 |
| Figure 182. MSB Justified 16-bit or 32-bit full-accuracy length with CPOL = 0 . . . . . | 670 |
| Figure 183. MSB justified 24-bit frame length with CPOL = 0 . . . . . | 670 |
| Figure 184. MSB justified 16-bit extended to 32-bit packet frame with CPOL = 0 . . . . . | 670 |
| Figure 185. LSB justified 16-bit or 32-bit full-accuracy with CPOL = 0 . . . . . | 671 |
| Figure 186. LSB justified 24-bit frame length with CPOL = 0 . . . . . | 671 |
| Figure 187. Operations required to transmit 0x3478AE . . . . . | 671 |
| Figure 188. Operations required to receive 0x3478AE . . . . . | 672 |
| Figure 189. LSB justified 16-bit extended to 32-bit packet frame with CPOL = 0 . . . . . | 672 |
| Figure 190. Example of 16-bit data frame extended to 32-bit channel frame . . . . . | 672 |
| Figure 191. PCM standard waveforms (16-bit) . . . . . | 673 |
| Figure 192. PCM standard waveforms (16-bit extended to 32-bit packet frame) . . . . . | 673 |
| Figure 193. Audio sampling frequency definition . . . . . | 674 |
| Figure 194. I2S clock generator architecture . . . . . | 674 |
| Figure 195. Radio controller MR_BLE architecture overview . . . . . | 697 |
| Figure 196. RRM overview . . . . . | 704 |
| Figure 197. UDRA command list mapping in RAM (example) . . . . . | 706 |
| Figure 198. Radio FSM overview . . . . . | 763 |
| Figure 199. Sequencer steps overview . . . . . | 777 |
| Figure 200. Sequencer Initialization steps timing overview . . . . . | 780 |
| Figure 201. TX sequence . . . . . | 783 |
| Figure 202. RX sequence . . . . . | 783 |
| Figure 203. RAM tables dependencies overview . . . . . | 790 |