STM32L5-searje tige feilich mei leech enerzjyferbrûk brûkershantlieding

STM32L5-searje tige feilich mei leech enerzjyferbrûk

Spesifikaasjes:

  • Produktnamme: RM0438 Referinsjehânlieding
  • Ferzje: Rev 8
  • Siden: 1 oant 2187
  • Release Date: juny 2025
  • Makker: www.st.com

Produktynformaasje:

De RM0438 referinsjehânlieding jout detaillearre ynformaasje oer
ûnthâld- en busarsjitektuer, TrustZone-feiligensarsjitektuer,
ûnthâldorganisaasje, ynbêde SRAM, flashûnthâld oerview, laars
konfiguraasje en systeemfeiligens.

Produkt gebrûksynstruksjes:

Geheugen- en busarsjitektuer:

De systeemarsjitektuer omfettet Fast C-bus, Slow C-bus, S-bus,
DMA-bus, SDMMC-controller DMA-bus, en BusMatrix.

TrustZone Feiligensarsjitektuer:

Ferklearret de standert TrustZone-feiligensstatus en TrustZone
perifeare klassifikaasje.

Unthâld Organisaasje:

Beskriuwt de ûnthâldkaart, registergrinsadressen, en de
organisaasje fan ynbêde SRAM.

Ynbêde SRAM:

Details SRAM2 pariteitskontrôle, skriuwbeskerming, lêsbeskerming,
operaasjes wiskje.

Flash-ûnthâld oerview:

Biedt in oerview fan it flashûnthâld dat yn it systeem brûkt wurdt.

Boot konfiguraasje:

Behannelet de opstartkonfiguraasje-ynstellings foar it systeem.

Systeemfeiligens:

Ynlieding ta systeemfeiligensmaatregels.

Faak stelde fragen (FAQ):

F: Wêr kin ik ynformaasje fine oer it weromsetten fan it register
wearden?

A: De register-resetwearden wurde detaillearre yn seksje 1.3 fan 'e
hantlieding.

F: Wat is de befeiligingsarsjitektuer fan TrustZone?

A: De befeiligingsarsjitektuer fan TrustZone wurdt útlein yn seksje 2.2
fan de hânlieding.

F: Hoe kin ik de opstartynstellingen konfigurearje?

A: Ynstruksjes foar opstartkonfiguraasje binne te finen yn seksje 3
fan de hânlieding.

"`

RM0438 Referinsjehânlieding
STM32L5-searje avansearre Arm®-basearre 32-bit MCU's
Ynlieding
Dizze referinsjehânlieding is rjochte op applikaasje-ûntwikkelders. It jout folsleine ynformaasje oer hoe't jo it ûnthâld en de perifeare apparaten fan 'e STM32L552xx en STM32L562xx mikrokontrollers brûke kinne. STM32L552xx en STM32L562xx hearre ta de STM32L5x2-line fan mikrokontrollers mei ferskate ûnthâldgrutte, pakketten en perifeare apparaten. Foar bestelynformaasje, meganyske en elektryske apparaatkarakteristiken, sjoch de oerienkommende datasheets. Foar ynformaasje oer de Arm® Cortex®-M33-kearn, sjoch de Cortex®-M33 Technical Reference manual. De STM32L552xx en STM32L562xx mikroprocessors omfetsje de nijste patintearre technology fan ST.
Related dokuminten
· Cortex®-M33 Technyske Referinsjehânlieding beskikber op http://infocenter.arm.com · STM32L552xx en STM32L562xx datasheets · STM32L552xx en STM32L562xx erratablêden

juny 2025

RM0438 Rev 8

1/2187

www.st.com

1

Ynhâld
Ynhâld

RM0438

1

Dokumintaasjekonvinsjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

1.1 Algemiene ynformaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

1.2 List mei ôfkoartings foar registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

1.3 Wearde foar it weromsetten fan it register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

1.4 Glossarium . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

1.5 Beskikberens fan randapparaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

2

Geheugen- en busarsjitektuer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

2.1 Systeemarsjitektuer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

2.1.1 Snelle C-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

2.1.2 Trage C-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

2.1.3 S-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

2.1.4 DMA-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

2.1.5 SDMMC-controller DMA-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

2.1.6 Busmatriks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

2.2 TrustZone-feiligensarsjitektuer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

2.2.1 Standert TrustZone-feiligenssteat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

2.2.2 Klassifikaasje fan perifeare apparaten fan TrustZone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

2.3 Geheugenorganisaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

2.3.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

2.3.2 Adressen fan ûnthâldkaart en registergrinzen . . . . . . . . . . . . . . . . . . . . . 87

2.4 Ynboude SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

2.4.1 SRAM2 pariteitskontrôle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

2.4.2 SRAM2 Skriuwbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

2.4.3 SRAM2 Lêsbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

2.4.4 SRAM2 wiskje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

2.5 Flash-ûnthâld oerview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

3

Opstartkonfiguraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

4

Systeemfeiligens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

4.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

4.2 Wichtige feiligensfunksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

2/2187

RM0438 Rev 8

RM0438

Ynhâld

4.3 4.4 4.5 4.6
4.7 4.8
4.9 4.10 4.11 4.12 4.13

