STM32L5-reeks hoogs veilig met lae kragverbruik gebruikersgids

STM32L5-reeks hoogs veilig met lae kragverbruik

Spesifikasies:

  • Produknaam: RM0438 Verwysingshandleiding
  • Hersiening: Rev 8
  • Bladsye: 1 tot 2187
  • Vrystellingsdatum: Junie 2025
  • Vervaardiger: www.st.com

Produkinligting:

Die RM0438-verwysingshandleiding verskaf gedetailleerde inligting oor
geheue- en busargitektuur, TrustZone-sekuriteitsargitektuur,
geheue-organisasie, ingebedde SRAM, flitsgeheue oorview, stewel
konfigurasie en stelselsekuriteit.

Produkgebruiksinstruksies:

Geheue- en busargitektuur:

Die stelselargitektuur sluit in Vinnige C-bus, Stadige C-bus, S-bus,
DMA-bus, SDMMC-beheerder DMA-bus en BusMatriks.

TrustZone Sekuriteitsargitektuur:

Verduidelik die standaard TrustZone-sekuriteitstoestand en TrustZone
perifere klassifikasie.

Geheue organisasie:

Beskryf die geheuekaart, registergrensadresse en die
organisasie van ingebedde SRAM.

Ingeboude SRAM:

Besonderhede SRAM2 pariteitskontrole, skryfbeskerming, leesbeskerming,
vee bewerkings uit.

Flitsgeheue oorview:

Bied 'n oorview van die flitsgeheue wat in die stelsel gebruik word.

Selflaaikonfigurasie:

Dek die opstartkonfigurasie-instellings vir die stelsel.

Stelsel sekuriteit:

Inleiding tot stelselsekuriteitsmaatreëls.

Gereelde Vrae (Gereelde Vrae):

V: Waar kan ek inligting oor registerherstel vind
waardes?

A: Die register-terugstelwaardes word in afdeling 1.3 van die
handleiding.

V: Wat is TrustZone-sekuriteitsargitektuur?

A: TrustZone-sekuriteitsargitektuur word in afdeling 2.2 verduidelik.
van die handleiding.

V: Hoe konfigureer ek die opstartinstellings?

A: Instruksies vir opstartkonfigurasie kan in afdeling 3 gevind word.
van die handleiding.

"`

RM0438 Verwysingshandleiding
STM32L5-reeks gevorderde Arm®-gebaseerde 32-bis MCU's
Inleiding
Hierdie verwysingshandleiding is gerig op toepassingsontwikkelaars. Dit verskaf volledige inligting oor hoe om die STM32L552xx en STM32L562xx mikrobeheerders se geheue en randapparatuur te gebruik. STM32L552xx en STM32L562xx behoort tot die STM32L5x2-lyn van mikrobeheerders met verskillende geheuegroottes, pakkette en randapparatuur. Vir bestelinligting, meganiese en elektriese toestelkenmerke, verwys asseblief na die ooreenstemmende datablaaie. Vir inligting oor die Arm® Cortex®-M33-kern, verwys na die Cortex®-M33 Tegniese Verwysingshandleiding. Die STM32L552xx en STM32L562xx mikroverwerkers sluit die nuutste gepatenteerde tegnologie van ST in.
Verwante dokumente
· Cortex®-M33 Tegniese Verwysingshandleiding beskikbaar by http://infocenter.arm.com · STM32L552xx en STM32L562xx datablaaie · STM32L552xx en STM32L562xx foutblaaie

Junie 2025

RM0438 Rev 8

1/2187

www.st.com

1

Inhoud
Inhoud

R0438

1

Dokumentasiekonvensies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

1.1 Algemene inligting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

1.2 Lys van afkortings vir registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

1.3 Register herstelwaarde . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

1.4 Woordelys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

1.5 Beskikbaarheid van randapparatuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

2

Geheue- en busargitektuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

2.1 Sistemargitektuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

2.1.1 Vinnige C-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

2.1.2 Stadige C-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

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

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

2.1.5 SDMMC-beheerder DMA-bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

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

2.2 TrustZone-sekuriteitsargitektuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

2.2.1 Verstek TrustZone-sekuriteitstoestand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

2.2.2 TrustZone perifere klassifikasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

2.3 Geheue-organisasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

2.3.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

2.3.2 Geheuekaart- en registergrensadresse . . . . . . . . . . . . . . . . . . . . . 87

2.4 Ingeboude SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

2.4.1 SRAM2 pariteitstoets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

2.4.2 SRAM2 Skryfbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

2.4.3 SRAM2 Leesbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

2.4.4 SRAM2 Uitvee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

2.5 Flitsgeheue oorview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

3

Opstartkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

4

Stelselsekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

4.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

4.2 Belangrike sekuriteitskenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

2/2187

RM0438 Rev 8

R0438

Inhoud

4.3 4.4 4.5 4.6
4.7 4.8
4.9 4.10 4.11 4.12 4.13

