15. Nested vectored interrupt controller (NVIC) 440

ST logo
| 15.1 | NVIC main features | 440 |
| 15.2 | SysTick calibration value register | 440 |
| 15.3 | Interrupt and exception vectors | 440 |
| 16 | Extended interrupts and event controller (EXTI) | 445 |
| 16.1 | EXTI main features | 445 |
| 16.2 | EXTI block diagram | 446 |
| 16.2.1 | EXTI connections between peripherals and CPU | 447 |
| 16.2.2 | EXTI interrupt/event mapping | 447 |
| 16.3 | EXTI functional description | 448 |
| 16.3.1 | EXTI configurable event input wake-up | 449 |
| 16.3.2 | EXTI direct event input wake-up | 449 |
| 16.3.3 | EXTI mux selection | 450 |
| 16.4 | EXTI functional behavior | 450 |
| 16.5 | EXTI event protection | 451 |
| 16.5.1 | EXTI privilege protection | 452 |
| 16.6 | EXTI registers | 452 |
| 16.6.1 | EXTI rising trigger selection register (EXTI_RTSR1) | 452 |
| 16.6.2 | EXTI falling trigger selection register (EXTI_FTSR1) | 453 |
| 16.6.3 | EXTI software interrupt event register (EXTI_SWIER1) | 454 |
| 16.6.4 | EXTI rising edge pending register (EXTI_RPR1) | 454 |
| 16.6.5 | EXTI falling edge pending register (EXTI_FPR1) | 455 |
| 16.6.6 | EXTI privilege configuration register (EXTI_PRIVCFGR1) | 455 |
| 16.6.7 | EXTI rising trigger selection register 2 (EXTI_RTSR2) | 456 |
| 16.6.8 | EXTI falling trigger selection register 2 (EXTI_FTSR2) | 457 |
| 16.6.9 | EXTI software interrupt event register 2 (EXTI_SWIER2) | 458 |
| 16.6.10 | EXTI rising edge pending register 2 (EXTI_RPR2) | 459 |
| 16.6.11 | EXTI falling edge pending register 2 (EXTI_FPR2) | 460 |
| 16.6.12 | EXTI privilege configuration register 2 (EXTI_PRIVCFGR2) | 461 |
| 16.6.13 | EXTI external interrupt selection register (EXTI_EXTICR1) | 461 |
| 16.6.14 | EXTI external interrupt selection register (EXTI_EXTICR2) | 463 |
| 16.6.15 | EXTI external interrupt selection register (EXTI_EXTICR3) | 464 |
| 16.6.16 | EXTI external interrupt selection register (EXTI_EXTICR4) | 466 |
| 16.6.17 | EXTI CPU wake-up with interrupt mask register (EXTI_IMR1) | 468 |
| 16.6.18 | EXTI CPU wake-up with event mask register (EXTI_EMR1) | 468 |
| 16.6.19 | EXTI CPU wake-up with interrupt mask register 2 (EXTI_IMR2) | 469 |
| 16.6.20 | EXTI CPU wake-up with event mask register 2 (EXTI_EMR2) . . . . . | 469 |
| 16.6.21 | EXTI register map . . . . . | 470 |
| 17 | Cyclic redundancy check calculation unit (CRC) . . . . . | 472 |
| 17.1 | CRC introduction . . . . . | 472 |
| 17.2 | CRC main features . . . . . | 472 |
| 17.3 | CRC functional description . . . . . | 473 |
| 17.3.1 | CRC block diagram . . . . . | 473 |
| 17.3.2 | CRC internal signals . . . . . | 473 |
| 17.3.3 | CRC operation . . . . . | 473 |
| 17.4 | CRC registers . . . . . | 475 |
| 17.4.1 | CRC data register (CRC_DR) . . . . . | 475 |
| 17.4.2 | CRC independent data register (CRC_IDR) . . . . . | 475 |
| 17.4.3 | CRC control register (CRC_CR) . . . . . | 476 |
| 17.4.4 | CRC initial value (CRC_INIT) . . . . . | 477 |
| 17.4.5 | CRC polynomial (CRC_POL) . . . . . | 477 |
| 17.4.6 | CRC register map . . . . . | 478 |
| 18 | CORDIC coprocessor (CORDIC) . . . . . | 479 |
| 18.1 | CORDIC introduction . . . . . | 479 |
| 18.2 | CORDIC main features . . . . . | 479 |
| 18.3 | CORDIC functional description . . . . . | 479 |
| 18.3.1 | General description . . . . . | 479 |
| 18.3.2 | CORDIC functions . . . . . | 479 |
| 18.3.3 | Fixed point representation . . . . . | 486 |
| 18.3.4 | Scaling factor . . . . . | 486 |
| 18.3.5 | Precision . . . . . | 487 |
| 18.3.6 | Zero-overhead mode . . . . . | 490 |
| 18.3.7 | Polling mode . . . . . | 491 |
| 18.3.8 | Interrupt mode . . . . . | 492 |
| 18.3.9 | DMA mode . . . . . | 492 |
| 18.4 | CORDIC registers . . . . . | 493 |
| 18.4.1 | CORDIC control/status register (CORDIC_CSR) . . . . . | 493 |
| 18.4.2 | CORDIC argument register (CORDIC_WDATA) . . . . . | 495 |
| 18.4.3 | CORDIC result register (CORDIC_RDATA) . . . . . | 496 |
| 18.4.4 | CORDIC register map . . . . . | 496 |
| 19 | Extended-SPI interface (XSPI) | 497 |
| 19.1 | XSPI introduction | 497 |
| 19.2 | XSPI main features | 497 |
| 19.3 | XSPI implementation | 498 |
| 19.4 | XSPI functional description | 499 |
| 19.4.1 | XSPI block diagram | 499 |
| 19.4.2 | XSPI pins and internal signals | 500 |
| 19.4.3 | XSPI interface to memory modes | 501 |
| 19.4.4 | XSPI regular-command protocol | 501 |
| 19.4.5 | XSPI regular-command protocol signal interface | 504 |
| 19.4.6 | HyperBus protocol | 508 |
| 19.4.7 | Specific features | 511 |
| 19.4.8 | XSPI operating mode introduction | 512 |
| 19.4.9 | XSPI indirect mode | 512 |
| 19.4.10 | XSPI automatic status-polling mode | 514 |
| 19.4.11 | XSPI memory-mapped mode | 515 |
| 19.4.12 | XSPI configuration introduction | 516 |
| 19.4.13 | XSPI system configuration | 516 |
| 19.4.14 | XSPI device configuration | 517 |
| 19.4.15 | XSPI regular-command mode configuration | 519 |
| 19.4.16 | XSPI HyperBus protocol configuration | 522 |
| 19.4.17 | XSPI error management | 523 |
| 19.4.18 | XSPI BUSY and ABORT | 523 |
| 19.4.19 | XSPI reconfiguration or deactivation | 524 |
| 19.4.20 | NCS behavior | 524 |
| 19.4.21 | Software control of two external memories | 524 |
| 19.4.22 | Hardware-controlled extended memory support | 525 |
| 19.5 | Address alignment and data number | 526 |
| 19.6 | XSPI interrupts | 527 |
| 19.7 | XSPI registers | 528 |
| 19.7.1 | XSPI control register (XSPI_CR) | 528 |
| 19.7.2 | XSPI device configuration register 1 (XSPI_DCR1) | 531 |
| 19.7.3 | XSPI device configuration register 2 (XSPI_DCR2) | 533 |
| 19.7.4 | XSPI device configuration register 3 (XSPI_DCR3) | 534 |
| 19.7.5 | XSPI device configuration register 4 (XSPI_DCR4) | 534 |
| 19.7.6 | XSPI status register (XSPI_SR) | 535 |
| 19.7.7 | XSPI flag clear register (XSPI_FCR) . . . . . | 536 |
| 19.7.8 | XSPI data length register (XSPI_DLR) . . . . . | 537 |
| 19.7.9 | XSPI address register (XSPI_AR) . . . . . | 537 |
| 19.7.10 | XSPI data register (XSPI_DR) . . . . . | 538 |
| 19.7.11 | XSPI polling status mask register (XSPI_PSMKR) . . . . . | 538 |
| 19.7.12 | XSPI polling status match register (XSPI_PSMAR) . . . . . | 539 |
| 19.7.13 | XSPI polling interval register (XSPI_PIR) . . . . . | 539 |
| 19.7.14 | XSPI communication configuration register (XSPI_CCR) . . . . . | 540 |
| 19.7.15 | XSPI timing configuration register (XSPI_TCR) . . . . . | 542 |
| 19.7.16 | XSPI instruction register (XSPI_IR) . . . . . | 542 |
| 19.7.17 | XSPI alternate bytes register (XSPI_ABR) . . . . . | 543 |
| 19.7.18 | XSPI low-power timeout register (XSPI_LPTR) . . . . . | 543 |
| 19.7.19 | XSPI wrap communication configuration register (XSPI_WPCCR) . . . . . | 544 |
| 19.7.20 | XSPI wrap timing configuration register (XSPI_WPTCR) . . . . . | 546 |
| 19.7.21 | XSPI wrap instruction register (XSPI_WPIR) . . . . . | 546 |
| 19.7.22 | XSPI wrap alternate bytes register (XSPI_WPABR) . . . . . | 547 |
| 19.7.23 | XSPI write communication configuration register (XSPI_WCCR) . . . . . | 547 |
| 19.7.24 | XSPI write timing configuration register (XSPI_WTCR) . . . . . | 549 |
| 19.7.25 | XSPI write instruction register (XSPI_WIR) . . . . . | 550 |
| 19.7.26 | XSPI write alternate bytes register (XSPI_WABR) . . . . . | 550 |
| 19.7.27 | XSPI HyperBus latency configuration register (XSPI_HLCR) . . . . . | 551 |
| 19.7.28 | XSPI register map . . . . . | 551 |
| 20 | Delay block (DLYB) . . . . . | 555 |
| 20.1 | DLYB introduction . . . . . | 555 |
| 20.2 | DLYB main features . . . . . | 555 |
| 20.3 | DLYB functional description . . . . . | 555 |
| 20.3.1 | DLYB diagram . . . . . | 555 |
| 20.3.2 | DLYB pins and internal signals . . . . . | 556 |
| 20.3.3 | General description . . . . . | 556 |
| 20.3.4 | Delay line length configuration procedure . . . . . | 557 |
| 20.3.5 | Output clock phase configuration procedure . . . . . | 558 |
| 20.4 | DLYB registers . . . . . | 558 |
| 20.4.1 | DLYB control register (DLYB_CR) . . . . . | 558 |
| 20.4.2 | DLYB configuration register (DLYB_CFGR) . . . . . | 559 |
| 20.4.3 | DLYB register map ..... | 560 |
| 21 | Analog-to-digital converters (ADC) ..... | 561 |
| 21.1 | ADC introduction ..... | 561 |
| 21.2 | ADC main features ..... | 561 |
| 21.3 | ADC implementation ..... | 563 |
| 21.4 | ADC functional description ..... | 564 |
| 21.4.1 | ADC block diagram ..... | 564 |
| 21.4.2 | ADC pins and internal signals ..... | 565 |
| 21.4.3 | ADC clocks ..... | 567 |
| 21.4.4 | ADC connectivity ..... | 569 |
| 21.4.5 | Slave AHB interface ..... | 571 |
| 21.4.6 | ADC Deep-power-down mode (DEEPPWD) and ADC voltage regulator (ADVREGEN) ..... | 572 |
| 21.4.7 | Calibration (ADCAL, ADC_CALFACT) ..... | 572 |
| 21.4.8 | ADC on-off control (ADEN, ADDIS, ADRDY) ..... | 574 |
| 21.4.9 | Constraints when writing the ADC control bits ..... | 575 |
| 21.4.10 | Channel selection (ADC_SQRy, ADC_JSQR) ..... | 576 |
| 21.4.11 | Channel preselection register (ADC_PCSEL) ..... | 576 |
| 21.4.12 | Channel-wise programmable sampling time (SMPR1, SMPR2) .... | 577 |
| 21.4.13 | Single conversion mode ..... | 578 |
| 21.4.14 | Continuous conversion mode (CONT = 1) ..... | 579 |
| 21.4.15 | Discontinuous mode (DISCEN, DISCNUM, JDISCEN) ..... | 580 |
| 21.4.16 | Starting conversions (ADSTART, JADSTART) ..... | 581 |
| 21.4.17 | Timing ..... | 582 |
| 21.4.18 | Stopping an ongoing conversion (ADSTP, JADSTP) ..... | 583 |
| 21.4.19 | Conversion on external trigger and trigger polarity (EXTSEL, EXTEN, JEXTSEL, JEXTEN) ..... | 585 |
| 21.4.20 | Injected channel management ..... | 586 |
| 21.4.21 | Programmable resolution (RES) - fast conversion mode ..... | 587 |
| 21.4.22 | End of conversion and end of sampling phase (EOC, JEOC, EOSMP) ..... | 588 |
| 21.4.23 | End of conversion sequence (EOS, JEOS) ..... | 588 |
| 21.4.24 | Timing diagram examples (single/continuous modes, hardware/software triggers) ..... | 589 |
| 21.4.25 | Data management ..... | 591 |
| 21.4.26 | Dynamic low-power features ..... | 599 |
| 21.4.27 | Analog window watchdog (AWD1EN, JAWD1EN, AWD1SGL, AWD1CH, AWDCH of ADC_AWD2CR and ADC_AWD3CR, HTR, LTR, AWDFILT) ..... | 603 |
| 21.4.28 | Oversampler ..... | 608 |
| 21.4.29 | Dual ADC modes ..... | 614 |
| 21.4.30 | Temperature sensor ..... | 629 |
| 21.4.31 | Monitoring the internal voltage reference ..... | 631 |
| 21.5 | ADC interrupts ..... | 633 |
| 21.6 | ADC registers (for each ADC) ..... | 634 |
| 21.6.1 | ADC interrupt and status register (ADC_ISR) ..... | 634 |
| 21.6.2 | ADC interrupt enable register (ADC_IER) ..... | 636 |
| 21.6.3 | ADC control register (ADC_CR) ..... | 638 |
| 21.6.4 | ADC configuration register (ADC_CFGR1) ..... | 641 |
| 21.6.5 | ADC configuration register 2 (ADC_CFGR2) ..... | 644 |
| 21.6.6 | ADC sample time register 1 (ADC_SMPR1) ..... | 647 |
| 21.6.7 | ADC sample time register 2 (ADC_SMPR2) ..... | 648 |
| 21.6.8 | ADC channel preselection register (ADC_PCSEL) ..... | 649 |
| 21.6.9 | ADC regular sequence register 1 (ADC_SQR1) ..... | 649 |
| 21.6.10 | ADC regular sequence register 2 (ADC_SQR2) ..... | 650 |
| 21.6.11 | ADC regular sequence register 3 (ADC_SQR3) ..... | 651 |
| 21.6.12 | ADC regular sequence register 4 (ADC_SQR4) ..... | 652 |
| 21.6.13 | ADC regular data register (ADC_DR) ..... | 653 |
| 21.6.14 | ADC injected sequence register (ADC_JSQR) ..... | 653 |
| 21.6.15 | ADC offset y configuration register (ADC_OF_CFGRy) ..... | 655 |
| 21.6.16 | ADC offset y register (ADC_OFy) ..... | 656 |
| 21.6.17 | ADC gain compensation register (ADC_GCOMP) ..... | 657 |
| 21.6.18 | ADC injected channel y data register (ADC_JDRy) ..... | 658 |
| 21.6.19 | ADC analog watchdog 2 configuration register (ADC_AWD2CR) .... | 658 |
| 21.6.20 | ADC analog watchdog 3 configuration register (ADC_AWD3CR) .... | 659 |
| 21.6.21 | ADC analog watchdog 1 lower threshold register (ADC_AWD1LTR) . | 659 |
| 21.6.22 | ADC analog watchdog 1 higher threshold register (ADC_AWD1HTR) ..... | 660 |
| 21.6.23 | ADC analog watchdog 2 lower threshold register (ADC_AWD2LTR) . | 660 |
| 21.6.24 | ADC analog watchdog 2 higher threshold register (ADC_AWD2HTR) ..... | 661 |
| 21.6.25 | ADC analog watchdog 3 lower threshold register (ADC_AWD3LTR) . | 661 |
| 21.6.26 | ADC analog watchdog 3 higher threshold register (ADC_AWD3HTR) ..... | 661 |
| 21.6.27 | ADC calibration factors (ADC_CALFACT) ..... | 662 |
| 21.6.28 | ADC option register (ADC_OR) ..... | 663 |
| 21.7 | ADC common registers ..... | 663 |
| 21.7.1 | ADC common status register (ADCC_CSR) ..... | 663 |
| 21.7.2 | ADC common control register (ADCC_CCR) ..... | 665 |
| 21.7.3 | ADC common regular data register for dual mode (ADCC_CDR) ..... | 666 |
| 21.7.4 | ADC common regular data register for dual mode (ADCC_CDR2) ..... | 667 |
| 21.8 | ADC register map ..... | 667 |
| 22 | Digital-to-analog converter (DAC) ..... | 672 |
| 22.1 | DAC introduction ..... | 672 |
| 22.2 | DAC main features ..... | 672 |
| 22.3 | DAC implementation ..... | 673 |
| 22.4 | DAC functional description ..... | 674 |
| 22.4.1 | DAC block diagram ..... | 674 |
| 22.4.2 | DAC pins and internal signals ..... | 675 |
| 22.4.3 | DAC clocks ..... | 676 |
| 22.4.4 | DAC channel enable ..... | 676 |
| 22.4.5 | DAC data format ..... | 677 |
| 22.4.6 | DAC conversion ..... | 678 |
| 22.4.7 | DAC output voltage ..... | 679 |
| 22.4.8 | DAC trigger selection ..... | 680 |
| 22.4.9 | DMA requests ..... | 680 |
| 22.4.10 | Noise generation ..... | 681 |
| 22.4.11 | Triangle-wave generation ..... | 682 |
| 22.4.12 | DAC channel modes ..... | 683 |
| 22.4.13 | DAC channel buffer calibration ..... | 686 |
| 22.4.14 | DAC channel conversion modes ..... | 687 |
| 22.4.15 | Dual DAC channel conversion modes (if dual channels are available) ..... | 688 |
| 22.5 | DAC in low-power modes ..... | 692 |
| 22.6 | DAC interrupts ..... | 692 |
| 22.7 | DAC registers ..... | 693 |
| 22.7.1 | DAC control register (DAC_CR) ..... | 693 |
| 22.7.2 | DAC software trigger register (DAC_SWTRGR) ..... | 696 |
| 22.7.3 | DAC channel1 12-bit right-aligned data holding register (DAC_DHR12R1) ..... | 697 |
| 22.7.4 | DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1) ..... | 698 |
| 22.7.5 | DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1) ..... | 698 |
| 22.7.6 | DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2) ..... | 699 |
| 22.7.7 | DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2) ..... | 699 |
| 22.7.8 | DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2) ..... | 700 |
| 22.7.9 | Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD) ..... | 700 |
| 22.7.10 | Dual DAC 12-bit left aligned data holding register (DAC_DHR12LD) ..... | 701 |
| 22.7.11 | Dual DAC 8-bit right aligned data holding register (DAC_DHR8RD) ..... | 701 |
| 22.7.12 | DAC channel1 data output register (DAC_DOR1) ..... | 702 |
| 22.7.13 | DAC channel2 data output register (DAC_DOR2) ..... | 702 |
| 22.7.14 | DAC status register (DAC_SR) ..... | 703 |
| 22.7.15 | DAC calibration control register (DAC_CCR) ..... | 704 |
| 22.7.16 | DAC mode control register (DAC_MCR) ..... | 705 |
| 22.7.17 | DAC channel1 sample and hold sample time register (DAC_SHSR1) ..... | 706 |
| 22.7.18 | DAC channel2 sample and hold sample time register (DAC_SHSR2) ..... | 707 |
| 22.7.19 | DAC sample and hold time register (DAC_SHHR) ..... | 707 |
| 22.7.20 | DAC sample and hold refresh time register (DAC_SHRR) ..... | 708 |
| 22.7.21 | DAC register map ..... | 709 |
| 23 | Comparator (COMP) ..... | 711 |
| 23.1 | Introduction ..... | 711 |
| 23.2 | COMP main features ..... | 711 |
| 23.3 | COMP implementation ..... | 712 |
| 23.3.1 | COMP implementation for STM32C55x/562 and STM32C59x/5A3 devices ..... | 712 |
| 23.3.2 | COMP implementation for STM32C53x/542 device ..... | 712 |
| 23.4 | COMP functional description ..... | 713 |
| 23.4.1 | COMP block diagram ..... | 713 |
| 23.4.2 | COMP pins and internal signals | 713 |
| 23.4.3 | COMP reset and clocks | 715 |
| 23.4.4 | Comparator LOCK mechanism | 715 |
| 23.4.5 | Window comparator (optional feature) | 715 |
| 23.4.6 | Hysteresis | 716 |
| 23.4.7 | Comparator output blanking function | 716 |
| 23.4.8 | COMP startup stabilization time | 717 |
| 23.4.9 | COMP power and speed modes | 717 |
| 23.5 | COMP low-power modes | 717 |
| 23.6 | COMP interrupts | 718 |
| 23.6.1 | COMP wake-up interrupt through EXTI | 718 |
| 23.6.2 | COMP NVIC interrupt through EXTI | 718 |
| 23.6.3 | COMP interrupt through NVIC of the CPU | 719 |
| 23.7 | SCALER function | 719 |
| 23.8 | COMP registers | 720 |
| 23.8.1 | Comparator status register (COMP_SR) | 720 |
| 23.8.2 | Comparator interrupt clear flag register (COMP_ICFR) | 721 |
| 23.8.3 | Comparator configuration register 1 (COMP_CFGR1) | 721 |
| 23.8.4 | Comparator configuration register 2 (COMP_CFGR2) | 723 |
| 23.8.5 | COMP register map | 725 |
| 24 | Operational amplifier (OPAMP) | 726 |
| 24.1 | Introduction | 726 |
| 24.2 | OPAMP main features | 726 |
| 24.3 | OPAMP implementation | 726 |
| 24.4 | OPAMP functional description | 727 |
| 24.4.1 | OPAMP block diagram | 727 |
| 24.4.2 | OPAMP pins and internal signals | 728 |
| 24.4.3 | OPAMP reset and clocks | 729 |
| 24.4.4 | OPAMP output redirection to an internal COMP channel | 729 |
| 24.4.5 | OPAMP initial configuration | 730 |
| 24.4.6 | OPAMP operational amplifier speed | 730 |
| 24.4.7 | OPAMP enable | 730 |
| 24.4.8 | OPAMP operating modes | 730 |
| 24.4.9 | OPAMP programmable gain | 736 |
| 24.4.10 | OPAMP operational amplifier offset compensation | 737 |
| 24.4.11 | OPAMP calibration | 737 |
| 24.4.12 | Timer-controlled operation | 739 |
| 24.5 | OPAMP in low-power modes | 740 |
| 24.6 | OPAMP registers | 741 |
| 24.6.1 | OPAMP control/status register (OPAMP_CSR) | 741 |
| 24.6.2 | OPAMP timer-controlled mode register (OPAMP_TCMR) | 743 |
| 24.6.3 | OPAMP register map | 746 |
| 25 | Coupling and chaining bridge (CCB) | 747 |
| 25.1 | CCB introduction | 747 |
| 25.2 | CCB main features | 747 |
| 25.3 | CCB implementation | 748 |
| 25.4 | CCB functional description | 748 |
| 25.4.1 | CCB block diagram | 748 |
| 25.4.2 | CCB internal signals | 749 |
| 25.4.3 | CCB reset and clocks | 749 |
| 25.4.4 | CCB coupling and chaining | 749 |
| 25.4.5 | CCB error management | 752 |
| 25.5 | CCB coupling and chaining operations | 752 |
| 25.5.1 | Preliminary steps before any protected operation | 754 |
| 25.5.2 | ECDSA signature | 755 |
| 25.5.3 | ECC scalar multiplication | 762 |
| 25.5.4 | RSA modular exponentiation | 765 |
| 25.6 | CCB interrupts | 767 |
| 25.7 | CCB registers | 768 |
| 25.7.1 | CCB control register (CCB_CR) | 768 |
| 25.7.2 | CCB status register (CCB_SR) | 769 |
| 25.7.3 | CCB reference tag register (CCB_REFTAGRx) | 771 |
| 25.7.4 | CCB register map | 772 |
| 26 | True random number generator (RNG) | 773 |
| 26.1 | RNG introduction | 773 |
| 26.2 | RNG main features | 773 |
| 26.3 | RNG functional description | 774 |
| 26.3.1 | RNG block diagram | 774 |
| 26.3.2 | RNG internal signals | 774 |
| 26.3.3 | Random number generation | 775 |
| 26.3.4 | RNG initialization | 777 |
| 26.3.5 | RNG operation | 778 |
| 26.3.6 | RNG clocking | 780 |
| 26.3.7 | Error management | 780 |
| 26.3.8 | RNG low-power use | 782 |
| 26.4 | RNG interrupts | 782 |
| 26.5 | RNG processing time | 783 |
| 26.6 | RNG entropy source validation | 783 |
| 26.6.1 | Introduction | 783 |
| 26.6.2 | Validation conditions | 783 |
| 26.7 | RNG registers | 785 |
| 26.7.1 | RNG control register (RNG_CR) | 785 |
| 26.7.2 | RNG status register (RNG_SR) | 787 |
| 26.7.3 | RNG data register (RNG_DR) | 788 |
| 26.7.4 | RNG noise source control register (RNG_NSCR) | 789 |
| 26.7.5 | RNG health test control register x (RNG_HTCRx) | 789 |
| 26.7.6 | RNG health test status register 0 (RNG_HTSR0) | 790 |
| 26.7.7 | RNG health test status register 1 (RNG_HTSR1) | 790 |
| 26.7.8 | RNG noise source mask register (RNG_NSMR) | 791 |
| 26.7.9 | RNG register map | 792 |
| 27 | AES hardware accelerator (AES) | 793 |
| 27.1 | AES introduction | 793 |
| 27.2 | AES main features | 793 |
| 27.3 | AES implementation | 794 |
| 27.4 | AES functional description | 794 |
| 27.4.1 | AES block diagram | 794 |
| 27.4.2 | AES internal signals | 795 |
| 27.4.3 | AES reset and clocks | 795 |
| 27.4.4 | AES symmetric cipher implementation | 795 |
| 27.4.5 | AES encryption or decryption typical usage | 796 |
| 27.4.6 | AES authenticated encryption, decryption, and cipher-based message authentication | 799 |
| 27.4.7 | AES ciphertext stealing and data padding | 799 |
| 27.4.8 | AES suspend and resume operations | 800 |
| 27.4.9 | AES basic chaining modes (ECB, CBC) ..... | 800 |
| 27.4.10 | AES counter (CTR) mode ..... | 804 |
| 27.4.11 | AES Galois/counter mode (GCM) ..... | 806 |
| 27.4.12 | AES Galois message authentication code (GMAC) ..... | 811 |
| 27.4.13 | AES counter with CBC-MAC (CCM) ..... | 812 |
| 27.4.14 | AES key sharing with secure AES co-processor ..... | 817 |
| 27.4.15 | AES data registers and data swapping ..... | 818 |
| 27.4.16 | AES key registers ..... | 820 |
| 27.4.17 | AES initialization vector registers ..... | 820 |
| 27.4.18 | AES error management ..... | 821 |
| 27.5 | AES interrupts ..... | 822 |
| 27.6 | AES DMA requests ..... | 822 |
| 27.7 | AES processing latency ..... | 823 |
| 27.8 | AES registers ..... | 825 |
| 27.8.1 | AES control register (AES_CR) ..... | 825 |
| 27.8.2 | AES status register (AES_SR) ..... | 827 |
| 27.8.3 | AES data input register (AES_DINR) ..... | 828 |
| 27.8.4 | AES data output register (AES_DOUTR) ..... | 829 |
| 27.8.5 | AES key register 0 (AES_KEYR0) ..... | 829 |
| 27.8.6 | AES key register 1 (AES_KEYR1) ..... | 830 |
| 27.8.7 | AES key register 2 (AES_KEYR2) ..... | 830 |
| 27.8.8 | AES key register 3 (AES_KEYR3) ..... | 830 |
| 27.8.9 | AES initialization vector register 0 (AES_IVR0) ..... | 831 |
| 27.8.10 | AES initialization vector register 1 (AES_IVR1) ..... | 831 |
| 27.8.11 | AES initialization vector register 2 (AES_IVR2) ..... | 831 |
| 27.8.12 | AES initialization vector register 3 (AES_IVR3) ..... | 832 |
| 27.8.13 | AES key register 4 (AES_KEYR4) ..... | 832 |
| 27.8.14 | AES key register 5 (AES_KEYR5) ..... | 832 |
| 27.8.15 | AES key register 6 (AES_KEYR6) ..... | 833 |
| 27.8.16 | AES key register 7 (AES_KEYR7) ..... | 833 |
| 27.8.17 | AES suspend registers (AES_SUSPRx) ..... | 833 |
| 27.8.18 | AES interrupt enable register (AES_IER) ..... | 834 |
| 27.8.19 | AES interrupt status register (AES_ISR) ..... | 835 |
| 27.8.20 | AES interrupt clear register (AES_ICR) ..... | 836 |
| 27.8.21 | AES register map ..... | 836 |