RM0511-STM32WL30-31-33

ST logo

The ST logo, consisting of a stylized 'S' and 'T' in a dark blue color.

ST logo

RM0511Reference manual


STM32WL30xx/31xx/33xx Arm®-based wireless MCUs with sub-GHz radio solution


Introduction

This reference manual provides complete information on how to use the STM32WL30xx/31xx/33xx MCU memory and peripherals.

The STM32WL30xx/31xx/33xx are powerful and ultra-low-power microcontrollers with sub-GHz radio with an Arm® Cortex®-M0+ core which can operate with various clock sources.

The STM32WL30xx/31xx/33xx are microcontrollers with different memory sizes, packages and peripherals. The devices include ST state-of-the-art patented technology.

STM32WL33xx TX-only device variants (STM32WL33xx-X) are also available. These variants support only the transmitter capability of the Sub-GHz radio IP (MRSUBG).

In this document, any reference to STM32WL33xx devices is also valid for STM32WL33xx-X devices (the only exception being the Radio receiver capability).

For information on device errata with respect to the datasheets and reference manuals:

Contents

1General information39
1.1List of abbreviations for registers39
1.2Glossary40
1.3Acronyms40
1.4Related documents43
2Memory and bus architecture44
2.1System architecture44
2.1.1S0: CPU (Cortex®-M0+) S-bus45
2.1.2S1: DMA-bus45
2.1.3S2-S5: Sub-1 GHz radio system-bus45
2.1.4Bus matrix46
2.2Memory organization46
2.2.1Introduction46
2.2.2Memory map and register boundary addresses48
2.3ARM® Cortex®-M0+51
2.3.1CPU memory remap51
2.3.2Interrupts52
3AHB up/down converter55
3.1AHB up/down converter description55
4I/O operating modes58
5Power controller (PWR)64
5.1Features64
5.2Power supply domains64
5.3Power voltage supervisor67
5.3.1Power On reset POR / Power Down reset (PDR) / Brown-Out reset (BOR)67
5.3.2BORH68
5.3.3Power voltage detection (PVD)68
5.4Operating modes68
5.4.1Run mode68
5.4.2Deepstop mode .....70
5.4.3Shutdown mode .....73
5.4.4Operating modes transition management .....75
5.5SMPS step down regulator .....75
5.5.1SMPS bypass on-the-fly (BOF) .....78
5.6PWR register descriptions .....79
5.6.1Control register 1 (PWR_CR1) .....79
5.6.2Control register 2 (PWR_CR2) .....80
5.6.3Internal source wakeup enable register (PWR_I EWU) .....82
5.6.4Internal source wakeup polarity register (PWR_IWUP) .....83
5.6.5Internal source wakeup status register (PWR_IWUF) .....84
5.6.6Status register 2 (PWR_SR2) .....86
5.6.7Control register 5 (PWR_CR5) .....87
5.6.8I/O Port A pull-up control register (PWR_PUCRA) .....90
5.6.9I/O Port A pull-down control register (PWR_PDCRA) .....91
5.6.10I/O Port B pull-up control register (PWR_PUCRB) .....92
5.6.11I/O Port B pull-down control register (PWR_PDCRB) .....92
5.6.12Port A wakeup enable register (PWR_EWUA) .....93
5.6.13Port A wakeup polarity register (PWR_WUPA) .....93
5.6.14Port A wakeup status register (PWR_WUFA) .....94
5.6.15Port B wakeup enable register (PWR_EWUB) .....94
5.6.16Port B wakeup polarity register (PWR_WUPB) .....95
5.6.17Port B wakeup status register (PWR_WUFB) .....95
5.6.18Shutdown I/O wakeup enable register (PWR_SDWN_WUEN) .....96
5.6.19Shutdown I/O wakeup polarity register (PWR_SDWN_WUPOL) .....96
5.6.20Shutdown I/O Wakeup flag register (PWR_SDWN_WUF) .....97
5.6.21Bypass on-the-fly tuning register (PWR_BOF_TUNE) .....98
5.6.22Debug register (PWR_DBGR) .....99
5.6.23Extended status and reset register (PWR_EXTSRR) .....100
5.6.24Debug SMPS register (PWR_DBGSMPS) .....101
5.6.25Trimming values from engineering register (PWR_TRIMR) .....102
5.6.26Software trimming values register (PWR_ENGTRIM) .....103
5.7PWR register map .....104
5.8Programmer's model .....107
5.8.1Reset reason management .....107
5.8.2SMPS output level re-programming .....108
6Reset and clock controller (RCC)109
6.1Reset management109
6.1.1General description109
6.1.2Power reset110
6.1.3Watchdog reset110
6.1.4LOCKUP reset110
6.1.5System reset request110
6.1.6Deepstop exit111
6.2Clock management111
6.2.1Peripheral clock details113
6.2.2Slow clock frequency details115
6.3System frequency switch while MR_SUBG is used115
6.4Clock observation on external pad116
6.5IO booster117
6.6RCC register descriptions118
6.6.1Clock source control register (RCC_CR)118
6.6.2Clock configuration register (RCC_CFGR)121
6.6.3Clock source software calibration register (RCC_CSSWCR)124
6.6.4SMPS clock variable rate multiplier register (RCC_KRMR)125
6.6.5Clock interrupt enable register (RCC_CIER)126
6.6.6Clock Interrupt flag register (RCC_CIFR)128
6.6.7Clock switch command register (RCC_CSCMDR)130
6.6.8AHB0 macrocell reset register (RCC_AHBRSTR)132
6.6.9APB0 macrocell reset register (RCC_APB0RSTR)133
6.6.10APB1 macrocell reset register (RCC_APB1RSTR)135
6.6.11APB2 macrocell reset register (RCC_APB2RSTR)136
6.6.12AHB0 macrocell clock enable register (RCC_AHBENR)137
6.6.13APB0 macrocell clock enable register (RCC_APB0ENR)138
6.6.14APB1 macrocell clock enable register (RCC_APB1ENR)140
6.6.15APB2 macrocell clock enable register (RCC_APB2ENR)141
6.6.16V33 reset status register (RCC_CSR)142
6.6.17RF software high-speed external register (RCC_RFSWHSECR)143
6.6.18RF high speed external register (RCC_RFHSECR)144
6.6.19AHB sleep mode enable register (RCC_AHBSMENR)145
6.6.20APB0 sleep mode enable register (RCC_APB0SMENR)147
6.6.21APB1 sleep mode enable register (RCC_APB1SMENR)149
6.7RCC register map .....151
6.8Programmer's model .....155
6.8.1Switch the system on the PLL64M clock tree .....155
6.8.2Use the direct HSE instead of the RC64MPLL block .....155
6.8.3Changing the system clock frequency while the MR_SUBGHz is enabled .....155
7General-purpose I/Os (GPIO) .....157
7.1Introduction .....157
7.2GPIO main features .....157
7.3GPIO functional description .....157
7.3.1General-purpose I/O (GPIO) .....160
7.3.2I/O pin alternate function multiplexer and mapping .....160
7.3.3I/O port control registers .....161
7.3.4I/O port data registers .....161
7.3.5I/O data bitwise handling .....162
7.3.6GPIO locking mechanism .....162
7.3.7I/O alternate function input/output .....162
7.3.8External interrupt/wakeup lines .....163
7.3.9Input configuration .....163
7.3.10Output configuration .....164
7.3.11Alternate function configuration .....164
7.3.12Analog configuration .....165
7.3.13Using the LSE oscillator pins as GPIOs .....166
7.4GPIO registers .....167
7.4.1GPIOA port mode register (GPIOA_MODER) .....167
7.4.2GPIOB port mode register (GPIOB_MODER) .....168
7.4.3GPIOA port output type register (GPIOA_OTYPER) .....168
7.4.4GPIOB port output type register (GPIOB_OTYPER) .....169
7.4.5GPIOA port output speed register (GPIOA_OSPEEDR) .....169
7.4.6GPIOB port output speed register (GPIOB_OSPEEDR) .....170
7.4.7GPIOA port pull-up/pull-down register (GPIOA_PUPDR) .....170
7.4.8GPIOB port pull-up/pull-down register (GPIOB_PUPDR) .....171
7.4.9GPIOA port input data register (GPIOA_IDR) .....171
7.4.10GPIOB port input data register (GPIOB_IDR) .....172
7.4.11GPIOA port output data register (GPIOA_ODR) .....172
7.4.12GPIOB port output data register (GPIOB_ODR) .....173
7.4.13GPIOA port bit set/reset register (GPIOA_BSRR) . . . . .173
7.4.14GPIOB port bit set/reset register (GPIOB_BSRR) . . . . .174
7.4.15GPIOA port configuration lock register (GPIOA_LCKR) . . . . .175
7.4.16GPIOB port configuration lock register (GPIOB_LCKR) . . . . .176
7.4.17GPIOA alternate function low register (GPIOA_AFRL) . . . . .177
7.4.18GPIOB alternate function low register (GPIOB_AFRL) . . . . .177
7.4.19GPIOA alternate function high register (GPIOA_AFRH) . . . . .178
7.4.20GPIOB alternate function high register (GPIOB_AFRH) . . . . .178
7.4.21GPIOA port bit reset register (GPIOA_BRR) . . . . .179
7.4.22GPIOB port bit reset register (GPIOB_BRR) . . . . .179
7.5GPIO register map . . . . .180
8System controller (SYSCFG) . . . . .182
8.1SYSCFG main features . . . . .182
8.2System controller register descriptions . . . . .183
8.2.1Die ID register (DIE_ID) . . . . .183
8.2.2JTAG ID register (JTAG_ID) . . . . .184
8.2.3Fast-Mode Plus pin capability control register (I2C_FMP_CTRL) . . . . .185
8.2.4I/O Interrupt detection type register (IO_DTR) . . . . .187
8.2.5I/O interrupt edge register (IO_IBER) . . . . .188
8.2.6I/O interrupt polarity event register (IO_IEVR) . . . . .188
8.2.7I/O interrupt enable register (IO_IER) . . . . .189
8.2.8I/O interrupt status and clear register (IO_ISCR) . . . . .189
8.2.9Power controller interrupt enable register (PWR_IER) . . . . .190
8.2.10Power controller interrupt status and clear register (PWR_ISCR) . . . . .191
8.2.11I/O analog switch control register (GPIO_SWA_CTRL) . . . . .192
8.2.12Internal asynchronous interrupt detection type register (INTAI_DTR) . . . . .193
8.2.13Internal asynchronous interrupt edge register (INTAI_IBER) . . . . .194
8.2.14Internal asynchronous interrupt polarity event register (INTAI_IEVR) . . . . .195
8.2.15Internal asynchronous interrupt enable register (INTAI_IER) . . . . .196
8.2.16Internal asynchronous interrupt detection status and clear register (INTAI_ISCR) . . . . .197
8.2.17SYSCFG status register 1 (SYSCFG_SR1) . . . . .198
8.3System controller register map . . . . .199
9Embedded flash memory (FLASH) . . . . .202
9.1Flash main features . . . . .202
9.2Description .....203
9.3Flash controller register descriptions .....204
9.3.1Command register (COMMAND) .....204
9.3.2Configuration register (CONFIG) .....205
9.3.3Interrupt status register (IRQSTAT) .....206
9.3.4Interrupt mask register (IRQMASK) .....207
9.3.5Raw status register (IRQRAW) .....208
9.3.6Size register (SIZE) .....209
9.3.7Address register (ADDRESS) .....210
9.3.8Linear feedback shift register (LFSRVAL) .....211
9.4Main flash page protection registers 0 to 1 .....212
9.4.1Page protection register 0 (PAGEPROT0) .....212
9.4.2Page protection register 1 (PAGEPROT1) .....213
9.5Data registers 0 to 3 .....213
9.5.1Data 1 register (DATA1)) .....214
9.5.2Data 2 register (DATA2) .....214
9.5.3Data 3 register (DATA3) .....214
9.6Flash controller register map .....215
9.7Programmers model .....216
9.7.1General information .....216
9.7.2Write page protection example .....217
9.7.3Read function examples .....217
9.7.4Erase function examples .....218
9.7.5Enabling protection example .....219
9.7.6Write page protection example .....220
9.7.7Write function examples .....220
9.7.8Other command usage descriptions .....221
10DMA controller (DMA) .....222
10.1DMA introduction .....222
10.2DMA main features .....222
10.3DMA functional description .....222
10.3.1DMA transactions .....222
10.3.2Arbiter .....223
10.3.3DMA channels .....223
10.3.4Programmable data width, data alignment and endians .....225
10.3.5Error management226
10.3.6Interrupts227
10.3.7DMA request mapping227
10.4DMA registers228
10.4.1DMA interrupt status register (DMA_ISR)228
10.4.2DMA interrupt flag clear register (DMA_IFCR)229
10.4.3DMA channel x configuration register (DMA_CCRx) (x = 1..8,
where x = channel number)
230
10.4.4DMA channel x number of data register (DMA_CNDTRx) (x = 1..8,
where x = channel number)
232
10.4.5DMA channel x peripheral address register (DMA_CPARx) (x = 1..8,
where x = channel number)
232
10.4.6DMA channel x memory address register (DMA_CMARx) (x = 1..8,
where x = channel number)
233
10.5DMA register map234
11DMA request multiplexer (DMAMUX)237
11.1Introduction237
11.2DMAMUX main features237
11.3DMAMUX implementation237
11.3.1DMAMUX instantiation237
11.3.2DMAMUX mapping238
11.4DMAMUX functional description239
11.4.1DMAMUX block diagram239
11.4.2DMAMUX channels239
11.4.3DMAMUX request line multiplexer240
11.5DMAMUX registers240
11.5.1DMAMUX request line multiplexer Channel x Configuration Register
(DMAMUX_CxCR)
240
11.6DMAMUX register map241
12Analog digital converter (ADC)243
12.1Features243
12.2ADC presentation243
12.2.1Temperature sensor subsystem (STM32WL31xx/33xx only)245
12.2.2ADC input modes conversion245
12.2.3Down sampler (DS)247
12.3Interrupts248
12.4DMA interface248
12.5ADC mode248
12.5.1ADC mode overview249
12.6ADC registers description251
12.6.1Version register (VERSION_ID)251
12.6.2ADC configuration register (CONF)251
12.6.3ADC control register (CTRL)253
12.6.4ADC input voltage switch selection register (SWITCH)254
12.6.5Down sampler configuration register (DS_CONF)256
12.6.6ADC sequence programming 1 register (SEQ_1)257
12.6.7ADC sequence programming 2 register (SEQ_2)258
12.6.8ADC gain and offset correction 1 register (COMP_1)259
12.6.9ADC gain and offset correction 2 register (COMP_2)259
12.6.10ADC gain and offset correction 3 register (COMP_3)259
12.6.11ADC gain and offset correction 4 register (COMP_4)260
12.6.12ADC gain and offset selection register (COMP_SEL)260
12.6.13ADC watchdog threshold register (WD_TH)262
12.6.14ADC watchdog configuration register (WD_CONF)262
12.6.15Down Sampler data out register (DS_DATAOUT)263
12.6.16ADC Interrupt status register (IRQ_STATUS)263
12.6.17ADC Interrupt enable register (IRQ_ENABLE)264
12.7ADC register map266
13Comparator (COMP)268
13.1Introduction268
13.2COMP main features268
13.3Comp functional description268
13.3.1COMP block diagram268
13.3.2COMP pins and internal signals269
13.3.3COMP reset and clocks269
13.3.4Comparator LOCK mechanism269
13.3.5Hysteresis270
13.3.6Comparator output blanking function270
13.3.7COMP power and speed modes271
13.4Comp low-power modes272
13.5Comp interrupts and wakeup .....272
13.6Comp registers .....273
13.6.1Comparator control and status register (COMP_CSR) .....273
13.7COMP register map .....275
14Digital-to-analog converter (DAC) .....276
14.1Introduction .....276
14.2DAC main features .....276
14.3DAC block diagram .....277
14.4DAC functional description .....278
14.4.1DAC channel enable .....278
14.4.2DAC outputs enable .....278
14.4.3DAC conversion .....278
14.4.4DAC output voltage .....278
14.4.5DAC trigger selection .....279
14.4.6DMA request .....279
14.4.7Noise generation .....279
14.4.8Triangle-wave generation .....280
14.5DAC registers .....281
14.5.1DAC control register (DAC_CR) .....281
14.5.2DAC software trigger register (DAC_SWTRIGR) .....283
14.5.3DAC channel data holding register (DAC_DHR) .....283
14.5.4DAC channel data output register (DAC_DOR) .....284
14.5.5DAC status register (DAC_SR) .....284
14.6DAC register map .....285
15LC sensor controller (LCSC) .....286
15.1Introduction .....286
15.2LCSC main features .....286
15.3LCSC functional description .....287
15.3.1LCSC block diagram .....287
15.3.2Overview .....288
15.3.3LCSC reset and clocks .....290
15.3.4LCSC programming .....290
15.4LCSC comparator count statistics and monitoring .....293
15.5LCSC status .....295
15.6LCSC interrupts295
15.7LCSC low-power modes wakeup295
15.8LCSC registers296
15.8.1LCSC control register 0 (LCSC_CR0)296
15.8.2LCSC control register 1 (LCSC_CR1)297
15.8.3LCSC control register 2 (LCSC_CR2)298
15.8.4LCSC pulse configuration register (LCSC_PULSE_CR)298
15.8.5LCSC enable register (LCSC_ENR)299
15.8.6LCSC wheel status register (LCSC_WHEEL_SR)299
15.8.7LCSC wheel configuration register (LCSC_CONFR)300
15.8.8LCSC comparator counter register (LCSC_COMP_CNT)300
15.8.9LCSC status register (LCSC_SR)301
15.8.10LCSC statistics register (LCSC_STAT)302
15.8.11LCSC interrupt status register (LCSC_ISR)303
15.9LCSC register map304
16Liquid crystal display controller (LCD)306
16.1Introduction306
16.2LCD main features306
16.3Glossary307
16.4LCD functional description308
16.4.1General description308
16.4.2Frequency generator309
16.4.3Common driver310
16.4.4Segment driver313
16.4.5Voltage generator and contrast control317
16.4.6Double buffer memory320
16.4.7LCD controller low power modes321
16.4.8COM and SEG multiplexing321
16.4.9Flowchart323
16.5LCD interrupts324
16.6LCD registers325
16.6.1LCD control register (LCD_CR)325
16.6.2LCD frame control register (LCD_FCR)326
16.6.3LCD status register (LCD_SR)329
16.6.4LCD clear register (LCD_CLR)330
16.6.5LCD display memory (LCD_RAM) .....331
16.7LCD register map .....332
17Random number generator (RNG) .....334
17.1Features .....334
17.2RNG registers map .....334
17.3RNG registers description .....335
18AES hardware accelerator (AES) .....337
18.1Introduction .....337
18.2AES main features .....337
18.3AES implementation .....338
18.4AES functional description .....338
18.4.1AES block diagram .....338
18.4.2AES internal signals .....338
18.4.3AES cryptographic core .....339
18.4.4AES procedure to perform a cipher operation .....344
18.4.5AES decryption round key preparation .....347
18.4.6AES ciphertext stealing and data padding .....348
18.4.7AES task suspend and resume .....348
18.4.8AES basic chaining modes (ECB, CBC) .....349
18.4.9AES counter (CTR) mode .....354
18.4.10AES Galois/counter mode (GCM) .....356
18.4.11AES Galois message authentication code (GMAC) .....361
18.4.12AES counter with CBC-MAC (CCM) .....363
18.4.13AES data registers and data swapping .....368
18.4.14AES key registers .....370
18.4.15AES initialization vector registers .....370
18.4.16AES DMA interface .....371
18.4.17AES error management .....372
18.5AES interrupts .....373
18.6AES processing latency .....373
18.7AES registers .....375
18.7.1AES control register (AES_CR) .....375
18.7.2AES status register (AES_SR) .....378
18.7.3AES data input register (AES_DINR) .....379
18.7.4AES data output register (AES_DOUTR) .....380
18.7.5AES key register 0 (AES_KEYR0) .....381
18.7.6AES key register 1 (AES_KEYR1) .....381
18.7.7AES key register 2 (AES_KEYR2) .....382
18.7.8AES key register 3 (AES_KEYR3) .....382
18.7.9AES initialization vector register 0 (AES_IVR0) .....383
18.7.10AES initialization vector register 1 (AES_IVR1) .....383
18.7.11AES initialization vector register 2 (AES_IVR2) .....384
18.7.12AES initialization vector register 3 (AES_IVR3) .....384
18.7.13AES key register 4 (AES_KEYR4) .....384
18.7.14AES key register 5 (AES_KEYR5) .....385
18.7.15AES key register 6 (AES_KEYR6) .....385
18.7.16AES key register 7 (AES_KEYR7) .....385
18.7.17AES suspend registers (AES_SUSPxR) .....386
18.7.18AES register map .....387
19Cyclic redundancy check calculation unit (CRC) .....389
19.1Introduction .....389
19.2CRC main features .....389
19.3CRC functional description .....390
19.3.1CRC block diagram .....390
19.3.2CRC operation .....390
19.4CRC registers .....392
19.4.1Data register (CRC_DR) .....392
19.4.2Independent data register (CRC_IDR) .....392
19.4.3Control register (CRC_CR) .....393
19.4.4Initial CRC value (CRC_INIT) .....394
19.4.5CRC polynomial (CRC_POL) .....394
19.5CRC register map .....395
20General purpose timer (TIM2) .....396
20.1TIM2 introduction .....396
20.2TIM2 main features .....396
20.3TIM2 functional description .....398
20.3.1Time-base unit .....398
20.3.2Counter modes .....399
20.3.3Repetition counter407
20.3.4External trigger input409
20.3.5Clock selection410
20.3.6Capture/compare channels413
20.3.7Input capture mode414
20.3.8PWM input mode415
20.3.9Forced output mode416
20.3.10Output compare mode416
20.3.11PWM mode418
20.3.12Asymmetric PWM mode421
20.3.13Combined PWM mode421
20.3.14Clearing the OCxREF signal on an external event422
20.3.15One-pulse mode424
20.3.16Retriggerable one pulse mode (OPM)425
20.3.17Encoder interface mode426
20.3.18UIF bit remapping428
20.3.19Timer input XOR function429
20.3.20Timers and external trigger synchronization429
20.3.21Timer synchronization432
20.3.22DMA burst mode436
20.3.23Debug mode437
20.4TIM2 registers438
20.4.1TIM2 control register 1 (TIMx_CR1)438
20.4.2TIM2 control register 2 (TIMx_CR2)440
20.4.3TIM2 slave mode control register (TIMx_SMCR)441
20.4.4TIM2 DMA/interrupt enable register (TIMx_DIER)444
20.4.5TIM2 status register (TIMx_SR)446
20.4.6TIM2 event generation register (TIMx_EGR)448
20.4.7TIM2 capture/compare mode register 1 (TIMx_CCMR1)449
20.4.8TIM2 capture/compare mode register 2 (TIMx_CCMR2)454
20.4.9TIM2 capture/compare enable register (TIMx_CCER)456
20.4.10TIM2 counter (TIMx_CNT)458
20.4.11TIM2 prescaler (TIMx_PSC)458
20.4.12TIM2 auto-reload register (TIMx_ARR)458
20.4.13TIM2 repetition counter register (TIMx_RCR)459
20.4.14TIM2 capture/compare register 1 (TIMx_CCR1)459
20.4.15TIM2 capture/compare register 2 (TIMx_CCR2)460
20.4.16TIM2 capture/compare register 3 (TIMx_CCR3) .....460
20.4.17TIM2 capture/compare register 4 (TIMx_CCR4) .....461
20.4.18TIM2 DMA control register (TIM2_DCR) .....461
20.4.19TIM2 DMA address for full transfer (TIM2_DMAR) .....462
20.4.20TIM2 option register 1 (TIM2_OR) .....462
20.4.21TIM2 alternate function option register 1 (TIM2_AF1) .....463
20.4.22TIM2 input selection register (TIM2_TISEL) .....464
20.5TIM2 register map .....465
21General-purpose timers (TIM16) .....467
21.1TIM16 introduction .....467
21.2TIM16 main features .....467
21.3TIM16 functional description .....469
21.3.1Time-base unit .....469
21.3.2Counter modes .....471
21.3.3Repetition counter .....474
21.3.4Clock selection .....475
21.3.5Capture/compare channels .....476
21.3.6Input capture mode .....478
21.3.7Forced output mode .....479
21.3.8Output compare mode .....479
21.3.9PWM mode .....481
21.3.10Complementary outputs and dead-time insertion .....482
21.3.11Using the break function .....484
21.3.12Bidirectional break inputs .....487
21.3.13One-pulse mode .....489
21.3.14Retriggerable one pulse mode (OPM) .....490
21.3.15UIF bit remapping .....491
21.3.16Timer16 and external trigger synchronization .....491
21.3.17Timer synchronization .....493
21.3.18DMA burst mode .....497
21.3.19Debug mode .....498
21.4TIM16 registers .....499
21.4.1TIM16 control register 1 (TIMx_CR1) .....499
21.4.2TIM16 control register 2 (TIMx_CR2) .....501
21.4.3TIM16 slave mode control register (TIM16_SMCR) .....502
21.4.4TIM16 DMA/interrupt enable register (TIMx_DIER) .....504
21.4.5TIM16 status register (TIMx_SR) . . . . .505
21.4.6TIM16 event generation register (TIMx_EGR) . . . . .507
21.4.7TIM16 capture/compare mode register 1 (TIMx_CCMR1) . . . . .508
21.4.8TIM16 capture/compare enable register (TIMx_CCER) . . . . .512
21.4.9TIM16 counter (TIMx_CNT) . . . . .514
21.4.10TIM16 prescaler (TIMx_PSC) . . . . .514
21.4.11TIM16 auto-reload register (TIMx_ARR) . . . . .514
21.4.12TIM16 repetition counter register (TIMx_RCR) . . . . .515
21.4.13TIM16 capture/compare register 1 (TIMx_CCR1) . . . . .515
21.4.14TIM16 break and dead-time register (TIMx_BDTR) . . . . .516
21.4.15TIM16 DMA control register (TIMx_DCR) . . . . .519
21.4.16TIM16 DMA address for full transfer (TIMx_DMAR) . . . . .519
21.4.17TIM16 option register 1 (TIM16_OR) . . . . .520
21.4.18TIM16 alternate function option register 2 (TIMx_AF1) . . . . .521
21.4.19TIM16 input selection register (TIM16_TISEL) . . . . .522
21.4.20TIM16 register map . . . . .523
22Real-time clock (RTC) . . . . .525
22.1Introduction . . . . .525
22.2RTC main features . . . . .525
22.3RTC functional description . . . . .526
22.3.1RTC block diagram . . . . .526
22.3.2Clock and prescalers . . . . .526
22.3.3Real-time clock and calendar . . . . .527
22.3.4Programmable alarm . . . . .527
22.3.5Periodic auto-wakeup . . . . .528
22.3.6RTC initialization and configuration . . . . .529
22.3.7Reading the calendar . . . . .530
22.3.8Resetting the RTC . . . . .531
22.3.9RTC synchronization . . . . .531
22.3.10RTC smooth digital calibration . . . . .532
22.3.11Time-stamp function . . . . .534
22.3.12Tamper detection . . . . .535
22.3.13Calibration clock output . . . . .537
22.3.14Alarm output . . . . .537
22.4RTC low power modes . . . . .538
22.5RTC interrupts . . . . .538
22.6RTC registers .....539
22.6.1RTC time register (RTC_TR) .....539
22.6.2RTC date register (RTC_DR) .....540
22.6.3RTC control register (RTC_CR) .....541
22.6.4RTC initialization and status register (RTC_ISR) .....544
22.6.5RTC prescaler register (RTC_PRER) .....547
22.6.6RTC wakeup timer register (RTC_WUTR) .....548
22.6.7RTC alarm A register (RTC_ALRMAR) .....549
22.6.8RTC write protection register (RTC_WPR) .....550
22.6.9RTC sub second register (RTC_SSR) .....550
22.6.10RTC shift control register (RTC_SHIFTR) .....551
22.6.11RTC timestamp time register (RTC_TSTR) .....552
22.6.12RTC timestamp date register (RTC_TSDR) .....553
22.6.13RTC time-stamp sub second register (RTC_TSSSR) .....553
22.6.14RTC calibration register (RTC_CALR) .....554
22.6.15RTC_TAMPCR register (RTC_TAMPCR) .....555
22.6.16RTC alarm A sub second register (RTC_ALRMASSR) .....557
22.6.17RTC option register (RTC_OR) .....558
22.6.18RTC backup registers (RTC_BKPxR) .....559
22.7RTC register map .....560
23Independent watchdog (IWDG) .....562
23.1Introduction .....562
23.2IWDG main features .....562
23.3IWDG functional description .....562
23.3.1Window option .....562
23.3.2Register access protection .....563
23.3.3Debug mode .....564
23.4IWDG registers .....564
23.4.1Key register (IWDG_KR) .....564
23.4.2Prescaler register (IWDG_PR) .....565
23.4.3Reload register (IWDG_RLR) .....566
23.4.4Status register (IWDG_SR) .....567
23.4.5Window register (IWDG_WINR) .....568
23.5IWDG register map .....569
24Inter-integrated circuit (I2C) interface570
24.1Introduction570
24.2I2C main features570
24.3I2C implementation571
24.4I2C functional description571
24.4.1I2C block diagram572
24.4.2I2C clock requirements573
24.4.3Mode selection573
24.4.4I2C initialization575
24.4.5Software reset579
24.4.6Data transfer579
24.4.7I2C target mode582
24.4.8I2C controller mode590
24.4.9I2C_TIMINGR register configuration examples602
24.4.10SMBus specific features602
24.4.11SMBus initialization605
24.4.12SMBus: I2C_TIMEOUTR register configuration examples607
24.4.13SMBus target mode608
24.4.14Error conditions614
24.4.15DMA requests615
24.5I2C interrupts616
24.6I2C registers618
24.6.1Control register 1 (I2C_CR1)618
24.6.2Control register 2 (I2C_CR2)621
24.6.3Own address 1 register (I2C_OAR1)624
24.6.4Own address 2 register (I2C_OAR2)625
24.6.5Timing register (I2C_TIMINGR)626
24.6.6Timeout register (I2C_TIMEOUTR)627
24.6.7Interrupt and status register (I2C_ISR)628
24.6.8Interrupt clear register (I2C_ICR)630
24.6.9PEC register (I2C_PECR)631
24.6.10Receive data register (I2C_RXDR)632
24.6.11Transmit data register (I2C_TXDR)632
24.7I2C register map633
25Universal synchronous asynchronous receiver transmitter (USART) .....635
25.1USART introduction .....635
25.2USART main features .....636
25.3USART extended features .....637
25.4USART implementation .....637
25.5USART functional description .....638
25.5.1USART character description .....639
25.5.2FIFOs and thresholds .....641
25.5.3Transmitter .....642
25.5.4Receiver .....646
25.5.5Baud rate generation .....652
25.5.6Tolerance of the USART receiver to clock deviation .....653
25.5.7Auto baud rate detection .....654
25.5.8Multiprocessor communication .....655
25.5.9Modbus communication .....657
25.5.10Parity control .....658
25.5.11LIN (local interconnection network) mode .....659
25.5.12USART synchronous mode .....661
25.5.13Single-wire half-duplex communication .....665
25.5.14Receiver Timeout .....665
25.5.15Smartcard mode .....665
25.5.16IrDA SIR ENDEC block .....670
25.5.17Continuous communication using DMA .....672
25.5.18RS232 Hardware flow control and RS485 Driver Enable .....675
25.6USART interrupts .....677
25.7USART registers .....678
25.7.1Control register 1 (USARTx_CR1) .....678
25.7.2Control register 2 (USARTx_CR2) .....681
25.7.3Control register 3 (USARTx_CR3) .....686
25.7.4Baud rate register (USARTx_BRR) .....690
25.7.5Guard time and prescaler register (USARTx_GTPR) .....691
25.7.6Receiver timeout register (USARTx_RTOR) .....692
25.7.7Request register (USARTx_RQR) .....693
25.7.8Interrupt & status register (USARTx_ISR) .....694
25.7.9Interrupt flag clear register (USARTx_ICR) .....700
25.7.10Receive data register (USART_RDR) .....701
25.7.11Transmit data register (USART_TDR) .....701
25.7.12Prescaler register (USARTx_PRESC) .....702
25.8USART register map .....703
26Low power universal asynchronous receiver transmitter (LPUART) 705
26.1LPUART introduction .....705
26.2LPUART main features .....706
26.3LPUART functional description .....707
26.3.1LPUART character description .....708
26.3.2FIFOs and thresholds .....710
26.3.3Transmitter .....711
26.3.4Receiver .....714
26.3.5Baud rate generation .....718
26.3.6Multiprocessor communication .....719
26.3.7Parity control .....721
26.3.8Single-wire half-duplex communication .....722
26.3.9Continuous communication using DMA .....722
26.3.10RS232 Hardware flow control and RS485 Driver Enable .....725
26.3.11Wakeup from Deepstop mode .....728
26.4LPUART interrupts .....730
26.5LPUART registers .....732
26.5.1Control register 1 (LPUART_CR1) .....732
26.5.2Control register 2 (LPUART_CR2) .....735
26.5.3Control register 3 (LPUART_CR3) .....737
26.5.4Baud rate register (LPUART_BRR) .....740
26.5.5Request register (LPUART_RQR) .....741
26.5.6Interrupt & status register (LPUART_ISR) .....741
26.5.7Interrupt flag clear register (LPUART_ICR) .....746
26.5.8Receive data register (LPUART_RDR) .....747
26.5.9Transmit data register (LPUART_TDR) .....747
26.5.10Prescaler register (LPUART_PRESC) .....748
26.5.11LPUART register map .....749
27Serial peripheral interface / inter-IC sound (SPI/I2S) .....750
27.1Introduction .....750
27.2SPI main features . . . . .751
27.3I2S main features . . . . .752
27.4SPI/I2S implementation . . . . .752
27.5SPI functional description . . . . .753
27.5.1General description . . . . .753
27.5.2Communications between one master and one slave . . . . .754
27.5.3Standard multi-slave communication . . . . .756
27.5.4Slave select (NSS) pin management . . . . .757
27.5.5Communication formats . . . . .759
27.5.6Configuration of SPI . . . . .761
27.5.7Procedure for enabling SPI . . . . .762
27.5.8Data transmission and reception procedures . . . . .762
27.5.9SPI status flags . . . . .772
27.5.10SPI error flags . . . . .773
27.5.11NSS pulse mode . . . . .774
27.5.12TI mode . . . . .774
27.5.13CRC calculation . . . . .775
27.6SPI interrupts . . . . .777
27.7I2S functional description . . . . .778
27.7.1I2S general description . . . . .778
27.7.2Supported audio protocols . . . . .779
27.7.3Clock generator . . . . .785
27.7.4I2S master mode . . . . .790
27.7.5I2S slave mode . . . . .791
27.7.6I2S error flags . . . . .793
27.7.7DMA features . . . . .794
27.8I2S interrupts . . . . .794
27.9SPI and I2S registers . . . . .795
27.9.1SPI control register 1 (SPIx_CR1) . . . . .795
27.9.2SPI control register 2 (SPIx_CR2) . . . . .797
27.9.3SPI status register (SPIx_SR) . . . . .800
27.9.4SPI data register (SPIx_DR) . . . . .802
27.9.5SPI CRC polynomial register (SPIx_CRCPR) . . . . .802
27.9.6SPI Rx CRC register (SPIx_RXCRCR) . . . . .803
27.9.7SPI Tx CRC register (SPIx_TXCRCR) . . . . .803
27.9.8SPIx_I2S configuration register (SPIx_I2SCFGR) . . . . .804
27.9.9SPIx_I2S prescaler register (SPIx_I2SPR) .....806
27.10SPI/I2S register map .....806
28Low power autonomous wakeup radio IP (LPAWUR) .....808
28.1LPAWUR architecture overview .....808
28.2Interfacing with the LPAWUR .....809
28.2.1LPAWUR interrupt lines to the CPU .....809
28.2.2LPAWUR interface with the power controller (PWR) .....809
28.2.3LPAWUR interface with the reset and clock controller (RCC) .....809
28.3Packet and protocol construction .....810
28.3.1Data modulation and encoding .....810
28.3.2Data rate .....810
28.3.3Frame format .....810
28.4LPAWUR IP register overview .....813
28.4.1Register organization .....813
28.5LPAWUR retained register descriptions .....815
28.5.1FRAME_CONFIG0 register (FRAME_CONFIG0) .....815
28.5.2FRAME_CONFIG1 register (FRAME_CONFIG1) .....817
28.5.3FRAME_SYNC_CONFIG register (FRAME_SYNC_CONFIG) .....818
28.5.4RFIP_CONFIG register (RFIP_CONFIG) .....818
28.5.5RF_CONFIG register (RF_CONFIG) .....819
28.5.6AGC_CONFIG register (AGC_CONFIG) .....821
28.5.7PAYLOAD_0 register (PAYLOAD_0) .....822
28.5.8PAYLOAD_1 register (PAYLOAD_1) .....822
28.5.9LPAWUR retained register summary .....823
28.6LPAWUR switchable register descriptions .....825
28.6.1LPAWUR switchable register descriptions RFIP_VERSION register (RFIP_VERSION) .....826
28.6.2IRQ_ENABLE register (IRQ_ENABLE) .....827
28.6.3STATUS register (STATUS) .....828
28.6.4LPAWUR register summary .....829
28.7Radio controller .....830
28.7.1Radio controller sequencing .....830
28.7.2Wakeup event management .....831
28.7.3Sleep management .....831
28.7.4Recommended register values .....832
29Sub-GHz radio IP (MRSUBG)833
29.1Overview833
29.1.1MR_SubG IP overview833
29.1.2Miscellaneous feature: control of an external components through pads of the SoC834
29.2Interfacing with the MR_SubG IP836
29.2.1Interrupt lines to the CPU836
29.2.2Interface with the RAM embedded in the SoC836
29.2.3Interface with the power, clock and reset controllers837
29.2.4Interface with the SoC for busy information837
29.2.5Signals connected to SoC GPIOs838
29.3Packet and protocol construction838
29.3.1Packet structure839
29.3.2Sequence transformation and data coding844
29.3.3Protocols850
29.3.4Transmission and reception modes863
29.3.5Transmission modes864
29.3.6Reception modes866
29.3.7TX power control and configuration information872
29.3.8Guidelines on registers configuration for standard RF874
29.4Global registers878
29.4.1Register organization878
29.5STATIC_REG_BLOCK register descriptions879
29.5.1PCKT_CONFIG register (PCKT_CONFIG)880
29.5.2SYNC register (SYNC)882
29.5.3SEC_SYNC register (SEC_SYNC)882
29.5.4CRC_INIT register (CRC_INIT)883
29.5.5PCKT_CTRL register (PCKT_CTRL)884
29.5.6DATABUFFER0_PTR register (DATABUFFER0_PTR)886
29.5.7DATABUFFER1_PTR register (DATABUFFER1_PTR)887
29.5.8DATABUFFER_SIZE register (DATABUFFER_SIZE)887
29.5.9PA_LEVEL_3_0 register (PA_LEVEL_3_0)888
29.5.10PA_LEVEL_7_4 register (PA_LEVEL_7_4)889
29.5.11PA_CONFIG register (PA_CONFIG)890
29.5.12IF_CTRL register (IF_CTRL)891
29.5.13AS_QI_CTRL register (AS_QI_CTRL)892
29.5.14IQC_CONFIG register (IQC_CONFIG)893
29.5.15DSSS_CTRL register (DSSS_CTRL) .....894
29.5.16STATIC_REG_BLOCK register map .....895
29.6DYNAMIC_REG_BLOCK register descriptions .....897
29.6.1PCKTLEN_CONFIG register (PCKTLEN_CONFIG) .....898
29.6.2MOD0_CONFIG register (MOD0_CONFIG) .....899
29.6.3MOD1_CONFIG register (MOD1_CONFIG) .....900
29.6.4SYNTH_FREQ register (SYNTH_FREQ) .....901
29.6.5VCO_CAL_CONFIG register (VCO_CAL_CONFIG) .....902
29.6.6RX_TIMER register (RX_TIMER) .....903
29.6.7DATABUFFER_THR register (DATABUFFER_THR) .....904
29.6.8RFSEQ_IRQ_ENABLE register (RFSEQ_IRQ_ENABLE) .....905
29.6.9ADDITIONAL_CTRL register (ADDITIONAL_CTRL) .....907
29.6.10FAST_RX_TIMER register (FAST_RX_TIMER) .....908
29.6.11COMMAND register (COMMAND) .....909
29.6.12DYNAMIC_REG_BLOCK register map .....910
29.7READ-ONLY_REG_BLOCK register descriptions .....912
29.7.1RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS) .....913
29.7.2RFSEQ_STATUS_DETAIL register (RFSEQ_STATUS_DETAIL) ....915
29.7.3RADIO_FSM_INFO register (RADIO_FSM_INFO) .....916
29.7.4RX_INDICATOR register (RX_INDICATOR) .....917
29.7.5RX_INFO_REG register (RX_INFO_REG) .....917
29.7.6RX_CRC_REG register (RX_CRC_REG) .....918
29.7.7QI_INFO register (QI_INFO) .....918
29.7.8DATABUFFER_INFO register (DATABUFFER_INFO) .....919
29.7.9TIME_CAPTURE register (TIME_CAPTURE) .....920
29.7.10IQC_CORRECTION_OUT register (IQC_CORRECTION_OUT) ....920
29.7.11PA_SAFEASK_OUT register (PA_SAFEASK_OUT) .....921
29.7.12VCO_CALIB_OUT register (VCO_CALIB_OUT) .....922
29.7.13SEQ_INFO register (SEQ_INFO) .....923
29.7.14SEQ_EVENT_STATUS register (SEQ_EVENT_STATUS) .....924
29.7.15READ-ONLY_REG_BLOCK register map and reset values .....925
29.8MISC_REG_BLOCK register descriptions .....927
29.8.1RFIP_VERSION register (RFIP_VERSION) .....928
29.8.2RRM_UDRA_CTRL register (RRM_UDRA_CTRL) .....929
29.8.3SEQUENCER_CTRL register (SEQUENCER_CTRL) .....930
29.8.4ABSOLUTE_TIME register (ABSOLUTE_TIME) .....931
29.8.5SCM_COUNTER_VAL register (SCM_COUNTER_VAL) .....931
29.8.6SCM_MIN_MAX register (SCM_MIN_MAX) .....932
29.8.7WAKEUP_IRQ_STATUS register (WAKEUP_IRQ_STATUS) .....933
29.8.8MISC_REG_BLOCK register map .....934
29.9RETAINED_REG_BLOCK register descriptions .....935
29.9.1RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME) .....935
29.9.2CPU_WAKEUPTIME register (CPU_WAKEUPTIME) .....936
29.9.3WAKEUP_CTRL register (WAKEUP_CTRL) .....937
29.9.4RRM_CMDLIST_PTR register (RRM_CMDLIST_PTR) .....938
29.9.5SEQ_GLOBALTABLE_PTR register (SEQ_GLOBALTABLE_PTR) ..938
29.9.6RETAINED_REG_BLOCK register map .....939
29.10Radio register descriptions .....939
29.10.1Radio register overview .....940
29.10.2RF_FSM0_TIMEOUT register (RF_FSM0_TIMEOUT) .....943
29.10.3RF_FSM1_TIMEOUT register (RF_FSM1_TIMEOUT) .....943
29.10.4RF_FSM2_TIMEOUT register (RF_FSM2_TIMEOUT) .....944
29.10.5RF_FSM3_TIMEOUT register (RF_FSM3_TIMEOUT) .....944
29.10.6RF_FSM4_TIMEOUT register (RF_FSM4_TIMEOUT) .....945
29.10.7RF_FSM5_TIMEOUT register (RF_FSM5_TIMEOUT) .....945
29.10.8RF_FSM6_TIMEOUT register (RF_FSM6_TIMEOUT) .....946
29.10.9RF_FSM7_TIMEOUT register (RF_FSM7_TIMEOUT) .....946
29.10.10AFC0_CONFIG register (AFC0_CONFIG) .....947
29.10.11AFC1_CONFIG register (AFC1_CONFIG) .....947
29.10.12AFC2_CONFIG register (AFC2_CONFIG) .....948
29.10.13AFC3_CONFIG register (AFC3_CONFIG) .....949
29.10.14CLKREC_CTRL0 register (CLKREC_CTRL0) .....950
29.10.15CLKREC_CTRL1 register (CLKREC_CTRL1) .....951
29.10.16DCREM_CTRL0 register (DCREM_CTRL0) .....952
29.10.17DCREM_CTRL1 register (DCREM_CTRL1) .....952
29.10.18IQC_CTRL0 register (IQC_CTRL0) .....953
29.10.19IQC_CTRL1 register (IQC_CTRL1) .....953
29.10.20IQC_CTRL2 register (IQC_CTRL2) .....954
29.10.21IQC_CTRL3 register (IQC_CTRL3) .....954
29.10.22AGC_ANA_ENG register (AGC_ANA_ENG) .....955
29.10.23AGC0_CTRL register (AGC0_CTRL) .....956
29.10.24AGC1_CTRL register (AGC1_CTRL) .....956
29.10.25AGC2_CTRL register (AGC2_CTRL) .....957
29.10.26AGC3_CTRL register (AGC3_CTRL) .....958
29.10.27AGC4_CTRL register (AGC4_CTRL)958
29.10.28AGC_ATTEN0 register (AGC_ATTEN0)959
29.10.29AGC_ATTEN1 register (AGC_ATTEN1)960
29.10.30AGC_ATTEN2 register (AGC_ATTEN2)961
29.10.31AGC_ATTEN3 register (AGC_ATTEN3)962
29.10.32AGC_ATTEN4 register (AGC_ATTEN4)963
29.10.33AGC_ATTEN5 register (AGC_ATTEN5)964
29.10.34AGC_ATTEN6 register (AGC_ATTEN6)965
29.10.35AGC_ATTEN7 register (AGC_ATTEN7)966
29.10.36AGC_ATTEN8 register (AGC_ATTEN8)967
29.10.37AGC_ATTEN9 register (AGC_ATTEN9)968
29.10.38AGC1_ATTEN_TRIM register (AGC1_ATTEN_TRIM)969
29.10.39AGC2_ATTEN_TRIM register (AGC2_ATTEN_TRIM)969
29.10.40AGC3_ATTEN_TRIM register (AGC3_ATTEN_TRIM)970
29.10.41AGC4_ATTEN_TRIM register (AGC4_ATTEN_TRIM)970
29.10.42AGC_PGA_HWTRIM_OUT register (AGC_PGA_HWTRIM_OUT)971
29.10.43PA_REG register (PA_REG)971
29.10.44PA_HWTRIM_OUT register (PA_HWTRIM_OUT)972
29.10.45RSSI_FLT register (RSSI_FLT)973
29.10.46RXADC_HWDELAYTRIM_OUT register
(RXADC_HWDELAYTRIM_OUT)
974
29.10.47RX_AAF_HWTRIM_OUT register (RX_AAF_HWTRIM_OUT)974
29.10.48SINGEN_ANA_ENG register (SINGEN_ANA_ENG)975
29.10.49RF_INFO_OUT register (RF_INFO_OUT)976
29.10.50RF_FSM8_TIMEOUT register (RF_FSM8_TIMEOUT)977
29.10.51RF_FSM9_TIMEOUT register (RF_FSM9_TIMEOUT)977
29.10.52RF_FSM10_TIMEOUT register (RF_FSM10_TIMEOUT)978
29.10.53SUBG_DIG_CTRL0 register (SUBG_DIG_CTRL0)978
29.10.54RADIO_REG_REG_BLOCK register map979
29.10.55Notes for 169 MHz configuration986
29.11Receive block987
29.11.1Automatic gain control (AGC)988
29.11.2DC removal block992
29.11.3I/Q mismatch compensation993
29.11.4RSSI996
29.11.5Carrier sense997
29.11.6Antenna switching998
29.11.7Automatic frequency compensation (AFC) .....999
29.11.8Symbol timing recovery .....1001
29.12Radio register manager (RRM) .....1002
29.12.1Overview .....1002
29.12.2UDRA .....1003
29.12.3Direct APB access .....1007
29.12.4RRM arbiter .....1007
29.13Radio FSM .....1007
29.13.1Radio FSM sequence .....1007
29.13.2Radio FSM states overview .....1010
29.13.3Timeout durations used by the Radio FSM .....1012
29.14Radio controller .....1013
29.14.1Commands .....1014
29.14.2BACK2ACTIVE2 and BACK2LOCKON bits .....1020
29.14.3RX Timer .....1021
29.14.4Fast RX termination .....1023
29.14.5Hardware analog failure information .....1023
29.14.6Time capture feature .....1025
29.15Data buffers .....1025
29.15.1Data buffer mechanism .....1026
29.15.2Data buffer manager overview .....1027
29.15.3Programming procedure .....1029
29.15.4Error handling .....1030
29.16Sequencer .....1031
29.16.1Sequencer overview .....1031
29.16.2Sequence description .....1033
29.16.3Next action mask management .....1036
29.16.4Sequencer RAM tables .....1038
29.17GlobalConfiguration RAM table overview .....1039
29.18GlobalConfiguration RAM table register descriptions .....1041
29.18.1Word 0 register (WORD0) .....1041
29.18.2Word1 register (WORD1) .....1042
29.18.3Word N register N = 2 to 16 (WORDN) .....1043
29.19ActionConfiguration RAM table overview .....1044
29.20ActionConfiguration RAM table register descriptions .....1047
29.20.1Word 0 register (WORD0) .....1047
29.20.2Word 1 register (WORD1) .....1047
29.20.3Word 2 register (WORD2) .....1048
29.20.4Word 3 register (WORD3) .....1049
29.20.5Word 4 register (WORD4) .....1050
29.20.6Word 5 register (WORD5) .....1050
29.20.7Word 6 register (WORD6) .....1051
29.20.8Word 7 register (WORD7) .....1052
29.20.9Word 8 register (WORD8) .....1053
29.20.10Word N register N = 2 to 16 (WORDN) .....1053
29.21Time management unit (TMU) .....1054
29.21.1Slow clock period measurement .....1054
29.21.2Time interpolation .....1056
29.22Wakeup and sleep management .....1057
29.22.1Sleep management .....1057
29.22.2Wakeup block .....1057
29.23Uses-cases: examples of scenarios with the Sequencer .....1060
29.23.1Reception with auto-acknowledge .....1060
29.23.2Sniff mode .....1063
29.23.3Listen before talk (LBT) .....1066
30Debug support (DBG) .....1070
30.1SWD debug features .....1070
30.2MCU debug component (DBG) .....1070
30.2.1Debug support for low-power modes .....1071
30.2.2Debug support for timers, watchdog and I2C .....1071
30.3DBG registers .....1071
30.3.1DBG configuration register (DBG_CR) .....1071
30.3.2DBG APB0 freeze register (DBG_APB0_FZ) .....1073
30.3.3DBG APB1 freeze register (DBG_APB1_FZ) .....1074
30.4DBG register map .....1075
31Device electronic signature (DESIG) .....1076
31.1DESIG registers .....1076
31.1.1Unique device ID register 1 (UID64_R1) .....1076
31.1.2Unique device ID register 2 (UID64_R2) .....1076
32Important security notice .....1077
33Revision history .....1078