Veilige installasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Veilige selflaai . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
4.4.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4.4.2 Unieke selflaai-inskrywing en BOOT_LOCK . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 4.4.3 Onveranderlike vertrouenswortel in stelselflitsgeheue . . . . . . . . . . . . . . . . . . 102
Veilige opdatering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 Hulpbronisolasie met behulp van TrustZone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
4.6.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.6.2 TrustZone-sekuriteitsargitektuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 4.6.3 Armv8-M-sekuriteitsuitbreiding van Cortex-M33 . . . . . . . . . . . . . . . . . . . . . . . 104 4.6.4 Geheue- en randapparatuurtoewysing met behulp van IDAU/SAU . . . . . . . . . . . . . . . 104 4.6.5 Geheue- en randapparatuurtoewysing met behulp van GTZC . . . . . . . . . . . . . . . . . . . 106 4.6.6 Bestuur van sekuriteit in TrustZone-bewuste randapparatuur . . . . . . . . . . . . . . . . . 109 4.6.7 Aktivering van TrustZone-sekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 4.6.8 Deaktivering van TrustZone-sekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Ander hulpbronisolasies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
4.7.1 Tydelike isolasie met behulp van veilige velbeskerming (HDP) . . . . . . . . . . . . . . 117
Veilige uitvoering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
4.8.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 4.8.2 Geheuebeskermingseenheid (MPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 4.8.3 Ingeboude flitsgeheue skryfbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . 118 4.8.4 Tamper-opsporing en -reaksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Veilige berging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
4.9.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 4.9.2 Unieke ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Kripto-enjins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
4.10.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 4.10.2 Kenmerke van kripto-enjins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 4.10.3 On-the-fly dekripsie-enjin (OTFDEC) . . . . . . . . . . . . . . . . . . . ... 122
Produklewensiklus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4.11.1 Lewensiklusbestuur met uitleesbeskerming (RDP) . . . . . . . . . . . . . . 124 4.11.2 Aanbevole opsiegreepinstellings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Toegangbeheerde ontfouting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4.12.1 Ontfoutingsbeskerming met uitleesbeskerming (RDP) . . . . . . . . . . . . . . . . . . . 125
Beskerming van intellektuele eiendom van sagteware en samewerkende ontwikkeling 126

RM0438 Rev 8

3/2187
54

Inhoud

R0438

4.13.1
4.13.2 4.13.3

Beskerming van sagteware-intellektuele eiendom met uitleesbeskerming (RDP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Beskerming van intellektuele eiendom van sagteware met OTFDEC . . . . . . . . . . . . . 127
Ander beskermings van intellektuele eiendom in sagteware . . . . . . . . . . . . . . . . . . . 129

5

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

5.1 GTZC inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.2 GTZC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.2.1 GTZC TrustZone-stelselargitektuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

5.3 GTZC funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

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

5.3.2 Definisie van onwettige toegang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

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

5.3.4 Geheuebeskermingsbeheerder – blokgebaseerd (MPCBB) . . . . . . . . . . . . . . . 134

5.3.5 TrustZone onwettige toegangsbeheerder (TZIC) . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.3.6 Aanskakel/herstel-status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.3.7 DMA-versoeke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

5.4 GTZC-gebeurtenisse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

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

5.5.1 GTZC_TZSC-beheerregister (GTZC_TZSC_CR) . . . . . . . . . . . . . . . . . . 136

5.5.2

GTZC_TZSC veilige konfigurasieregister 1 (GTZC_TZSC_SECCFGR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

5.5.3

GTZC_TZSC veilige konfigurasieregister 2 (GTZC_TZSC_SECCFGR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

5.5.4

GTZC_TZSC voorregkonfigurasieregister 1 (GTZC_TZSC_PRIVCFGR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

5.5.5

GTZC_TZSC voorregkonfigurasieregister 2 (GTZC_TZSC_PRIVCFGR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145

5.5.6

GTZC_TZSC eksterne geheue x nie-veilige watermerkregister 1 (GTZC_TZSC_MPCWMxANSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

5.5.7

GTZC_TZSC eksterne geheue x nie-veilige watermerkregister 2 (GTZC_TZSC_MPCWMxBNSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

5.5.8 GTZC_TZSC registerkaart en herstelwaardes . . . . . . . . . . . . . . . . . . . . . . . 148

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

5.6.1 GTZC_MPCBBx beheerregister (GTZC_MPCBBx_CR) (x = 1 tot 2). 150

5.6.2 GTZC_MPCBB1 sluitregister 1(GTZC_MPCBB1_LCKVTR1) . . . . . . 151

5.6.3

GTZC_MPCBB2 sluitregister 1 (GTZC_MPCBB2_LCKVTR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

4/2187

RM0438 Rev 8

R0438

Inhoud

5.6.4

GTZC_MPCBBx vektorregister y (GTZC_MPCBBx_VCTRy) (x = 1 tot 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 152

5.6.5 GTZC_MPCBB1 registerkaart en herstel waardes . . . . . . . . . . . . . . . . . . . 153

5.6.6 GTZC_MPCBB2 registerkaart en herstel waardes . . . . . . . . . . . . . . . . . . . 153

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

5.7.1 GTZC_TZIC onderbrekingsaktiveerregister 1 (GTZC_TZIC_IER1) . . . . . . . . 154

5.7.2 GTZC_TZIC onderbrekingsaktiveerregister 2 (GTZC_TZIC_IER2) . . . . . . . . 157

5.7.3 GTZC_TZIC onderbrekingsaktiveerregister 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 vlag skoonmaakregister 1 (GTZC_TZIC_FCR1) . . . . . . . . . . . . . . 166

5.7.8 GTZC_TZIC vlag skoonmaakregister 2 (GTZC_TZIC_FCR2) . . . . . . . . . . . . . . 169

5.7.9 GTZC_TZIC vlag skoonmaakregister 3 (GTZC_TZIC_FCR3) . . . . . . . . . . . . . . 171

5.7.10 GTZC_TZIC registerkaart en herstel waardes . . . . . . . . . . . . . . . . . . . . . . . . 172

6

Ingeboude flitsgeheue (FLITS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

6.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

6.2 FLASH hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

6.3 Funksionele beskrywing van flitsgeheue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

6.3.1 Flitsgeheue-organisasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

6.3.2 Foutkode-korreksie (FCO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

6.3.3 Leestoeganglatensie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

6.3.4 Lae-voltagek lees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

6.3.5 Flits program en uitvee bewerkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

6.3.6 Veegvolgordes van die hoofgeheue van die flits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

6.3.7 Programmeringsreekse van die hoofgeheue van die flits . . . . . . . . . . . . . . . . . . . . . . 185

6.3.8 Flitsfoutvlae . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

6.3.9

Lees-terwyl-skryf (RWW) slegs beskikbaar in dubbelbankmodus (DBANK = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

6.4 Flitsgeheue-opsie grepe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

6.4.1 Beskrywing van opsiegrepe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

6.4.2 Opsie grepe programmering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

6.5 Flash TrustZone-sekuriteit en voorregbeskermings . . . . . . . . . . . . . . . . . . 193

6.5.1 TrustZone-sekuriteitsbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

6.5.2 Veilige watermerk-gebaseerde areabeskerming . . . . . . . . . . . . . . . . . . . . . . . . . 195

6.5.3 Veilige velbeskerming (HDP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

RM0438 Rev 8

5/2187
54

Inhoud

R0438

6.5.4 Veilige blokgebaseerde area (SECBB) beskerming . . . . . . . . . . . . . . . . . . . . 196 6.5.5 Forseer selflaai vanaf 'n veilige geheueadres . . . . . . . . . . . . . . . . . . . . . 197 6.5.6 Flash-sekuriteitskenmerkstatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 6.5.7 Flash registreer bevoorregte en onbevoorregte modusse . . . . . . . . . . . . . . . . 198
6.6 Veilige stelselgeheue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
6.6.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 6.6.2 RSS ken hulpbron toe aan selflaaiprogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 6.6.3 RSSLIB-funksies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
6.7 Flitsgeheue-beskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
6.7.1 Skryfbeskerming (WRP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 6.7.2 Uitleesbeskerming (RDP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
6.8 FLITS-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 6.9 FLITS-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
6.9.1 Flits-toegangsbeheerregister (FLASH_ACR) . . . . . . . . . . . . . . . . . . . . 213 6.9.2 Flits-afskakelsleutelregister (FLASH_PDKEYR) . . . . . . . . . . . . . . 214 6.9.3 Flits nie-veilige sleutelregister (FLASH_NSKEYR) . . . . . . . . . . . . . . . 215 6.9.4 Flits veilige sleutelregister (FLASH_SECKEYR) . . . . . . . . . . . . . . . . . . 215 6.9.5 Flits-opsiesleutelregister (FLASH_OPTKEYR) . . . . . . . . . . . . . . . . . . . . 216 6.9.6 Flits lae volumetage sleutelregister (FLASH_LVEKEYR) . . . . . . . . . . . . . . . . 216 6.9.7 Flitsstatusregister (FLASH_NSSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 6.9.8 Flitsstatusregister (FLASH_SECSR) . . . . . . . . . . . . . . . . . . . . . . . . . . 218 6.9.9 Flits nie-veilige beheerregister (FLASH_NSCR) . . . . . . . . . . . . . . . . 220 6.9.10 Flits-veilige beheerregister (FLASH_SECCR) . . . . . . . . . . . . . . . . . . 222 6.9.11 Flits-ECC-register (FLASH_ECCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 6.9.12 Flits-opsieregister (FLASH_OPTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 6.9.13 Flits nie-veilige opstartadres 0 register (FLASH_NSBOOTADD0R) 227 6.9.14 Flits nie-veilige opstartadres 1 register (FLASH_NSBOOTADD1R) 228 6.9.15 Flits veilige opstartadres 0 register (FLASH_SECBOOTADD0R) . . 228 6.9.16 Flits bank 1 veilige watermerk1 register (FLASH_SECWM1R1) . . . . 229 6.9.17 Flits veilige watermerk1 register 2 (FLASH_SECWM1R2) . . . . . . . . 230 6.9.18 Flits WPR1 area A adresregister (FLASH_WRP1AR) . . . . . . . . . 231 6.9.19 Flits WPR1 area B adresregister (FLASH_WRP1BR) . . . . . . . . . 232 6.9.20 Flits veilige watermak2 register (FLASH_SECWM2R1) . . . . . . . . . . 233 6.9.21 Flits veilige watermak2 register 2 (FLASH_SECWM2R2) . . . . . . . . 234 6.9.22 Flits WPR2 area A adresregister (FLASH_WRP2AR) . . . . . . . . . 235 6.9.23 Flits WPR2 area B adresregister (FLASH_WRP2BR) . . . . . . . . . 236

6/2187

RM0438 Rev 8

R0438

Inhoud

6.9.24
6.9.25
6.9.26 6.9.27 6.9.28

FLASH veilige blok-gebaseerde bank 1 register (FLASH_SECBB1Rx) (waar x=1..4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
FLASH veilige blok-gebaseerde bank 2 register (FLASH_SECBB2Rx) (waar x=1..4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
FLASH veilige HDP-beheerregister (FLASH_SECHDPCR) . . . . . . . . . 238
FLASH-voorregkonfigurasieregister (FLASH_PRIVCFGR) . . . . . . . . 238
FLITSregisterkaart en herstelwaardes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

7

Instruksiekasgeheue (ICACHE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

7.1 Inleiding tot ICACHE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

7.2 ICACHE hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

7.3 ICACHE-implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

7.4 ICACHE funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

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

7.4.2 ICACHE-terugstelling en klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244

7.4.3 ICACHE TAG geheue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245

7.4.4 Direk gekarteerde ICACHE (1-rigting kasgeheue) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246

7.4.5 ICACHE aktiveer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

7.4.6 Kasbare en nie-kasbare verkeer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

7.4.7 Adresherkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248

7.4.8 Kasgeheue-toegange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

7.4.9 Dubbele-meesterkasgeheue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

7.4.10 ICACHE-sekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

7.4.11 ICACHE-onderhoud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

7.4.12 ICACHE-prestasiemonitering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

7.4.13 ICACHE-selflaai . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

7.5 ICACHE lae-krag modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

7.6 ICACHE-foutbestuur en onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . 253

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

7.7.1 ICACHE-beheerregister (ICACHE_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

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

7.7.3 ICACHE-onderbrekingsaktiveerregister (ICACHE_IER) . . . . . . . . . . . . . . . . . . 255

7.7.4 ICACHE-vlag skoonmaakregister (ICACHE_FCR) . . . . . . . . . . . . . . . . . . . . . . . 255

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

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

7.7.7 ICACHE streek x konfigurasieregister (ICACHE_CRRx) . . . . . . . . . . 256

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

RM0438 Rev 8

7/2187
54

Inhoud

R0438

8

Kragbeheer (PWR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

8.1 Kragtoevoere en toevoerdomeine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

8.1.1 Onafhanklike analoog randapparatuurtoevoer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

8.1.2 Onafhanklike I/O-toevoerrail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

8.1.3 Onafhanklike USB-senders en -ontvangers voorsien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264

8.1.4 Battery-rugsteundomein . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

8.2 Stelseltoevoervolumetage-regulasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

8.2.1 Vlugtage-reguleerder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

8.2.2 Ingeboude SMPS stapsgewyse afwaartse omskakelaar . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

8.2.3 SMPS stap-af-omskakelaar kragtoevoerskema . . . . . . . . . . . . . . . . . . 268

8.2.4 SMPS-stap-af-omskakelaar teenoor lae-kragmodus . . . . . . . . . . . . . . . 269

8.2.5 Dinamiese volumetage-skaleringsbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

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

8.3 Toesig oor kragtoevoer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

8.3.1

Aanskakel-herstel (POR) / kragaf-herstel (PDR) / bruin-uitval-herstel (BOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

8.3.2 Programmeerbare volumetage-detektor (PVD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274

8.3.3 Perifere volumetage monitering (PVM) . . . . . . . . . . . . . . . . . . . . . . . . . . 275

8.3.4 Boonste volumetage drempelmonitering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

8.3.5 Temperatuurdrempelmonitering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

8.4 Kragbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

8.4.1 Kragmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

8.4.2 Loopmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

8.4.3 Lae-krag-loopmodus (LP-loop) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

8.4.4 Lae-kragmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284

8.4.5 Slaapmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285

8.4.6 Lae-krag slaapmodus (LP-slaap) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 Bystandmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

8.4.11 Afskakelmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

8.4.12 Outomatiese ontwaking vanuit 'n lae-kragmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296

8.5 PWR TrustZone-sekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296

8.5.1 PWR Bevoorregte en Ongebevoorregte modusse . . . . . . . . . . . . . . . . . . . . . . . . . 298

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

8/2187

RM0438 Rev 8

R0438

Inhoud

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

Kragbeheerregister 1 (PWR_CR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 Kragbeheerregister 2 (PWR_CR2) . . . . . . . . . . . . . . . . . . . . . . . . . 300 Kragbeheerregister 3 (PWR_CR3) . . . . . . . . . . . . . . . . . . . . . . . . . 301 Kragbeheerregister 4 (PWR_CR4) . . . . . . . . . . . . . . . . . . . . . . . . . 303 Kragstatusregister 1 (PWR_SR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 304 Kragstatusregister 2 (PWR_SR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 Kragstatus-skoonmaakregister (PWR_SCR) . . . . . . . . . . . . . . . . . . . . . . . . 307 Kragpoort A optrekbeheerregister (PWR_PUCRA) . . . . . . . . . . . . . 308 Kragpoort A aftrekbeheerregister (PWR_PDCRA) . . . . . . . . . . . 308 Kragpoort B optrekbeheerregister (PWR_PUCRB) . . . . . . . . . . . . . 309 Kragpoort B aftrekbeheerregister (PWR_PDCRB) . . . . . . . . . . 310 Kragpoort C optrekbeheerregister (PWR_PUCRC) . . . . . . . . . . . . 310 Kragpoort C aftrekbeheerregister (PWR_PDCRC) . . . . . . . . . . 311 Kragpoort D optrekbeheerregister (PWR_PUCRD) . . . . . . . . . . . . 311 Kragpoort D aftrekbeheerregister (PWR_PDCRD) . . . . . . . . . . 312 Kragpoort E aftrekbeheerregister (PWR_PUCRE) . . . . . . . . . . . . 313 Kragpoort E aftrekbeheerregister (PWR_PDCRE) . . . . . . . . . 313 Kragpoort F aftrekbeheerregister (PWR_PUCRF) . . . . . . . . . . . . 314 Kragpoort F aftrekbeheerregister (PWR_PDCRF) . . . . . . . . . . 314 Kragpoort G optrekbeheerregister (PWR_PUCRG) . . . . . . . . . . . . . 315 Kragpoort G optrekbeheerregister (PWR_PDCRG) . . . . . . . . . . 316 Kragpoort H optrekbeheerregister (PWR_PUCRH) . . . . . . . . . . . . 316 Kragpoort H optrekbeheerregister (PWR_PDCRH) . . . . . . . . . . 317 Kragveilige konfigurasieregister (PWR_SECCFGR) . . . . . . . . . . . 317 Kragvoorregkonfigurasieregister (PWR_PRIVCFGR) . . . . . . . . . 319 PWR-registerkaart en herstelwaardes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

9

Herstel en klokbeheer (RCC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1 Herstel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1.1 Kragtoevoer herstel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1.2 Sistemherstel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

9.1.3 Rugsteundomeinherstel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

9.2 RCC-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

9.3 Horlosies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

9.3.1 HSE-horlosie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

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

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

RM0438 Rev 8

9/2187
54

Inhoud

R0438

9.3.4 HSI48 klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 9.3.5 PLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332 9.3.6 LSE klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 9.3.7 LSE-stelselklok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 9.3.8 LSI-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 9.3.9 Sisteemklok (SYSCLK) seleksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 9.3.10 Klokbronfrekwensie teenoor voltage-skalering . . . . . . . . . . . . . . . . . . . . 335 9.3.11 Kloksekuriteitstelsel (KSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 9.3.12 Kloksekuriteitstelsel op LSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 9.3.13 ADC-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 9.3.14 RTC-klok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 9.3.15 Tydtellerklok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 9.3.16 Waghondklok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 9.3.17 Uitklokvermoë . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 9.3.18 Interne/eksterne klokmeting met TIM15/TIM16/TIM17 . . . . . 337 9.3.19 Perifere klokaktiveerregisters
(RCC_AHBxENR, RCC_APBxENRy) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
9.4 Lae-kragmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 9.5 RCC TrustZone®-sekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341 9.6 RCC Bevoorregte en Ongebevoorregte modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 9.7 RCC-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 9.8 RCC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
9.8.1 RCC klokbeheerregister (RCC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 9.8.2 RCC interne klokbronne kalibrasieregister (RCC_ICSCR) . . . . . . 348 9.8.3 RCC klokkonfigurasieregister (RCC_CFGR) . . . . . . . . . . . . . . . . . 349 9.8.4 RCC PLL-konfigurasieregister (RCC_PLLCFGR) . . . . . . . . . . . . . . . 352 9.8.5 RCC PLLSAI1-konfigurasieregister (RCC_PLLSAI1CFGR) . . . . . . . 355 9.8.6 RCC PLLSAI2-konfigurasieregister (RCC_PLLSAI2CFGR) . . . . . . . 358 9.8.7 RCC-klokonderbrekingsaktiveerregister (RCC_CIER) . . . . . . . . . . . . . . . . 360 9.8.8 RCC-klokonderbrekingsvlagregister (RCC_CIFR) . . . . . . . . . . . . . . . . . . 361 9.8.9 RCC-klokonderbrekingsuitveeregister (RCC_CICR) . . . . . . . . . . . . . . . . . 363 9.8.10 RCC AHB1 perifere herstelregister (RCC_AHB1RSTR) . . . . . . . . . . 364 9.8.11 RCC AHB2 perifere herstelregister (RCC_AHB2RSTR) . . . . . . . . . . 365 9.8.12 RCC AHB3 perifere herstelregister (RCC_AHB3RSTR) . . . . . . . . . . 367 9.8.13 RCC APB1 perifere herstelregister 1 (RCC_APB1RSTR1) . . . . . . . . 368 9.8.14 RCC APB1 perifere herstelregister 2 (RCC_APB1RSTR2) . . . . . . . . 370 9.8.15 RCC APB2 perifere herstelregister (RCC_APB2RSTR) . . . . . . . . . . . 371

10/2187

RM0438 Rev 8

R0438

Inhoud

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 perifere klokaktiveerregister (RCC_AHB1ENR) . . . . . 373 RCC AHB2 perifere klokaktiveerregister (RCC_AHB2ENR) . . . . . 374 RCC AHB3 perifere klokaktiveerregister (RCC_AHB3ENR) . . . . . . 376
RCC APB1 perifere klok aktiveer register 1 (RCC_APB1ENR1) . . . 377 RCC APB1 perifere klok aktiveer register 2 (RCC_APB1ENR2) . . . 379
RCC APB2 perifere klok aktiveer register (RCC_APB2ENR) . . . . . 381 RCC AHB1 perifere klokke aktiveer in Slaap en Stop modusse register (RCC_AHB1SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382 RCC AHB2 perifere klokke aktiveer in Slaap en Stop modusse register (RCC_AHB2SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
RCC AHB3 randapparatuurklokke aktiveer in Slaap- en Stopmodusse register (RCC_AHB3SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386 RCC APB1 randapparatuurklokke aktiveer in Slaap- en Stopmodusse register 1 (RCC_APB1SMENR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 RCC APB1 randapparatuurklokke aktiveer in Slaap- en Stopmodusse register 2 (RCC_APB1SMENR2) . . . . . . . . . . . ... 390
RCC APB2 randapparatuurklokke aktiveer in Slaap- en Stopmodusse register (RCC_APB2SMENR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391 RCC randapparatuur onafhanklike klokkonfigurasie register 1 (RCC_CCIPR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393 RCC Rugsteundomeinbeheerregister (RCC_BDCR) . . . . . . . . . . . ... 395
RCC-beheer-/statusregister (RCC_CSR) . . . . . . . . . . . . . . . . . . . . . . . . . 398 RCC-klokherstel RC-register (RCC_CRRCR) . . . . . . . . . . . . . . . . . 400 RCC-randapparatuur onafhanklike klokkonfigurasieregister 2 (RCC_CCIPR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
OCTOSPI-vertragingkonfigurasieregister (RCC_DLYCFGR) . . . . . . . . . . 402 RCC veilige konfigurasieregister (RCC_SECCFGR) . . . . . . . . . . . . . 403 RCC veilige statusregister (RCC_SECSR) . . . . . . . . . . . . . . . . . . . . . 405
RCC AHB1 sekuriteitsstatusregister (RCC_AHB1SECSR) . . . . . . . . . . . 407 RCC AHB2 sekuriteitsstatusregister (RCC_AHB2SECSR) . . . . . . . . . . 408 RCC AHB3 sekuriteitsstatusregister (RCC_AHB3SECSR) . . . . . . . . . . 410
RCC APB1 sekuriteitsstatusregister 1 (RCC_APB1SECSR1) . . . . . . . 411 RCC APB1 sekuriteitsstatusregister 2 (RCC_APB1SECSR2) . . . . . . . 414 RCC APB2 sekuriteitsstatusregister (RCC_APB2SECSR) . . . . . . . . . . 415
RCC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417

10

Klokherstelstelsel (KHS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

10.1 CRS inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

10.2 CRS hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424

RM0438 Rev 8

11/2187
54

Inhoud

R0438

10.3 10.4
10.5 10.6 10.7

CRS-implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424 CRS funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
10.4.1 CRS-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 10.4.2 CRS interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 10.4.3 Sinchronisasie-invoer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426 10.4.4 Frekwensiefoutmeting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426 10.4.5 Frekwensiefout-evaluering en outomatiese afsny . . . . . . . . . . . . . . . 427 10.4.6 CRS-inisialisering en -konfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
CRS in lae-kragmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 CRS-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 CRS-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
10.7.1 CRS-beheerregister (CRS_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 10.7.2 CRS-konfigurasieregister (CRS_CFGR) . . . . . . . . . . . . . . . . . . . . . . 430 10.7.3 CRS-onderbrekings- en statusregister (CRS_ISR) . . . . . . . . . . . . . . . . . . . . 431 10.7.4 CRS-onderbrekingsvlag-skoonmaakregister (CRS_ICR) . . . . . . . . . . . . . . . . . . . . . 433 10.7.5 CRS-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434

11

Algemene doel-I/O's (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.2 GPIO hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.3 GPIO funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435

11.3.1 Algemene doel I/O (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438

11.3.2 I/O-pen alternatiewe funksie multiplekser en kartering . . . . . . . . . . . . . . . . . 438

11.3.3 I/O-poortbeheerregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

11.3.4 I/O-poort dataregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

11.3.5 I/O-data bisgewyse hantering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

11.3.6 GPIO-sluitmeganisme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

11.3.7 I/O alternatiewe funksie invoer/uitvoer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

11.3.8 Eksterne onderbrekings-/weklyne . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

11.3.9 Invoerkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441

11.3.10 Uitvoerkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441

11.3.11 Alternatiewe funksiekonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442

11.3.12 Analoogkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443

11.3.13 Gebruik van die HSE- of LSE-ossillatorpenne as GPIO's . . . . . . . . . . . . . . . . . . . 443

11.3.14 Gebruik van die GPIO-penne in die RTC-toevoerdomein . . . . . . . . . . . . . . . . . . . 443

11.3.15 Gebruik van PH3 as GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444

12/2187

RM0438 Rev 8

R0438

Inhoud

11.4 11.5 11.6

TrustZone-sekuriteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
Bevoorregte en Ongebevoorregte modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
GPIO-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
11.6.1 GPIO-poortmodusregister (GPIOx_MODER) (x =A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
11.6.2 GPIO-poort uitvoertipe register (GPIOx_OTYPER) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
11.6.3 GPIO-poort uitvoerspoedregister (GPIOx_OSPEEDR) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
11.6.4 GPIO-poort optrek-/aftrekregister (GPIOx_PUPDR) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
11.6.5 GPIO-poort-invoerdataregister (GPIOx_IDR) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
11.6.6 GPIO-poort-uitvoerdataregister (GPIOx_ODR) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
11.6.7 GPIO-poort bitstel/herstelregister (GPIOx_BSRR) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
11.6.8 GPIO-poortkonfigurasie-sluitregister (GPIOx_LCKR) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
11.6.9 GPIO alternatiewe funksie lae register (GPIOx_AFRL) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
11.6.10 GPIO alternatiewe funksie hoë register (GPIOx_AFRH) (x = A na H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
11.6.11 GPIO-poortbit-terugstelregister (GPIOx_BRR) (x = A na H) . . . . . . . . . . . . . . 452
11.6.12 GPIO veilige konfigurasieregister (GPIOx_SECCFGR) (x = A na H). 452
11.6.13 GPIO-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454

12

Stelselkonfigurasiebeheerder (SYSCFG) . . . . . . . . . . . . . . . . . . . . . . . 456

12.1 SYSCFG hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456

12.2 SYSCFG TrustZone-sekuriteit en -voorreg . . . . . . . . . . . . . . . . . . . . . . . . . 456

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

12.3.1 SYSCFG veilige konfigurasieregister (SYSCFG_SECCFGR) . . . . . 458

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

12.3.3 FPU-onderbrekingsmaskerregister (SYSCFG_FPUIMR) . . . . . . . . . . . . . . . . . . 461

12.3.4 SYSCFG CPU nie-veilige sluitregister (SYSCFG_CNSLCKR) . . . . . 461

12.3.5 SYSCFG CPU veilige sluitregister (SYSCFG_CSLOCKR) . . . . . . . . . 462

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

12.3.7 SYSCFG SRAM2 beheer- en statusregister (SYSCFG_SCSR) . . . . 464

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

RM0438 Rev 8

13/2187
54

Inhoud

R0438

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

13

Randapparatuur se interkonneksiematriks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

13.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

13.2 Verbindingsopsomming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

13.3 Interkonneksiebesonderhede . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470

13.3.1 Van tydteller (TIM1/TIM2/TIM3/TIM4/TIM5/TIM8/TIM15/TIM16/TIM17) na tydteller (TIM1/TIM2/TIM3/TIM4/TIM5/TIM8/TIM15) . . . . . . . . . . . . . . . . . . 470

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

13.3.3 Van ADC1/ADC2 na tydteller (TIM1/TIM8) . . . . . . . . . . . . . . . . . . . . . . . . . . 471

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

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

13.3.6 Van DFSDM1 na tydteller (TIM1/TIM8/TIM15/TIM16/TIM17) . . . . . . . . . . 473

13.3.7 Van HSE, LSE, LSI, MSI, MCO, RTC na tydteller (TIM2/TIM15/TIM16/TIM17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473

13.3.8 Van RTC, COMP1, COMP2 na lae-krag-timer (LPTIM1/LPTIM2/LPTIM3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

13.3.9 Van tydteller (TIM1/TIM2/TIM3/TIM8/TIM15) na vergelykers (COMP1/COMP2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

13.3.10 Van ADC (ADC1) na ADC (ADC2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

13.3.11 Van USB na timer (TIM2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475

13.3.12 Van interne analoogbron na ADC (ADC1/ADC2) en OPAMP (OPAMP1/OPAM2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475

13.3.13 Van vergelykers (COMP1/COMP2) na tydtellers (TIM1/TIM2/TIM3/TIM8/TIM15/TIM16/TIM17) . . . . . . . . . . . . . . . . . . . . . 475

13.3.14 Van stelselfoute tot tydtellers (TIM1/TIM8/TIM15/TIM16/TIM17) . . . . 476

13.3.15 Van tydtellers (TIM16/TIM17) na IRTIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476

13.3.16 Van ADC (ADC1/ADC2) na DFSDM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

14

Direkte geheuetoegangbeheerder (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 478

14.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

14.2 DMA hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

14.3 DMA-implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

14/2187

RM0438 Rev 8

R0438

Inhoud

14.4
14.5 14.6

14.3.1 DMA1 en DMA2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 14.3.2 DMA-versoekkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
DMA funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480
14.4.1 DMA-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480 14.4.2 DMA-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 14.4.3 DMA-oordragte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 14.4.4 DMA arbitrasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482 14.4.5 DMA kanale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483 14.4.6 DMA data wydte, belyning en endianness . . . . . . . . . . . . . . . . . . . . . . 488 14.4.7 DMA-foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
DMA-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490 DMA-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
14.6.1 DMA-onderbrekingsstatusregister (DMA_ISR) . . . . . . . . . . . . . . . . . . . . . . . . 490 14.6.2 DMA-onderbrekingsvlag-skoonmaakregister (DMA_IFCR) . . . . . . . . . . . . . . . . . . 494 14.6.3 DMA-kanaal x konfigurasieregister (DMA_CCRx) . . . . . . . . . . . . . . . 495 14.6.4 DMA-kanaal x aantal data om oor te dra in register (DMA_CNDTRx) . 500 14.6.5 DMA-kanaal x perifere adresregister (DMA_CPARx) . . . . . . . . 501 14.6.6 DMA-kanaal x geheue 0 adresregister (DMA_CM0ARx) . . . . . . . 501 14.6.7 DMA-kanaal x geheue 1 adresregister (DMA_CM1ARx) . . . . . . . 502 14.6.8 DMA-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502

15

DMA-versoekmultiplekser (DMAMUX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

15.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

15.2 DMAMUX hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

15.3 DMAMUX implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

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

15.3.2 DMAMUX-kartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508

15.4 DMAMUX funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .511

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

15.4.2 DMAMUX seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

15.4.3 DMAMUX-kanale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

15.4.4 DMAMUX veilige/nie-veilige kanale . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

15.4.5 DMAMUX bevoorregte / ongebevoorregte kanale . . . . . . . . . . . . . . . . . . . . . . 513

15.4.6 DMAMUX-versoeklynmultiplekser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

15.4.7 DMAMUX-versoekgenerator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516

15.5 DMAMUX-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517

RM0438 Rev 8

15/2187
54

Inhoud

R0438

15.6

DMAMUX-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
15.6.1 DMAMUX-versoeklynmultiplekserkanaal x-konfigurasieregister (DMAMUX_CxCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
15.6.2 DMAMUX-versoeklynmultiplekser-onderbrekingskanaalstatusregister (DMAMUX_CSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
15.6.3 DMAMUX versoeklyn multiplekser onderbrekingskanaal skoonmaakvlagregister (DMAMUX_CCFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
15.6.4 DMAMUX-versoekgenerator kanaal x konfigurasieregister (DMAMUX_RGxCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
15.6.5 DMAMUX-versoekgenerator onderbrekingsstatusregister (DMAMUX_RGSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
15.6.6 DMAMUX-versoekgenerator onderbrekingsskoonmaakvlagregister (DMAMUX_RGCFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
15.6.7 DMAMUX-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524

16

Geneste vektoronderbrekingsbeheerder (NVIC) . . . . . . . . . . . . . . . . . . . . . . 528

16.1 NVIC-hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

16.2 SysTick kalibrasiewaarde register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

16.3 Onderbrekings- en uitsonderingsvektore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529

17

Uitgebreide onderbrekings en gebeurtenisbeheerder (EXTI) . . . . . . . . . . . . . . . . . . 533

17.1 EXTI hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533

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

17.2.1 EXTI-verbindings tussen randapparatuur en SVE . . . . . . . . . . . . . . . . . . 535

17.2.2 EXTI-onderbreking/gebeurteniskartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535

17.3 EXTI funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537

17.3.1 EXTI konfigureerbare gebeurtenisinvoer-wakkerwording . . . . . . . . . . . . . . . . . . . . . . . . . . . 537

17.3.2 EXTI direkte gebeurtenis insette wekroep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539

17.3.3 EXTI mux seleksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539

17.4 EXTI funksionele gedrag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

17.5 EXTI-gebeurtenisbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541

17.5.1 EXTI-sekuriteitsbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541

17.5.2 EXTI voorregbeskerming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542

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

17.6.1 17.6.2 17.6.3 17.6.4

EXTI stygende sneller seleksie register (EXTI_RTSR1) . . . . . . . . . . . . . . 543 EXTI dalende sneller seleksie register (EXTI_FTSR1) . . . . . . . . . . . . . 544 EXTI sagteware onderbreking gebeurtenis register (EXTI_SWIER1) . . . . . . . . . . . 545 EXTI stygende rand hangende register (EXTI_RPR1) . . . . . . . . . . . . . . . . 546

16/2187

RM0438 Rev 8

R0438

Inhoud

17.6.5 EXTI valrand hangende register (EXTI_FPR1) . . . . . . . . . . . . . . . . 547 17.6.6 EXTI sekuriteit konfigurasie register (EXTI_SECCFGR1) . . . . . . . . . . 548 17.6.7 EXTI-voorregtekonfigurasieregister (EXTI_PRIVCFGR1) . . . . . . . . . 549 17.6.8 EXTI stygende sneller seleksie register (EXTI_RTSR2) . . . . . . . . . . . . . . 549 17.6.9 EXTI dalende sneller seleksie register (EXTI_FTSR2) . . . . . . . . . . . . . 550 17.6.10 EXTI sagteware onderbreking gebeurtenis register (EXTI_SWIER2) . . . . . . . . . . . 551 17.6.11 EXTI stygende rand hangende register (EXTI_RPR2) . . . . . . . . . . . . . . . . 551 17.6.12 EXTI valrand hangende register (EXTI_FPR2) . . . . . . . . . . . . . . . . 552 17.6.13 EXTI sekuriteit aktiveer register (EXTI_SECCFGR2) . . . . . . . . . . . . . . . 553 17.6.14 EXTI-privilege-aktiveerregister (EXTI_PRIVCFGR2) . . . . . . . . . . . . . . 553 17.6.15 EXTI eksterne onderbrekingseleksieregister (EXTI_EXTICRn) . . . . . . . . 554 17.6.16 EXTI-slotregister (EXTI_LOCKR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 17.6.17 EXTI CPU-opwekking met onderbrekingsmaskerregister (EXTI_IMR1) . . . . . . . 557 17.6.18 EXTI CPU-opwekking met gebeurtenismaskerregister (EXTI_EMR1) . . . . . . . . 558 17.6.19 EXTI CPU-opwekking met onderbrekingsmaskerregister (EXTI_IMR2) . . . . . . . 559 17.6.20 EXTI CPU-opwekking met gebeurtenismaskerregister (EXTI_EMR2) . . . . . . . . 559 17.6.21 EXTI register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560

18

Sikliese redundansiekontroleberekeningseenheid (CRC) . . . . . . . . . . . . . . . . . . 563

18.1 Inleiding tot die CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563

18.2 CRC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563

18.3 CRC funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

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

18.3.2 CRC interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

18.3.3 CRC-werking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

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

18.4.1 18.4.2 18.4.3 18.4.4

CRC-dataregister (CRC_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566 CRC onafhanklike dataregister (CRC_IDR) . . . . . . . . . . . . . . . . . . . . 566 CRC-beheerregister (CRC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 CRC-aanvanklike waarde (CRC_INIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

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

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

19

Buigsame statiese geheuebeheerder (FSMC) . . . . . . . . . . . . . . . . . . . . . . . 570

19.1 Inleiding tot die FMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

19.2 FMC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

RM0438 Rev 8

17/2187
54

Inhoud

R0438

19.3 19.4 19.5 19.6
19.7

FMC-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571 AHB-koppelvlak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
19.4.1 Ondersteunde geheues en transaksies . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
Adreskartering van eksterne toestel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
19.5.1 NOR/PSRAM-adreskartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573 19.5.2 NAND-flitsgeheue-adreskartering . . . . . . . . . . . . . . . . . . . . . . . . . . 574
NOR-flits/PSRAM-beheerder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
19.6.1 Eksterne geheue-koppelvlakseine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576 19.6.2 Ondersteunde geheues en transaksies . . . . . . . . . . . . . . . . . . . . . . . . . 578 19.6.3 Algemene tydsberekeningsreëls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580 19.6.4 NOR-flits/PSRAM-beheerder asynchrone transaksies . . . . . . . . . . . 580 19.6.5 Sinchrone transaksies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598 19.6.6 NOR/PSRAM-beheerderregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
NAND-flitsbeheerder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
19.7.1 Eksterne geheue-koppelvlakseine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613 19.7.2 NAND-flitsgeheue-ondersteunde geheues en transaksies . . . . . . . . . . . . . . . . 614 19.7.3 Tydsdiagramme vir NAND-flitsgeheue . . . . . . . . . . . . . . . . . . . . . . . 615 19.7.4 NAND-flitsbewerkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615 19.7.5 NAND-flitsvoorwagfunksionaliteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616 19.7.6 Berekening van die foutkorreksiekode (ECC)
in NAND-flitsgeheue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617 19.7.7 NAND-flitsbeheerderregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618 19.7.8 FMC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624

20

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

20.1 OCTOSPI-inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626

20.2 OCTOSPI hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626

20.3 OCTOSPI implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627

20.4 OCTOSPI funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628

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

20.4.2 OCTOSPI-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629

20.4.3 OCTOSPI-koppelvlak na geheuemodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630

20.4.4 OCTOSPI gereelde-opdrag protokol . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630

20.4.5 OCTOSPI gereelde-opdrag protokol sein koppelvlak . . . . . . . . . . . . . . . 634

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

20.4.7 Spesifieke kenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641

18/2187

RM0438 Rev 8

R0438

Inhoud

20.5 20.6 20.7

20.4.8 OCTOSPI bedryfsmodus inleiding . . . . . . . . . . . . . . . . . . . . . . . . 642 20.4.9 OCTOSPI indirekte modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642 20.4.10 OCTOSPI outomatiese status-peilingsmodus . . . . . . . . . . . . . . . . . . . . . . 644 20.4.11 OCTOSPI geheue-gekarteer modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645 20.4.12 OCTOSPI-konfigurasie-inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . 646 20.4.13 OCTOSPI-stelselkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646 20.4.14 OCTOSPI-toestelkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646 20.4.15 OCTOSPI gereelde-opdragmodus-konfigurasie . . . . . . . . . . . . . . . . 649 20.4.16 OCTOSPI HyperBus-protokolkonfigurasie . . . . . . . . . . . . . . . . . . . . . 651 20.4.17 OCTOSPI foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652 20.4.18 OCTOSPI BESIG en ABORTEER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653 20.4.19 OCTOSPI herkonfigurasie of deaktivering . . . . . . . . . . . . . . . . . . . . . . 653 20.4.20 NKV-gedrag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... 653
Adresbelyning en datanommer. . . . . . . . . . . . . . . . . . . . . . . . . . . 655 OCTOSPI onderbreek . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656 OCTOSPI-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
20.7.1 OCTOSPI beheerregister (OCTOSPI_CR) . . . . . . . . . . . . . . . . . . . . . 657 20.7.2 OCTOSPI-toestelkonfigurasieregister 1 (OCTOSPI_DCR1) . . . . . . 659 20.7.3 OCTOSPI-toestelkonfigurasieregister 2 (OCTOSPI_DCR2) . . . . . . 661 20.7.4 OCTOSPI-toestelkonfigurasieregister 3 (OCTOSPI_DCR3) . . . . . . 662 20.7.5 OCTOSPI-toestelkonfigurasieregister 4 (OCTOSPI_DCR4) . . . . . . 662 20.7.6 OCTOSPI-statusregister (OCTOSPI_SR) . . . . . . . . . . . . . . . . . . . . . . 663 20.7.7 OCTOSPI vlag skoon register (OCTOSPI_FCR) . . . . . . . . . . . . . . . . . . 664 20.7.8 OCTOSPI datalengteregister (OCTOSPI_DLR) . . . . . . . . . . . . . . . . 664 20.7.9 OCTOSPI-adresregister (OCTOSPI_AR) . . . . . . . . . . . . . . . . . . . . 665 20.7.10 OCTOSPI-dataregister (OCTOSPI_DR) . . . . . . . . . . . . . . . . . . . . . . . 665 20.7.11 OCTOSPI-peilingstatusmaskerregister (OCTOSPI_PSMKR) . . . . . . . 666 20.7.12 OCTOSPI-peilingstatus-wedstrydregister (OCTOSPI_PSMAR) . . . . . . . 667 20.7.13 OCTOSPI-peilingsintervalregister (OCTOSPI_PIR) . . . . . . . . . . . . . . 667 20.7.14 OCTOSPI kommunikasie konfigurasie register (OCTOSPI_CCR) . . 667 20.7.15 OCTOSPI tydsberekening konfigurasie register (OCTOSPI_TCR) . . . . . . . . . . 670 20.7.16 OCTOSPI-instruksieregister (OCTOSPI_IR) . . . . . . . . . . . . . . . . . . . 670 20.7.17 OCTOSPI alternatiewe grepe-register (OCTOSPI_ABR) . . . . . . . . . . . . . 671 20.7.18 OCTOSPI laekrag-uittelregister (OCTOSPI_LPTR) . . . . . . . . . . 671 20.7.19 OCTOSPI-omslagkommunikasiekonfigurasieregister
(OCTOSPI_WPCCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672 20.7.20 OCTOSPI omhul tydsberekening konfigurasieregister (OCTOSPI_WPTCR) . . 674

RM0438 Rev 8

19/2187
54

Inhoud

R0438

20.7.21 OCTOSPI omhul instruksieregister (OCTOSPI_WPIR) . . . . . . . . . . . . 674 20.7.22 OCTOSPI omvou alternatiewe grepe-register (OCTOSPI_WPABR) . . . . . . 675 20.7.23 OCTOSPI skryf kommunikasiekonfigurasieregister
(OCTOSPI_WCCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675 20.7.24 OCTOSPI skryf tydsberekening konfigurasie register (OCTOSPI_WTCR) . . . . 677 20.7.25 OCTOSPI skryfinstruksieregister (OCTOSPI_WIR) . . . . . . . . . . . . . 678 20.7.26 OCTOSPI skryf alternatiewe grepe-register (OCTOSPI_WABR) . . . . . . . 678 20.7.27 OCTOSPI HyperBus latency konfigurasie register
(OCTOSPI_HLCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679 20.7.28 OCTOSPI register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679

21

Analoog-na-digitale omsetters (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683

21.1 ADC inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683

21.2 ADC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 684

21.3 ADC-implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685

21.4 ADC funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686

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

21.4.2 ADC-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687

21.4.3 ADC-klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688

21.4.4 ADC1/2-konnektiwiteit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690

21.4.5 Slaaf AHB-koppelvlak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 692

21.4.6 ADC Diep-afskakelmodus (DEEPPWD) en ADC-volumetage-reguleerder (ADVREGEN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 692

21.4.7 Enkelkoppige en differensiële invoerkanale . . . . . . . . . . . . . . . . . . . . . . 693

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

21.4.9 ADC aan-af-beheer (ADEN, ADDIS, ADRDY) . . . . . . . . . . . . . . . . . . . . . . 696

21.4.10 Beperkings wanneer die ADC-beheerbitte geskryf word . . . . . . . . . . . . . . . . . . . . . . 697

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

21.4.12 Kanaalgewys programmeerbare sampluityd (SMPR1, SMPR2) . . . . . 699

21.4.13 Enkele omskakelingsmodus (CONT = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699

21.4.14 Deurlopende omskakelingsmodus (CONT = 1) . . . . . . . . . . . . . . . . . . . . . . . . 700

21.4.15 Begin van omskakelings (ADSTART, JADSTART) . . . . . . . . . . . . . . . . . . . . . 701

21.4.16 ADC-tydsberekening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702

21.4.17 Stop van 'n voortdurende omskakeling (ADSTP, JADSTP) . . . . . . . . . . . . . . . . 702

21.4.18 Omskakeling op eksterne sneller en snellerpolariteit (EXTSEL, EXTEN, JEXTSEL, JEXTEN) . . . . . . . . . . . . . . . . . . . . . . . . . 704

21.4.19 Ingespuitte kanaalbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 706

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

20/2187

RM0438 Rev 8

R0438

Inhoud

21.5 21.6 21.7

21.4.21 Tou van konteks vir ingespuitte omskakelings . . . . . . . . . . . . . . . . . . . . . . . . 709 21.4.22 Programmeerbare resolusie (RES) – Vinnige omskakelingsmodus . . . . . . . . . . . 717 21.4.23 Einde van omskakeling, einde van samplange fase (EOC, JEOC, EOSMP) . . 718 21.4.24 Einde van omskakelingsvolgorde (EOS, JEOS) . . . . . . . . . . . . . . . . . . . . . . 718 21.4.25 Tydsdiagramme bv.ample (enkel/deurlopende modusse,
hardeware/sagteware snellers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 21.4.26 Databestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 721 21.4.27 Bestuur van omskakelings met behulp van die DFSDM . . . . . . . . . . . . . . . . . . . . . . . . 726 21.4.28 Dinamiese lae-krag-kenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727 21.4.29 Analoog vensterwaghond (AWD1EN, JAWD1EN, AWD1SGL,
AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) . . . . . 732 21.4.30 Boulbeurteampler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 736 21.4.31 Dubbele ADC-modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742 21.4.32 Temperatuursensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755 21.4.33 VBAT-toevoermonitering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757 21.4.34 Monitering van die interne volumetage verwysing . . . . . . . . . . . . . . . . . . . . . . . . . . 758
ADC in lae-krag modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759 ADC-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 760 ADC-registers (vir elke ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . . . . 761
21.7.1 ADC-onderbrekings- en statusregister (ADC_ISR) . . . . . . . . . . . . . . . . . . . . 761 21.7.2 ADC-onderbrekingsaktiveerregister (ADC_IER) . . . . . . . . . . . . . . . . . . . . . . . 763 21.7.3 ADC-beheerregister (ADC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 765 21.7.4 ADC-konfigurasieregister (ADC_CFGR) . . . . . . . . . . . . . . . . . . . . . . . 768 21.7.5 ADC-konfigurasieregister 2 (ADC_CFGR2) . . . . . . . . . . . . . . . . . . . . 772 21.7.6 ADC'sample tydregister 1 (ADC_SMPR1) . . . . . . . . . . . . . . . . . . . . . . . 774 21.7.7 ADC sample tydregister 2 (ADC_SMPR2) . . . . . . . . . . . . . . . . . . . . . 775 21.7.8 ADC waghond drempelregister 1 (ADC_TR1) . . . . . . . . . . . . . . . . . 776 21.7.9 ADC waghond drempelregister 2 (ADC_TR2) . . . . . . . . . . . . . . . . . 776 21.7.10 ADC waghond drempelregister 3 (ADC_TR3) . . . . . . . . . . . . . . . . . 777 21.7.11 ADC gereelde volgorde register 1 (ADC_SQR1) . . . . . . . . . . . . . . . . . . 778 21.7.12 ADC gereelde volgorde register 2 (ADC_SQR2) . . . . . . . . . . . . . . . . . 779 21.7.13 ADC gereelde volgorde register 3 (ADC_SQR3) . . . . . . . . . . . . . . . . . 780 21.7.14 ADC gereelde volgorde register 4 (ADC_SQR4) . . . . . . . . . . . . . . . . . 781 21.7.15 ADC gereelde dataregister (ADC_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 781 21.7.16 ADC ingespuite volgorderegister (ADC_JSQR) . . . . . . . . . . . . . . . . . . 782 21.7.17 ADC verrekening y-register (ADC_OFRy) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 784 21.7.18 ADC ingespuite kanaal y-dataregister (ADC_JDRy) . ... 785

RM0438 Rev 8

21/2187
54

Inhoud

R0438

21.8 21.9

21.7.19 ADC analoog waghond 2 konfigurasieregister (ADC_AWD2CR) . . . . 785 21.7.20 ADC analoog waghond 3 konfigurasieregister (ADC_AWD3CR) . . . . 786 21.7.21 ADC differensiële modus seleksieregister (ADC_DIFSEL) . . . . . . . . . . . 786 21.7.22 ADC kalibrasiefaktore (ADC_CALFACT) . . . . . . . . . . . . . . . . . . . . . . . 787
ADC algemene registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 787
21.8.1 ADC algemene statusregister (ADC_CSR) . . . . . . . . . . . . . . . . . . . . . . . 787 21.8.2 ADC algemene beheerregister (ADC_CCR) . . . . . . . . . . . . . . . . . . . . . . 789 21.8.3 ADC algemene gereelde dataregister vir dubbele modus (ADC_CDR) . . . . . 792
ADC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792

22

Digitaal-na-analoog-omskakelaar (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796

22.1 DAC inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796

22.2 DAC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796

22.3 DAC-implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797

22.4 DAC funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798

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

22.4.2 DAC-kanaal aktivering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799

22.4.3 DAC-dataformaat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799

22.4.4 DAC-omskakeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801

22.4.5 DAC-uitsetvolumetage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801

22.4.6 DAC-snellerkeuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802

22.4.7 DMA-versoeke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803

22.4.8 Geraasopwekking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803

22.4.9 Driehoekgolf-opwekking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805

22.4.10 DAC-kanaalmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806

22.4.11 DAC-kanaalbufferkalibrasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809

22.4.12 DAC-kanaalomskakelingsmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810

22.4.13 Dubbele DAC-kanaal omskakelingsmodusse (indien dubbele kanale beskikbaar is) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811

22.5 DAC in lae-kragmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815

22.6 DAC-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816

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

22.7.1 DAC-beheerregister (DAC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816

22.7.2 DAC sagteware snellerregister (DAC_SWTRGR) . . . . . . . . . . . . . . . . . . . 820

22.7.3 DAC-kanaal 1 12-bis regs-belynde datahouregister (DAC_DHR12R1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820

22/2187

RM0438 Rev 8

R0438

Inhoud

22.7.4 DAC-kanaal 1 12-bis linksbelynde datahouregister (DAC_DHR12L1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
22.7.5 DAC-kanaal 1 8-bis regs-ingestelde datahouregister (DAC_DHR8R1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
22.7.6 DAC-kanaal2 12-bis regs-ingestelde datahouregister (DAC_DHR12R2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822
22.7.7 DAC-kanaal 2 12-bis linksbelynde datahouregister (DAC_DHR12L2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822
22.7.8 DAC-kanaal2 8-bis regs-belynde datahouregister (DAC_DHR8R2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
22.7.9 Dubbele DAC 12-bis regs-belynde datahouregister (DAC_DHR12RD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
22.7.10 Dubbele DAC 12-bis linksbelynde datahouregister (DAC_DHR12LD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
22.7.11 Dubbele DAC 8-bis regs-ingestelde datahouregister (DAC_DHR8RD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
22.7.12 DAC-kanaal 1 data-uitvoerregister (DAC_DOR1) . . . . . . . . . . . . . . . . . . 825
22.7.13 DAC-kanaal 2 data-uitvoerregister (DAC_DOR2) . . . . . . . . . . . . . . . . . . 825
22.7.14 DAC-statusregister (DAC_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825
22.7.15 DAC-kalibrasiebeheerregister (DAC_CCR) . . . . . . . . . . . . . . . . . . . . . 827
22.7.16 DAC-modusbeheerregister (DAC_MCR) . . . . . . . . . . . . . . . . . . . . . . . . . . 827
22.7.17 DAC-kanaal1 sample en hou sampdie tydregister (DAC_SHSR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
22.7.18 DAC-kanaal2 sample en hou sampdie tydregister (DAC_SHSR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
22.7.19 DAC'sample en hou tydregister (DAC_SHHR) . . . . . . . . . . . . . . . . . 829
22.7.20 DAC'sample en hou verversingstydregister (DAC_SHRR) . . . . . . . . . . 830
22.7.21 DAC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831

23

Voltage verwysingsbuffer (VREFBUF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

23.1 VREFBUF inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

23.2 VREFBUF funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

23.3 VREFBUF-afsnyding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 834

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

23.4.1 VREFBUF-beheer- en statusregister (VREFBUF_CSR) . . . . . . . . . . . . 835

23.4.2 VREFBUF kalibrasiebeheerregister (VREFBUF_CCR) . . . . . . . . . . . . 836

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

24

Vergelyker (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837

24.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837

RM0438 Rev 8

23/2187
54

Inhoud

R0438

24.2 24.3
24.4 24.5 24.6

COMP hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837 COMP funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838
24.3.1 COMP-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838 24.3.2 COMP-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838 24.3.3 COMP-terugstelling en klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839 24.3.4 Vergelyker-sluitmeganisme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839 24.3.5 Venstervergelyker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 840 24.3.6 Histerese . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 840 24.3.7 Vergelyker-uitset-onderdrukkingsfunksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841 24.3.8 COMP krag- en spoedmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 842
COMP lae-krag modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 842 COMP onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 842 COMP registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 843
24.6.1 Vergelyker 1 beheer- en statusregister (COMP1_CSR) . . . . . . . . . . . 843 24.6.2 Vergelyker 2 beheer- en statusregister (COMP2_CSR) . . . . . . . . . . . 845 24.6.3 COMP-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848

25

Operasioneel ampversterkers (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.2 OPAMP hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.3 OPAMP funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.3.1 OPAMP herstel en horlosies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849

25.3.2 Aanvanklike konfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850

25.3.3 Seinroetering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850

25.3.4 OPAMP modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 851

25.3.5 Kalibrasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854

25.4 OPAMP lae-krag modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 856

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

25.5.1 OPAMP1 beheer-/statusregister (OPAMP1_MVO) . . . . . . . . . . . . . . . . . . 857

25.5.2 OPAMP1 offset-snyregister in normale modus (OPAMP1_OTR) . . 858

25.5.3 OPAMP1 offset-afsnyregister in lae-kragmodus (OPAMP1_LPOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 858

25.5.4 OPAMP2 beheer-/statusregister (OPAMP2_CRS) . . . . . . . . . . . . . . . . . . 859

25.5.5 OPAMP2 offset-snyregister in normale modus (OPAMP2_OTR) . . 860

25.5.6 OPAMP2 offset-afsnyregister in lae-kragmodus (OPAMP2_LPOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 860

25.5.7 OPAMP registreer kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861

24/2187

RM0438 Rev 8

R0438

Inhoud

26

Digitale filter vir sigma delta modulators (DFSDM) . . . . . . . . . . . . . . . . . 862

26.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 862

26.2 DFSDM hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863

26.3 DFSDM implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864

26.4 DFSDM funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865

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

26.4.2 DFSDM-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 866

26.4.3 DFSDM-terugstelling en -klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867

26.4.4 Seriekanaal-sendersenders en -ontvangers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 868

26.4.5 Konfigurasie van die invoer seriële koppelvlak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878

26.4.6 Parallelle data-invoere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878

26.4.7 Kanaalkeuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880

26.4.8 Digitale filterkonfigurasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881

26.4.9 Integrator-eenheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882

26.4.10 Analoog waghond . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883

26.4.11 Kortsluitdetektor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885

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

26.4.13 Data-eenheidblok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886

26.4.14 Getekende dataformaat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887

26.4.15 Begin omskakelings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888

26.4.16 Deurlopende en vinnige deurlopende modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . 888

26.4.17 Versoek voorrang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889

26.4.18 Kragoptimalisering in loopmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890

26.5 DFSDM-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890

26.6 DFSDM DMA-oordrag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892

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

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

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

26.7.3 DFSDM-kanaal y analoog waghond en kortsluitdetektorregister (DFSDM_CHyAWSCDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895

26.7.4 DFSDM-kanaal y-waghondfilterdataregister (DFSDM_CHyWDATR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896

26.7.5 DFSDM-kanaal y-data-invoerregister (DFSDM_CHyDATINR) . . . . . . 896

26.7.6 DFSDM-kanaal y vertragingsregister (DFSDM_CHyDLYR) . . . . . . . . . . . . 897

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

26.8.1 DFSDM filter x beheerregister 1 (DFSDM_FLTxCR1) . . . . . . . . . . . . . . 898

26.8.2 DFSDM filter x beheerregister 2 (DFSDM_FLTxCR2) . . . . . . . . . . . . . . 901

RM0438 Rev 8

25/2187
54

Inhoud

R0438

26.8.3 DFSDM filter x onderbreking en statusregister (DFSDM_FLTxISR) . . . . . 902
26.8.4 DFSDM filter x onderbrekingsvlag skoonmaakregister (DFSDM_FLTxICR) . . . . . 904
26.8.5 DFSDM filter x ingespuite kanaalgroep seleksieregister (DFSDM_FLTxJCHGR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
26.8.6 DFSDM filter x beheerregister (DFSDM_FLTxFCR) . . . . . . . . . . . . . . . . 905
26.8.7 DFSDM filter x dataregister vir ingespuite groep (DFSDM_FLTxJDATAR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 906
26.8.8 DFSDM filter x dataregister vir die gewone kanaal (DFSDM_FLTxRDATAR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
26.8.9 DFSDM filter x analoog waghond hoë drempel register (DFSDM_FLTxAWHTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
26.8.10 DFSDM filter x analoog waghond lae drempelregister (DFSDM_FLTxAWLTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
26.8.11 DFSDM filter x analoog waghondstatusregister (DFSDM_FLTxAWSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
26.8.12 DFSDM filter x analoog waghond skoon vlag register (DFSDM_FLTxAWCFR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910
26.8.13 DFSDM filter x ekstreme detektor maksimum register (DFSDM_FLTxEXMAX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910
26.8.14 DFSDM filter x ekstreme detektor minimum register (DFSDM_FLTxEXMIN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 911
26.8.15 DFSDM filter x omskakelingstydtellerregister (DFSDM_FLTxCNVTIMR) . . 911
26.8.16 DFSDM-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 912

27

Aanraaksensorbeheerder (TSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920

27.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920

27.2 TSC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920

27.3 TSC funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921

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

27.3.2 Verkryging van oppervlakladingoordrag oorview . . . . . . . . . . . . . . . . . . . 921

27.3.3 Herstel en klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924

27.3.4 Ladingsoordragverkrygingsvolgorde . . . . . . . . . . . . . . . . . . . . . . . . . . . . 924

27.3.5 Verspreide spektrum-kenmerk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 925

27.3.6 Maksimum telfout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 926

27.3.7 Sampling-kondensator I/O en kanaal I/O moduskeuse . . . . . . . . . . . . . 926

27.3.8 Verkrygingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 927

27.3.9 I/O-histerese en analoog skakelaarbeheer . . . . . . . . . . . . . . . . . . . . . . . . . . 927

27.4 TSC lae-krag modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928

27.5 TSC-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928

26/2187

RM0438 Rev 8

R0438

Inhoud

27.6

TSC-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928
27.6.1 TSC-beheerregister (TSC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 928 27.6.2 TSC-onderbrekingsaktiveerregister (TSC_IER) . . . . . . . . . . . . . . . . . . . . . . 931 27.6.3 TSC-onderbrekingsskoonmaakregister (TSC_ICR) . . . . . . . . . . . . . . . . . . . . . . . . 932 27.6.4 TSC-onderbrekingsstatusregister (TSC_ISR) . . . . . . . . . . . . . . . . . . . . . . . 932 27.6.5 TSC I/O histerese-beheerregister (TSC_IOHCR) . . . . . . . . . . . . . . . . 933 27.6.6 TSC I/O analoog skakelaar-beheerregister
(TSC_IOASCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933 27.6.7 TSC I/O'sampling-beheerregister (TSC_IOSCR) . . . . . . . . . . . . . . . . 934 27.6.8 TSC I/O-kanaalbeheerregister (TSC_IOCCR) . . . . . . . . . . . . . . . . . 934 27.6.9 TSC I/O-groepbeheerstatusregister (TSC_IOGCSR) . . . . . . . . . . . . 935 27.6.10 TSC I/O-groep x-tellerregister (TSC_IOGxCR) . . . . . . . . . . . . . . . . 935 27.6.11 TSC-registerkaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936

28

Ware ewekansige getalgenerator (RNG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

28.1 Inleiding tot willekeurige getalgenerator (RNG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

28.2 SNG hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

28.3 Funksionele beskrywing van willekeurige getalgenerator (RNG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

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

28.3.2 RNG interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

28.3.3 Generering van ewekansige getal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 939

28.3.4 RNG-inisialisering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942

28.3.5 RNG-werking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943

28.3.6 RNG-kloktelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945

28.3.7 Foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945

28.3.8 RNG lae-krag gebruik . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946

28.4 RNG-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946

28.5 RNG-verwerkingstyd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6 RNG entropie bron validering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6.2 Valideringsvoorwaardes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947

28.6.3 Data-insameling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948

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

28.7.1 RNG-beheerregister (RNG_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948

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

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

28.7.4 RNG-gesondheidstoetsbeheerregister (RNG_HTCR) . . . . . . . . . . . . . . . . . . . . 952

RM0438 Rev 8

27/2187
54

Inhoud

R0438

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

29

AES-hardewareversneller (AES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.2 AES hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.3 AES implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953

29.4 AES funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

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

29.4.2 AES interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

29.4.3 AES kriptografiese kern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 954

29.4.4 AES-prosedure om 'n syferbewerking uit te voer . . . . . . . . . . . . . . . . . . . . . 960

29.4.5 Voorbereiding van AES-dekripsierondesleutel . . . . . . . . . . . . . . . . . . . . . . . . . . . 963

29.4.6 AES-gekripteksdiefstal en data-opvulling . . . . . . . . . . . . . . . . . . . . . . . . . 963

29.4.7 AES-taak opskort en hervat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 964

29.4.8 AES basiese kettingmodusse (ECB, CBC) . . . . . . . . . . . . . . . . . . . . . . . . . . 964

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

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

29.4.11 AES Galois-boodskap-verifikasiekode (GMAC) . . . . . . . . . . . . . . . . 976

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

29.4.13 AES-dataregisters en data-ruiling . . . . . . . . . . . . . . . . . . . . . . . . . . . 983

29.4.14 AES-sleutelregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 985

29.4.15 AES-inisialiseringsvektorregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 985

29.4.16 AES DMA-koppelvlak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 986

29.4.17 AES-foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 987

29.5 AES-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 988

29.6 AES-verwerkingslasentasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 988

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

29.7.1 AES-beheerregister (AES_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989

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

29.7.3 AES-data-invoerregister (AES_DINR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993

29.7.4 AES-data-uitvoerregister (AES_DOUTR) . . . . . . . . . . . . . . . . . . . . . . . . . 993

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

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

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

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

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

28/2187

RM0438 Rev 8

R0438

Inhoud

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

30

Hash-verwerker (HASH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001

30.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001

30.2 HASH hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001

30.3 HASH implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002

30.4 HASH funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002

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

30.4.2 HASH interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003

30.4.3 Oor veilige hash-algoritmes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003

30.4.4 Boodskapdata-invoer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003

30.4.5 Boodskapvertering-berekening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005

30.4.6 Boodskapopvulling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1006

30.4.7 HMAC-werking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1008

30.4.8 HASH opskort/hervat bewerkings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010

30.4.9 HASH DMA-koppelvlak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012

30.4.10 HASH-foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012

30.4.11 HASH-verwerkingstyd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1012

30.5 HASH-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1013

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

30.6.1 HASH-beheerregister (HASH_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014

30.6.2 HASH-data-invoerregister (HASH_DIN) . . . . . . . . . . . . . . . . . . . . . . . . . . 1016

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

30.6.4 HASH-verteerregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1018

30.6.5 HASH-onderbrekingsaktiveerregister (HASH_IMR) . . . . . . . . . . . . . . . . . . . . 1019

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

30.6.7 HASH konteksruilregisters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1020

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

RM0438 Rev 8

29/2187
54

Inhoud

R0438

31

On-the-fly dekripsie-enjin (OTFDEC) . . . . . . . . . . . . . . . . . . . . . . . . . 1023

31.1 OTFDEC inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023

31.2 OTFDEC hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023

31.3 OTFDEC funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024

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

31.3.2 OTFDEC interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024

31.3.3 OTFDEC onmiddellike dekripsie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1025

31.3.4 OTFDEC-gebruik van AES in tellermodus-dekripsie . . . . . . . . . . . . . . . 1026

31.3.5 Vloeibeheerbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027

31.3.6 OTFDEC-foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027

31.4 OTFDEC-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1028

31.5 OTFDEC aansoekinligting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1028

31.5.1 OTFDEC-inisialiseringsproses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1028

31.5.2 OTFDEC en kragbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1030

31.5.3 Enkripsie vir OTFDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1030

31.5.4 OTFDEC-sleutel CRC-bronkode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1031

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

31.6.1 OTFDEC-beheerregister (OTFDEC_CR) . . . . . . . . . . . . . . . . . . . . . . . 1032

31.6.2 OTFDEC-konfigurasieregister vir bevoorregte toegangsbeheer (OTFDEC_PRIVCFGR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033

31.6.3 OTFDEC streek x konfigurasieregister (OTFDEC_RxCFGR) . . . . . 1033

31.6.4 OTFDEC streek x beginadresregister (OTFDEC_RxSTARTADDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1035

31.6.5 OTFDEC-streek x eindadresregister (OTFDEC_RxENDADDR). 1035

31.6.6 OTFDEC-streek x nonce-register 0 (OTFDEC_RxNONCER0) . . . . . 1036

31.6.7 OTFDEC-streek x nonce-register 1 (OTFDEC_RxNONCER1) . . . . . 1037

31.6.8 OTFDEC streek x sleutelregister 0 (OTFDEC_RxKEYR0) . . . . . . . . . . . . 1037

31.6.9 OTFDEC streek x sleutelregister 1 (OTFDEC_RxKEYR1) . . . . . . . . . . . . 1038

31.6.10 OTFDEC streek x sleutelregister 2 (OTFDEC_RxKEYR2) . . . . . . . . . . . . 1038

31.6.11 OTFDEC streek x sleutelregister 3 (OTFDEC_RxKEYR3) . . . . . . . . . . . . 1039

31.6.12 OTFDEC-onderbrekingsstatusregister (OTFDEC_ISR) . . . . . . . . . . . . . . . . 1039

31.6.13 OTFDEC onderbrekingsskoonmaakregister (OTFDEC_ICR) . . . . . . . . . . . . . . . . . 1040

31.6.14 OTFDEC onderbrekingsaktiveerregister (OTFDEC_IER) . . . . . . . . . . . . . . . . 1041

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

32

Publieke sleutelversneller (PKA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046

32.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046

30/2187

RM0438 Rev 8

R0438

Inhoud

32.2 32.3
32.4
32.5 32.6 32.7

PKA hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046 PKA funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046
32.3.1 PKA-blokdiagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046 32.3.2 PKA interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047 32.3.3 PKA-terugstelling en -klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047 32.3.4 PKA publieke sleutel versnelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047 32.3.5 Tipiese toepassings vir PKA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049 32.3.6 PKA prosedure om 'n bewerking uit te voer . . . . . . . . . . . . . . . . . . . . . . 1051 32.3.7 PKA-foutbestuur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052
PKA-bedryfsmodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052
32.4.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052 32.4.2 Montgomery-parameterberekening . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1053 32.4.3 Modulêre optelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1054 32.4.4 Modulêre aftrekking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1054 32.4.5 Modulêre en Montgomery-vermenigvuldiging . . . . . . . . . . . . . . . . . . . . . . . . 1055 32.4.6 Modulêre magsverheffing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056 32.4.7 Modulêre inversie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056 32.4.8 Modulêre reduksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057 32.4.9 Rekenkundige optelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057 32.4.10 Rekenkundige aftrekking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057 32.4.11 Rekenkundige vermenigvuldiging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058 32.4.12 Rekenkundige vergelyking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058 32.4.13 RSA CRT eksponentiëring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059 32.4.14 Punt op elliptiese kurwe Fp-kontrole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059 32.4.15 ECC Fp skalaarvermenigvuldiging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1060 32.4.16 ECDSA-teken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1061 32.4.17 ECDSA-verifikasie . . . . . . . . . . . . . . . . . . . . . ... 1063
Example van konfigurasies en verwerkingstye . . . . . . . . . . . . . . . . . . . 1064
32.5.1 Ondersteunde elliptiese krommes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1064 32.5.2 Berekeningstye . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1066
PKA-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1067 PKA-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1068
32.7.1 PKA-beheerregister (PKA_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1068 32.7.2 PKA-statusregister (PKA_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1069 32.7.3 PKA-skoonvlagregister (PKA_CLRFR) . . . . . . . . . . . . . . . . . . . . . . . . . . 1070 32.7.4 PKA RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1070

RM0438 Rev 8

31/2187
54

Inhoud

R0438

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

33

Gevorderde beheer-tydtellers (TIM1/TIM8) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072

33.1 TIM1/TIM8 inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072

33.2 TIM1/TIM8 hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072

33.3 TIM1/TIM8 funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1074

33.3.1 Tydbasis-eenheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1074

33.3.2 Tellermodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1076

33.3.3 Herhalingsteller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1087

33.3.4 Eksterne sneller-inset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1089

33.3.5 Klokkeuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1090

33.3.6 Kanale vaslê/vergelyk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1094

33.3.7 Invoer-opnamemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1096

33.3.8 PWM-insetmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1097

33.3.9 Gedwonge uitvoermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1098

33.3.10 Uitvoervergelykingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1099

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

33.3.12 Asimmetriese PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1103

33.3.13 Gekombineerde PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1104

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

33.3.15 Aanvullende uitsette en dooietyd-invoeging . . . . . . . . . . . . . . . . . 1106

33.3.16 Gebruik van die breekfunksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1108

33.3.17 Tweerigting-breekinsette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114

33.3.18 Die OCxREF-sein skoonmaak op 'n eksterne gebeurtenis . . . . . . . . . . . . . . . . 1115

33.3.19 6-stap PWM-generering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1117

33.3.20 Eenpulsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1118

33.3.21 Heraktiveerbare eenpulsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1119

33.3.22 Enkodeerder-koppelvlakmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1120

33.3.23 UIF-bit herkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1122

33.3.24 Timer-inset XOR-funksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1123

33.3.25 Koppeling met Hall-sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1123

33.3.26 Timer-sinchronisasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1126

33.3.27 ADC-sinchronisasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1130

33.3.28 DMA-barsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1130

33.3.29 Ontfoutingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1131

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

33.4.1 TIMx-beheerregister 1 (TIMx_CR1)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . 1132

32/2187

RM0438 Rev 8

R0438

Inhoud
33.4.2 TIMx-beheerregister 2 (TIMx_CR2)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . 1133
33.4.3 TIMx slaafmodus-beheerregister (TIMx_SMCR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1136
33.4.4 TIMx DMA/onderbrekingsaktiveerregister (TIMx_DIER)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1138
33.4.5 TIMx-statusregister (TIMx_SR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . 1140
33.4.6 TIMx gebeurtenis generasie register (TIMx_EGR)(x = 1, 8) . . . . . . . . . . . . . . 1142
33.4.7 TIMx vaslegging/vergelykingsmodus register 1 (TIMx_CCMR1)(x = 1, 8) . . 1143
33.4.8 TIMx vaslegging/vergelyk modus register 1 [alternatief] (TIMx_CCMR1)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1144
33.4.9 TIMx vaslegging/vergelykingsmodus register 2 (TIMx_CCMR2)(x = 1, 8) . . 1147
33.4.10 TIMx vaslegging/vergelyk modus register 2 [alternatief] (TIMx_CCMR2)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1148
33.4.11 TIMx vaslegging/vergelyking aktiveringsregister (TIMx_CCER)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1149
33.4.12 TIMx-teller (TIMx_CNT)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153
33.4.13 TIMx voorskaaler (TIMx_PSC)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153
33.4.14 TIMx outomatiese herlaairegister (TIMx_ARR)(x = 1, 8) . . . . . . . . . . . . . . . . . . 1153
33.4.15 TIMx herhalingstellerregister (TIMx_RCR)(x = 1, 8) . . . . . . . . . . . . . 1154
33.4.16 TIMx vaslegging/vergelyk register 1 (TIMx_CCR1)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1154
33.4.17 TIMx vaslegging/vergelyk register 2 (TIMx_CCR2)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1155
33.4.18 TIMx vaslegging/vergelyk register 3 (TIMx_CCR3)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1155
33.4.19 TIMx vaslegging/vergelyk register 4 (TIMx_CCR4)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1156
33.4.20 TIMx breek- en dooietydregister (TIMx_BDTR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1156
33.4.21 TIMx DMA-beheerregister (TIMx_DCR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1160
33.4.22 TIMx DMA-adres vir volle oordrag (TIMx_DMAR)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1161
33.4.23 TIM1 opsie register 1 (TIM1_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1162
33.4.24 TIM8 opsie register 1 (TIM8_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1162
33.4.25 TIMx vaslegging/vergelyk modus register 3 (TIMx_CCMR3)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1163
33.4.26 TIMx vaslegging/vergelyk register 5 (TIMx_CCR5)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1164
33.4.27 TIMx vaslegging/vergelyk register 6 (TIMx_CCR6)(x = 1, 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165

RM0438 Rev 8

33/2187
54

Inhoud

R0438

33.4.28 TIM1 opsie register 2 (TIM1_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165 33.4.29 TIM1 opsie register 3 (TIM1_OR3) . . . . . . . . . . . . . . . . . . . . . . . . . . 1167 33.4.30 TIM8 opsie register 2 (TIM8_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1168 33.4.31 TIM8 opsie register 3 (TIM8_OR3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1170 33.4.32 TIM1 register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1172 33.4.33 TIM8 register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1174

34

Algemene doel-tydtellers (TIM2/TIM3/TIM4/TIM5) . . . . . . . . . . . . . . . . . . 1177

34.1 TIM2/TIM3/TIM4/TIM5 inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1177

34.2 TIM2/TIM3/TIM4/TIM5 hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1177

34.3 TIM2/TIM3/TIM4/TIM5 funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . .1179

34.3.1 Tydbasis-eenheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1179

34.3.2 Tellermodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1181

34.3.3 Klokkeuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1191

34.3.4 Kanale vaslê/vergelyk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1195

34.3.5 Invoer-opnamemodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1197

34.3.6 PWM-insetmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1198

34.3.7 Gedwonge uitvoermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1199

34.3.8 Uitvoervergelykingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1200

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

34.3.10 Asimmetriese PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1204

34.3.11 Gekombineerde PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1205

34.3.12 Die OCxREF-sein skoonmaak op 'n eksterne gebeurtenis . . . . . . . . . . . . . . . . 1206

34.3.13 Eenpulsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1208

34.3.14 Heraktiveerbare eenpulsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1209

34.3.15 Enkodeerder-koppelvlakmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1210

34.3.16 UIF-bit herkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1212

34.3.17 Timer-inset XOR-funksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1212

34.3.18 Timers en eksterne sneller-sinchronisasie . . . . . . . . . . . . . . . . . . . . . 1213

34.3.19 Timer-sinchronisasie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1216

34.3.20 DMA-barsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1221

34.3.21 Ontfoutingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1222

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

34.4.1 TIMx-beheerregister 1 (TIMx_CR1)(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . 1223

34.4.2 TIMx-beheerregister 2 (TIMx_CR2)(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . 1224

34.4.3 TIMx slaafmodusbeheerregister (TIMx_SMCR)(x = 2 tot 5) . . . . . . . . 1226

34.4.4 TIMx DMA/Onderbrekingsaktiveerregister (TIMx_DIER)(x = 2 tot 5) . . . . . . 1229

34/2187

RM0438 Rev 8

R0438

Inhoud

34.4.5 TIMx-statusregister (TIMx_SR)(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . . . 1230 34.4.6 TIMx-gebeurtenisgenereringsregister (TIMx_EGR)(x = 2 tot 5) . . . . . . . . . . 1231 34.4.7 TIMx-opname-/vergelykingsmodusregister 1 (TIMx_CCMR1)(x = 2 tot 5) . 1232 34.4.8 TIMx-opname-/vergelykingsmodusregister 1 [alternatief] (TIMx_CCMR1)
(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234 34.4.9 TIMx vaslegging/vergelyk modus register 2 (TIMx_CCMR2)(x = 2 tot 5) . 1236 34.4.10 TIMx vaslegging/vergelyk modus register 2 [alternatief] (TIMx_CCMR2)
(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1237 34.4.11 TIMx vaslegging/vergelyking aktiveer register
(TIMx_CCER)(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1238 34.4.12 TIMx-teller (TIMx_CNT)(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . . . . . . 1239 34.4.13 TIMx-teller [alternatief] (TIMx_CNT)(x = 2 tot 5) . . . . . . . . . . . . . . . . . 1240 34.4.14 TIMx voorskaaler (TIMx_PSC)(x = 2 tot 5) . . . . . . . . . . . . . . . . . . . . . . . 1240 34.4.15 TIMx outomatiese herlaai register (TIMx_ARR)(x = 2 tot 5) . . . . . . . . . . . . . 1241 34.4.16 TIMx vaslegging/vergelyk register 1 (TIMx_CCR1)(x = 2 tot 5) . . . . . . . 1241 34.4.17 TIMx vaslegging/vergelyk register 2 (TIMx_CCR2)(x = 2 tot 5) . . . . . . . 1241 34.4.18 TIMx vaslegging/vergelyking register 3 (TIMx_CCR3)(x = 2 tot 5) . . . . . . . 1242 34.4.19 TIMx vaslegging/vergelyking register 4 (TIMx_CCR4)(x = 2 tot 5) . . . . . . . 1242 34.4.20 TIMx DMA beheerregister (TIMx_DCR)(x = 2 tot 5) . . . . . . . . . . . . . . 1243 34.4.21 TIMx DMA adres vir volle oordrag (TIMx_DMAR)(x = 2 tot 5) . . . . . . 1244 34.4.22 TIM2 opsie register 1 (TIM2_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1244 34.4.23 TIM3 opsie register 1 (TIM3_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . 1244 34.4.24 TIM2 opsie register 2 (TIM2_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . 1245 34.4.25 TIM3 opsie register 2 (TIM3_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1245 34.4.26 TIMx register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1247

35

Algemene doel-tydtellers (TIM15/TIM16/TIM17) . . . . . . . . . . . . . . . . . . . 1250

35.1 TIM15/TIM16/TIM17 inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250

35.2 TIM15 hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250

35.3 TIM16/TIM17 hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1251

35.4 TIM15/TIM16/TIM17 funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . 1254

35.4.1 Tydbasis-eenheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1254

35.4.2 Tellermodusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1256

35.4.3 Herhalingsteller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1260

35.4.4 35.4.5 35.4.6 35.4.7

Klokkeuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1261 Kanale vaslê/vergelyk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1263 Invoer-vasleggingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1265 PWM-insetmodus (slegs vir TIM15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1266

RM0438 Rev 8

35/2187
54

Inhoud

R0438

35.5

35.4.8 Gedwonge uitvoermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1267 35.4.9 Uitvoervergelykingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1268 35.4.10 PWM-modus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1269 35.4.11 Gekombineerde PWM-modus (slegs TIM15) . . . . . . . . . . . . . . . . . . . . . . . . . . 1270 35.4.12 Aanvullende uitsette en dooietyd-invoeging . . . . . . . . . . . . . . . . 1271 35.4.13 Gebruik van die breekfunksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1273 35.4.14 Tweerigting-breekinsette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1278 35.4.15 6-stap PWM-opwekking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1279 35.4.16 Eenpulsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1281 35.4.17 Heraktiveerbare een puls modus (slegs TIM15) . . . . . . . . . . . . . . . . . . . . 1282 35.4.18 UIF bit herkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1283 35.4.19 Timer-inset XOR-funksie (slegs TIM15) . . . . . . . . . . . . . . . . . . . . . . 1284 35.4.20 Eksterne sneller-sinchronisasie (slegs TIM15) . . . . . . . . . . . . . . . . . . 1285 35.4.21 Slaafmodus gekombineerde herstel + snellermodus . . . . . . . . . . . . . . . . . . . 1287 35.4.22 DMA-burstmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1287 35.4.23 Timer-sinchronisasie (TIM15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1289 35.4.24 Gebruik van timer-uitset as sneller vir ander timers (TIM16/TIM17) . . . . . 1289 35.4.25 Ontfoutingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1289
TIM15 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1290
35.5.1 TIM15-beheerregister 1 (TIM15_CR1) . . . . . . . . . . . . . . . . . . . . . . . . 1290 35.5.2 TIM15-beheerregister 2 (TIM15_CR2) . . . . . . . . . . . . . . . . . . . . . . . 1291 35.5.3 TIM15-slaafmodus-beheerregister (TIM15_SMCR) . . . . . . . . . . . . . 1293 35.5.4 TIM15 DMA/onderbrekingsaktiveerregister (TIM15_DIER) . . . . . . . . . . . . 1294 35.5.5 TIM15 statusregister (TIM15_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . 1295 35.5.6 TIM15 gebeurtenisgenereringsregister (TIM15_EGR) . . . . . . . . . . . . . . . 1297 35.5.7 TIM15 vaslegging/vergelyk modus register 1 (TIM15_CCMR1) . . . . . . . 1298 35.5.8 TIM15 vaslegging/vergelyk modus register 1 [alternatief] (TIM15_CCMR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1299 35.5.9 TIM15 vasvang/vergelyk aktiveringsregister (TIM15_CCER) . . . . . . . . . 1302 35.5.10 TIM15-teller (TIM15_CNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 35.5.11 TIM15 voorskaaler (TIM15_PSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1305 35.5.12 TIM15 outomatiese herlaai register (TIM15_ARR) . . . . . . . . . . . . . . . . . . . . . 1305 35.5.13 TIM15 herhalingstellerregister (TIM15_RCR) . . . . . . . . . . . . . . . . 1306 35.5.14 TIM15 vaslê/vergelyk register 1 (TIM15_CCR1) . . . . . . . . . . . . . . 1306 35.5.15 TIM15 vaslegging/vergelyk register 2 (TIM15_CCR2) . . . . . . . . . . . . . . . 1307 35.5.16 TIM15 breek- en dooietydregister (TIM15_BDTR) . . . . . . . . . . . . 1307 35.5.17 TIM15 DMA-beheerregister (TIM15_DCR) . . . . . . . . . . . . . . . . . . . . . 1310

36/2187

RM0438 Rev 8

R0438

Inhoud

35.6

35.5.18 TIM15 DMA-adres vir volle oordrag (TIM15_DMAR) . . . . . . . . . . . . . 1310 35.5.19 TIM15 opsie register 1 (TIM15_OR1) . . . . . . . . . . . . . . . . . . . . . . . . 1311 35.5.20 TIM15 opsie register 2 (TIM15_OR2) . . . . . . . . . . . . . . . . . . . . . . . . 1311 35.5.21 TIM15 registerkaart . . . . . . . . . . . ... 1313
TIM16/TIM17 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1316
35.6.1 TIMx-beheerregister 1 (TIMx_CR1)(x = 16 tot 17) . . . . . . . . . . . . . . . . 1316 35.6.2 TIMx-beheerregister 2 (TIMx_CR2)(x = 16 tot 17) . . . . . . . . . . . . . . . 1317 35.6.3 TIMx DMA/onderbrekingsaktiveerregister (TIMx_DIER)(x = 16 tot 17) . . . . 1318 35.6.4 TIMx-statusregister (TIMx_SR)(x = 16 tot 17) . . . . . . . . . . . . . . . . . 1319 35.6.5 TIMx gebeurtenisgenereringsregister (TIMx_EGR)(x = 16 tot 17) . . . . . . . . . 1320 35.6.6 TIMx vaslegging/vergelykingsmodus register 1
(TIMx_CCMR1)(x = 16 tot 17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1321 35.6.7 TIMx vaslegging/vergelyk modus register 1 [alternatief] (TIMx_CCMR1)(x = 16 tot 17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1322 35.6.8 TIMx vaslegging/vergelyk aktiveringsregister (TIMx_CCER)(x = 16 tot 17) . 1324 35.6.9 TIMx-teller (TIMx_CNT)(x = 16 tot 17) . . . . . . . . . . . . . . . . . . . . . . 1326 35.6.10 TIMx-voorskaaler (TIMx_PSC)(x = 16 tot 17) . . . . . . . . . . . . . . . . . . . . . 1327 35.6.11 TIMx outomatiese herlaairegister (TIMx_ARR)(x = 16 tot 17) . . . . . . . . . . . . . 1327 35.6.12 TIMx herhalingstellerregister (TIMx_RCR)(x = 16 tot 17) . . . . . . . . 1328 35.6.13 TIMx vaslegging/vergelyk register 1 (TIMx_CCR1)(x = 16 tot 17) . . . . . 1328 35.6.14 TIMx breek- en dooietydregister (TIMx_BDTR)(x = 16 tot 17) . . . . 1329 35.6.15 TIMx DMA-beheerregister (TIMx_DCR)(x = 16 tot 17) . . . . . . . . . . . 1331 35.6.16 TIMx DMA-adres vir volle oordrag (TIMx_DMAR)(x = 16 tot 17) . . . . 1332 35.6.17 TIM16 opsie register 1 (TIM16_OR1) . . . . . . . . . . . . . . . . . . . . . . . . 1332 35.6.18 TIM16 opsie register 2 (TIM16_OR2) . . . . . . . . . . . . . . . . . . . . . . . . 1333 35.6.19 TIM17 opsie register 1 (TIM17_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . 1334 35.6.20 TIM17 opsie register 2 (TIM17_OR2) . . . . . . . . . . . . . . . . . . . . . . . . . . 1335 35.6.21 TIM16/TIM17 register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1337

36

Basiese tydtellers (TIM6/TIM7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339

36.1 TIM6/TIM7 inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339

36.2 TIM6/TIM7 hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1339

36.3 TIM6/TIM7 funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1340

36.3.1 Tydbasis-eenheid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1340

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

36.3.3 UIF-bit herkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345

36.3.4 Klokbron . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345

RM0438 Rev 8

37/2187
54

Inhoud

R0438

36.4

36.3.5 Ontfoutingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1346
TIM6/TIM7 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1346
36.4.1 TIMx-beheerregister 1 (TIMx_CR1)(x = 6 tot 7) . . . . . . . . . . . . . . . . . 1346 36.4.2 TIMx-beheerregister 2 (TIMx_CR2)(x = 6 tot 7) . . . . . . . . . . . . . . . . . 1348 36.4.3 TIMx DMA/Onderbrekingsaktiveerregister (TIMx_DIER)(x = 6 tot 7) . . . . . . 1348 36.4.4 TIMx-statusregister (TIMx_SR)(x = 6 tot 7) . . . . . . . . . . . . . . . . . . . . 1349 36.4.5 TIMx gebeurtenis generasie register (TIMx_EGR)(x = 6 tot 7) . . . . . . . . . . . 1349 36.4.6 TIMx teller (TIMx_CNT)(x = 6 tot 7) . . . . . . . . . . . . . . . . . . . . . . . . . 1349 36.4.7 TIMx voorskaaler (TIMx_PSC)(x = 6 tot 7) . . . . . . . . . . . . . . . . . . . . . . . . 1350 36.4.8 TIMx outomatiese herlaai register (TIMx_ARR)(x = 6 tot 7) . . . . . . . . . . . . . . . 1350 36.4.9 TIMx register kaart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1351

37

Lae-krag-timer (LPTIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.1 LPTIM inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.2 LPTIM hoofkenmerke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.3 LPTIM implementering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1352

37.4 LPTIM funksionele beskrywing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353

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

37.4.2 LPTIM-penne en interne seine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353

37.4.3 LPTIM-invoer en snellerkartering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1354

37.4.4 LPTIM-terugstelling en klokke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355

37.4.5 Foutfilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355

37.4.6 Voorskaaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1356

37.4.7 Snellermultiplekser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1356

37.4.8 Bedryfsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1357

37.4.9 Tydsbeperkingsfunksie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1359

37.4.10 Golfvormgenerering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1359

37.4.11 Registeropdatering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1360

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

37.4.13 Timer aktiveer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1362

37.4.14 Tydteller herstel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1362

37.4.15 Enkodeerdermodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1363

37.4.16 Herhalingsteller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1364

37.4.17 Ontfoutingsmodus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1365

37.5 LPTIM lae-krag modusse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366

37.6 LPTIM-onderbrekings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366

38/2187

RM0438 Rev 8

R0438

Inhoud

37.7

LPTIM-registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1367
37.7.1 LPTIM-onderbrekings- en statusregister (LPTIM_ISR) . . . . . . . . . . . . . . . . 1367 37.7.2 LPTIM-onderbrekingsuitveeregister (LPTIM_ICR) . . . . . . . . . . . . . . . . . . . 1368 37.7.3 LPTIM-onderbrekingsaktiveerregister (LPTIM_IER) . . . . . . . . . . . . . . . . . . 1369 37.7.4 LPTIM-konfigurasieregister (LPTIM_CFGR) . . . . . . . . . . . . . . . . . . 1370 37.7.5 LPTIM-beheerregister (LPTIM_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1373 37.7.6 LPTIM-vergelyking r

Dokumente / Hulpbronne

ST STM32L5-reeks hoogs veilig met lae kragverbruik [pdf] Gebruikersgids
RM0438, STM32L5-reeks hoogs veilig met lae kragverbruik, STM32L5-reeks, hoogs veilig met lae kragverbruik, Lae kragverbruik, Verbruik

Verwysings

Los 'n opmerking

Jou e-posadres sal nie gepubliseer word nie. Vereiste velde is gemerk *