25. XSPI I/O manager (XSPIM) 1062

ST logo
ST logo
25.1XSPIM introduction . . . . .1062
25.2XSPIM main features . . . . .1062
25.3XSPIM implementation . . . . .1062
25.4XSPIM functional description . . . . .1062
25.4.1XSPIM block diagram . . . . .1062
25.4.2XSPIM input/output pins . . . . .1063
25.4.3XSPIM matrix . . . . .1063
25.4.4XSPIM multiplexed mode . . . . .1064
25.5Use cases description . . . . .1064
25.5.1XSPIs direct octal mode . . . . .1065
25.5.2XSPI direct 16-bit mode . . . . .1065
25.5.3XSPI dual-octal mode . . . . .1066
25.5.4XSPI swapped mode . . . . .1067
25.5.5Two XSPIs multiplexed mode to Port 1 accessing two external memories . . . . .1067
25.5.6Two XSPIs multiplexed mode to Port 2 accessing two external memories . . . . .1068
25.5.7XSPI1 and XSPI2 drive a single external memory . . . . .1069
25.5.8A single XSPI drives two external memories . . . . .1069
25.6XSPIM registers . . . . .1071
25.6.1XSPIM control register (XSPIM_CR) . . . . .1071
25.6.2XSPIM register map . . . . .1072
26Delay block (DLYB) . . . . .1073
26.1DLYB introduction . . . . .1073
26.2DLYB main features . . . . .1073
26.3DLYB functional description . . . . .1073
26.3.1DLYB diagram . . . . .1073
26.3.2DLYB pins and internal signals . . . . .1074
26.3.3General description . . . . .1074
26.3.4Delay line length configuration procedure . . . . .1075
26.3.5Output clock phase configuration procedure . . . . .1075
26.4DLYB registers . . . . .1076
26.4.1DLYB control register (DLYB_CR) . . . . .1076
26.4.2DLYB configuration register (DLYB_CFGR) . . . . .1077
26.4.3DLYB register map . . . . .1077
27Analog-to-digital converters (ADC1/2)1078
27.1ADC introduction1078
27.2ADC main features1078
27.3ADC implementation1080
27.4ADC functional description1081
27.4.1ADC block diagram1081
27.4.2ADC pins and internal signals1082
27.4.3ADC clocks1085
27.4.4ADC connectivity1087
27.4.5Slave AHB interface1089
27.4.6ADC Deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN)1089
27.4.7Single-ended and differential input channels1090
27.4.8Calibration (ADCAL, ADCALDIF, ADC_CALFACT)1090
27.4.9ADC on-off control (ADEN, ADDIS, ADRDY)1093
27.4.10Constraints when writing the ADC control bits1094
27.4.11Channel selection (ADC_SQRy, ADC_JSQR)1095
27.4.12Channel-wise programmable sampling time (SMPR1, SMPR2)1096
27.4.13Single conversion mode (CONT = 0)1098
27.4.14Continuous conversion mode (CONT = 1)1098
27.4.15Starting conversions (ADSTART, JADSTART)1099
27.4.16ADC timing1100
27.4.17Stopping an ongoing conversion (ADSTP, JADSTP)1101
27.4.18Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN)1102
27.4.19Injected channel management1104
27.4.20Discontinuous mode (DISCEN, DISCNUM, JDISCEN)1105
27.4.21Queue of context for injected conversions1106
27.4.22Programmable resolution (RES) - fast conversion mode1114
27.4.23End of conversion, end of sampling phase (EOC, JEOC, EOSMP)1115
27.4.24End of conversion sequence (EOS, JEOS)1115
27.4.25Timing diagrams example (single/continuous modes, hardware/software triggers)1116
27.4.26Data management1118
27.4.27Managing conversions using the ADF1124
27.4.28Dynamic low-power features1125
27.4.29Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx)1130
27.4.30Oversampler1134
27.4.31Dual ADC modes1141
27.4.32Temperature sensor1154
27.4.33VBAT supply monitoring1156
27.4.34Monitoring the internal voltage reference1157
27.4.35Monitoring the supply voltage1158
27.5ADC in low-power modes1159
27.6ADC interrupts1159
27.7ADC registers (for each ADC)1161
27.7.1ADC interrupt and status register (ADC_ISR)1161
27.7.2ADC interrupt enable register (ADC_IER)1163
27.7.3ADC control register (ADC_CR)1165
27.7.4ADC configuration register (ADC_CFGR)1168
27.7.5ADC configuration register 2 (ADC_CFGR2)1173
27.7.6ADC sample time register 1 (ADC_SMPR1)1175
27.7.7ADC sample time register 2 (ADC_SMPR2)1176
27.7.8ADC watchdog threshold register 1 (ADC_TR1)1177
27.7.9ADC watchdog threshold register 2 (ADC_TR2)1178
27.7.10ADC watchdog threshold register 3 (ADC_TR3)1179
27.7.11ADC regular sequence register 1 (ADC_SQR1)1179
27.7.12ADC regular sequence register 2 (ADC_SQR2)1180
27.7.13ADC regular sequence register 3 (ADC_SQR3)1181
27.7.14ADC regular sequence register 4 (ADC_SQR4)1182
27.7.15ADC regular data register (ADC_DR)1183
27.7.16ADC injected sequence register (ADC_JSQR)1183
27.7.17ADC offset y register (ADC_OFy)1186
27.7.18ADC injected channel y data register (ADC_JDRy)1187
27.7.19ADC analog watchdog 2 configuration register (ADC_AWD2CR)1188
27.7.20ADC analog watchdog 3 configuration register (ADC_AWD3CR)1188
27.7.21ADC Differential mode selection register (ADC_DIFSEL)1189
27.7.22ADC calibration factors (ADC_CALFACT)1190
27.7.23ADC option register (ADC_OR)1190
27.8ADC common registers1191
27.8.1ADC common status register (ADC_CSR)1191
27.8.2ADC common control register (ADC_CCR)1193
27.8.3ADC common regular data register for dual mode (ADC_CDR)1196
27.9ADC register map .....1197
28Digital temperature sensor (DTS) .....1201
28.1DTS introduction .....1201
28.2DTS main features .....1201
28.3DTS functional description .....1202
28.3.1DTS block diagram .....1202
28.3.2DTS internal signals .....1202
28.3.3DTS block operation .....1203
28.3.4Operating modes .....1203
28.3.5Calibration .....1203
28.3.6Prescaler .....1203
28.3.7Temperature measurement principles .....1204
28.3.8Sampling time .....1205
28.3.9Quick measurement mode .....1205
28.3.10Trigger input .....1206
28.3.11On-off control and ready flag .....1206
28.3.12Temperature measurement sequence .....1207
28.4DTS low-power modes .....1208
28.5DTS interrupts .....1208
28.5.1Temperature window comparator .....1208
28.5.2Synchronous interrupt .....1208
28.5.3Asynchronous wake-up .....1208
28.6DTS registers .....1209
28.6.1Temperature sensor configuration register 1 (DTS_CFGR1) .....1209
28.6.2Temperature sensor T0 value register 1 (DTS_T0VALR1) .....1211
28.6.3Temperature sensor ramp value register (DTS_RAMPVALR) .....1211
28.6.4Temperature sensor interrupt threshold register 1 (DTS_ITR1) .....1212
28.6.5Temperature sensor data register (DTS_DR) .....1212
28.6.6Temperature sensor status register (DTS_SR) .....1213
28.6.7Temperature sensor interrupt enable register (DTS_ITENR) .....1214
28.6.8Temperature sensor clear interrupt flag register (DTS_ICIFR) .....1215
28.6.9Temperature sensor option register (DTS_OR) .....1216
28.6.10DTS register map .....1217
29Voltage reference buffer (VREFBUF) .....1219
29.1VREFBUF introduction . . . . .1219
29.2VREFBUF implementation . . . . .1219
29.3VREFBUF functional description . . . . .1219
29.4VREFBUF trimming . . . . .1220
29.5VREFBUF registers . . . . .1221
29.5.1VREFBUF control and status register (VREFBUF_CSR) . . . . .1221
29.5.2VREFBUF calibration control register (VREFBUF_CCR) . . . . .1222
29.5.3VREFBUF register map . . . . .1223
30Audio digital filter (ADF) . . . . .1224
30.1ADF introduction . . . . .1224
30.2ADF main features . . . . .1224
30.3ADF implementation . . . . .1225
30.4ADF functional description . . . . .1226
30.4.1ADF block diagram . . . . .1226
30.4.2ADF pins and internal signals . . . . .1226
30.4.3Serial input interface (SITF) . . . . .1227
30.4.4ADC slave interface (ADCITF) . . . . .1231
30.4.5Clock generator (CKGEN) . . . . .1232
30.4.6Bitstream matrix (BSMX) . . . . .1234
30.4.7Digital filter processing (DFLT) . . . . .1235
30.4.8Digital filter acquisition modes . . . . .1245
30.4.9Start-up sequence examples . . . . .1253
30.4.10Sound activity detection (SAD) . . . . .1254
30.4.11Data transfer to memory . . . . .1262
30.4.12Autonomous mode . . . . .1265
30.4.13Register protection . . . . .1265
30.5ADF low-power modes . . . . .1266
30.6ADF interrupts . . . . .1266
30.7ADF application information . . . . .1268
30.7.1ADF configuration examples for audio capture . . . . .1268
30.7.2Programming examples . . . . .1269
30.7.3Connection examples . . . . .1271
30.7.4Global frequency response . . . . .1272
30.7.5Total ADF gain . . . . .1273
30.7.6How to compute SAD thresholds . . . . .1276
30.8ADF registers1280
30.8.1ADF global control register (ADF_GCR)1280
30.8.2ADF clock generator control register (ADF_CKGCR)1280
30.8.3ADF serial interface control register 0 (ADF_SITF0CR)1282
30.8.4ADF bitstream matrix control register 0 (ADF_BSMX0CR)1284
30.8.5ADF digital filter control register 0 (ADF_DFLT0CR)1284
30.8.6ADF digital filter configuration register 0 (ADF_DFLT0CICR)1286
30.8.7ADF reshape filter configuration register 0 (ADF_DFLT0RSFR)1287
30.8.8ADF delay control register 0 (ADF_DLY0CR)1288
30.8.9ADF DFLT0 interrupt enable register (ADF_DFLT0IER)1289
30.8.10ADF DFLT0 interrupt status register 0 (ADF_DFLT0ISR)1290
30.8.11ADF SAD control register (ADF_SADCR)1291
30.8.12ADF SAD configuration register (ADF_SADCFGR)1293
30.8.13ADF SAD sound level register (ADF_SADSDLVR)1294
30.8.14ADF SAD ambient noise level register (ADF_SADANLVR)1295
30.8.15ADF digital filter data register 0 (ADF_DFLT0DR)1295
30.8.16ADF register map1295
31Digital camera interface pixel pipeline (DCMIPP)1298
31.1DCMIPP introduction1298
31.2DCMIPP main features1300
31.3DCMIPP functional description1301
31.3.1DCMIPP block diagram1301
31.3.2DCMIPP pads and internal signals1301
31.3.3DCMIPP reset and clocks1302
31.3.4DCMIPP maximum resolution1304
31.3.5DCMIPP minimum requirements for frame structure1304
31.3.6Description of DCMIPP pixel format support1304
31.4DCMIPP input and flow control1305
31.4.1DCMIPP common configuration1305
31.4.2Parallel input interface1306
31.4.3Frame counter1309
31.4.4Frame control1309
31.4.5Pipe deactivation1313
31.5Pipe0 (dump pipe)1314
31.5.1Overview1314
31.5.2Decimation . . . . .1314
31.5.3Crop/statistics selection/suppression . . . . .1315
31.5.4Dump counter . . . . .1316
31.5.5Double buffer mode . . . . .1317
31.5.6Pixel packing . . . . .1317
31.5.7Overrun detection . . . . .1318
31.6Pixel format description . . . . .1319
31.6.1Parallel interface formats . . . . .1319
31.6.2Dump pipe formats . . . . .1321
31.6.3AXI IP-Plug . . . . .1322
31.7Shadow registers . . . . .1324
31.8DCMIPP low power modes . . . . .1325
31.9DCMIPP interrupts . . . . .1326
31.9.1Free-running DCMIPP . . . . .1326
31.9.2Interrupts . . . . .1326
31.9.3Event pins . . . . .1328
31.10DCMIPP registers . . . . .1329
31.10.1DCMIPP IP-Plug global register 1 (DCMIPP_IPGR1) . . . . .1329
31.10.2DCMIPP IP-Plug global register 2 (DCMIPP_IPGR2) . . . . .1330
31.10.3DCMIPP IP-Plug global register 3 (DCMIPP_IPGR3) . . . . .1330
31.10.4DCMIPP IP-Plug identification register (DCMIPP_IPGR8) . . . . .1330
31.10.5DCMIPP IP-Plug Clientx register 1 (DCMIPP_IPCxR1) . . . . .1331
31.10.6DCMIPP IP-Plug Clientx register 2 (DCMIPP_IPCxR2) . . . . .1332
31.10.7DCMIPP IP-Plug Clientx register 3 (DCMIPP_IPCxR3) . . . . .1332
31.10.8DCMIPP parallel interface control register (DCMIPP_PRCR) . . . . .1333
31.10.9DCMIPP parallel interface embedded synchronization code register
(DCMIPP_PRESCR) . . . . .
1334
31.10.10DCMIPP parallel interface embedded synchronization unmask register
(DCMIPP PRESUR) . . . . .
1335
31.10.11DCMIPP parallel interface interrupt enable register
(DCMIPP_PRIER) . . . . .
1336
31.10.12DCMIPP parallel interface status register (DCMIPP PRSR) . . . . .1336
31.10.13DCMIPP parallel interface interrupt clear register
(DCMIPP_PRFCR) . . . . .
1337
31.10.14DCMIPP common configuration register (DCMIPP_CMCR) . . . . .1338
31.10.15DCMIPP common frame counter register (DCMIPP_CMFRCR) . . . . .1338
31.10.16DCMIPP common interrupt enable register (DCMIPP_CMIER) . . . . .1339
31.10.17DCMIPP common status register 1 (DCMIPP_CMSR1) . . . . .1340
31.10.18DCMIPP common status register 2 (DCMIPP_CMSR2) . . . . .1341
31.10.19DCMIPP common interrupt clear register (DCMIPP_CMFCR) . . . . .1342
31.10.20DCMIPP Pipe0 flow selection configuration register
(DCMIPP_P0FSCR) . . . . .
1343
31.10.21DCMIPP Pipe0 flow control configuration register
(DCMIPP_P0FCTCR) . . . . .
1343
31.10.22DCMIPP Pipe0 statistic/crop start register (DCMIPP_P0SCSTR) . . .1344
31.10.23DCMIPP Pipe0 statistic/crop size register (DCMIPP_P0SCSZR) . . .1345
31.10.24DCMIPP Pipe0 dump counter register (DCMIPP_P0DCCNTR) . . . .1345
31.10.25DCMIPP Pipe0 dump limit register (DCMIPP_P0DCLMTR) . . . . .1346
31.10.26DCMIPP Pipe0 pixel packer configuration register
(DCMIPP_P0PPCR) . . . . .
1346
31.10.27DCMIPP Pipe0 pixel packer Memory0 address register 1
(DCMIPP_P0PPM0AR1) . . . . .
1347
31.10.28DCMIPP Pipe0 pixel packer Memory0 address register 2
(DCMIPP_P0PPM0AR2) . . . . .
1348
31.10.29DCMIPP Pipe0 interrupt enable register (DCMIPP_P0IER) . . . . .1348
31.10.30DCMIPP Pipe0 status register (DCMIPP_P0SR) . . . . .1349
31.10.31DCMIPP Pipe0 interrupt clear register (DCMIPP_P0FCR) . . . . .1350
31.10.32DCMIPP Pipe0 current flow control configuration register
(DCMIPP_P0CFCTCR) . . . . .
1351
31.10.33DCMIPP Pipe0 current statistic/crop start register
(DCMIPP_P0CSCSTR) . . . . .
1351
31.10.34DCMIPP Pipe0 current statistic/crop size register
(DCMIPP_P0CSCSZR) . . . . .
1352
31.10.35DCMIPP Pipe0 current pixel packer configuration register
(DCMIPP_P0CPPCR) . . . . .
1353
31.10.36DCMIPP Pipe0 current pixel packer Memory0 address register 1
(DCMIPP_P0CPPM0AR1) . . . . .
1354
31.10.37DCMIPP Pipe0 current pixel packer Memory0 address register 2
(DCMIPP_P0CPPM0AR2) . . . . .
1354
31.11DCMIPP register map . . . . .1356
32Parallel synchronous slave interface (PSSI) . . . . .1359
32.1PSSI introduction . . . . .1359
32.2PSSI main features . . . . .1359
32.3PSSI functional description . . . . .1359
32.3.1PSSI block diagram . . . . .1360
32.3.2PSSI pins and internal signals . . . . .1360
32.3.3PSSI clock . . . . .1361
32.3.4PSSI data management .....1361
32.3.5PSSI optional control signals .....1363
32.4PSSI interrupts .....1366
32.5PSSI registers .....1366
32.5.1PSSI control register (PSSI_CR) .....1366
32.5.2PSSI status register (PSSI_SR) .....1368
32.5.3PSSI raw interrupt status register (PSSI_RIS) .....1369
32.5.4PSSI interrupt enable register (PSSI_IER) .....1370
32.5.5PSSI masked interrupt status register (PSSI_MIS) .....1370
32.5.6PSSI interrupt clear register (PSSI_ICR) .....1371
32.5.7PSSI data register (PSSI_DR) .....1371
32.5.8PSSI register map .....1372
33LCD-TFT display controller (LTDC) .....1373
33.1Introduction .....1373
33.2LTDC main features .....1373
33.3LTDC functional description .....1374
33.3.1LTDC block diagram .....1374
33.3.2LTDC pins and internal signals .....1374
33.3.3LTDC reset and clocks .....1375
33.4LTDC programmable parameters .....1377
33.4.1LTDC global configuration parameters .....1377
33.4.2Layer programmable parameters .....1379
33.5LTDC interrupts .....1383
33.6LTDC programming procedure .....1384
33.7LTDC registers .....1385
33.7.1LTDC synchronization size configuration register (LTDC_SSCR) ...1385
33.7.2LTDC back porch configuration register (LTDC_BPCR) .....1385
33.7.3LTDC active width configuration register (LTDC_AWCR) .....1386
33.7.4LTDC total width configuration register (LTDC_TWCR) .....1387
33.7.5LTDC global control register (LTDC_GCR) .....1387
33.7.6LTDC shadow reload configuration register (LTDC_SRCR) .....1389
33.7.7LTDC background color configuration register (LTDC_BCCR) ....1389
33.7.8LTDC interrupt enable register (LTDC_IER) .....1390
33.7.9LTDC interrupt status register (LTDC_ISR) .....1391
33.7.10LTDC interrupt clear register (LTDC_ICR) .....1391
33.7.11LTDC line interrupt position configuration register (LTDC_LIPCR) . .1392
33.7.12LTDC current position status register (LTDC_CPSR) . . . . .1392
33.7.13LTDC current display status register (LTDC_CDSR) . . . . .1393
33.7.14LTDC layer x control register (LTDC_LxCR) . . . . .1393
33.7.15LTDC layer x window horizontal position configuration register
(LTDC_LxWHPCR) . . . . .
1394
33.7.16LTDC layer x window vertical position configuration register
(LTDC_LxWVPCR) . . . . .
1395
33.7.17LTDC layer x color keying configuration register
(LTDC_LxCKCR) . . . . .
1396
33.7.18LTDC layer x pixel format configuration register
(LTDC_LxPFCR) . . . . .
1396
33.7.19LTDC layer x constant alpha configuration register
(LTDC_LxCACR) . . . . .
1397
33.7.20LTDC layer x default color configuration register
(LTDC_LxDCCR) . . . . .
1397
33.7.21LTDC layer x blending factors configuration register
(LTDC_LxBFCR) . . . . .
1398
33.7.22LTDC layer x color frame buffer address register
(LTDC_LxCFBAR) . . . . .
1399
33.7.23LTDC layer x color frame buffer length register
(LTDC_LxCFBLR) . . . . .
1399
33.7.24LTDC layer x color frame buffer line number register
(LTDC_LxCFBLNR) . . . . .
1400
33.7.25LTDC layer x CLUT write register (LTDC_LxCLUTWR) . . . . .1400
33.7.26LTDC register map . . . . .1401
34JPEG codec (JPEG) . . . . .1404
34.1JPEG introduction . . . . .1404
34.2JPEG codec main features . . . . .1404
34.3JPEG codec block functional description . . . . .1405
34.3.1General description . . . . .1405
34.3.2JPEG internal signals . . . . .1405
34.3.3JPEG decoding procedure . . . . .1406
34.3.4JPEG encoding procedure . . . . .1408
34.4JPEG codec interrupts . . . . .1411
34.5JPEG codec registers . . . . .1411
34.5.1JPEG codec control register (JPEG_CONFR0) . . . . .1411
34.5.2JPEG codec configuration register 1 (JPEG_CONFR1) . . . . .1412
34.5.3JPEG codec configuration register 2 (JPEG_CONFR2) . . . . .1413
34.5.4JPEG codec configuration register 3 (JPEG_CONFR3) . . . . .1413
34.5.5JPEG codec configuration register x (JPEG_CONFRx) . . . . .1414
34.5.6JPEG control register (JPEG_CR) . . . . .1415
34.5.7JPEG status register (JPEG_SR) . . . . .1416
34.5.8JPEG clear flag register (JPEG_CFR) . . . . .1417
34.5.9JPEG data input register (JPEG_DIR) . . . . .1418
34.5.10JPEG data output register (JPEG_DOR) . . . . .1418
34.5.11JPEG quantization memory x (JPEG_QMEMx_y) . . . . .1419
34.5.12JPEG Huffman min (JPEG_HUFFMINx_y) . . . . .1419
34.5.13JPEG Huffman min x (JPEG_HUFFMINx_y) . . . . .1420
34.5.14JPEG Huffman base (JPEG_HUFFBASEx) . . . . .1420
34.5.15JPEG Huffman symbol (JPEG_HUFFSYMBx) . . . . .1421
34.5.16JPEG DHT memory (JPEG_DHTMEMx) . . . . .1422
34.5.17JPEG Huffman encoder ACx (JPEG_HUFFENC_ACx_y) . . . . .1422
34.5.18JPEG Huffman encoder DCx (JPEG_HUFFENC_DCx_y) . . . . .1423
34.5.19JPEG codec register map . . . . .1424
35True random number generator (RNG) . . . . .1426
35.1RNG introduction . . . . .1426
35.2RNG main features . . . . .1426
35.3RNG functional description . . . . .1427
35.3.1RNG block diagram . . . . .1427
35.3.2RNG internal signals . . . . .1427
35.3.3Random number generation . . . . .1427
35.3.4RNG initialization . . . . .1430
35.3.5RNG operation . . . . .1431
35.3.6RNG clocking . . . . .1433
35.3.7Error management . . . . .1433
35.3.8RNG low-power use . . . . .1434
35.4RNG interrupts . . . . .1435
35.5RNG processing time . . . . .1435
35.6RNG entropy source validation . . . . .1436
35.6.1Introduction . . . . .1436
35.6.2Validation conditions . . . . .1436
35.7RNG registers . . . . .1437
35.7.1RNG control register (RNG_CR) .....1437
35.7.2RNG status register (RNG_SR) .....1439
35.7.3RNG data register (RNG_DR) .....1440
35.7.4RNG noise source control register (RNG_NSCR) .....1441
35.7.5RNG health test control register (RNG_HTCR) .....1442
35.7.6RNG register map .....1442
36Secure AES coprocessor (SAES) .....1443
36.1SAES introduction .....1443
36.2SAES main features .....1443
36.3SAES implementation .....1444
36.4SAES functional description .....1444
36.4.1SAES block diagram .....1444
36.4.2SAES internal signals .....1445
36.4.3SAES reset and clocks .....1446
36.4.4SAES symmetric cipher implementation .....1446
36.4.5SAES encryption or decryption typical usage .....1447
36.4.6SAES authenticated encryption, decryption, and cipher-based message authentication .....1449
36.4.7SAES ciphertext stealing and data padding .....1449
36.4.8SAES suspend and resume operations .....1450
36.4.9SAES basic chaining modes (ECB, CBC) .....1450
36.4.10SAES counter (CTR) mode .....1455
36.4.11SAES Galois/counter mode (GCM) .....1457
36.4.12SAES Galois message authentication code (GMAC) .....1461
36.4.13SAES counter with CBC-MAC (CCM) .....1463
36.4.14SAES operation with wrapped keys .....1468
36.4.15SAES operation with shared keys .....1472
36.4.16SAES data registers and data swapping .....1473
36.4.17SAES key registers .....1476
36.4.18SAES initialization vector registers .....1477
36.4.19SAES error management .....1477
36.5SAES interrupts .....1479
36.6SAES DMA requests .....1480
36.7SAES processing latency .....1480
36.8SAES registers .....1482
36.8.1SAES control register (SAES_CR) .....1482
36.8.2SAES status register (SAES_SR) .....1485
36.8.3SAES data input register (SAES_DINR) .....1486
36.8.4SAES data output register (SAES_DOUTR) .....1487
36.8.5SAES key register 0 (SAES_KEYR0) .....1487
36.8.6SAES key register 1 (SAES_KEYR1) .....1488
36.8.7SAES key register 2 (SAES_KEYR2) .....1488
36.8.8SAES key register 3 (SAES_KEYR3) .....1488
36.8.9SAES initialization vector register 0 (SAES_IVR0) .....1489
36.8.10SAES initialization vector register 1 (SAES_IVR1) .....1489
36.8.11SAES initialization vector register 2 (SAES_IVR2) .....1489
36.8.12SAES initialization vector register 3 (SAES_IVR3) .....1490
36.8.13SAES key register 4 (SAES_KEYR4) .....1490
36.8.14SAES key register 5 (SAES_KEYR5) .....1490
36.8.15SAES key register 6 (SAES_KEYR6) .....1491
36.8.16SAES key register 7 (SAES_KEYR7) .....1491
36.8.17SAES suspend registers (SAES_SUSPRx) .....1491
36.8.18SAES interrupt enable register (SAES_IER) .....1492
36.8.19SAES interrupt status register (SAES_ISR) .....1493
36.8.20SAES interrupt clear register (SAES_ICR) .....1494
36.8.21SAES register map .....1494
37Cryptographic processor (CRYP) .....1497
37.1CRYP introduction .....1497
37.2CRYP main features .....1497
37.3CRYP implementation .....1498
37.4CRYP functional description .....1499
37.4.1CRYP block diagram .....1499
37.4.2CRYP internal signals .....1500
37.4.3CRYP reset and clocks .....1500
37.4.4CRYP symmetric cipher implementation .....1500
37.4.5CRYP encryption/ decryption typical usage .....1501
37.4.6CRYP authenticated encryption, decryption, and cipher-based message authentication .....1504
37.4.7CRYP ciphertext stealing and data padding .....1504
37.4.8CRYP suspend and resume operations .....1505
37.4.9CRYP basic chaining modes (ECB, CBC) .....1505
37.4.10CRYP counter mode (CTR) . . . . .1510
37.4.11CRYP AES Galois/counter mode (GCM) . . . . .1512
37.4.12CRYP AES Galois message authentication code (GMAC) . . . . .1518
37.4.13CRYP AES Counter with CBC-MAC (CCM) . . . . .1519
37.4.14AES key sharing with secure AES co-processor . . . . .1524
37.4.15CRYP data registers and data swapping . . . . .1525
37.4.16CRYP key registers . . . . .1528
37.4.17CRYP initialization vector registers . . . . .1528
37.4.18CRYP error management . . . . .1529
37.5CRYP interrupts . . . . .1529
37.6CRYP DMA requests . . . . .1530
37.7CRYP processing time . . . . .1531
37.8CRYP registers . . . . .1532
37.8.1CRYP control register (CRYP_CR) . . . . .1532
37.8.2CRYP status register (CRYP_SR) . . . . .1534
37.8.3CRYP data input register (CRYP_DINR) . . . . .1536
37.8.4CRYP data output register (CRYP_DOUTR) . . . . .1536
37.8.5CRYP DMA control register (CRYP_DMACR) . . . . .1537
37.8.6CRYP interrupt mask set/clear register (CRYP_IMSCR) . . . . .1537
37.8.7CRYP raw interrupt status register (CRYP_RISR) . . . . .1538
37.8.8CRYP masked interrupt status register (CRYP_MISR) . . . . .1538
37.8.9CRYP key register 0L (CRYP_K0LR) . . . . .1539
37.8.10CRYP key register 0R (CRYP_K0RR) . . . . .1540
37.8.11CRYP key register 1L (CRYP_K1LR) . . . . .1540
37.8.12CRYP key register 1R (CRYP_K1RR) . . . . .1540
37.8.13CRYP key register 2L (CRYP_K2LR) . . . . .1541
37.8.14CRYP key register 2R (CRYP_K2RR) . . . . .1541
37.8.15CRYP key register 3L (CRYP_K3LR) . . . . .1542
37.8.16CRYP key register 3R (CRYP_K3RR) . . . . .1542
37.8.17CRYP initialization vector register 0L (CRYP_IV0LR) . . . . .1542
37.8.18CRYP initialization vector register 0R (CRYP_IV0RR) . . . . .1543
37.8.19CRYP initialization vector register 1L (CRYP_IV1LR) . . . . .1543
37.8.20CRYP initialization vector register 1R (CRYP_IV1RR) . . . . .1544
37.8.21CRYP context swap GCM-CCM registers (CRYP_CSGCMCCMxR) . . . . .1544
37.8.22CRYP context swap GCM registers (CRYP_CSGCMxR) . . . . .1545
37.8.23CRYP register map . . . . .1545
38Hash processor (HASH) .....1547
38.1HASH introduction .....1547
38.2HASH main features .....1547
38.3HASH implementation .....1548
38.4HASH functional description .....1548
38.4.1HASH block diagram .....1548
38.4.2HASH internal signals .....1548
38.4.3About secure hash algorithms .....1549
38.4.4Message data feeding .....1549
38.4.5Message digest computing .....1550
38.4.6Message padding .....1552
38.4.7HMAC operation .....1554
38.4.8HASH suspend/resume operations .....1555
38.4.9HASH DMA interface .....1557
38.4.10HASH error management .....1558
38.4.11HASH processing time .....1558
38.5HASH interrupts .....1559
38.6HASH registers .....1559
38.6.1HASH control register (HASH_CR) .....1559
38.6.2HASH data input register (HASH_DIN) .....1561
38.6.3HASH start register (HASH_STR) .....1562
38.6.4HASH digest registers .....1563
38.6.5HASH interrupt enable register (HASH_IMR) .....1565
38.6.6HASH status register (HASH_SR) .....1565
38.6.7HASH context swap registers .....1566
38.6.8HASH register map .....1567
39Memory cipher engine (MCE) .....1569
39.1MCE introduction .....1569
39.2MCE main features .....1569
39.3MCE implementation .....1570
39.4MCE functional description .....1571
39.4.1MCE block diagram .....1571
39.4.2MCE internal signals .....1571
39.4.3MCE programming .....1572
39.4.4MCE reset and clocks .....1573
39.4.5MCE block cipher encryption mode .....1573
39.4.6MCE stream cipher encryption mode .....1575
39.4.7MCE AXI traffic management .....1576
39.4.8MCE encryption disable options .....1576
39.4.9MCE error management .....1577
39.5MCE interrupts .....1577
39.6MCE registers .....1578
39.6.1MCE configuration register (MCE_CR) .....1578
39.6.2MCE status register (MCE_SR) .....1578
39.6.3MCE illegal access status register (MCE_IASR) .....1579
39.6.4MCE illegal access clear register (MCE_IACR) .....1580
39.6.5MCE illegal access interrupt enable register (MCE_IAIER) .....1580
39.6.6MCE privileged configuration register (MCE_PRIVCFGR) .....1581
39.6.7MCE illegal access error status register (MCE_IAESR) .....1581
39.6.8MCE illegal address register (MCE_IADDR) .....1582
39.6.9MCE region x configuration register (MCE_REGCRx) .....1582
39.6.10MCE start address for region x register (MCE_SADDRx) .....1584
39.6.11MCE end address for region x register (MCE_EADDRx) .....1584
39.6.12MCE attribute for region x register (MCE_ATTRx) .....1585
39.6.13MCE master key x (MCE_MKEYRx) .....1585
39.6.14MCE fast master key x (MCE_FMKEYRx) .....1585
39.6.15MCE cipher context z configuration register (MCE_CCzCFGR) ....1586
39.6.16MCE cipher context z nonce register 0 (MCE_CCzNR0) .....1588
39.6.17MCE cipher context z nonce register 1 (MCE_CCzNR1) .....1588
39.6.18MCE cipher context z key register 0 (MCE_CCzKEYR0) .....1589
39.6.19MCE cipher context z key register 1 (MCE_CCzKEYR1) .....1589
39.6.20MCE cipher context z key register 2 (MCE_CCzKEYR2) .....1590
39.6.21MCE cipher context z key register 3 (MCE_CCzKEYR3) .....1590
39.6.22MCE register map .....1591
40Public key accelerator (PKA) .....1593
40.1PKA introduction .....1593
40.2PKA main features .....1593
40.3PKA functional description .....1594
40.3.1PKA block diagram .....1594
40.3.2PKA internal signals .....1594
40.3.3PKA reset and clocks .....1594
40.3.4PKA public key acceleration1595
40.3.5Typical applications for PKA1597
40.3.6PKA procedure to perform an operation1599
40.3.7PKA error management1600
40.4PKA operating modes1601
40.4.1Introduction1601
40.4.2Montgomery parameter computation1602
40.4.3Modular addition1602
40.4.4Modular subtraction1603
40.4.5Modular and Montgomery multiplication1603
40.4.6Modular exponentiation1604
40.4.7Modular inversion1606
40.4.8Modular reduction1606
40.4.9Arithmetic addition1607
40.4.10Arithmetic subtraction1607
40.4.11Arithmetic multiplication1608
40.4.12Arithmetic comparison1608
40.4.13RSA CRT exponentiation1608
40.4.14Point on elliptic curve \(F_p\) check1609
40.4.15ECC \(F_p\) scalar multiplication1610
40.4.16ECDSA sign1611
40.4.17ECDSA verification1613
40.4.18ECC complete addition1614
40.4.19ECC double base ladder1614
40.4.20ECC projective to affine1615
40.5Example of configurations and processing times1616
40.5.1Supported elliptic curves1616
40.5.2Computation times1618
40.6PKA interrupts1620
40.7PKA registers1621
40.7.1PKA control register (PKA_CR)1621
40.7.2PKA status register (PKA_SR)1623
40.7.3PKA clear flag register (PKA_CLRFR)1624
40.7.4PKA RAM1624
40.7.5PKA register map1625