List of tables

Table 1.List of acronyms .....40
Table 2.Document references .....43
Table 3.Memory map and peripheral register boundary addresses .....48
Table 4.SRAM0 reserved locations .....50
Table 5.Address remapping depending on the REMAP bit .....50
Table 6.Address remapping depending on REMAP bit .....51
Table 7.Interrupt vectors .....52
Table 8.GPIO alternate options AF0 - AF3 .....58
Table 9.GPIO alternate options AF4 - AF6 .....60
Table 10.I/O Analog feature mapping .....62
Table 11.I/O Additional function mapping .....63
Table 12.SMPS BOM information .....76
Table 13.PWR register map and reset values .....104
Table 14.Flags versus CPU reboot reason .....107
Table 15.Wakeup reason flags .....108
Table 16.System clock versus Radio IPs clock dependency .....114
Table 17.RCC register map and reset values .....151
Table 18.Port bit configuration table .....159
Table 19.GPIO register map and reset values .....180
Table 20.SYSCFG register map and reset values .....199
Table 21.Flash memory section address .....203
Table 22.Command list available for customer .....204
Table 23.Flash size information .....209
Table 24.Flash controller register map and reset values .....215
Table 25.System memory protection .....219
Table 26.Programmable data width and endian behavior (when PINC=MINC=1 and NDT=4) .....225
Table 27.DMA interrupt requests .....227
Table 28.DMA register map and reset values .....234
Table 29.DMAMUX instantiation .....237
Table 30.DMAMUX: assignment of multiplexer inputs to resource .....238
Table 31.DMAMUX register map and reset values .....241
Table 32.ADC interrupt requests .....248
Table 33.ADC DTB configuration details .....266
Table 34.ADC register map and reset values .....266
Table 35.Comparator behavior in the low power modes .....272
Table 36.COMP register map and reset values .....275
Table 37.DAC register map and reset values .....285
Table 38.LCSC register map and reset values .....304
Table 39.Example of frame rate calculation .....309
Table 40.Blink frequency .....317
Table 41.LCD behavior in low power modes .....321
Table 42.Remapping capability .....322
Table 43.LCD interrupt requests .....324
Table 44.LCD register map and reset values .....332
Table 45.RNG register list .....335
Table 46.RNG_CR register description .....335
Table 47.RNG_SR register description .....336
Table 48.RNG_VAL register description .....336
Table 49.AES internal input/output signals . . . . .338
Table 50.CTR mode initialization vector definition . . . . .355
Table 51.GCM last block definition . . . . .357
Table 52.Initialization of AES_IVRx registers in GCM mode . . . . .358
Table 53.Initialization of AES_IVRx registers in CCM mode . . . . .365
Table 54.Key endianness in AES_KEYRx registers (128- or 256-bit key length) . . . . .370
Table 55.AES interrupt requests . . . . .373
Table 56.Processing latency for ECB, CBC and CTR . . . . .373
Table 57.Processing latency for GCM and CCM (in clock cycles) . . . . .374
Table 58.AES register map and reset values . . . . .387
Table 59.CRC register map and reset values . . . . .395
Table 60.Counting direction versus encoder signals . . . . .427
Table 61.Output control bits for OCx channels . . . . .457
Table 62.TIM2 register map and reset values . . . . .465
Table 63.Break protection disarming conditions . . . . .487
Table 64.TIM16 internal trigger connection . . . . .503
Table 65.Output control bits for complementary OCx and OCxN channels with break feature . . . . .513
Table 66.TIM16 register map and reset values . . . . .523
Table 67.RTC register map and reset values . . . . .560
Table 68.IWDG register map and reset values . . . . .569
Table 69.I2C implementation . . . . .571
Table 70.I2C-SMBUS specification data setup and hold times . . . . .578
Table 71.I2C configuration table . . . . .581
Table 72.I2C-SMBUS specification clock timings . . . . .592
Table 73.Examples of timings settings for fI2CCLK = 16 MHz . . . . .602
Table 74.SMBus timeout specifications . . . . .604
Table 75.SMBUS with PEC configuration . . . . .606
Table 76.Examples of TIMEOUTA settings (max tTIMEOUT = 25 ms) . . . . .607
Table 77.Example of TIMEOUTB settings . . . . .607
Table 78.Example of TIMEOUTA settings (max tIDLE = 50 μs) . . . . .607
Table 79.I2C Interrupt requests . . . . .616
Table 80.I2C register map and reset values . . . . .633
Table 81.USART / LPUART features . . . . .637
Table 82.Noise detection from sampled data . . . . .651
Table 83.Tolerance of the USART receiver when BRR [3:0] = 0000
(high-density devices) . . . . .
654
Table 84.Tolerance of the USART receiver when BRR[3:0] is different from 0000
(high-density devices) . . . . .
654
Table 85.Frame formats . . . . .658
Table 86.USART interrupt requests . . . . .677
Table 87.USART register map and reset values . . . . .703
Table 88.Error calculation for programmed baudrates at fck = 32,768 KHz . . . . .718
Table 89.Error calculation for programmed baudrates at fck = 16 MHz . . . . .719
Table 90.Frame formats . . . . .721
Table 92.LPUART interrupt requests . . . . .730
Table 93.LPUART register map and reset values . . . . .749
Table 94.SPI implementation . . . . .752
Table 95.SPI interrupt requests . . . . .777
Table 96.Audio frequency precision using I2SCLK = 64 MHz . . . . .787
Table 97.Audio frequency precision using I2SCLK = 32 MHz . . . . .788
Table 98.Audio frequency precision using I2SCLK = 16 MHz . . . . .789
Table 99.I2S interrupt requests . . . . .794
Table 100.SPI register map and reset values .....806
Table 101.Register sub-group base address .....813
Table 102.LPAWUR retained register list .....815
Table 103.LPAWUR retained register map and reset values .....823
Table 104.LPAWUR register list .....825
Table 105.LPAWUR register map and reset values .....829
Table 106.PREAMBLE pattern selection .....839
Table 107.PHR frame .....843
Table 108.3-out-of-6 coding table .....850
Table 109.Constellation mapping for 2-(G)FSK .....852
Table 110.Constellation mapping for 4-(G)FSK .....853
Table 111.DSSS codes .....854
Table 112.PA Bessel filter programming .....856
Table 113.Frequency bands .....860
Table 114.Data rate range versus modulation .....861
Table 115.Channel filter bandwidth (in kHz) programming .....862
Table 116.TX mode summary .....864
Table 117.RX mode summary .....866
Table 118.Global registers sub-groups base address .....878
Table 119.STATIC_REG_BLOCK register list .....879
Table 120.STATIC_REG_BLOCK register map and reset values .....895
Table 121.DYNAMIC_REG_BLOCK register list .....897
Table 122.DYNAMIC_REG_BLOCK register map and reset values .....910
Table 123.READ-ONLY_REG_BLOCK register list .....912
Table 124.READ-ONLY_REG_BLOCK register map and reset values .....925
Table 125.MISC_REG_BLOCK register list .....927
Table 126.MISC_REG_BLOCK register map and reset values .....934
Table 127.RETAINED_REG_BLOCK register list .....935
Table 128.RETAINED_REG_BLOCK register map and reset values .....939
Table 129.RADIO_REG_BLOCK register list .....940
Table 130.RADIO_REG_BLOCK register map and reset values .....979
Table 131.DC attenuation per sample versus the filter order n (for FSYS=16 MHz) .....992
Table 132.IQC correction available configurations .....994
Table 133.UDRA command format in RAM .....1004
Table 134.Radio FSM state details .....1010
Table 135.Timeout versus Radio FSM state exit .....1012
Table 136.Command list .....1014
Table 137.Concurrent command behavior overview .....1015
Table 138.RX Timer duration versus slow clock frequency .....1022
Table 139.DBM initial internal FIFO prefetch .....1028
Table 140.Sequencer internal events bus overview .....1037
Table 141.GlobalConfiguration RAM table .....1040
Table 142.GlobalConfiguration RAM table registers .....1041
Table 143.ActionConfiguration RAM table .....1044
Table 144.ActionConfiguration RAM table registers list .....1046
Table 145.DBG register map and reset values .....1075
Table 146.Document revision history .....1078