Feilige ynstallaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Feilich opstarten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
4.4.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4.4.2 Unike opstartynfier en BOOT_LOCK . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4.4.3 Unferoarlike root of trust yn systeemflashûnthâld . . . . . . . . . . . . . . . . . . 102
Feilige fernijing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 Isolaasje fan boarnen mei TrustZone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
4.6.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.6.2 TrustZone-feiligensarsjitektuer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.6.3 Armv8-M-feiligensútwreiding fan Cortex-M33 . . . . . . . . . . . . . . . . . . . . . . . 104 4.6.4 Geheugen- en perifeare tawizing mei IDAU/SAU . . . . . . . . . . . . . . . 104 4.6.5 Geheugen- en perifeare tawizing mei GTZC . . . . . . . . . . . . . . . . . . . 106 4.6.6 Feiligens beheare yn TrustZone-bewuste perifeare apparaten . . . . . . . . . . . . . . . . . 109 4.6.7 TrustZone-feiligens aktivearje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 4.6.8 TrustZone-feiligens deaktivearje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Oare isolaasjes fan boarnen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
4.7.1 Tydlike isolaasje mei feilige hidebeskerming (HDP) . . . . . . . . . . . . . . 117
Feilige útfiering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
4.8.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 4.8.2 Geheugenbeskermingsienheid (MPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 4.8.3 Ynboude flash-ûnthâld skriuwbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . 118 4.8.4 Tamper deteksje en reaksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Feilige opslach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
4.9.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 4.9.2 Unike ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Krypto-motors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
4.10.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 4.10.2 Funksjes fan Krypto-motors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 4.10.3 On-the-fly ûntsiferingsmotor (OTFDEC) . . . . . . . . . . . . . . . . . . . ... . . . . 122
Produktlibbensyklus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4.11.1 Libbensyklusbehear mei útlêsbeskerming (RDP) . . . . . . . . . . . . . . 124 4.11.2 Oanrikkemandearre opsjebyte-ynstellings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Tagongskontroleare debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4.12.1 Debugbeskerming mei útlêsbeskerming (RDP) . . . . . . . . . . . . . . . . . . . 125
Beskerming fan yntellektueel eigendom fan software en gearwurkjende ûntwikkeling 126

RM0438 Rev 8

3/2187
54

Ynhâld

RM0438

4.13.1
4.13.2 4.13.3

Beskerming fan yntellektueel eigendom fan software mei útlêsbeskerming (RDP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Beskerming fan yntellektueel eigendom fan software mei OTFDEC . . . . . . . . . . . . . 127
Oare beskermingen fan yntellektueel eigendom fan software . . . . . . . . . . . . . . . . . . . 129

5

Globale TrustZone®-controller (GTZC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.1 Ynlieding ta GTZC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.2 Haadfunksjes fan GTZC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.2.1 GTZC TrustZone systeemarsjitektuer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.3 Funksjonele beskriuwing fan GTZC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

5.3.1 GTZC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

5.3.2 Definysje fan yllegale tagong . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

5.3.3 TrustZone-feiligenskontroller (TZSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134

5.3.4 Geheugenbeskermingskontroller – blokbasearre (MPCBB) . . . . . . . . . . . . . . . 134

5.3.5 TrustZone yllegale tagongskontroller (TZIC) . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.3.6 Ynskeakele/weromsette steat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.3.7 DMA-oanfragen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.4 GTZC-eveneminten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.5 GTZC_TZSC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

5.5.1 GTZC_TZSC kontrôleregister (GTZC_TZSC_CR) . . . . . . . . . . . . . . . . . . 136

5.5.2

GTZC_TZSC feilich konfiguraasjeregister 1 (GTZC_TZSC_SECCFGR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

5.5.3

GTZC_TZSC feilich konfiguraasjeregister 2 (GTZC_TZSC_SECCFGR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

5.5.4

GTZC_TZSC privileezjekonfiguraasjeregister 1 (GTZC_TZSC_PRIVCFGR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

5.5.5

GTZC_TZSC privileezjekonfiguraasjeregister 2 (GTZC_TZSC_PRIVCFGR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145

5.5.6

GTZC_TZSC ekstern ûnthâld x net-feilich wettermerkregister 1 (GTZC_TZSC_MPCWMxANSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

5.5.7

GTZC_TZSC ekstern ûnthâld x net-feilich wettermerkregister 2 (GTZC_TZSC_MPCWMxBNSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

5.5.8 GTZC_TZSC registermap en weromsette wearden . . . . . . . . . . . . . . . . . . . . . . 148

5.6 GTZC_MPCBB-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150

5.6.1 GTZC_MPCBBx kontrôleregister (GTZC_MPCBBx_CR) (x = 1 oant 2). 150

5.6.2 GTZC_MPCBB1 slútregister 1(GTZC_MPCBB1_LCKVTR1) . . . . . . 151

5.6.3

GTZC_MPCBB2 slútregister 1 (GTZC_MPCBB2_LCKVTR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

4/2187

RM0438 Rev 8

RM0438

Ynhâld

5.6.4

GTZC_MPCBBx fektorregister y (GTZC_MPCBBx_VCTRy) (x = 1 oant 2) . . . . . . . . . . . . . . . . . . . . . . . . . . 152

5.6.5 GTZC_MPCBB1 registermap en weromsette wearden . . . . . . . . . . . . . . . . . . . 153

5.6.6 GTZC_MPCBB2 registermap en weromsette wearden . . . . . . . . . . . . . . . . . . . 153

5.7 GTZC_TZIC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

5.7.1 GTZC_TZIC ûnderbrekkings ynskeakelje register 1 (GTZC_TZIC_IER1) . . . . . . . . 154

5.7.2 GTZC_TZIC ûnderbrekkings ynskeakelje register 2 (GTZC_TZIC_IER2) . . . . . . . . 157

5.7.3 GTZC_TZIC ûnderbrekkings ynskeakelje register 3 (GTZC_TZIC_IER3) . . . . . . . . 159

5.7.4 GTZC_TZIC statusregister 1 (GTZC_TZIC_SR1) . . . . . . . . . . . . . . . . . 160

5.7.5 GTZC_TZIC statusregister 2 (GTZC_TZIC_SR2) . . . . . . . . . . . . . . . . . 163

5.7.6 GTZC_TZIC statusregister 3 (GTZC_TZIC_SR3) . . . . . . . . . . . . . . . . . 165

5.7.7 GTZC_TZIC flagge register 1 wiskje (GTZC_TZIC_FCR1) . . . . . . . . . . . . . . 166

5.7.8 GTZC_TZIC flagge register 2 wiskje (GTZC_TZIC_FCR2) . . . . . . . . . . . . . . 169

5.7.9 GTZC_TZIC flagge register 3 wiskje (GTZC_TZIC_FCR3) . . . . . . . . . . . . . . 171

5.7.10 GTZC_TZIC registermap en weromsette wearden . . . . . . . . . . . . . . . . . . . . . . . 172

6

Ynboude flash-ûnthâld (FLASH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

6.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

6.2 Haadfunksjes fan FLASH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

6.3 Funksjonele beskriuwing fan it flashûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

6.3.1 Organisaasje fan flash-ûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

6.3.2 Flaterkoadekorreksje (ECC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

6.3.3 Lêstagongslatensje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

6.3.4 Low-voltage lêzen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

6.3.5 Flash-programmearring en wiskjen fan operaasjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

6.3.6 Wissekwinsjes fan it flash-haadûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

6.3.7 Programmearringsekwinsjes fan it flash-haadûnthâld . . . . . . . . . . . . . . . . . . . . . . 185

6.3.8 Flaggen foar flashflaters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

6.3.9

Lêze-wylst-skriuwe (RWW) allinnich beskikber yn dûbele bankmodus (DBANK = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

6.4 Opsjebytes foar flash-ûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

6.4.1 Beskriuwing fan opsjebytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

6.4.2 Programmearjen fan opsjebytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

6.5 Flash TrustZone-feiligens en privileezjebeskermingen . . . . . . . . . . . . . . . . . . 193

6.5.1 TrustZone-feiligensbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

6.5.2 Feilige gebietsbeskerming basearre op wettermerken . . . . . . . . . . . . . . . . . . . . . . . . . 195

6.5.3 Feilige hûdbeskerming (HDP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

RM0438 Rev 8

5/2187
54

Ynhâld

RM0438

6.5.4 Secure block-based area (SECBB) beskerming . . . . . . . . . . . . . . . . . . . . 196 6.5.5 Opstarten forsearje fan in feilich ûnthâldadres . . . . . . . . . . . . . . . . . . . . . 197 6.5.6 Steat fan Flash-feiligensattribuut . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 6.5.7 Flash registrearret privilegearre en net-privilegearre modi . . . . . . . . . . . . . . . . 198
6.6 Feilich systeemûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
6.6.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 6.6.2 RSS wijst boarnen ta oan bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 6.6.3 RSSLIB-funksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
6.7 FLASH-ûnthâldbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
6.7.1 Skriuwbeskerming (WRP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 6.7.2 Útlêsbeskerming (RDP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
6.8 FLASH-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 6.9 FLASH-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
6.9.1 Flash tagongskontrôleregister (FLASH_ACR) . . . . . . . . . . . . . . . . . . . . 213 6.9.2 Flash útskeakelkaairegister (FLASH_PDKEYR) . . . . . . . . . . . . . . 214 6.9.3 Flash net-feilige kaairegister (FLASH_NSKEYR) . . . . . . . . . . . . . . . 215 6.9.4 Flash feilige kaairegister (FLASH_SECKEYR) . . . . . . . . . . . . . . . . . . 215 6.9.5 Flash opsjekaairegister (FLASH_OPTKEYR) . . . . . . . . . . . . . . . . . . . . 216 6.9.6 Flits leech folumetage kaairegister (FLASH_LVEKEYR) . . . . . . . . . . . . . . . . 216 6.9.7 Flitsstatusregister (FLASH_NSSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 6.9.8 Flitsstatusregister (FLASH_SECSR) . . . . . . . . . . . . . . . . . . . . . . . . . . 218 6.9.9 Net-feilich flitskontrôleregister (FLASH_NSCR) . . . . . . . . . . . . . . . . 220 6.9.10 Flitsfeilich kontrôleregister (FLASH_SECCR) . . . . . . . . . . . . . . . . . . . 222 6.9.11 Flits ECC-register (FLASH_ECCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 6.9.12 Flits-opsjeregister (FLASH_OPTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 6.9.13 Flash net-feilich opstartadres 0 register (FLASH_NSBOOTADD0R) 227 6.9.14 Flash net-feilich opstartadres 1 register (FLASH_NSBOOTADD1R) 228 6.9.15 Flash feilich opstartadres 0 register (FLASH_SECBOOTADD0R) . . 228 6.9.16 Flash bank 1 feilich wettermerk1 register (FLASH_SECWM1R1) . . . . 229 6.9.17 Flash feilich wettermerk1 register 2 (FLASH_SECWM1R2) . . . . . . . . 230 6.9.18 Flash WPR1 gebiet A adresregister (FLASH_WRP1AR) . . . . . . . . . 231 6.9.19 Flash WPR1 gebiet B adresregister (FLASH_WRP1BR) . . . . . . . . . 232 6.9.20 Flash feilich wettermak2 register (FLASH_SECWM2R1) . . . . . . . . . . 233 6.9.21 Flash feilich wettermak2 register 2 (FLASH_SECWM2R2) . . . . . . . . 234 6.9.22 Flash WPR2 gebiet A adresregister (FLASH_WRP2AR) . . . . . . . . . 235 6.9.23 Flash WPR2 gebiet B adresregister (FLASH_WRP2BR) . . . . . . . . . 236

6/2187

RM0438 Rev 8

RM0438

Ynhâld

6.9.24
6.9.25
6.9.26 6.9.27 6.9.28

FLASH feilich blok basearre bank 1 register (FLASH_SECBB1Rx) (wêrby't x=1..4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
FLASH feilich blok basearre bank 2 register (FLASH_SECBB2Rx) (wêrby't x=1..4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
FLASH feilich HDP-kontrôleregister (FLASH_SECHDPCR) . . . . . . . . . 238
FLASH-privileezjekonfiguraasjeregister (FLASH_PRIVCFGR) . . . . . . . 238
FLASH-registerkaart en weromsette wearden . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

7

Ynstruksjecache (ICACHE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

7.1 Ynlieding ta ICACHE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

7.2 Haadfunksjes fan ICACHE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

7.3 ICACHE-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

7.4 Funksjonele beskriuwing fan ICACHE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

7.4.1 ICACHE-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244

7.4.2 ICACHE reset en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244

7.4.3 ICACHE TAG ûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245

7.4.4 Direkt-mapped ICACHE (1-way cache) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

7.4.5 ICACHE ynskeakelje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

7.4.6 Cacheber en net-cacheber ferkear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

7.4.7 Adres opnij tawize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248

7.4.8 Tagongsmooglikheden dy't yn 'e cache opslein wurde kinne . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

7.4.9 Dual-master cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

7.4.10 ICACHE-feiligens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

7.4.11 ICACHE-ûnderhâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

7.4.12 ICACHE-prestaasjemonitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

7.4.13 ICACHE opstarte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

7.5 ICACHE leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

7.6 ICACHE-flaterbehear en ûnderbrekkingen . . . . . . . . . . . . . . . . . . . . . . . . . 253

7.7 ICACHE-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

7.7.1 ICACHE-kontrôleregister (ICACHE_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . 253

7.7.2 ICACHE-statusregister (ICACHE_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254

7.7.3 ICACHE-ûnderbrekkings ynskeakeljenregister (ICACHE_IER) . . . . . . . . . . . . . . . . . . 255

7.7.4 ICACHE-flagge dúdlik register (ICACHE_FCR) . . . . . . . . . . . . . . . . . . . . . . . 255

7.7.5 ICACHE-treffermonitorregister (ICACHE_HMONR) . . . . . . . . . . . . . . . . . . 256

7.7.6 ICACHE miss monitor register (ICACHE_MMONR) . . . . . . . . . . . . . . . . 256

7.7.7 ICACHE regio x konfiguraasjeregister (ICACHE_CRRx) . . . . . . . . . . 256

7.7.8 ICACHE-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258

RM0438 Rev 8

7/2187
54

Ynhâld

RM0438

8

Stroomregeling (PWR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

8.1 Stroomfoarsjennings en stroomdomeinen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

8.1.1 Unôfhinklike oanfier fan analoge randapparaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

8.1.2 Unôfhinklike I/O-oanfierrail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

8.1.3 Unôfhinklike USB-transceivers leverje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

8.1.4 Domein foar batterij-reservekopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

8.2 Systeemfoarsjenningsvolumetage regeljouwing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

8.2.1 Flechttage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

8.2.2 Ynboude SMPS step-down converter . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

8.2.3 SMPS step-down converter stroomfoarsjenningsskema . . . . . . . . . . . . . . . . . . 268

8.2.4 SMPS step-down converter versus leech-enerzjy modus . . . . . . . . . . . . . . . 269

8.2.5 Dynamysk folumetage skalearringsbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

8.2.6 VDD12-domein en eksterne SMPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271

8.3 Tafersjoch op de stroomfoarsjenning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

8.3.1

Ynskeakelje/útskeakelje (POR) / útskeakelje (PDR) / stroomûnderbrekking (BOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

8.3.2 Programmeerbere folumetage-detektor (PVD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274

8.3.3 Perifeare folumetage monitoring (PVM). . . . . . . . . . . . . . . . . . . . . . . . . . 275

8.3.4 Boppeste folumetage drompelmonitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

8.3.5 Temperatuerdrompelmonitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

8.4 Enerzjybehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

8.4.1 Enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

8.4.2 Útfiermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

8.4.3 Leech-enerzjy runmodus (LP-run) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

8.4.4 Leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284

8.4.5 Sliepmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285

8.4.6 Sliepmodus mei leech enerzjyferbrûk (LP-sliep) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

8.4.7 Stop 0-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

8.4.8 Stop 1-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289

8.4.9 Stop 2-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290

8.4.10 Standby-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

8.4.11 Útskeakelmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

8.4.12 Automatysk wekker wurde út in leech-enerzjymodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296

8.5 PWR TrustZone-feiligens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296

8.5.1 PWR-modi mei en sûnder privileezjes . . . . . . . . . . . . . . . . . . . . . . . . . 298

8.6 PWR-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

8/2187

RM0438 Rev 8

RM0438

Ynhâld

8.6.1 8.6.2 8.6.3 8.6.4 8.6.5 8.6.6 8.6.7 8.6.8 8.6.9 8.6.10 8.6.11 8.6.12 8.6.13. 8.6.14 8.6.15 8.6.16 8.6.17 8.6.18 8.6.19 8.6.20 8.6.21 8.6.22 8.6.23 8.6.24

Stroombehearskingregister 1 (PWR_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 Stroombehearskingregister 2 (PWR_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . 300 Stroombehearskingregister 3 (PWR_CR3) . . . . . . . . . . . . . . . . . . . . . . . . . 301 Stroombehearskingregister 4 (PWR_CR4) . . . . . . . . . . . . . . . . . . . . . . . . . 303 Stroomstatusregister 1 (PWR_SR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Stroomstatusregister 2 (PWR_SR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Stroomstatus wiskjend register (PWR_SCR) . . . . . . . . . . . . . . . . . . . . . . . . 307 Power Port A pull-up kontrôleregister (PWR_PUCRA) . . . . . . . . . . . . . 308 Power Port A pull-down kontrôleregister (PWR_PDCRA) . . . . . . . . . . . 308 Power Port B pull-up kontrôleregister (PWR_PUCRB) . . . . . . . . . . . . . 309 Power Port B pull-down kontrôleregister (PWR_PDCRB) . . . . . . . . . . 310 Power Port C pull-up kontrôleregister (PWR_PUCRC) . . . . . . . . . . . 310 Power Port C pull-down kontrôleregister (PWR_PDCRC) . . . . . . . . . . 311 Power Port D pull-up kontrôleregister (PWR_PUCRD) . . . . . . . . . . . . 311 Power Port D pull-down kontrôleregister (PWR_PDCRD) . . . . . . . . . . 312 Power Port E pull-up kontrôleregister (PWR_PUCRE) . . . . . . . . . . . . 313 Power Port E pull-down kontrôleregister (PWR_PDCRE) . . . . . . . . . 313 Power Port F pull-up kontrôleregister (PWR_PUCRF) . . . . . . . . . . . . 314 Power Port F pull-down kontrôleregister (PWR_PDCRF) . . . . . . . . . . 314 Power Port G pull-up kontrôleregister (PWR_PUCRG) . . . . . . . . . . . . . 315 Power Port G pull-down kontrôleregister (PWR_PDCRG) . . . . . . . . . . 316 Power Port H pull-up kontrôleregister (PWR_PUCRH) . . . . . . . . . . . . 316 Power Port H pull-down kontrôleregister (PWR_PDCRH) . . . . . . . . . . 317 Power befeilige konfiguraasjeregister (PWR_SECCFGR) . . . . . . . . . . . 317 Power privileezje konfiguraasjeregister (PWR_PRIVCFGR) . . . . . . . . . 319 PWR-registerkaart en weromsette wearden . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

9

Reset en klokkontrôle (RCC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1 Weromsette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1.1 Stroom weromsette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1.2 Systeem reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1.3 Reservekopy domein weromsette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

9.2 RCC-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

9.3 Klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

9.3.1 HSE-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

9.3.2 HSI16 klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330

9.3.3 MSI-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331

RM0438 Rev 8

9/2187
54

Ynhâld

RM0438

9.3.4 HSI48 klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 9.3.5 PLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 9.3.6 LSE klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 9.3.7 LSE-systeemklok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 9.3.8 LSI-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 9.3.9 Seleksje fan systeemklok (SYSCLK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 9.3.10 Klokboarnefrekwinsje versus folumetage skalearring . . . . . . . . . . . . . . . . . . . . 335 9.3.11 Klokfeiligenssysteem (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 9.3.12 Klokfeiligenssysteem op LSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 9.3.13 ADC-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 9.3.14 RTC-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 9.3.15 Timerklok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 9.3.16 Wachthûnklok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 9.3.17 Útklokmooglikheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 9.3.18 Ynterne/eksterne klokmjitting mei TIM15/TIM16/TIM17 . . . . . 337 9.3.19 Perifeare klok ynskeakeljeregisters
(RCC_AHBxENR, RCC_APBxENRy) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
9.4 Modi mei leech enerzjyferbrûk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 9.5 RCC TrustZone®-feiligens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341 9.6 RCC-modus mei en sûnder privileezjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 9.7 RCC-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 9.8 RCC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
9.8.1 RCC klokkontrôleregister (RCC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 9.8.2 RCC ynterne klokboarnen kalibraasjeregister (RCC_ICSCR) . . . . . . 348 9.8.3 RCC klokkonfiguraasjeregister (RCC_CFGR) . . . . . . . . . . . . . . . . . 349 9.8.4 RCC PLL konfiguraasjeregister (RCC_PLLCFGR) . . . . . . . . . . . . . . . 352 9.8.5 RCC PLLSAI1 konfiguraasjeregister (RCC_PLLSAI1CFGR) . . . . . . . 355 9.8.6 RCC PLLSAI2 konfiguraasjeregister (RCC_PLLSAI2CFGR) . . . . . . . 358 9.8.7 RCC klokûnderbrekking ynskeakelje register (RCC_CIER) . . . . . . . . . . . . . . . . 360 9.8.8 RCC klokûnderbrekkingsflaggeregister (RCC_CIFR) . . . . . . . . . . . . . . . . . . 361 9.8.9 RCC klokûnderbrekkings wiskjen register (RCC_CICR) . . . . . . . . . . . . . . . . . 363 9.8.10 RCC AHB1 perifeare resetregister (RCC_AHB1RSTR) . . . . . . . . . . 364 9.8.11 RCC AHB2 perifeare resetregister (RCC_AHB2RSTR) . . . . . . . . . . 365 9.8.12 RCC AHB3 perifeare resetregister (RCC_AHB3RSTR) . . . . . . . . . . 367 9.8.13 RCC APB1 perifeare resetregister 1 (RCC_APB1RSTR1) . . . . . . . . 368 9.8.14 RCC APB1 perifeare resetregister 2 (RCC_APB1RSTR2) . . . . . . . . 370 9.8.15 RCC APB2 perifeare resetregister (RCC_APB2RSTR) . . . . . . . . . . . 371

10/2187

RM0438 Rev 8

RM0438

Ynhâld

9.8.16 9.8.17 9.8.18 9.8.19 9.8.20 9.8.21 9.8.22
9.8.23
9.8.24
9.8.25
9.8.26
9.8.27
9.8.28
9.8.29 9.8.30 9.8.31 9.8.32
9.8.33 9.8.34 9.8.35 9.8.36 9.8.37 9.8.38 9.8.39 9.8.40 9.8.41 9.8.42

RCC AHB1 perifeare klok ynskeakelje register (RCC_AHB1ENR) . . . . . 373 RCC AHB2 perifeare klok ynskeakelje register (RCC_AHB2ENR) . . . . . 374 RCC AHB3 perifeare klok ynskeakelje register (RCC_AHB3ENR) . . . . . . 376
RCC APB1 perifeare klok ynskeakelje register 1 (RCC_APB1ENR1) . . . 377 RCC APB1 perifeare klok ynskeakelje register 2 (RCC_APB1ENR2) . . . 379
RCC APB2 perifeare klok ynskeakelje register (RCC_APB2ENR) . . . . . 381 RCC AHB1 perifeare klokken ynskeakelje yn sliep- en stopmodi register (RCC_AHB1SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382 RCC AHB2 perifeare klokken ynskeakelje yn sliep- en stopmodi register (RCC_AHB2SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
RCC AHB3 perifeare klokken ynskeakelje yn sliep- en stopmodi register (RCC_AHB3SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386 RCC APB1 perifeare klokken ynskeakelje yn sliep- en stopmodi register 1 (RCC_APB1SMENR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 RCC APB1 perifeare klokken ynskeakelje yn sliep- en stopmodi register 2 (RCC_APB1SMENR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
RCC APB2 perifeare klokken ynskeakelje yn Sliep- en Stopmodi register (RCC_APB2SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391 RCC perifeare apparaten ûnôfhinklike klokkonfiguraasjeregister 1 (RCC_CCIPR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393 RCC Reservekopy domeinkontrôleregister (RCC_BDCR) . . . . . . . . . . . ... 395
RCC-kontrôle-/statusregister (RCC_CSR) . . . . . . . . . . . . . . . . . . . . . . . . 398 RCC-klokherstel RC-register (RCC_CRRCR) . . . . . . . . . . . . . . . . . 400 RCC-perifeare apparaten ûnôfhinklike klokkonfiguraasjeregister 2 (RCC_CCIPR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
OCTOSPI-fertragingkonfiguraasjeregister (RCC_DLYCFGR) . . . . . . . . . . 402 RCC feilich konfiguraasjeregister (RCC_SECCFGR) . . . . . . . . . . . . . 403 RCC feilich statusregister (RCC_SECSR) . . . . . . . . . . . . . . . . . . . . . 405
RCC AHB1 befeiligingsstatusregister (RCC_AHB1SECSR) . . . . . . . . . . . 407 RCC AHB2 befeiligingsstatusregister (RCC_AHB2SECSR) . . . . . . . . . . 408 RCC AHB3 befeiligingsstatusregister (RCC_AHB3SECSR) . . . . . . . . . . 410
RCC APB1 befeiligingsstatusregister 1 (RCC_APB1SECSR1) . . . . . . . 411 RCC APB1 befeiligingsstatusregister 2 (RCC_APB1SECSR2) . . . . . . . 414 RCC APB2 befeiligingsstatusregister (RCC_APB2SECSR) . . . . . . . . . . 415
RCC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417

10

Klokherstelsysteem (CRS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

10.1 Ynlieding ta CRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

10.2 Haadfunksjes fan CRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

RM0438 Rev 8

11/2187
54

Ynhâld

RM0438

10.3 10.4
10.5 10.6 10.7

CRS-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424 CRS funksjonele beskriuwing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
10.4.1 CRS-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 10.4.2 Ynterne CRS-sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 10.4.3 Syngronisaasje-ynfier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426 10.4.4 Frekwinsjeflatermjitting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426 10.4.5 Frekwinsjeflaterevaluaasje en automatysk trimmen . . . . . . . . . . . . . . . 427 10.4.6 CRS-inisjalisaasje en konfiguraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
CRS yn leech-enerzjy modi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 CRS ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 CRS registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
10.7.1 CRS-kontrôleregister (CRS_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 10.7.2 CRS-konfiguraasjeregister (CRS_CFGR) . . . . . . . . . . . . . . . . . . . . . . 430 10.7.3 CRS-ûnderbrekkings- en statusregister (CRS_ISR) . . . . . . . . . . . . . . . . . . . . 431 10.7.4 CRS-ûnderbrekkingsflagge wiskjend register (CRS_ICR) . . . . . . . . . . . . . . . . . . . . . 433 10.7.5 CRS-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434

11

Algemiene I/O's (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.2 Haadfunksjes fan GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.3 Funksjonele beskriuwing fan GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.3.1 Algemien I/O (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438

11.3.2 I/O-pin alternative funksjemultiplekser en mapping . . . . . . . . . . . . . . . . . 438

11.3.3 I/O-poartekontrôleregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

11.3.4 I/O-poarte gegevensregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

11.3.5 Bitwize ôfhanneling fan I/O-gegevens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

11.3.6 GPIO-slotmeganisme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

11.3.7 I/O alternative funksje ynfier/útfier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

11.3.8 Eksterne ûnderbrekkings-/wekliedingen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

11.3.9 Ynfierkonfiguraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441

11.3.10 Utfierkonfiguraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441

11.3.11 Konfiguraasje fan alternative funksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442

11.3.12 Analoge konfiguraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443

11.3.13 It brûken fan de HSE- of LSE-oscillatorpinnen as GPIO's . . . . . . . . . . . . . . . . . . . 443

11.3.14 It brûken fan de GPIO-pinnen yn it RTC-foarsjenningsdomein . . . . . . . . . . . . . . . . . . . . 443

11.3.15 PH3 brûke as GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444

12/2187

RM0438 Rev 8

RM0438

Ynhâld

11.4 11.5 11.6

TrustZone-feiligens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Privileezjeare en net-privileezjeare modi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
GPIO-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
11.6.1 GPIO-poartemodusregister (GPIOx_MODER) (x =A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
11.6.2 GPIO-poarteútfiertyperegister (GPIOx_OTYPER) (x = A oant H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
11.6.3 GPIO-poarte útfiersnelheidsregister (GPIOx_OSPEEDR) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
11.6.4 GPIO-poarte pull-up/pull-down register (GPIOx_PUPDR) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
11.6.5 GPIO-poarte ynfiergegevensregister (GPIOx_IDR) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
11.6.6 GPIO-poarte útfiergegevensregister (GPIOx_ODR) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
11.6.7 GPIO-poarte bit ynsteld/weromsetregister (GPIOx_BSRR) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
11.6.8 GPIO-poartekonfiguraasjebeskoattelregister (GPIOx_LCKR) (x = A oant H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
11.6.9 GPIO alternative funksje leech register (GPIOx_AFRL) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
11.6.10 GPIO alternative funksje heech register (GPIOx_AFRH) (x = A nei H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
11.6.11 GPIO-poarte bit resetregister (GPIOx_BRR) (x = A nei H) . . . . . . . . . . . . . . 452
11.6.12 GPIO feilich konfiguraasjeregister (GPIOx_SECCFGR) (x = A oant H). 452
11.6.13 GPIO-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454

12

Systeemkonfiguraasjekontroller (SYSCFG) . . . . . . . . . . . . . . . . . . . . . . . 456

12.1 Haadfunksjes fan SYSCFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456

12.2 SYSCFG TrustZone-feiligens en privileezjes . . . . . . . . . . . . . . . . . . . . . . . . . . 456

12.3 SYSCFG-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458

12.3.1 SYSCFG feilich konfiguraasjeregister (SYSCFG_SECCFGR) . . . . . 458

12.3.2 SYSCFG-konfiguraasjeregister 1 (SYSCFG_CFGR1) . . . . . . . . . . . . . . 459

12.3.3 FPU-ûnderbrekkingsmaskerregister (SYSCFG_FPUIMR) . . . . . . . . . . . . . . . . . . 461

12.3.4 SYSCFG CPU net-feilich slútregister (SYSCFG_CNSLCKR) . . . . . 461

12.3.5 SYSCFG CPU feilich slútregister (SYSCFG_CSLOCKR) . . . . . . . . . 462

12.3.6 SYSCFG-konfiguraasjeregister 2 (SYSCFG_CFGR2) . . . . . . . . . . . . . . 463

12.3.7 SYSCFG SRAM2 kontrôle- en statusregister (SYSCFG_SCSR) . . . . 464

12.3.8 SYSCFG SRAM2 kaairegister (SYSCFG_SKR) . . . . . . . . . . . . . . . . . . . 465

RM0438 Rev 8

13/2187
54

Ynhâld

RM0438

12.3.9 SYSCFG SRAM2 skriuwbeskermingsregister (SYSCFG_SWPR) . . . . . . 465 12.3.10 SYSCFG SRAM2 skriuwbeskermingsregister 2 (SYSCFG_SWPR2) . . . 466 12.3.11 SYSCFG RSS-kommandoregister (SYSCFG_RSSCMDR) . . . . . . . . . 466 12.3.12 SYSCFG-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467

13

Ferbiningsmatrix fan perifeare apparaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

13.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

13.2 Oersjoch fan ferbiningen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

13.3 Details oer ferbining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470

13.3.1 Fan timer (TIM1/TIM2/TIM3/TIM4/TIM5/TIM8/TIM15/TIM16/TIM17) nei timer (TIM1/TIM2/TIM3/TIM4/TIM5/TIM8/TIM15) . . . . . . . . . . . . . . . . . . 470

13.3.2 Fan timer (TIM1/TIM2/TIM3/TIM4/TIM6/TIM8/TIM15) en EXTI nei ADC (ADC1/ADC2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471

13.3.3 Fan ADC1/ADC2 nei timer (TIM1/TIM8) . . . . . . . . . . . . . . . . . . . . . . . . . . 471

13.3.4 Fan timer (TIM2/TIM4/TIM5/TIM6/TIM7/TIM8) en EXTI nei DAC (DAC1/DAC2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472

13.3.5 Fan timer (TIM1/TIM3/TIM4/TIM6/TIM7/TIM8/TIM16/LPTIM1) en EXTI nei DFSDM1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472

13.3.6 Fan DFSDM1 nei timer (TIM1/TIM8/TIM15/TIM16/TIM17) . . . . . . . . . . 473

13.3.7 Fan HSE, LSE, LSI, MSI, MCO, RTC nei timer (TIM2/TIM15/TIM16/TIM17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473

13.3.8 Fan RTC, COMP1, COMP2 nei leech-enerzjy timer (LPTIM1/LPTIM2/LPTIM3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

13.3.9 Fan timer (TIM1/TIM2/TIM3/TIM8/TIM15) nei komparators (COMP1/COMP2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

13.3.10 Fan ADC (ADC1) nei ADC (ADC2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

13.3.11 Fan USB nei timer (TIM2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475

13.3.12 Fan ynterne analoge boarne nei ADC (ADC1/ADC2) en OPAMP (OPAMP1/OPAM2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475

13.3.13 Fan komparators (COMP1/COMP2) nei timers (TIM1/TIM2/TIM3/TIM8/TIM15/TIM16/TIM17) . . . . . . . . . . . . . . . . . . . . . 475

13.3.14 Fan systeemfouten oant timers (TIM1/TIM8/TIM15/TIM16/TIM17) . . . . 476

13.3.15 Fan timers (TIM16/TIM17) nei IRTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476

13.3.16 Fan ADC (ADC1/ADC2) nei DFSDM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

14

Direkte ûnthâldtagongskontroller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 478

14.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

14.2 Haadfunksjes fan DMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

14.3 DMA-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

14/2187

RM0438 Rev 8

RM0438

Ynhâld

14.4
14.5 14.6

14.3.1 DMA1 en DMA2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 14.3.2 DMA-oanfraachmapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
DMA funksjonele beskriuwing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480
14.4.1 DMA-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 14.4.2 DMA-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 14.4.3 DMA-oerdrachten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 14.4.4 DMA-arbitraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482 14.4.5 DMA-kanalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483 14.4.6 DMA-gegevensbreedte, ôfstimming en endianness . . . . . . . . . . . . . . . . . . . . . . 488 14.4.7 DMA-flaterbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
DMA-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490 DMA-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
14.6.1 DMA-ûnderbrekkingsstatusregister (DMA_ISR) . . . . . . . . . . . . . . . . . . . . . . . . 490 14.6.2 DMA-ûnderbrekkingsflagge wiskjend register (DMA_IFCR) . . . . . . . . . . . . . . . . . . 494 14.6.3 DMA-kanaal x konfiguraasjeregister (DMA_CCRx) . . . . . . . . . . . . . . 495 14.6.4 DMA-kanaal x oantal gegevens om oer te dragen register (DMA_CNDTRx) . 500 14.6.5 DMA-kanaal x perifeare adresregister (DMA_CPARx) . . . . . . . . 501 14.6.6 DMA-kanaal x ûnthâld 0 adresregister (DMA_CM0ARx) . . . . . . . 501 14.6.7 DMA-kanaal x ûnthâld 1 adresregister (DMA_CM1ARx) . . . . . . . 502 14.6.8 DMA-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502

15

DMA-oanfraachmultiplekser (DMAMUX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

15.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

15.2 Haadfunksjes fan DMAMUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

15.3 DMAMUX-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

15.3.1 DMAMUX-instansiëring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

15.3.2 DMAMUX-mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508

15.4 Funksjonele beskriuwing fan DMAMUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .511

15.4.1 DMAMUX-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511

15.4.2 DMAMUX-sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

15.4.3 DMAMUX-kanalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

15.4.4 DMAMUX feilige/net-feilige kanalen . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

15.4.5 DMAMUX privilegearre / net-privilegearre kanalen . . . . . . . . . . . . . . . . . . . . . . 513

15.4.6 DMAMUX-oanfraachlinemultiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

15.4.7 DMAMUX-oanfraachgenerator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516

15.5 DMAMUX-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517

RM0438 Rev 8

15/2187
54

Ynhâld

RM0438

15.6

DMAMUX-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
15.6.1 DMAMUX-oanfraachline-multiplexerkanaal x-konfiguraasjeregister (DMAMUX_CxCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
15.6.2 DMAMUX-oanfraachlinemultiplexer-ûnderbrekkingskanaalstatusregister (DMAMUX_CSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
15.6.3 DMAMUX-oanfraachlinemultiplexer ûnderbrekkingskanaal clear flag register (DMAMUX_CCFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
15.6.4 DMAMUX-oanfraachgenerator kanaal x konfiguraasjeregister (DMAMUX_RGxCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
15.6.5 DMAMUX-oanfraachgenerator ûnderbrekkingsstatusregister (DMAMUX_RGSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
15.6.6 DMAMUX-oanfraachgenerator ûnderbrekkingsregister foar it wiskjen fan flaggen (DMAMUX_RGCFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
15.6.7 DMAMUX-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524

16

Nêste vektorearre ûnderbrekkingskontroller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 528

16.1 Haadfunksjes fan NVIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

16.2 SysTick-kalibraasjewearderegister . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

16.3 Underbrekkings- en útsûnderingsfektoren . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529

17

Útwreide ûnderbrekkings en evenemintkontroller (EXTI) . . . . . . . . . . . . . . . . . . 533

17.1 EXTI haadfunksjes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533

17.2 EXTI blokdiagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534

17.2.1 EXTI-ferbiningen tusken randapparaten en CPU . . . . . . . . . . . . . . . . . . 535

17.2.2 EXTI ûnderbrekke / evenemint mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535

17.3 EXTI funksjonele beskriuwing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537

17.3.1 EXTI konfigurearbere barrenynfier wekker wurde . . . . . . . . . . . . . . . . . . . . . . . . . 537

17.3.2 EXTI direkte evenemint input wakeup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539

17.3.3 EXTI mux seleksje. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539

17.4 EXTI funksjoneel gedrach. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

17.5 EXTI evenemint beskerming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541

17.5.1 EXTI-feiligensbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541

17.5.2 EXTI privileezje beskerming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542

17.6 EXTI registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543

17.6.1 17.6.2 17.6.3 17.6.4

EXTI rising trigger seleksje register (EXTI_RTSR1) . . . . . . . . . . . . . . 543 EXTI fallende trigger seleksje register (EXTI_FTSR1). . . . . . . . . . . . . 544 EXTI software interrupt event register (EXTI_SWIER1) . . . . . . . . . . . 545 EXTI opkommende râne yn ôfwachting register (EXTI_RPR1) . . . . . . . . . . . . . . . . 546

16/2187

RM0438 Rev 8

RM0438

Ynhâld

17.6.5 EXTI fallende râne yn ôfwachting register (EXTI_FPR1) . . . . . . . . . . . . . . . . 547 17.6.6 EXTI feiligens konfiguraasje register (EXTI_SECCFGR1). . . . . . . . . . 548 17.6.7 EXTI privileezje konfiguraasje register (EXTI_PRIVCFGR1). . . . . . . . . 549 17.6.8 EXTI rising trigger seleksje register (EXTI_RTSR2). . . . . . . . . . . . . . 549 17.6.9 EXTI fallende trigger seleksje register (EXTI_FTSR2). . . . . . . . . . . . . 550 17.6.10 EXTI software ûnderbrekking evenemint register (EXTI_SWIER2) . . . . . . . . . . . 551 17.6.11 EXTI opkommende râne yn ôfwachting register (EXTI_RPR2) . . . . . . . . . . . . . . . . 551 17.6.12 EXTI fallende râne yn ôfwachting register (EXTI_FPR2) . . . . . . . . . . . . . . . . 552 17.6.13 EXTI feiligens ynskeakelje register (EXTI_SECCFGR2) . . . . . . . . . . . . . . . 553 17.6.14 EXTI privileezje ynskeakelje register (EXTI_PRIVCFGR2) . . . . . . . . . . . . . . 553 17.6.15 EXTI eksterne interrupt seleksje register (EXTI_EXTICRn) . . . . . . . . 554 17.6.16 EXTI slot register (EXTI_LOCKR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 17.6.17 EXTI CPU wekker mei ûnderbrekkingsmaskerregister (EXTI_IMR1) . . . . . . . 557 17.6.18 EXTI CPU wekker mei evenemint masker register (EXTI_EMR1). . . . . . . . 558 17.6.19 EXTI CPU wekker mei ûnderbrekkingsmaskerregister (EXTI_IMR2) . . . . . . . 559 17.6.20 EXTI CPU wekker mei evenemint masker register (EXTI_EMR2). . . . . . . . 559 17.6.21 EXTI register map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560

18

Ienheid foar berekkening fan sykliske redundânsjekontrôle (CRC) . . . . . . . . . . . . . . . . . . 563

18.1 Ynlieding ta de CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563

18.2 Haadfunksjes fan CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563

18.3 CRC funksjonele beskriuwing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

18.3.1 CRC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

18.3.2 Ynterne sinjalen fan CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

18.3.3 CRC-operaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

18.4 CRC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566

18.4.1 18.4.2 18.4.3 18.4.4

CRC-gegevensregister (CRC_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566 CRC-ûnôfhinklik gegevensregister (CRC_IDR) . . . . . . . . . . . . . . . . . . . . 566 CRC-kontrôleregister (CRC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 CRC-begjinwearde (CRC_INIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

18.4.5 CRC-polynoom (CRC_POL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

18.4.6 CRC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569

19

Fleksibele statyske ûnthâldkontroller (FSMC) . . . . . . . . . . . . . . . . . . . . . . . 570

19.1 Ynlieding ta de FMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

19.2 Haadfunksjes fan FMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

RM0438 Rev 8

17/2187
54

Ynhâld

RM0438

19.3 19.4 19.5 19.6
19.7

FMC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571 AHB-ynterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
19.4.1 Stipe ûnthâlden en transaksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
Adresmapping fan eksterne apparaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
19.5.1 NOR/PSRAM-adresmapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573 19.5.2 NAND-flashûnthâldadresmapping . . . . . . . . . . . . . . . . . . . . . . . . . . 574
NOR-flash/PSRAM-kontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
19.6.1 Eksterne ûnthâld-ynterfacesignalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576 19.6.2 Stipe ûnthâlden en transaksjes . . . . . . . . . . . . . . . . . . . . . . . . . 578 19.6.3 Algemiene timingregels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580 19.6.4 Asynchrone transaksjes fan NOR flash/PSRAM-controller . . . . . . . . . . . . 580 19.6.5 Synchrone transaksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598 19.6.6 NOR/PSRAM-controllerregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
NAND-flashkontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
19.7.1 Eksterne ûnthâld-ynterfacesignalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613 19.7.2 NAND-flash-stipe ûnthâlden en transaksjes . . . . . . . . . . . . . . . . 614 19.7.3 Timingdiagrammen foar NAND-flashûnthâld . . . . . . . . . . . . . . . . . . . . . . . 615 19.7.4 NAND-flash-operaasjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615 19.7.5 NAND flash prewait-funksjonaliteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616 19.7.6 Berekkening fan 'e flaterkorreksjekoade (ECC)
yn NAND-flashûnthâld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617 19.7.7 NAND-flashkontrollerregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618 19.7.8 FMC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624

20

Octo-SPI ynterface (OCTOSPI). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626

20.1 OCTOSPI yntroduksje. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626

20.2 OCTOSPI haadfunksjes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626

20.3 OCTOSPI ymplemintaasje. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627

20.4 OCTOSPI funksjonele beskriuwing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628

20.4.1 OCTOSPI blokdiagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628

20.4.2 OCTOSPI-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629

20.4.3 OCTOSPI-ynterface nei ûnthâldmodi . . . . . . . . . . . . . . . . . . . . . . . . . . . 630

20.4.4 OCTOSPI regulier-kommando protokol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630

20.4.5 OCTOSPI reguliere-kommando protokol sinjaalynterface . . . . . . . . . . . . . . . 634

20.4.6 HyperBus-protokol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637

20.4.7 Spesifike funksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641

18/2187

RM0438 Rev 8

RM0438

Ynhâld

20.5 20.6 20.7

20.4.8 OCTOSPI bestjoeringssysteem modus yntroduksje. . . . . . . . . . . . . . . . . . . . . . . . 642 20.4.9 OCTOSPI yndirekte modus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642 20.4.10 OCTOSPI automatyske status-polling modus. . . . . . . . . . . . . . . . . . . . . . 644 20.4.11 OCTOSPI ûnthâld-mapped modus. . . . . . . . . . . . . . . . . . . . . . . . . . . . 645 20.4.12 OCTOSPI konfiguraasje yntroduksje. . . . . . . . . . . . . . . . . . . . . . . . . . 646 20.4.13 OCTOSPI systeem konfiguraasje. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646 20.4.14 OCTOSPI apparaat konfiguraasje. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646 20.4.15 OCTOSPI reguliere kommando modus konfiguraasje. . . . . . . . . . . . . . . . 649 20.4.16 OCTOSPI HyperBus protokol konfiguraasje. . . . . . . . . . . . . . . . . . . . . 651 20.4.17 OCTOSPI flater behear. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652 20.4.18 OCTOSPI DRUKT en ôfbrekke. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653 20.4.19 OCTOSPI rekonfiguraasje of deaktivearring. . . . . . . . . . . . . . . . . . . . . . 653 20.4.20 NCS gedrach. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... 653
Adresôfstimming en gegevensnûmer. . . . . . . . . . . . . . . . . . . . . . . . . . . 655 OCTOSPI ûnderbrekt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656 OCTOSPI registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
20.7.1 OCTOSPI kontrôle register (OCTOSPI_CR) . . . . . . . . . . . . . . . . . . . . . 657 20.7.2 OCTOSPI apparaat konfiguraasje register 1 (OCTOSPI_DCR1). . . . . . 659 20.7.3 OCTOSPI apparaat konfiguraasje register 2 (OCTOSPI_DCR2). . . . . . 661 20.7.4 OCTOSPI apparaat konfiguraasje register 3 (OCTOSPI_DCR3). . . . . . 662 20.7.5 OCTOSPI apparaat konfiguraasje register 4 (OCTOSPI_DCR4). . . . . . 662 20.7.6 OCTOSPI status register (OCTOSPI_SR) . . . . . . . . . . . . . . . . . . . . . . 663 20.7.7 OCTOSPI flagge dúdlik register (OCTOSPI_FCR). . . . . . . . . . . . . . . . . . 664 20.7.8 OCTOSPI data lingte register (OCTOSPI_DLR). . . . . . . . . . . . . . . . 664 20.7.9 OCTOSPI adres register (OCTOSPI_AR) . . . . . . . . . . . . . . . . . . . . 665 20.7.10 OCTOSPI data register (OCTOSPI_DR) . . . . . . . . . . . . . . . . . . . . . . . 665 20.7.11 OCTOSPI polling status masker register (OCTOSPI_PSMKR) . . . . . . . 666 20.7.12 OCTOSPI polling status wedstriid register (OCTOSPI_PSMAR) . . . . . . . 667 20.7.13 OCTOSPI polling ynterval register (OCTOSPI_PIR) . . . . . . . . . . . . . . 667 20.7.14 OCTOSPI kommunikaasje konfiguraasje register (OCTOSPI_CCR). . 667 20.7.15 OCTOSPI timing konfiguraasje register (OCTOSPI_TCR). . . . . . . . . . 670 20.7.16 OCTOSPI ynstruksje register (OCTOSPI_IR) . . . . . . . . . . . . . . . . . . . 670 20.7.17 OCTOSPI alternate bytes register (OCTOSPI_ABR) . . . . . . . . . . . . . 671 20.7.18 OCTOSPI low-power timeout register (OCTOSPI_LPTR). . . . . . . . . . 671 20.7.19 OCTOSPI wrap kommunikaasje konfiguraasjeregister
(OCTOSPI_WPCCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672 20.7.20 OCTOSPI wrap timing konfiguraasje register (OCTOSPI_WPTCR). . 674

RM0438 Rev 8

19/2187
54

Ynhâld

RM0438

20.7.21 OCTOSPI wrap ynstruksje register (OCTOSPI_WPIR) . . . . . . . . . . . . 674 20.7.22 OCTOSPI wrap alternate bytes register (OCTOSPI_WPABR) . . . . . . 675 20.7.23 OCTOSPI skriuw kommunikaasje konfiguraasje register
(OCTOSPI_WCCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675 20.7.24 OCTOSPI skriuwen timing konfiguraasje register (OCTOSPI_WTCR). . . . 677 20.7.25 OCTOSPI skriuw ynstruksje register (OCTOSPI_WIR) . . . . . . . . . . . . . 678 20.7.26 OCTOSPI skriuw alternate bytes register (OCTOSPI_WABR) . . . . . . . 678 20.7.27 OCTOSPI HyperBus latency konfiguraasje register
(OCTOSPI_HLCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679 20.7.28 OCTOSPI register map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679

21

Analoog-nei-digitaal-omsetters (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683

21.1 Ynlieding ta de ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683

21.2 Haadfunksjes fan ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 684

21.3 ADC-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685

21.4 Funksjonele beskriuwing fan ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686

21.4.1 ADC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686

21.4.2 ADC-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687

21.4.3 ADC-klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688

21.4.4 ADC1/2-ferbining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690

21.4.5 Slave AHB-ynterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 692

21.4.6 ADC Djippe útskeakelingsmodus (DEEPPWD) en ADC-volumetage-regulator (ADVREGEN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 692

21.4.7 Single-ended en differinsjele ynfierkanalen . . . . . . . . . . . . . . . . . . . . . . 693

21.4.8 Kalibraasje (ADCAL, ADCALDIF, ADC_CALFACT) . . . . . . . . . . . . . . . . . 693

21.4.9 ADC oan-út-kontrôle (ADEN, ADDIS, ADRDY) . . . . . . . . . . . . . . . . . . . . . . 696

21.4.10 Beperkingen by it skriuwen fan 'e ADC-kontrôlebits . . . . . . . . . . . . . . . . . . . . . 697

21.4.11 Kanaalseleksje (ADC_SQRy, ADC_JSQR) . . . . . . . . . . . . . . . . . . . . . 698

21.4.12 Kanaalgewiis programmearbere samplingtiid (SMPR1, SMPR2) . . . . . 699

21.4.13 Ienkelde konverzjemodus (CONT = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699

21.4.14 Kontinue konverzjemodus (CONT = 1) . . . . . . . . . . . . . . . . . . . . . . . . 700

21.4.15 Konversaasjes begjinne (ADSTART, JADSTART) . . . . . . . . . . . . . . . . . . . . . 701

21.4.16 ADC-timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702

21.4.17 In oanhâldende konverzje stopje (ADSTP, JADSTP) . . . . . . . . . . . . . . . . 702

21.4.18 Konverzje op eksterne trigger en triggerpolariteit (EXTSEL, EXTEN, JEXTSEL, JEXTEN) . . . . . . . . . . . . . . . . . . . . . . . . . 704

21.4.19 Ynjektearre kanaalbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 706

21.4.20 Diskontinue modus (DISCEN, DISCNUM, JDISCEN) . . . . . . . . . . . . 708

20/2187

RM0438 Rev 8

RM0438

Ynhâld

21.5 21.6 21.7

21.4.21 Wachtrige fan kontekst foar ynjektearre konversaasjes . . . . . . . . . . . . . . . . . . . . . . . . 709 21.4.22 Programmeerbere resolúsje (RES) – Snelle konverzjemodus . . . . . . . . . . 717 21.4.23 Ein fan konverzje, ein fan samplange faze (EOC, JEOC, EOSMP) . . 718 21.4.24 Ein fan konverzjesekwinsje (EOS, JEOS) . . . . . . . . . . . . . . . . . . . . . . 718 21.4.25 Timingdiagrammen bygelyksample (ienfâldige/kontinue modi,
hardware/software triggers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 21.4.26 Gegevensbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 721 21.4.27 Konversaasjes beheare mei de DFSDM . . . . . . . . . . . . . . . . . . . . . . . . 726 21.4.28 Dynamyske leech-enerzjy funksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727 21.4.29 Analoge finster watchdog (AWD1EN, JAWD1EN, AWD1SGL,
AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx). . . . . 732 21.4.30 Oersampler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 736 21.4.31 Dûbele ADC-modi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742 21.4.32 Temperatuersensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755 21.4.33 VBAT-foarsjenningmonitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757 21.4.34 Monitoaring fan it ynterne folumetage referinsje . . . . . . . . . . . . . . . . . . . . . . . . . 758
ADC yn leech-enerzjymodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759 ADC-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 760 ADC-registers (foar elke ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . . . . 761
21.7.1 ADC-ûnderbrekkings- en statusregister (ADC_ISR) . . . . . . . . . . . . . . . . . . . . 761 21.7.2 ADC-ûnderbrekkings ynskeakeljenregister (ADC_IER) . . . . . . . . . . . . . . . . . . . . . . 763 21.7.3 ADC-kontrôleregister (ADC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 765 21.7.4 ADC-konfiguraasjeregister (ADC_CFGR) . . . . . . . . . . . . . . . . . . . . . . . . 768 21.7.5 ADC-konfiguraasjeregister 2 (ADC_CFGR2) . . . . . . . . . . . . . . . . . . . . 772 21.7.6 ADC'samptiidregister 1 (ADC_SMPR1) . . . . . . . . . . . . . . . . . . . . . . . 774 21.7.7 ADC'samptiidregister 2 (ADC_SMPR2) . . . . . . . . . . . . . . . . . . . . . 775 21.7.8 ADC watchdog drompelregister 1 (ADC_TR1) . . . . . . . . . . . . . . . . . 776 21.7.9 ADC watchdog drompelregister 2 (ADC_TR2) . . . . . . . . . . . . . . . . . 776 21.7.10 ADC watchdog drompelregister 3 (ADC_TR3) . . . . . . . . . . . . . . . . . 777 21.7.11 ADC reguliere sekwinsjeregister 1 (ADC_SQR1) . . . . . . . . . . . . . . . . . . 778 21.7.12 ADC reguliere sekwinsjeregister 2 (ADC_SQR2) . . . . . . . . . . . . . . . . . 779 21.7.13 ADC reguliere sekwinsjeregister 3 (ADC_SQR3) . . . . . . . . . . . . . . . . . 780 21.7.14 ADC reguliere sekwinsjeregister 4 (ADC_SQR4) . . . . . . . . . . . . . . . . . 781 21.7.15 ADC regulier gegevensregister (ADC_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 781 21.7.16 ADC ynjektearre sekwinsjeregister (ADC_JSQR) . . . . . . . . . . . . . . . . . . 782 21.7.17 ADC offset y-register (ADC_OFRy) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 784 21.7.18 ADC ynjektearre kanaal y-gegevensregister (ADC_JDRy). ... 785

RM0438 Rev 8

21/2187
54

Ynhâld

RM0438

21.8 21.9

21.7.19 ADC analoge watchdog 2 konfiguraasjeregister (ADC_AWD2CR) . . . . 785 21.7.20 ADC analoge watchdog 3 konfiguraasjeregister (ADC_AWD3CR) . . . . 786 21.7.21 ADC differinsjaalmodusseleksjeregister (ADC_DIFSEL) . . . . . . . . . . . 786 21.7.22 ADC-kalibraasjefaktoaren (ADC_CALFACT) . . . . . . . . . . . . . . . . . . . . . . . 787
ADC mienskiplike registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 787
21.8.1 ADC mienskiplik statusregister (ADC_CSR) . . . . . . . . . . . . . . . . . . . . . . . 787 21.8.2 ADC mienskiplik kontrôleregister (ADC_CCR) . . . . . . . . . . . . . . . . . . . . . . 789 21.8.3 ADC mienskiplik regulier gegevensregister foar dûbele modus (ADC_CDR) . . . . . 792
ADC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792

22

Digitaal-nei-analoog-omsetter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796

22.1 Ynlieding ta DAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796

22.2 Haadfunksjes fan DAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796

22.3 DAC-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797

22.4 Funksjonele beskriuwing fan 'e DAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798

22.4.1 DAC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798

22.4.2 DAC-kanaal ynskeakelje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799

22.4.3 DAC-gegevensformaat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799

22.4.4 DAC-konverzje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801

22.4.5 DAC-útfiervolumetage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801

22.4.6 DAC-triggerseleksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802

22.4.7 DMA-oanfragen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803

22.4.8 Lûdsgeneraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803

22.4.9 Trijehoekgolfgeneraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805

22.4.10 DAC-kanaalmodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806

22.4.11 DAC-kanaalbufferkalibraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809

22.4.12 DAC-kanaalkonverzjemodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810

22.4.13 Konverzjemodi foar dûbele DAC-kanaal (as dûbele kanalen beskikber binne) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811

22.5 DAC yn leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815

22.6 DAC-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816

22.7 DAC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816

22.7.1 DAC-kontrôleregister (DAC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816

22.7.2 DAC-software triggerregister (DAC_SWTRGR) . . . . . . . . . . . . . . . . . . . 820

22.7.3 DAC-kanaal 1 12-bit rjochts-útrichte gegevenshâldregister (DAC_DHR12R1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820

22/2187

RM0438 Rev 8

RM0438

Ynhâld

22.7.4 DAC-kanaal 1 12-bit lofts útrichte gegevenshâldregister (DAC_DHR12L1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
22.7.5 DAC-kanaal 1 8-bit rjochts útrichte gegevenshâldregister (DAC_DHR8R1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
22.7.6 DAC-kanaal 2 12-bit rjochts útrichte gegevenshâldregister (DAC_DHR12R2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822
22.7.7 DAC-kanaal 2 12-bit lofts útrichte gegevenshâldregister (DAC_DHR12L2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822
22.7.8 DAC-kanaal2 8-bit rjochts-útrichte gegevenshâldregister (DAC_DHR8R2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
22.7.9 Duale DAC 12-bit rjochts-útrichte gegevenshâldregister (DAC_DHR12RD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
22.7.10 Duale DAC 12-bit lofts útrichte gegevenshâldregister (DAC_DHR12LD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
22.7.11 Duale DAC 8-bit rjochts útrichte gegevenshâldregister (DAC_DHR8RD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
22.7.12 DAC-kanaal 1 gegevensútfierregister (DAC_DOR1) . . . . . . . . . . . . . . . . . . 825
22.7.13 DAC-kanaal 2 gegevensútfierregister (DAC_DOR2) . . . . . . . . . . . . . . . . . . 825
22.7.14 DAC-statusregister (DAC_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825
22.7.15 DAC-kalibraasjekontrôleregister (DAC_CCR) . . . . . . . . . . . . . . . . . . . . . 827
22.7.16 DAC-modus kontrôleregister (DAC_MCR) . . . . . . . . . . . . . . . . . . . . . . . . . . 827
22.7.17 DAC-kanaal 1 sample en hâld sampit tiidregister (DAC_SHSR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
22.7.18 DAC-kanaal 2 sample en hâld sampit tiidregister (DAC_SHSR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
22.7.19 DAC'samphâld tiidregister (DAC_SHHR) . . . . . . . . . . . . . . . . 829
22.7.20 DAC'samphâld it ferfarskingstiidregister fêst (DAC_SHRR) . . . . . . . . . . 830
22.7.21 DAC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831

23

Voltage referinsjebuffer (VREFBUF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

23.1 Ynlieding ta VREFBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

23.2 Funksjonele beskriuwing fan VREFBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

23.3 VREFBUF trimmen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 834

23.4 VREFBUF-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835

23.4.1 VREFBUF kontrôle- en statusregister (VREFBUF_CSR) . . . . . . . . . . . . 835

23.4.2 VREFBUF-kalibraasjekontrôleregister (VREFBUF_CCR) . . . . . . . . . . . . 836

23.4.3 VREFBUF-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836

24

Ferliker (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837

24.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837

RM0438 Rev 8

23/2187
54

Ynhâld

RM0438

24.2 24.3
24.4 24.5 24.6

Haadfunksjes fan COMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837 Funksjonele beskriuwing fan COMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838
24.3.1 COMP-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838 24.3.2 COMP-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838 24.3.3 COMP-reset en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839 24.3.4 Fergelikingsmeganisme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839 24.3.5 Finsterfergelikingsapparaat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 840 24.3.6 Hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 840 24.3.7 Ferlikingsútfier ûnderdrukkingsfunksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841 24.3.8 COMP fermogen- en snelheidsmodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 842
COMP leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 842 COMP-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 842 COMP-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 843
24.6.1 Kontrôle- en statusregister ferliking 1 (COMP1_CSR) . . . . . . . . . . . 843 24.6.2 Kontrôle- en statusregister ferliking 2 (COMP2_CSR) . . . . . . . . . . . 845 24.6.3 COMP-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848

25

Operasjoneel amplifters (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.2 OPAMP wichtichste funksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.3 OPAMP funksjonele beskriuwing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.3.1 OPAMP weromsette en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.3.2 Inisjele konfiguraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850

25.3.3 Sinjaalrûtearring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850

25.3.4 OPAMP modi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 851

25.3.5 Kalibraasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854

25.4 OPAMP leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 856

25.5 OPAMP registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857

25.5.1 OPAMP1 kontrôle-/statusregister (OPAMP1_CSR) . . . . . . . . . . . . . . . . . . 857

25.5.2 OPAMP1 offset trimregister yn normale modus (OPAMP1_OTR) . . 858

25.5.3 OPAMP1 offset-trimregister yn leech-enerzjymodus (OPAMP1_LPOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 858

25.5.4 OPAMP2 kontrôle-/statusregister (OPAMP2_CRS) . . . . . . . . . . . . . . . . . . 859

25.5.5 OPAMP2 offset trimregister yn normale modus (OPAMP2_OTR) . . 860

25.5.6 OPAMP2 offset-trimregister yn leech-enerzjymodus (OPAMP2_LPOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 860

25.5.7 OPAMP registrearje kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861

24/2187

RM0438 Rev 8

RM0438

Ynhâld

26

Digitaal filter foar sigma delta-modulatoren (DFSDM) . . . . . . . . . . . . . . . . . 862

26.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 862

26.2 Haadfunksjes fan DFSDM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863

26.3 DFSDM-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864

26.4 Funksjonele beskriuwing fan DFSDM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865

26.4.1 DFSDM-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865

26.4.2 DFSDM-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 866

26.4.3 DFSDM reset en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867

26.4.4 Seriële kanaaltransceivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 868

26.4.5 Konfiguraasje fan de seriële ynfierynterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878

26.4.6 Parallelle gegevensynfier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878

26.4.7 Kanaalseleksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880

26.4.8 Konfiguraasje fan it digitale filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881

26.4.9 Integrator-ienheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882

26.4.10 Analoge watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883

26.4.11 Koartslutingsdetektor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885

26.4.12 Ekstreme detektor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886

26.4.13 Blok fan gegevensienheden . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886

26.4.14 Undertekene gegevensformaat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887

26.4.15 Konversaasjes starte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888

26.4.16 Kontinue en snelle trochgeande modi . . . . . . . . . . . . . . . . . . . . . . . . . . . 888

26.4.17 Foarrang oanfreegje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889

26.4.18 Enerzjyoptimalisaasje yn runmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890

26.5 DFSDM-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890

26.6 DFSDM DMA-oerdracht . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892

26.7 DFSDM-kanaal y-registers (y=0..3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892

26.7.1 DFSDM-kanaal y-konfiguraasjeregister (DFSDM_CHyCFGR1) . . . . 892

26.7.2 DFSDM-kanaal y-konfiguraasjeregister (DFSDM_CHyCFGR2) . . . . 894

26.7.3 DFSDM-kanaal y analoge watchdog en koartslutingsdetektorregister (DFSDM_CHyAWSCDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895

26.7.4 DFSDM-kanaal y watchdog-filtergegevensregister (DFSDM_CHyWDATR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896

26.7.5 DFSDM-kanaal y-gegevensynfierregister (DFSDM_CHyDATINR) . . . . . . 896

26.7.6 DFSDM kanaal y fertraging register (DFSDM_CHyDLYR). . . . . . . . . . . . 897

26.8 DFSDM-filter x moduleregisters (x=0..3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898

26.8.1 DFSDM-filter x kontrôleregister 1 (DFSDM_FLTxCR1) . . . . . . . . . . . . . . 898

26.8.2 DFSDM-filter x kontrôleregister 2 (DFSDM_FLTxCR2) . . . . . . . . . . . . . . 901

RM0438 Rev 8

25/2187
54

Ynhâld

RM0438

26.8.3 DFSDM filter x ûnderbrekking en statusregister (DFSDM_FLTxISR) . . . . . 902
26.8.4 DFSDM filter x ûnderbrekkingsflagge wiskjen fan register (DFSDM_FLTxICR) . . . . . 904
26.8.5 DFSDM-filter x ynjektearre kanaalgroepseleksjeregister (DFSDM_FLTxJCHGR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
26.8.6 DFSDM filter x kontrôleregister (DFSDM_FLTxFCR) . . . . . . . . . . . . . . . . 905
26.8.7 DFSDM filter x gegevensregister foar ynjektearre groep (DFSDM_FLTxJDATAR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 906
26.8.8 DFSDM-filter x-gegevensregister foar it reguliere kanaal (DFSDM_FLTxRDATAR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
26.8.9 DFSDM-filter x analoge watchdog hege drompelregister (DFSDM_FLTxAWHTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
26.8.10 DFSDM-filter x analoge watchdog leechdrompelregister (DFSDM_FLTxAWLTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
26.8.11 DFSDM-filter x analoog watchdog-statusregister (DFSDM_FLTxAWSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
26.8.12 DFSDM-filter x analoge watchdog dúdlik flaggeregister (DFSDM_FLTxAWCFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910
26.8.13 DFSDM filter x ekstremen detektor maksimum register (DFSDM_FLTxEXMAX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910
26.8.14 DFSDM filter x ekstremen detektor minimum register (DFSDM_FLTxEXMIN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 911
26.8.15 DFSDM filter x konverzje timer register (DFSDM_FLTxCNVTIMR) . . 911
26.8.16 DFSDM-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 912

27

Oanraaksensorkontroller (TSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920

27.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920

27.2 Haadfunksjes fan TSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920

27.3 Funksjonele beskriuwing fan TSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921

27.3.1 TSC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921

27.3.2 Akwisysje fan oerflakladingsoerdracht oerview . . . . . . . . . . . . . . . . . . . 921

27.3.3 Resetten en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924

27.3.4 Sekwinsje fan ladingsoerdracht . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924

27.3.5 Funksje fan ferspriedingsspektrum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 925

27.3.6 Maksimale telfout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 926

27.3.7 Sampseleksje fan lingkondensator I/O en kanaal I/O modus . . . . . . . . . . . . 926

27.3.8 Akwisysjemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 927

27.3.9 I/O-hysteresis en analoge skeakelkontrôle . . . . . . . . . . . . . . . . . . . . . . . . . 927

27.4 TSC leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928

27.5 TSC-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928

26/2187

RM0438 Rev 8

RM0438

Ynhâld

27.6

TSC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928
27.6.1 TSC-kontrôleregister (TSC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928 27.6.2 TSC-ûnderbrekkings ynskeakeljenregister (TSC_IER) . . . . . . . . . . . . . . . . . . . . . 931 27.6.3 TSC-ûnderbrekkings wiskjend register (TSC_ICR) . . . . . . . . . . . . . . . . . . . . . . . . 932 27.6.4 TSC-ûnderbrekkingsstatusregister (TSC_ISR) . . . . . . . . . . . . . . . . . . . . . . . . 932 27.6.5 TSC I/O hysteresis kontrôleregister (TSC_IOHCR) . . . . . . . . . . . . . . . . 933 27.6.6 TSC I/O analoge skeakelkontrôleregister
(TSC_IOASCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933 27.6.7 TSC I/O'sampling-kontrôleregister (TSC_IOSCR) . . . . . . . . . . . . . . . . . 934 27.6.8 TSC I/O-kanaalkontrôleregister (TSC_IOCCR) . . . . . . . . . . . . . . . . . 934 27.6.9 TSC I/O-groepkontrôlestatusregister (TSC_IOGCSR) . . . . . . . . . . . . 935 27.6.10 TSC I/O-groep x-tellerregister (TSC_IOGxCR) . . . . . . . . . . . . . . . . 935 27.6.11 TSC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936

28

Echte willekeurige getallengenerator (RNG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

28.1 Ynlieding ta RNG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

28.2 Haadfunksjes fan RNG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

28.3 Funksjonele beskriuwing fan RNG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

28.3.1 RNG-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

28.3.2 Ynterne RNG-sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

28.3.3 Generaasje fan willekeurige getallen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

28.3.4 RNG-inisjalisaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942

28.3.5 RNG-operaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943

28.3.6 RNG-klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945

28.3.7 Flaterbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945

28.3.8 RNG leech-enerzjyferbrûk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946

28.4 RNG-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946

28.5 RNG-ferwurkingstiid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6 Falidaasje fan RNG-entropieboarne . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6.2 Falidaasjebetingsten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6.3 Gegevensferzameling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948

28.7 RNG-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948

28.7.1 RNG-kontrôleregister (RNG_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948

28.7.2 RNG-statusregister (RNG_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 950

28.7.3 RNG-gegevensregister (RNG_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 951

28.7.4 RNG-sûnenstestkontrôleregister (RNG_HTCR) . . . . . . . . . . . . . . . . . . . . 952

RM0438 Rev 8

27/2187
54

Ynhâld

RM0438

28.7.5 RNG-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952

29

AES-hardwarefersneller (AES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.2 Haadfunksjes fan AES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.3 AES-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.4 Funksjonele beskriuwing fan AES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

29.4.1 AES-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

29.4.2 Ynterne AES-sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

29.4.3 AES kryptografyske kearn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

29.4.4 AES-proseduere om in fersiferingsoperaasje út te fieren . . . . . . . . . . . . . . . . . . . . 960

29.4.5 Tarieding fan AES-dekrypteringsrondekaai . . . . . . . . . . . . . . . . . . . . . . . . . . . 963

29.4.6 AES-fersiferingstekst stellen en gegevensopvulling . . . . . . . . . . . . . . . . . . . . . . . . . 963

29.4.7 AES-taak ûnderbrekke en hervatten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 964

29.4.8 AES basiskeatlingmodi (ECB, CBC) . . . . . . . . . . . . . . . . . . . . . . . . . . 964

29.4.9 AES-teller (CTR) modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 969

29.4.10 AES Galois/tellermodus (GCM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 971

29.4.11 AES Galois berjochtautentikaasjekoade (GMAC) . . . . . . . . . . . . . . . . 976

29.4.12 AES-teller mei CBC-MAC (CCM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 978

29.4.13 AES-gegevensregisters en gegevenswikseling . . . . . . . . . . . . . . . . . . . . . . . . . . . 983

29.4.14 AES-kaairegisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 985

29.4.15 AES-inisjalisaasjefektorregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 985

29.4.16 AES DMA-ynterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 986

29.4.17 AES-flaterbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 987

29.5 AES-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 988

29.6 AES-ferwurkingslatinsje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 988

29.7 AES-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989

29.7.1 AES-kontrôleregister (AES_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989

29.7.2 AES-statusregister (AES_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 991

29.7.3 AES-gegevensynfierregister (AES_DINR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993

29.7.4 AES-gegevensútfierregister (AES_DOUTR) . . . . . . . . . . . . . . . . . . . . . . . . . 993

29.7.5 AES-kaairegister 0 (AES_KEYR0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 994

29.7.6 AES-kaairegister 1 (AES_KEYR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 994

29.7.7 AES-kaairegister 2 (AES_KEYR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 995

29.7.8 AES-kaairegister 3 (AES_KEYR3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 995

29.7.9 AES-inisjalisaasjefektorregister 0 (AES_IVR0) . . . . . . . . . . . . . . . . . . . . 995

28/2187

RM0438 Rev 8

RM0438

Ynhâld

29.7.10 AES-inisjalisaasjefektorregister 1 (AES_IVR1) . . . . . . . . . . . . . . . . . . . 996 29.7.11 AES-inisjalisaasjefektorregister 2 (AES_IVR2) . . . . . . . . . . . . . . . . . . 996 29.7.12 AES-inisjalisaasjefektorregister 3 (AES_IVR3) . . . . . . . . . . . . . . . . . . . 996 29.7.13 AES-kaairegister 4 (AES_KEYR4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997 29.7.14 AES-kaairegister 5 (AES_KEYR5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997 29.7.15 AES-kaairegister 6 (AES_KEYR6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997 29.7.16 AES-kaairegister 7 (AES_KEYR7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998 29.7.17 AES-ûnderbrekkingsregisters (AES_SUSPxR) . . . . . . . . . . . . . . . . . . . . . . . . . 998 29.7.18 AES-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 999

30

Hash-prosessor (HASH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001

30.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001

30.2 Haadfunksjes fan HASH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001

30.3 HASH-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002

30.4 Funksjonele beskriuwing fan HASH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002

30.4.1 HASH-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002

30.4.2 Ynterne HASH-sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003

30.4.3 Oer feilige hash-algoritmes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003

30.4.4 Berjochtgegevens oanfiere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003

30.4.5 Berjochtdigestberekkening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005

30.4.6 Berjochtopvulling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1006

30.4.7 HMAC-operaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1008

30.4.8 HASH ûnderbrekke/weromsette fan operaasjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010

30.4.9 HASH DMA-ynterface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012

30.4.10 HASH-flaterbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012

30.4.11 HASH-ferwurkingstiid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012

30.5 HASH-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1013

30.6 HASH-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014

30.6.1 HASH-kontrôleregister (HASH_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014

30.6.2 HASH-gegevensynfierregister (HASH_DIN) . . . . . . . . . . . . . . . . . . . . . . . . . . 1016

30.6.3 HASH-startregister (HASH_STR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1017

30.6.4 HASH-digestregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1018

30.6.5 HASH-ûnderbrekkings ynskeakeljenregister (HASH_IMR) . . . . . . . . . . . . . . . . . . . . 1019

30.6.6 HASH-statusregister (HASH_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1020

30.6.7 HASH-kontekstwikselregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1020

30.6.8 HASH-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1021

RM0438 Rev 8

29/2187
54

Ynhâld

RM0438

31

On-the-fly ûntsiferingsmotor (OTFDEC) . . . . . . . . . . . . . . . . . . . . . . . . . 1023

31.1 Ynlieding ta OTFDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023

31.2 Haadfunksjes fan OTFDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023

31.3 Funksjonele beskriuwing fan OTFDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024

31.3.1 OTFDEC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024

31.3.2 Ynterne sinjalen fan OTFDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024

31.3.3 OTFDEC ûnderweis ûntsifering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1025

31.3.4 OTFDEC gebrûk fan AES yn tellermodus-ûntsleuteling . . . . . . . . . . . . . . . 1026

31.3.5 Behear fan streamkontrôle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027

31.3.6 OTFDEC-flaterbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027

31.4 OTFDEC-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1028

31.5 Ynformaasje oer OTFDEC-applikaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1028

31.5.1 OTFDEC-inisjalisaasjeproses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1028

31.5.2 OTFDEC en enerzjybehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1030

31.5.3 Fersifering foar OTFDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1030

31.5.4 OTFDEC-kaai CRC-boarnekoade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1031

31.6 OTFDEC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1032

31.6.1 OTFDEC-kontrôleregister (OTFDEC_CR) . . . . . . . . . . . . . . . . . . . . . . . 1032

31.6.2 OTFDEC konfiguraasjeregister foar privilegearre tagongskontrôle (OTFDEC_PRIVCFGR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033

31.6.3 OTFDEC regio x konfiguraasjeregister (OTFDEC_RxCFGR) . . . . . 1033

31.6.4 OTFDEC regio x startadresregister (OTFDEC_RxSTARTADDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1035

31.6.5 OTFDEC regio x einadresregister (OTFDEC_RxENDADDR). 1035

31.6.6 OTFDEC regio x nonce register 0 (OTFDEC_RxNONCER0) . . . . . 1036

31.6.7 OTFDEC regio x nonce register 1 (OTFDEC_RxNONCER1) . . . . . 1037

31.6.8 OTFDEC regio x kaairegister 0 (OTFDEC_RxKEYR0) . . . . . . . . . . . 1037

31.6.9 OTFDEC regio x kaairegister 1 (OTFDEC_RxKEYR1) . . . . . . . . . . . 1038

31.6.10 OTFDEC regio x kaairegister 2 (OTFDEC_RxKEYR2) . . . . . . . . . . . 1038

31.6.11 OTFDEC regio x kaairegister 3 (OTFDEC_RxKEYR3) . . . . . . . . . . . 1039

31.6.12 OTFDEC ûnderbrekkingsstatusregister (OTFDEC_ISR) . . . . . . . . . . . . . . . . 1039

31.6.13 OTFDEC ûnderbrekkingsregister wiskje (OTFDEC_ICR) . . . . . . . . . . . . . . . . . 1040

31.6.14 OTFDEC ûnderbrekkings ynskeakelje register (OTFDEC_IER) . . . . . . . . . . . . . . . . 1041

31.6.15 OTFDEC registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1042

32

Iepenbiere kaaifersneller (PKA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046

32.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046

30/2187

RM0438 Rev 8

RM0438

Ynhâld

32.2 32.3
32.4
32.5 32.6 32.7

Haadfunksjes fan PKA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046 Funksjonele beskriuwing fan PKA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046
32.3.1 PKA-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046 32.3.2 Ynterne PKA-sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047 32.3.3 PKA-reset en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047 32.3.4 PKA iepenbiere kaaifersnelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047 32.3.5 Typyske tapassingen foar PKA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049 32.3.6 PKA-proseduere om in operaasje út te fieren . . . . . . . . . . . . . . . . . . . . . . . 1051 32.3.7 PKA-flaterbehear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052
PKA-wurkmodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052
32.4.1 Ynlieding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052 32.4.2 Berekkening fan Montgomery-parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1053 32.4.3 Modulêre tafoeging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1054 32.4.4 Modulêre subtraksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1054 32.4.5 Modulêre en Montgomery-fermannichfâldiging . . . . . . . . . . . . . . . . . . . . . . . . 1055 32.4.6 Modulêre eksponinsjearring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056 32.4.7 Modulêre ynverzje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056 32.4.8 Modulêre reduksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057 32.4.9 Rekenkundige optelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057 32.4.10 Rekenkundige subtraksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057 32.4.11 Rekenkundige fermannichfâldiging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058 32.4.12 Rekenkundige ferliking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058 32.4.13 RSA CRT eksponentiaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059 32.4.14 Punt op elliptyske kromme Fp-kontrôle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059 32.4.15 ECC Fp skalêre fermannichfâldiging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1060 32.4.16 ECDSA-teken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1061 32.4.17 ECDSA-ferifikaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1063
Example fan konfiguraasjes en ferwurkingstiden . . . . . . . . . . . . . . . . . . . 1064
32.5.1 Stipe elliptyske krommen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1064 32.5.2 Berekkeningstiden . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1066
PKA-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1067 PKA-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1068
32.7.1 PKA-kontrôleregister (PKA_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1068 32.7.2 PKA-statusregister (PKA_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1069 32.7.3 PKA-register foar dúdlike flagge (PKA_CLRFR) . . . . . . . . . . . . . . . . . . . . . . . . . . 1070 32.7.4 PKA RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1070

RM0438 Rev 8

31/2187
54

Ynhâld

RM0438

32.7.5 PKA-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1071

33

Timers mei avansearre kontrôle (TIM1/TIM8) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072

33.1 Ynlieding ta TIM1/TIM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072

33.2 Haadfunksjes fan TIM1/TIM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072

33.3 Funksjonele beskriuwing fan TIM1/TIM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1074

33.3.1 Tiidbasis-ienheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1074

33.3.2 Tellermodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1076

33.3.3 Werhellingsteller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1087

33.3.4 Eksterne triggerynfier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1089

33.3.5 Klokseleksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1090

33.3.6 Kanalen fêstlizze/fergelykje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1094

33.3.7 Ynfieropnamemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1096

33.3.8 PWM-ynfiermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1097

33.3.9 Twongen útfiermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1098

33.3.10 Utfierfergelykmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1099

33.3.11 PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1100

33.3.12 Asymmetryske PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1103

33.3.13 Kombineare PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1104

33.3.14 Kombineare 3-fase PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1105

33.3.15 Oanfoljende útfier en deadetiidynfoeging . . . . . . . . . . . . . . . . . . 1106

33.3.16 De breakfunksje brûke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1108

33.3.17 Bidireksjonele ûnderbrekkingsyngongen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114

33.3.18 It OCxREF-sinjaal wiskje by in eksterne barren . . . . . . . . . . . . . . . . 1115

33.3.19 6-stap PWM-generaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1117

33.3.20 Ien-puls modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1118

33.3.21 Opnij triggerbere ien puls modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1119

33.3.22 Encoder-ynterfacemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1120

33.3.23 UIF-bit opnij tawize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1122

33.3.24 Timerynfier XOR-funksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1123

33.3.25 Ynterface mei Hall-sensoren . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1123

33.3.26 Timersynchronisaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1126

33.3.27 ADC-synchronisaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1130

33.3.28 DMA burst-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1130

33.3.29 Debugmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1131

33.4 TIM1/TIM8 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1132

33.4.1 TIMx-kontrôleregister 1 (TIMx_CR1)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . 1132

32/2187

RM0438 Rev 8

RM0438

Ynhâld
33.4.2 TIMx-kontrôleregister 2 (TIMx_CR2)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . 1133
33.4.3 TIMx slavemodus kontrôleregister (TIMx_SMCR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1136
33.4.4 TIMx DMA/ûnderbrekkings ynskeakelje register (TIMx_DIER)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1138
33.4.5 TIMx-statusregister (TIMx_SR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . 1140
33.4.6 TIMx evenemintgeneraasjeregister (TIMx_EGR)(x = 1, 8) . . . . . . . . . . . . . . 1142
33.4.7 TIMx fêstlizze/fergelykje modus register 1 (TIMx_CCMR1)(x = 1, 8) . . 1143
33.4.8 TIMx fêstlizze/fergelykje modus register 1 [ôfwikseljend] (TIMx_CCMR1)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1144
33.4.9 TIMx fêstlizze/fergelykje modus register 2 (TIMx_CCMR2)(x = 1, 8) . . 1147
33.4.10 TIMx fêstlizze/fergelykje modus register 2 [ôfwikseljend] (TIMx_CCMR2)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1148
33.4.11 TIMx fêstlizze/fergelykje ynskeakelje register (TIMx_CCER)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1149
33.4.12 TIMx-teller (TIMx_CNT)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153
33.4.13 TIMx foarskaler (TIMx_PSC)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153
33.4.14 TIMx automatysk opnij laden register (TIMx_ARR)(x = 1, 8) . . . . . . . . . . . . . . . . . . 1153
33.4.15 TIMx werhellingstellerregister (TIMx_RCR)(x = 1, 8) . . . . . . . . . . . . . 1154
33.4.16 TIMx fêstlizze/fergelykje register 1 (TIMx_CCR1)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1154
33.4.17 TIMx fêstlizze/fergelykje register 2 (TIMx_CCR2)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1155
33.4.18 TIMx fêstlizze/fergelykje register 3 (TIMx_CCR3)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1155
33.4.19 TIMx fêstlizze/fergelykje register 4 (TIMx_CCR4)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1156
33.4.20 TIMx pauze- en deadetiidregister (TIMx_BDTR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1156
33.4.21 TIMx DMA-kontrôleregister (TIMx_DCR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1160
33.4.22 TIMx DMA-adres foar folsleine oerdracht (TIMx_DMAR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1161
33.4.23 TIM1 opsjeregister 1 (TIM1_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1162
33.4.24 TIM8 opsjeregister 1 (TIM8_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1162
33.4.25 TIMx fêstlizze/fergelykje modus register 3 (TIMx_CCMR3)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1163
33.4.26 TIMx fêstlizze/fergelykje register 5 (TIMx_CCR5)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1164
33.4.27 TIMx fêstlizze/fergelykje register 6 (TIMx_CCR6)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165

RM0438 Rev 8

33/2187
54

Ynhâld

RM0438

33.4.28 TIM1 opsjeregister 2 (TIM1_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165 33.4.29 TIM1 opsjeregister 3 (TIM1_OR3) . . . . . . . . . . . . . . . . . . . . . . . . . . 1167 33.4.30 TIM8 opsjeregister 2 (TIM8_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1168 33.4.31 TIM8-opsjeregister 3 (TIM8_OR3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1170 33.4.32 TIM1-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1172 33.4.33 TIM8-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1174

34

Timers foar algemien gebrûk (TIM2/TIM3/TIM4/TIM5) . . . . . . . . . . . . . . . . . . 1177

34.1 Ynlieding ta TIM2/TIM3/TIM4/TIM5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1177

34.2 Haadfunksjes fan TIM2/TIM3/TIM4/TIM5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1177

34.3 Funksjonele beskriuwing fan TIM2/TIM3/TIM4/TIM5 . . . . . . . . . . . . . . . . . . . . . . .1179

34.3.1 Tiidbasis-ienheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1179

34.3.2 Tellermodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1181

34.3.3 Klokseleksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1191

34.3.4 Kanalen fêstlizze/fergelykje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1195

34.3.5 Ynfieropnamemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1197

34.3.6 PWM-ynfiermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1198

34.3.7 Twongen útfiermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1199

34.3.8 Utfierfergelykmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1200

34.3.9 PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1201

34.3.10 Asymmetryske PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1204

34.3.11 Kombineare PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1205

34.3.12 It OCxREF-sinjaal wiskje by in eksterne barren . . . . . . . . . . . . . . . . 1206

34.3.13 Ien-puls modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1208

34.3.14 Opnij triggerbere ien puls modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1209

34.3.15 Encoder-ynterfacemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1210

34.3.16 UIF-bit opnij tawize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1212

34.3.17 Timerynfier XOR-funksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1212

34.3.18 Timers en eksterne triggersynchronisaasje . . . . . . . . . . . . . . . . . . . . . 1213

34.3.19 Timersynchronisaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1216

34.3.20 DMA burst-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1221

34.3.21 Debugmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1222

34.4 TIM2/TIM3/TIM4/TIM5 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1223

34.4.1 TIMx-kontrôleregister 1 (TIMx_CR1)(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . 1223

34.4.2 TIMx-kontrôleregister 2 (TIMx_CR2)(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . 1224

34.4.3 TIMx slavemodus kontrôleregister (TIMx_SMCR)(x = 2 oant 5) . . . . . . . . 1226

34.4.4 TIMx DMA/Interrupt-ynskeakelregister (TIMx_DIER)(x = 2 oant 5) . . . . . . 1229

34/2187

RM0438 Rev 8

RM0438

Ynhâld

34.4.5 TIMx-statusregister (TIMx_SR)(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . . . 1230 34.4.6 TIMx-evenemintgeneraasjeregister (TIMx_EGR)(x = 2 oant 5) . . . . . . . . . . 1231 34.4.7 TIMx fêstlizze-/fergelykmodusregister 1 (TIMx_CCMR1)(x = 2 oant 5) . 1232 34.4.8 TIMx fêstlizze-/fergelykmodusregister 1 [ôfwikseljend] (TIMx_CCMR1)
(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234 34.4.9 TIMx fêstlizze-/ferlykjemodus register 2 (TIMx_CCMR2)(x = 2 oant 5) . 1236 34.4.10 TIMx fêstlizze-/ferlykjemodus register 2 [ôfwikseljend] (TIMx_CCMR2)
(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1237 34.4.11 TIMx fêstlizze/fergelykje ynskeakelje register
(TIMx_CCER)(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1238 34.4.12 TIMx-teller (TIMx_CNT)(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . . . . . . 1239 34.4.13 TIMx-teller [ôfwikseljend] (TIMx_CNT)(x = 2 oant 5) . . . . . . . . . . . . . . . . . 1240 34.4.14 TIMx foarskaler (TIMx_PSC)(x = 2 oant 5) . . . . . . . . . . . . . . . . . . . . . . . 1240 34.4.15 TIMx automatysk opnij laden register (TIMx_ARR)(x = 2 oant 5) . . . . . . . . . . . . . 1241 34.4.16 TIMx fêstlizze/ferlykje register 1 (TIMx_CCR1)(x = 2 oant 5) . . . . . . . 1241 34.4.17 TIMx fêstlizze/ferlykje register 2 (TIMx_CCR2)(x = 2 oant 5) . . . . . . . 1241 34.4.18 TIMx fêstlizze/ferlykje register 3 (TIMx_CCR3)(x = 2 oant 5) . . . . . . . 1242 34.4.19 TIMx fêstlizze/ferlykje register 4 (TIMx_CCR4)(x = 2 oant 5) . . . . . . . 1242 34.4.20 TIMx DMA kontrôleregister (TIMx_DCR)(x = 2 oant 5) . . . . . . . . . . . . . . 1243 34.4.21 TIMx DMA adres foar folsleine oerdracht (TIMx_DMAR)(x = 2 oant 5) . . . . . . 1244 34.4.22 TIM2 opsjeregister 1 (TIM2_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1244 34.4.23 TIM3 opsjeregister 1 (TIM3_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . 1244 34.4.24 TIM2 opsjeregister 2 (TIM2_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1245 34.4.25 TIM3-opsjeregister 2 (TIM3_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1245 34.4.26 TIMx-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1247

35

Timers foar algemien gebrûk (TIM15/TIM16/TIM17) . . . . . . . . . . . . . . . . . . . 1250

35.1 Ynlieding ta TIM15/TIM16/TIM17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250

35.2 TIM15 wichtichste funksjes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250

35.3 Wichtichste skaaimerken fan TIM16/TIM17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1251

35.4 Funksjonele beskriuwing fan TIM15/TIM16/TIM17 . . . . . . . . . . . . . . . . . . . . . . . 1254

35.4.1 Tiidbasis-ienheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1254

35.4.2 Tellermodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1256

35.4.3 Werhellingsteller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1260

35.4.4 35.4.5 35.4.6 35.4.7

Klokseleksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1261 Kanalen fêstlizze/fergelykje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1263 Ynfier-opnamemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1265 PWM-ynfiermodus (allinich foar TIM15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1266

RM0438 Rev 8

35/2187
54

Ynhâld

RM0438

35.5

35.4.8 Twongen útfiermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1267 35.4.9 Utfierfergelykmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1268 35.4.10 PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1269 35.4.11 Kombineare PWM-modus (allinich TIM15) . . . . . . . . . . . . . . . . . . . . . . . . . . 1270 35.4.12 Oanfoljende útgongen en deadtime-ynfoegjen . . . . . . . . . . . . . . . . 1271 35.4.13 Mei help fan de pauzefunksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1273 35.4.14 Bidireksjonele ûnderbrekkingsyngongen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1278 35.4.15 6-stap PWM-generaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1279 35.4.16 Ien-puls modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1281 35.4.17 Opnij triggerbere ien pulsmodus (allinich TIM15) . . . . . . . . . . . . . . . . . . . . 1282 35.4.18 UIF bit remapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1283 35.4.19 Timerynfier XOR-funksje (allinich TIM15) . . . . . . . . . . . . . . . . . . . . . . . 1284 35.4.20 Eksterne triggersynchronisaasje (allinich TIM15) . . . . . . . . . . . . . . . . . . 1285 35.4.21 Slavemodus kombineare reset + triggermodus . . . . . . . . . . . . . . . . . . . 1287 35.4.22 DMA burstmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1287 35.4.23 Timersynchronisaasje (TIM15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1289 35.4.24 Timerútfier brûke as trigger foar oare timers (TIM16/TIM17) . . . . . . 1289 35.4.25 Debugmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1289
TIM15 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1290
35.5.1 TIM15 kontrôleregister 1 (TIM15_CR1) . . . . . . . . . . . . . . . . . . . . . . . . 1290 35.5.2 TIM15 kontrôleregister 2 (TIM15_CR2) . . . . . . . . . . . . . . . . . . . . . . . 1291 35.5.3 TIM15 slavemodus kontrôleregister (TIM15_SMCR) . . . . . . . . . . . . . 1293 35.5.4 TIM15 DMA/ûnderbrekkings ynskeakelje register (TIM15_DIER) . . . . . . . . . . . . 1294 35.5.5 TIM15 statusregister (TIM15_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . 1295 35.5.6 TIM15 evenemintgeneraasjeregister (TIM15_EGR) . . . . . . . . . . . . . . . 1297 35.5.7 TIM15 fêstlizze-/ferlykjemodus register 1 (TIM15_CCMR1) . . . . . . . 1298 35.5.8 TIM15 fêstlizze-/ferlykjemodus register 1 [ôfwikseljend] (TIM15_CCMR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1299 35.5.9 TIM15 fêstlizze/fergelykje ynskeakelje register (TIM15_CCER) . . . . . . . . . 1302 35.5.10 TIM15 teller (TIM15_CNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 35.5.11 TIM15 foarskaler (TIM15_PSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 35.5.12 TIM15 automatysk opnij laden register (TIM15_ARR) . . . . . . . . . . . . . . . . . . . . . 1305 35.5.13 TIM15 werhellingstellerregister (TIM15_RCR) . . . . . . . . . . . . . . . . 1306 35.5.14 TIM15 fêstlizze/fergelykje register 1 (TIM15_CCR1) . . . . . . . . . . . . . . 1306 35.5.15 TIM15 fêstlizze/fergelykje register 2 (TIM15_CCR2) . . . . . . . . . . . . . . . 1307 35.5.16 TIM15 pauze- en deadetiidregister (TIM15_BDTR) . . . . . . . . . . . . 1307 35.5.17 TIM15 DMA-kontrôleregister (TIM15_DCR) . . . . . . . . . . . . . . . . . . . . 1310

36/2187

RM0438 Rev 8

RM0438

Ynhâld

35.6

35.5.18 TIM15 DMA-adres foar folsleine oerdracht (TIM15_DMAR) . . . . . . . . . . . . . 1310 35.5.19 TIM15 opsjeregister 1 (TIM15_OR1) . . . . . . . . . . . . . . . . . . . . . . . . 1311 35.5.20 TIM15 opsjeregister 2 (TIM15_OR2) . . . . . . . . . . . . . . . . . . . . . . . . 1311 35.5.21 TIM15 registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1313
TIM16/TIM17 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1316
35.6.1 TIMx kontrôleregister 1 (TIMx_CR1)(x = 16 oant 17) . . . . . . . . . . . . . . . . 1316 35.6.2 TIMx kontrôleregister 2 (TIMx_CR2)(x = 16 oant 17) . . . . . . . . . . . . . . . 1317 35.6.3 TIMx DMA/ûnderbrekkings ynskeakelje register (TIMx_DIER)(x = 16 oant 17) . . . . 1318 35.6.4 TIMx statusregister (TIMx_SR)(x = 16 oant 17) . . . . . . . . . . . . . . . . . 1319 35.6.5 TIMx evenemintgeneraasjeregister (TIMx_EGR)(x = 16 oant 17) . . . . . . . . . 1320 35.6.6 TIMx fêstlizze/fergelykje modus register 1
(TIMx_CCMR1)(x = 16 oant 17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1321 35.6.7 TIMx fêstlizze/ferlykje modus register 1 [ôfwikseljend] (TIMx_CCMR1)(x = 16 oant 17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1322 35.6.8 TIMx fêstlizze/ferlykje ynskeakelje register (TIMx_CCER)(x = 16 oant 17) . 1324 35.6.9 TIMx-teller (TIMx_CNT)(x = 16 oant 17) . . . . . . . . . . . . . . . . . . . . . . 1326 35.6.10 TIMx-foarskaler (TIMx_PSC)(x = 16 oant 17) . . . . . . . . . . . . . . . . . . . . . 1327 35.6.11 TIMx register automatysk opnij laden (TIMx_ARR)(x = 16 oant 17) . . . . . . . . . . . . . 1327 35.6.12 TIMx werhellingstellerregister (TIMx_RCR)(x = 16 oant 17) . . . . . . . . 1328 35.6.13 TIMx fêstlizze/fergelykje register 1 (TIMx_CCR1)(x = 16 oant 17) . . . . . 1328 35.6.14 TIMx pauze- en deadetiidregister (TIMx_BDTR)(x = 16 oant 17) . . . . 1329 35.6.15 TIMx DMA-kontrôleregister (TIMx_DCR)(x = 16 oant 17) . . . . . . . . . . . 1331 35.6.16 TIMx DMA-adres foar folsleine oerdracht (TIMx_DMAR)(x = 16 oant 17) . . . . 1332 35.6.17 TIM16 opsjeregister 1 (TIM16_OR1) . . . . . . . . . . . . . . . . . . . . . . . . 1332 35.6.18 TIM16 opsjeregister 2 (TIM16_OR2) . . . . . . . . . . . . . . . . . . . . . . . . 1333 35.6.19 TIM17 opsjeregister 1 (TIM17_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . 1334 35.6.20 TIM17 opsjeregister 2 (TIM17_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . 1335 35.6.21 TIM16/TIM17 registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1337

36

Basis timers (TIM6/TIM7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339

36.1 Ynlieding ta TIM6/TIM7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339

36.2 Haadfunksjes fan TIM6/TIM7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339

36.3 Funksjonele beskriuwing fan TIM6/TIM7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1340

36.3.1 Tiidbasis-ienheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1340

36.3.2 Telmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1342

36.3.3 UIF-bit opnij tawize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345

36.3.4 Klokboarne . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345

RM0438 Rev 8

37/2187
54

Ynhâld

RM0438

36.4

36.3.5 Debugmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1346
TIM6/TIM7 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1346
36.4.1 TIMx kontrôleregister 1 (TIMx_CR1)(x = 6 oant 7) . . . . . . . . . . . . . . . . . . 1346 36.4.2 TIMx kontrôleregister 2 (TIMx_CR2)(x = 6 oant 7) . . . . . . . . . . . . . . . . . 1348 36.4.3 TIMx DMA/Interrupt ynskeakelje register (TIMx_DIER)(x = 6 oant 7) . . . . . . 1348 36.4.4 TIMx statusregister (TIMx_SR)(x = 6 oant 7) . . . . . . . . . . . . . . . . . . . . 1349 36.4.5 TIMx evenemintgeneraasjeregister (TIMx_EGR)(x = 6 oant 7) . . . . . . . . . . . 1349 36.4.6 TIMx-teller (TIMx_CNT)(x = 6 oant 7) . . . . . . . . . . . . . . . . . . . . . . . . . 1349 36.4.7 TIMx foarskaler (TIMx_PSC)(x = 6 oant 7) . . . . . . . . . . . . . . . . . . . . . . . . 1350 36.4.8 TIMx automatysk opnij laden register (TIMx_ARR)(x = 6 oant 7) . . . . . . . . . . . . . . . 1350 36.4.9 TIMx register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351

37

Leech-enerzjy timer (LPTIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.1 Ynlieding ta LPTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.2 Haadfunksjes fan LPTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.3 LPTIM-ymplemintaasje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.4 Funksjonele beskriuwing fan LPTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353

37.4.1 LPTIM-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353

37.4.2 LPTIM-pinnen en ynterne sinjalen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353

37.4.3 LPTIM-ynfier en triggermapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1354

37.4.4 LPTIM reset en klokken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355

37.4.5 Glitch-filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355

37.4.6 Foarskaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1356

37.4.7 Triggermultiplekser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1356

37.4.8 Bedriuwsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1357

37.4.9 Time-outfunksje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1359

37.4.10 Generaasje fan golffoarmen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1359

37.4.11 Register bywurkje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1360

37.4.12 Tellermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1361

37.4.13 Timer ynskeakelje . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1362

37.4.14 Timerteller weromsette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1362

37.4.15 Encodermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1363

37.4.16 Werhellingsteller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364

37.4.17 Debugmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1365

37.5 LPTIM leech-enerzjymodi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366

37.6 LPTIM-ûnderbrekkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366

38/2187

RM0438 Rev 8

RM0438

Ynhâld

37.7

LPTIM-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1367
37.7.1 LPTIM-ûnderbrekkings- en statusregister (LPTIM_ISR) . . . . . . . . . . . . . . . . 1367 37.7.2 LPTIM-ûnderbrekkingsregister wiskje (LPTIM_ICR) . . . . . . . . . . . . . . . . . . . 1368 37.7.3 LPTIM-ûnderbrekkingsregister ynskeakelje (LPTIM_IER) . . . . . . . . . . . . . . . . . . 1369 37.7.4 LPTIM-konfiguraasjeregister (LPTIM_CFGR) . . . . . . . . . . . . . . . . . . . 1370 37.7.5 LPTIM-kontrôleregister (LPTIM_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1373 37.7.6 LPTIM-fergelykje r

Dokuminten / Resources

ST STM32L5-searje tige feilich mei leech enerzjyferbrûk [pdf] Brûkersgids
RM0438, STM32L5-searje Heech feilich mei leech enerzjyferbrûk, STM32L5-searje, Heech feilich mei leech enerzjyferbrûk, Leech enerzjyferbrûk, Ferbrûk

Referinsjes

Lit in reaksje efter

Jo e-mailadres sil net publisearre wurde. Ferplichte fjilden binne markearre *