List of figures

Figure 1.System architecture .....45
Figure 2.Memory map .....47
Figure 3.AHB up/down converter .....56
Figure 4.Power supply domain overview .....66
Figure 5.Power on reset/power down reset waveform .....67
Figure 6.Power regulators and SMPS configuration in Run mode .....69
Figure 7.Power regulators and SMPS configuration in Deepstop mode .....72
Figure 8.Power regulators and SMPS configuration in Shutdown mode .....74
Figure 9.PWR state machine for operating mode transitions .....75
Figure 10.Power supply configuration .....76
Figure 11.PWR SMPS state machine overview .....77
Figure 12.Reset generation .....109
Figure 13.System clock details .....112
Figure 14.LCO / MCO output clocks .....117
Figure 15.Basic structure of a mixed analog/digital five-volt tolerant I/O port bit .....158
Figure 16.Basic structure of a digital only five-volt tolerant I/O port bit .....159
Figure 17.Input floating/pull up/pull down configurations .....163
Figure 18.Output configuration .....164
Figure 19.Alternate function configuration .....165
Figure 20.High impedance-analog configuration .....165
Figure 21.DMAMUX block diagram .....239
Figure 22.ADC top level diagram .....244
Figure 23.ADC sampling time Tsw and sampling period Ts .....246
Figure 24.Effect of analog source resistance .....247
Figure 25.Comparator block diagram .....269
Figure 26.Comparator hysteresis .....270
Figure 27.Comparator output blanking .....271
Figure 28.DAC block diagram .....277
Figure 29.DAC LFSR register calculation algorithm .....280
Figure 30.DAC triangle wave generation .....280
Figure 31.LCSC block diagram .....287
Figure 32.LCSC connection to DAC, COMP, VCMBUFF, GPIOs .....288
Figure 33.LC oscillation damping .....289
Figure 34.Tamper LCT .....290
Figure 35.LCSC PB1, PA14, PB2, PB4 control timing .....293
Figure 36.LCAB counters out-of-bound example .....294
Figure 37.Wheel quarter status .....295
Figure 38.LCD controller block diagram .....308
Figure 39.1/3 bias, 1/4 duty .....310
Figure 40.Static duty .....311
Figure 41.Static duty .....312
Figure 42.1/2 duty, 1/2 bias .....313
Figure 43.1/3 duty, 1/3 bias .....314
Figure 44.1/4 duty, 1/3 bias .....315
Figure 45.1/8 duty, 1/4 bias .....316
Figure 46.VLCD pin for 1/2 1/3 1/4 bias .....319
Figure 47.Deadtime .....320
Figure 48.Flowchart example .....323
Figure 49.AES block diagram . . . . .338
Figure 50.ECB encryption and decryption principle . . . . .340
Figure 51.CBC encryption and decryption principle . . . . .341
Figure 52.CTR encryption and decryption principle . . . . .342
Figure 53.GCM encryption and authentication principle . . . . .343
Figure 54.GMAC authentication principle . . . . .343
Figure 55.CCM encryption and authentication principle . . . . .344
Figure 56.Encryption key derivation for ECB/CBC decryption (Mode 2). . . . .347
Figure 57.Example of suspend mode management . . . . .348
Figure 58.ECB encryption . . . . .349
Figure 59.ECB decryption . . . . .349
Figure 60.CBC encryption . . . . .350
Figure 61.CBC decryption . . . . .350
Figure 62.ECB/CBC encryption (Mode 1). . . . .351
Figure 63.ECB/CBC decryption (Mode 3). . . . .352
Figure 64.Message construction in CTR mode. . . . .354
Figure 65.CTR encryption . . . . .355
Figure 66.CTR decryption . . . . .355
Figure 67.Message construction in GCM . . . . .357
Figure 68.GCM authenticated encryption . . . . .358
Figure 69.Message construction in GMAC mode . . . . .362
Figure 70.GMAC authentication mode . . . . .362
Figure 71.Message construction in CCM mode . . . . .363
Figure 72.CCM mode authenticated encryption . . . . .365
Figure 73.128-bit block construction with respect to data swap . . . . .369
Figure 74.DMA transfer of a 128-bit data block during input phase . . . . .371
Figure 75.DMA transfer of a 128-bit data block during output phase . . . . .372
Figure 76.CRC calculation unit block diagram . . . . .390
Figure 77.General purpose timer block diagram. . . . .397
Figure 78.Counter timing diagram with prescaler division change from 1 to 2 . . . . .399
Figure 79.Counter timing diagram with prescaler division change from 1 to 4 . . . . .399
Figure 80.Counter timing diagram, internal clock divided by 1 . . . . .400
Figure 81.Counter timing diagram, internal clock divided by 2 . . . . .400
Figure 82.Counter timing diagram, internal clock divided by 4 . . . . .401
Figure 83.Counter timing diagram, internal clock divided by N. . . . .401
Figure 84.Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded). . . . .401
Figure 85.Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded). . . . .402
Figure 86.Counter timing diagram, internal clock divided by 1 . . . . .403
Figure 87.Counter timing diagram, internal clock divided by 2 . . . . .403
Figure 88.Counter timing diagram, internal clock divided by 4 . . . . .403
Figure 89.Counter timing diagram, internal clock divided by N. . . . .404
Figure 90.Counter timing diagram, update event when repetition counter is not used. . . . .404
Figure 91.Counter timing diagram, internal clock divided by 1, TIMx_ARR = 0x6 . . . . .405
Figure 92.Counter timing diagram, internal clock divided by 2 . . . . .406
Figure 93.Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 . . . . .406
Figure 94.Counter timing diagram, internal clock divided by N. . . . .406
Figure 95.Counter timing diagram, update event with ARPE=1 (counter underflow) . . . . .407
Figure 96.Counter timing diagram, Update event with ARPE=1 (counter overflow) . . . . .407
Figure 97.Update rate examples depending on mode and TIMx_RCR register settings . . . . .408
Figure 98.External trigger input block . . . . .409
Figure 99.TIM2 ETR input circuitry . . . . .409
Figure 100.Control circuit in normal mode, internal clock divided by 1 . . . . .410
Figure 101.TI2 external clock connection example. ....410
Figure 102.Control circuit in external clock mode 1 .....411
Figure 103.External trigger input block .....412
Figure 104.Control circuit in external clock mode 2 .....412
Figure 105.Capture/compare channel (example: channel 1 input stage) .....413
Figure 106.Capture/compare channel 1 main circuit .....413
Figure 107.Output stage of capture/compare channel (channels 1, 2, 3, 4) .....414
Figure 108.PWM input mode timing .....416
Figure 109.Output compare mode, toggle on OC1 .....417
Figure 110.Edge-aligned PWM waveforms (ARR=8) .....419
Figure 111.Center-aligned PWM waveforms (ARR=8) .....420
Figure 112.Generation of 2 phase-shifted PWM signals with 50% duty cycle .....421
Figure 113.Combined PWM mode on channel 1 and 3 .....422
Figure 114.Clearing TIMx OCxREF .....423
Figure 115.Example of one pulse mode. ....424
Figure 116.Retrigerrable one pulse mode .....426
Figure 117.Example of counter operation in encoder interface mode. ....427
Figure 118.Example of encoder interface mode with TI1FP1 polarity inverted. ....428
Figure 119.Measuring time interval between edges on 3 signals .....429
Figure 120.Control circuit in reset mode .....430
Figure 121.Control circuit in gated mode .....430
Figure 122.Control circuit in trigger mode. ....431
Figure 123.Control circuit in external clock mode 2 + trigger mode .....432
Figure 124.Master/slave timers example .....433
Figure 125.Gating TIM16 with OC1REF of TIM2 .....434
Figure 126.Gating TIM16 with Enable of TIM2 .....435
Figure 127.Triggering TIM16 with update of TIM2 .....435
Figure 128.Triggering TIM16 with Enable of TIM2 .....436
Figure 129.TIM16 block diagram .....468
Figure 130.Counter timing diagram with prescaler division change from 1 to 2 .....470
Figure 131.Counter timing diagram with prescaler division change from 1 to 4 .....470
Figure 132.Counter timing diagram, internal clock divided by 1 .....471
Figure 133.Counter timing diagram, internal clock divided by 2 .....472
Figure 134.Counter timing diagram, internal clock divided by 4 .....472
Figure 135.Counter timing diagram, internal clock divided by N. ....472
Figure 136.Counter timing diagram, update event when ARPE=0 (TIMx_ARR not
preloaded). ....
473
Figure 137.Counter timing diagram, update event when ARPE=1 (TIMx_ARR
preloaded). ....
473
Figure 138.Update rate examples depending on mode and TIMx_RCR register settings .....474
Figure 139.Control circuit in normal mode, internal clock divided by 1 .....475
Figure 140.TI1 external clock connection example. ....475
Figure 141.Control circuit in external clock mode 1 .....476
Figure 142.Capture/compare channel (example: channel 1 input stage) .....477
Figure 143.Capture/compare channel 1 main circuit .....477
Figure 144.Output stage of capture/compare channel (channel 1). ....478
Figure 145.Output compare mode, toggle on OC1 .....481
Figure 146.Edge-aligned PWM waveforms (ARR=8) .....482
Figure 147.Complementary output with dead-time insertion. ....483
Figure 148.Dead-time waveforms with delay greater than the negative pulse. ....483
Figure 149.Dead-time waveforms with delay greater than the positive pulse. ....483
Figure 150.Output behavior in response to a break .....486
Figure 151. Output redirection . . . . .488
Figure 152. Example of one pulse mode. . . . .489
Figure 153. Retriggerable one pulse mode . . . . .490
Figure 154. Control circuit in reset mode . . . . .492
Figure 155. Control circuit in gated mode . . . . .492
Figure 156. Control circuit in trigger mode. . . . .493
Figure 157. Master/slave timers example . . . . .494
Figure 158. Gating TIM2 with OC1REF of TIM16 . . . . .495
Figure 159. Gating TIM2 with Enable of TIM16 . . . . .496
Figure 160. Triggering TIM2 with update of TIM16 . . . . .496
Figure 161. Triggering TIM2 with Enable of TIM16 . . . . .497
Figure 162. RTC block diagram . . . . .526
Figure 163. Independent watchdog block diagram . . . . .564
Figure 164. I2C block diagram. . . . .572
Figure 165. I2C bus protocol . . . . .574
Figure 166. Setup and hold timings . . . . .576
Figure 167. I2C initialization flowchart . . . . .579
Figure 168. Data reception . . . . .580
Figure 169. Data transmission . . . . .580
Figure 170. Target initialization flowchart . . . . .584
Figure 171. Transfer sequence flowchart for I2C target transmitter, NOSTRETCH=0 . . . . .585
Figure 172. Transfer sequence flowchart for I2C target transmitter, NOSTRETCH=1 . . . . .586
Figure 173. Transfer bus diagrams for I2C target transmitter . . . . .587
Figure 174. Transfer sequence flowchart for target receiver with NOSTRETCH=0 . . . . .588
Figure 175. Transfer sequence flowchart for target receiver with NOSTRETCH=1 . . . . .589
Figure 176. Transfer bus diagrams for I2C target receiver . . . . .589
Figure 177. Controller clock generation . . . . .591
Figure 178. Controller initialization flowchart . . . . .593
Figure 179. 10-bit address read access with HEAD10R=1 . . . . .593
Figure 180. Transfer sequence flowchart for I2C controller transmitter for N≤255 bytes. . . . .595
Figure 181. Transfer sequence flowchart for I2C controller transmitter for N>255 bytes . . . . .596
Figure 182. Transfer bus diagrams for I2C controller transmitter . . . . .597
Figure 183. Transfer sequence flowchart for I2C controller receiver for N≤255 bytes. . . . .599
Figure 184. Transfer sequence flowchart for I2C controller receiver for N >255 bytes . . . . .600
Figure 185. Transfer bus diagrams for I2C controller receiver. . . . .601
Figure 186. Timeout intervals for \(t_{LOW:SEXT}\), \(t_{LOW:MEXT}\) . . . . .605
Figure 187. Transfer sequence flowchart for SMBus target transmitter N bytes + PEC . . . . .608
Figure 188. Transfer bus diagrams for SMBus target transmitter (SBC=1). . . . .609
Figure 189. Transfer sequence flowchart for SMBus target receiver N Bytes + PEC . . . . .610
Figure 190. Bus transfer diagrams for SMBus target receiver (SBC=1) . . . . .611
Figure 191. Bus transfer diagrams for SMBus controller transmitter . . . . .612
Figure 192. Bus transfer diagrams for SMBus controller receiver . . . . .613
Figure 193. I2C interrupt mapping diagram . . . . .617
Figure 194. USART block diagram . . . . .639
Figure 195. Word length programming . . . . .641
Figure 196. Configurable stop bits . . . . .643
Figure 197. TC/TXE behavior when transmitting . . . . .645
Figure 198. Start bit detection when oversampling by 16 or 8. . . . .646
Figure 199. usart_ker_ck clock divider block diagram . . . . .649
Figure 200. Data sampling when oversampling by 16 . . . . .650
Figure 201. Data sampling when oversampling by 8 . . . . .651
Figure 202. Mute mode using Idle line detection . . . . .656
Figure 203.Mute mode using address mark detection . . . . .657
Figure 204.Break detection in LIN mode (11-bit break length - LBDL bit is set) . . . . .660
Figure 205.Break detection in LIN mode vs. Framing error detection . . . . .661
Figure 206.USART example of synchronous Master transmission . . . . .662
Figure 207.USART data clock timing diagram (M=0) . . . . .662
Figure 208.USART data clock timing diagram (M bits = 01) . . . . .663
Figure 209.RX data setup/hold time . . . . .663
Figure 210.ISO 7816-3 asynchronous protocol . . . . .666
Figure 211.Parity error detection using the 1.5 stop bits . . . . .668
Figure 212.IrDA SIR ENDEC- block diagram . . . . .672
Figure 213.IrDA data modulation (3/16) -Normal Mode . . . . .672
Figure 214.Transmission using DMA . . . . .673
Figure 215.Reception using DMA . . . . .674
Figure 216.Hardware flow control between 2 USARTs . . . . .675
Figure 217.RS232 RTS flow control . . . . .675
Figure 218.RS232 CTS flow control . . . . .676
Figure 219.LPUART Block diagram . . . . .708
Figure 220.LPUART Word length programming . . . . .710
Figure 221.Configurable stop bits . . . . .712
Figure 222.TC/TXE behavior when transmitting . . . . .714
Figure 223.Mute mode using Idle line detection . . . . .720
Figure 224.Mute mode using address mark detection . . . . .721
Figure 225.Transmission using DMA . . . . .723
Figure 226.Reception using DMA . . . . .724
Figure 227.Hardware flow control between 2 LPUARTs . . . . .725
Figure 228.RS232 RTS flow control . . . . .725
Figure 229.RS232 CTS flow control . . . . .726
Figure 230.SPI block diagram . . . . .753
Figure 231.Full-duplex single master/ single slave application . . . . .754
Figure 232.Half-duplex single master/ single slave application . . . . .755
Figure 233.Simplex single master/single slave application (master in transmit-only/
slave in receive-only mode) . . . . .
756
Figure 234.Master and three independent slaves . . . . .757
Figure 235.Hardware/software slave select management . . . . .758
Figure 236.Data clock timing diagram . . . . .760
Figure 237.Data alignment when data length is not equal to 8-bit or 16-bit . . . . .761
Figure 238.Packing data in FIFO for transmission and reception . . . . .765
Figure 239.Master full duplex communication . . . . .768
Figure 240.Slave full duplex communication . . . . .769
Figure 241.Master full duplex communication with CRC . . . . .770
Figure 242.Master full duplex communication in packed mode . . . . .771
Figure 243.NSSP pulse generation in Motorola SPI master mode . . . . .774
Figure 244.TI mode transfer . . . . .775
Figure 245.I2S block diagram . . . . .778
Figure 246.I2S Philips protocol waveforms (16/32-bit full accuracy, CPOL = 0) . . . . .780
Figure 247.I2S Philips standard waveforms (24-bit frame with CPOL = 0) . . . . .780
Figure 248.Transmitting 0x8EAA33 . . . . .780
Figure 249.Receiving 0x8EAA33 . . . . .781
Figure 250.I2S Philips standard (16-bit extended to 32-bit packet frame
with CPOL = 0) . . . . .
781
Figure 251.Example of 16-bit data frame extended to 32-bit channel frame . . . . .781
Figure 252.MSB Justified 16-bit or 32-bit full-accuracy length with CPOL = 0 . . . . .782
Figure 253. MSB justified 24-bit frame length with CPOL = 0 . . . . .782
Figure 254. MSB justified 16-bit extended to 32-bit packet frame with CPOL = 0 . . . . .782
Figure 255. LSB justified 16-bit or 32-bit full-accuracy with CPOL = 0 . . . . .783
Figure 256. LSB justified 24-bit frame length with CPOL = 0. . . . .783
Figure 257. Operations required to transmit 0x3478AE. . . . .783
Figure 258. Operations required to receive 0x3478AE . . . . .783
Figure 259. LSB justified 16-bit extended to 32-bit packet frame with CPOL = 0 . . . . .784
Figure 260. Example of 16-bit data frame extended to 32-bit channel frame . . . . .784
Figure 261. PCM standard waveforms (16-bit) . . . . .785
Figure 262. PCM standard waveforms (16-bit extended to 32-bit packet frame). . . . .785
Figure 263. Audio sampling frequency definition . . . . .786
Figure 264. I2S clock generator architecture . . . . .786
Figure 265. LPAWUR architecture overview . . . . .808
Figure 266. Wakeup frame format . . . . .811
Figure 267. MR_SubG IP block diagram . . . . .833
Figure 268. Basic packet format . . . . .842
Figure 269. 802.15.4 packet format. . . . .843
Figure 270. Data whitening scheme for Basic packets . . . . .845
Figure 271. Data whitening scheme for 802.15.4 packets. . . . .846
Figure 272. FEC scheme for Basic packet format . . . . .847
Figure 273. FEC schemes for 802.15.4 packets . . . . .848
Figure 274. Interleave scheme . . . . .849
Figure 275. Transmission path for 2-(G)FSK modulation . . . . .851
Figure 276. Transmission path for 4-(G)FSK modulation . . . . .851
Figure 277. Transmission path for ASK/OOK modulation . . . . .856
Figure 278. DBPSK modulation emulation through Polar TX mode . . . . .858
Figure 279. Transmission path for Polar TX modulation . . . . .858
Figure 280. Simplified RX data path . . . . .867
Figure 281. TX and TX HP pin connections, TX PA drive mode, VBATT > 1.7 V . . . . .872
Figure 282. TX and TX HP pin connections, TX + TX HP PA drive mode, VBATT > 2.4 V. . . . .873
Figure 283. TX and TX HP pin connections, TX HP PA drive mode, VBATT = 3.3 V . . . . .873
Figure 284. W-MBUS frame format . . . . .877
Figure 285. AGC block diagram. . . . .988
Figure 286. AGC attenuation example. . . . .989
Figure 287. AGC high attenuation mode versus normal mode . . . . .989
Figure 288. RRM overview . . . . .1003
Figure 289. Overview of a possible UDRA command list in RAM . . . . .1006
Figure 290. Radio FSM overview. . . . .1009
Figure 291. Data Buffer Manager overview . . . . .1027
Figure 292. Sequencer actions list example . . . . .1032
Figure 293. SeqAction flow at Sequencer level . . . . .1035
Figure 294. NextActionxMask mechanism overview (with x = 1 or 2) . . . . .1036
Figure 295. Time Management Unit overview . . . . .1054
Figure 296. Wakeup block overview . . . . .1058
Figure 297. Sequencer wakeup event generation . . . . .1059
Figure 298. CPU wakeup event generation . . . . .1060
Figure 299. RX with Auto-Ack use-case through Sequencer example . . . . .1062
Figure 300. Sniff mode use-case through Sequencer example. . . . .1064
Figure 301. LBT use-case through Sequencer example . . . . .1067

Chapters