| 15.1 | DCMI introduction . . . . . | 457 |
| 15.2 | DCMI main features . . . . . | 457 |
| 15.3 | DCMI pins . . . . . | 457 |
| 15.4 | DCMI clocks . . . . . | 457 |
| 15.5 | DCMI functional overview . . . . . | 458 |
| 15.5.1 | DMA interface . . . . . | 459 |
| 15.5.2 | DCMI physical interface . . . . . | 459 |
| 15.5.3 | Synchronization . . . . . | 461 |
| 15.5.4 | Capture modes . . . . . | 463 |
| 15.5.5 | Crop feature . . . . . | 465 |
| 15.5.6 | JPEG format . . . . . | 467 |
| 15.5.7 | FIFO . . . . . | 467 |
| 15.6 | Data format description . . . . . | 467 |
| 15.6.1 | Data formats . . . . . | 467 |
| 15.6.2 | Monochrome format . . . . . | 468 |
| 15.6.3 | RGB format . . . . . | 468 |
| 15.6.4 | YCbCr format . . . . . | 468 |
| 15.7 | DCMI interrupts . . . . . | 469 |
| 15.8 | DCMI register description . . . . . | 469 |
| 15.8.1 | DCMI control register 1 (DCMI_CR) . . . . . | 469 |
| 15.8.2 | DCMI status register (DCMI_SR) . . . . . | 471 |
| 15.8.3 | DCMI raw interrupt status register (DCMI_RIS) . . . . . | 472 |
| 15.8.4 | DCMI interrupt enable register (DCMI_IER) . . . . . | 473 |
| 15.8.5 | DCMI masked interrupt status register (DCMI_MIS) . . . . . | 474 |
| 15.8.6 | DCMI interrupt clear register (DCMI_ICR) . . . . . | 475 |
| 15.8.7 | DCMI embedded synchronization code register (DCMI_ESCR) . . . . . | 475 |
| 15.8.8 | DCMI embedded synchronization unmask register (DCMI_ESUR) . . . . . | 476 |
| 15.8.9 | DCMI crop window start (DCMI_CWSTRT) . . . . . | 477 |
| 15.8.10 | DCMI crop window size (DCMI_CWSIZE) . . . . . | 477 |
| 15.8.11 | DCMI data register (DCMI_DR) . . . . . | 478 |
| 15.8.12 | DCMI register map . . . . . | 478 |
| 16 | LCD-TFT controller (LTDC) . . . . . | 480 |
| 16.1 | Introduction . . . . . | 480 |
| 16.2 | LTDC main features . . . . . | 480 |
| 16.3 | LTDC functional description . . . . . | 481 |
| 16.3.1 | LTDC block diagram | 481 |
| 16.3.2 | LTDC reset and clocks | 481 |
| 16.3.3 | LCD-TFT pins and signal interface | 483 |
| 16.4 | LTDC programmable parameters | 483 |
| 16.4.1 | LTDC Global configuration parameters | 483 |
| 16.4.2 | Layer programmable parameters | 486 |
| 16.5 | LTDC interrupts | 490 |
| 16.6 | LTDC programming procedure | 492 |
| 16.7 | LTDC registers | 493 |
| 16.7.1 | LTDC Synchronization Size Configuration Register (LTDC_SSCR) | 493 |
| 16.7.2 | LTDC Back Porch Configuration Register (LTDC_BPCR) | 493 |
| 16.7.3 | LTDC Active Width Configuration Register (LTDC_AWCR) | 494 |
| 16.7.4 | LTDC Total Width Configuration Register (LTDC_TWCR) | 495 |
| 16.7.5 | LTDC Global Control Register (LTDC_GCR) | 495 |
| 16.7.6 | LTDC Shadow Reload Configuration Register (LTDC_SRCR) | 497 |
| 16.7.7 | LTDC Background Color Configuration Register (LTDC_BCCR) | 497 |
| 16.7.8 | LTDC Interrupt Enable Register (LTDC_IER) | 498 |
| 16.7.9 | LTDC Interrupt Status Register (LTDC_ISR) | 499 |
| 16.7.10 | LTDC Interrupt Clear Register (LTDC_ICR) | 499 |
| 16.7.11 | LTDC Line Interrupt Position Configuration Register (LTDC_LIPCR) | 500 |
| 16.7.12 | LTDC Current Position Status Register (LTDC_CPSR) | 500 |
| 16.7.13 | LTDC Current Display Status Register (LTDC_CDSR) | 501 |
| 16.7.14 | LTDC Layerx Control Register (LTDC_LxCR) (where x=1..2) | 502 |
| 16.7.15 | LTDC Layerx Window Horizontal Position Configuration Register (LTDC_LxWHPCR) (where x=1..2) | 503 |
| 16.7.16 | LTDC Layerx Window Vertical Position Configuration Register (LTDC_LxWVPCR) (where x=1..2) | 504 |
| 16.7.17 | LTDC Layerx Color Keying Configuration Register (LTDC_LxCKCR) (where x=1..2) | 505 |
| 16.7.18 | LTDC Layerx Pixel Format Configuration Register (LTDC_LxPFCR) (where x=1..2) | 505 |
| 16.7.19 | LTDC Layerx Constant Alpha Configuration Register (LTDC_LxCACR) (where x=1..2) | 506 |
| 16.7.20 | LTDC Layerx Default Color Configuration Register (LTDC_LxDCCR) (where x=1..2) | 506 |
| 16.7.21 | LTDC Layerx Blending Factors Configuration Register (LTDC_LxBFCR) (where x=1..2) | 508 |
| 16.7.22 | LTDC Layerx Color Frame Buffer Address Register (LTDC_LxCFBAR) (where x=1..2) | 509 |
| 16.7.23 | LTDC Layerx Color Frame Buffer Length Register (LTDC_LxCFBLR) (where x=1..2) ..... | 509 |
| 16.7.24 | LTDC Layerx ColorFrame Buffer Line Number Register (LTDC_LxCFBLNR) (where x=1..2) ..... | 510 |
| 16.7.25 | LTDC Layerx CLUT Write Register (LTDC_LxCLUTWR) (where x=1..2) ..... | 511 |
| 16.7.26 | LTDC register map ..... | 512 |
| 17 | Advanced-control timers (TIM1 and TIM8) ..... | 515 |
| 17.1 | TIM1 and TIM8 introduction ..... | 515 |
| 17.2 | TIM1 and TIM8 main features ..... | 515 |
| 17.3 | TIM1 and TIM8 functional description ..... | 517 |
| 17.3.1 | Time-base unit ..... | 517 |
| 17.3.2 | Counter modes ..... | 519 |
| 17.3.3 | Repetition counter ..... | 528 |
| 17.3.4 | Clock selection ..... | 531 |
| 17.3.5 | Capture/compare channels ..... | 534 |
| 17.3.6 | Input capture mode ..... | 537 |
| 17.3.7 | PWM input mode ..... | 538 |
| 17.3.8 | Forced output mode ..... | 538 |
| 17.3.9 | Output compare mode ..... | 539 |
| 17.3.10 | PWM mode ..... | 540 |
| 17.3.11 | Complementary outputs and dead-time insertion ..... | 543 |
| 17.3.12 | Using the break function ..... | 545 |
| 17.3.13 | Clearing the OCxREF signal on an external event ..... | 548 |
| 17.3.14 | 6-step PWM generation ..... | 549 |
| 17.3.15 | One-pulse mode ..... | 550 |
| 17.3.16 | Encoder interface mode ..... | 551 |
| 17.3.17 | Timer input XOR function ..... | 554 |
| 17.3.18 | Interfacing with Hall sensors ..... | 554 |
| 17.3.19 | TIMx and external trigger synchronization ..... | 556 |
| 17.3.20 | Timer synchronization ..... | 559 |
| 17.3.21 | Debug mode ..... | 559 |
| 17.4 | TIM1 and TIM8 registers ..... | 560 |
| 17.4.1 | TIM1 and TIM8 control register 1 (TIMx_CR1) ..... | 560 |
| 17.4.2 | TIM1 and TIM8 control register 2 (TIMx_CR2) ..... | 561 |
| 17.4.3 | TIM1 and TIM8 slave mode control register (TIMx_SMCR) ..... | 563 |
| 17.4.4 | TIM1 and TIM8 DMA/interrupt enable register (TIMx_DIER) ..... | 565 |
| 17.4.5 | TIM1 and TIM8 status register (TIMx_SR) . . . . . | 567 |
| 17.4.6 | TIM1 and TIM8 event generation register (TIMx_EGR) . . . . . | 568 |
| 17.4.7 | TIM1 and TIM8 capture/compare mode register 1 (TIMx_CCMR1) . . . | 569 |
| 17.4.8 | TIM1 and TIM8 capture/compare mode register 2 (TIMx_CCMR2) . . . | 572 |
| 17.4.9 | TIM1 and TIM8 capture/compare enable register (TIMx_CCER) . . . . | 574 |
| 17.4.10 | TIM1 and TIM8 counter (TIMx_CNT) . . . . . | 577 |
| 17.4.11 | TIM1 and TIM8 prescaler (TIMx_PSC) . . . . . | 577 |
| 17.4.12 | TIM1 and TIM8 auto-reload register (TIMx_ARR) . . . . . | 577 |
| 17.4.13 | TIM1 and TIM8 repetition counter register (TIMx_RCR) . . . . . | 578 |
| 17.4.14 | TIM1 and TIM8 capture/compare register 1 (TIMx_CCR1) . . . . . | 578 |
| 17.4.15 | TIM1 and TIM8 capture/compare register 2 (TIMx_CCR2) . . . . . | 579 |
| 17.4.16 | TIM1 and TIM8 capture/compare register 3 (TIMx_CCR3) . . . . . | 579 |
| 17.4.17 | TIM1 and TIM8 capture/compare register 4 (TIMx_CCR4) . . . . . | 580 |
| 17.4.18 | TIM1 and TIM8 break and dead-time register (TIMx_BDTR) . . . . . | 580 |
| 17.4.19 | TIM1 and TIM8 DMA control register (TIMx_DCR) . . . . . | 582 |
| 17.4.20 | TIM1 and TIM8 DMA address for full transfer (TIMx_DMAR) . . . . . | 583 |
| 17.4.21 | TIM1 and TIM8 register map . . . . . | 584 |
| 18 | General-purpose timers (TIM2 to TIM5) . . . . . | 586 |
| 18.1 | TIM2 to TIM5 introduction . . . . . | 586 |
| 18.2 | TIM2 to TIM5 main features . . . . . | 586 |
| 18.3 | TIM2 to TIM5 functional description . . . . . | 588 |
| 18.3.1 | Time-base unit . . . . . | 588 |
| 18.3.2 | Counter modes . . . . . | 589 |
| 18.3.3 | Clock selection . . . . . | 599 |
| 18.3.4 | Capture/compare channels . . . . . | 602 |
| 18.3.5 | Input capture mode . . . . . | 604 |
| 18.3.6 | PWM input mode . . . . . | 605 |
| 18.3.7 | Forced output mode . . . . . | 606 |
| 18.3.8 | Output compare mode . . . . . | 606 |
| 18.3.9 | PWM mode . . . . . | 607 |
| 18.3.10 | One-pulse mode . . . . . | 610 |
| 18.3.11 | Clearing the OCxREF signal on an external event . . . . . | 611 |
| 18.3.12 | Encoder interface mode . . . . . | 612 |
| 18.3.13 | Timer input XOR function . . . . . | 615 |
| 18.3.14 | Timers and external trigger synchronization . . . . . | 615 |
| 18.3.15 | Timer synchronization . . . . . | 618 |
| 18.3.16 | Debug mode | 623 |
| 18.4 | TIM2 to TIM5 registers | 624 |
| 18.4.1 | TIMx control register 1 (TIMx_CR1) | 624 |
| 18.4.2 | TIMx control register 2 (TIMx_CR2) | 625 |
| 18.4.3 | TIMx slave mode control register (TIMx_SMCR) | 626 |
| 18.4.4 | TIMx DMA/Interrupt enable register (TIMx_DIER) | 629 |
| 18.4.5 | TIMx status register (TIMx_SR) | 630 |
| 18.4.6 | TIMx event generation register (TIMx_EGR) | 631 |
| 18.4.7 | TIMx capture/compare mode register 1 (TIMx_CCMR1) | 632 |
| 18.4.8 | TIMx capture/compare mode register 2 (TIMx_CCMR2) | 635 |
| 18.4.9 | TIMx capture/compare enable register (TIMx_CCER) | 636 |
| 18.4.10 | TIMx counter (TIMx_CNT) | 638 |
| 18.4.11 | TIMx prescaler (TIMx_PSC) | 638 |
| 18.4.12 | TIMx auto-reload register (TIMx_ARR) | 638 |
| 18.4.13 | TIMx capture/compare register 1 (TIMx_CCR1) | 639 |
| 18.4.14 | TIMx capture/compare register 2 (TIMx_CCR2) | 639 |
| 18.4.15 | TIMx capture/compare register 3 (TIMx_CCR3) | 640 |
| 18.4.16 | TIMx capture/compare register 4 (TIMx_CCR4) | 640 |
| 18.4.17 | TIMx DMA control register (TIMx_DCR) | 641 |
| 18.4.18 | TIMx DMA address for full transfer (TIMx_DMAR) | 641 |
| 18.4.19 | TIM2 option register (TIM2_OR) | 642 |
| 18.4.20 | TIM5 option register (TIM5_OR) | 643 |
| 18.4.21 | TIMx register map | 644 |
| 19 | General-purpose timers (TIM9 to TIM14) | 646 |
| 19.1 | TIM9 to TIM14 introduction | 646 |
| 19.2 | TIM9 to TIM14 main features | 646 |
| 19.2.1 | TIM9/TIM12 main features | 646 |
| 19.2.2 | TIM10/TIM11 and TIM13/TIM14 main features | 647 |
| 19.3 | TIM9 to TIM14 functional description | 649 |
| 19.3.1 | Time-base unit | 649 |
| 19.3.2 | Counter modes | 651 |
| 19.3.3 | Clock selection | 654 |
| 19.3.4 | Capture/compare channels | 656 |
| 19.3.5 | Input capture mode | 657 |
| 19.3.6 | PWM input mode (only for TIM9/12) | 659 |
| 19.3.7 | Forced output mode | 660 |
| 19.3.8 | Output compare mode | 660 |
| 19.3.9 | PWM mode | 661 |
| 19.3.10 | One-pulse mode | 662 |
| 19.3.11 | TIM9/12 external trigger synchronization | 664 |
| 19.3.12 | Timer synchronization (TIM9/12) | 667 |
| 19.3.13 | Debug mode | 667 |
| 19.4 | TIM9 and TIM12 registers | 668 |
| 19.4.1 | TIM9/12 control register 1 (TIMx_CR1) | 668 |
| 19.4.2 | TIM9/12 slave mode control register (TIMx_SMCR) | 669 |
| 19.4.3 | TIM9/12 Interrupt enable register (TIMx_DIER) | 670 |
| 19.4.4 | TIM9/12 status register (TIMx_SR) | 672 |
| 19.4.5 | TIM9/12 event generation register (TIMx_EGR) | 673 |
| 19.4.6 | TIM9/12 capture/compare mode register 1 (TIMx_CCMR1) | 674 |
| 19.4.7 | TIM9/12 capture/compare enable register (TIMx_CCER) | 677 |
| 19.4.8 | TIM9/12 counter (TIMx_CNT) | 678 |
| 19.4.9 | TIM9/12 prescaler (TIMx_PSC) | 678 |
| 19.4.10 | TIM9/12 auto-reload register (TIMx_ARR) | 678 |
| 19.4.11 | TIM9/12 capture/compare register 1 (TIMx_CCR1) | 679 |
| 19.4.12 | TIM9/12 capture/compare register 2 (TIMx_CCR2) | 679 |
| 19.4.13 | TIM9/12 register map | 680 |
| 19.5 | TIM10/11/13/14 registers | 682 |
| 19.5.1 | TIM10/11/13/14 control register 1 (TIMx_CR1) | 682 |
| 19.5.2 | TIM10/11/13/14 Interrupt enable register (TIMx_DIER) | 683 |
| 19.5.3 | TIM10/11/13/14 status register (TIMx_SR) | 683 |
| 19.5.4 | TIM10/11/13/14 event generation register (TIMx_EGR) | 684 |
| 19.5.5 | TIM10/11/13/14 capture/compare mode register 1 (TIMx_CCMR1) | 684 |
| 19.5.6 | TIM10/11/13/14 capture/compare enable register (TIMx_CCER) | 687 |
| 19.5.7 | TIM10/11/13/14 counter (TIMx_CNT) | 688 |
| 19.5.8 | TIM10/11/13/14 prescaler (TIMx_PSC) | 688 |
| 19.5.9 | TIM10/11/13/14 auto-reload register (TIMx_ARR) | 688 |
| 19.5.10 | TIM10/11/13/14 capture/compare register 1 (TIMx_CCR1) | 689 |
| 19.5.11 | TIM11 option register 1 (TIM11_OR) | 689 |
| 19.5.12 | TIM10/11/13/14 register map | 690 |
| 20 | Basic timers (TIM6 and TIM7) | 692 |
| 20.1 | TIM6 and TIM7 introduction | 692 |
| 20.2 | TIM6 and TIM7 main features | 692 |
| 20.3 | TIM6 and TIM7 functional description | 693 |
| 20.3.1 | Time-base unit | 693 |
| 20.3.2 | Counting mode | 695 |
| 20.3.3 | Clock source | 697 |
| 20.3.4 | Debug mode | 698 |
| 20.4 | TIM6 and TIM7 registers | 698 |
| 20.4.1 | TIM6 and TIM7 control register 1 (TIMx_CR1) | 698 |
| 20.4.2 | TIM6 and TIM7 control register 2 (TIMx_CR2) | 700 |
| 20.4.3 | TIM6 and TIM7 DMA/Interrupt enable register (TIMx_DIER) | 700 |
| 20.4.4 | TIM6 and TIM7 status register (TIMx_SR) | 701 |
| 20.4.5 | TIM6 and TIM7 event generation register (TIMx_EGR) | 701 |
| 20.4.6 | TIM6 and TIM7 counter (TIMx_CNT) | 701 |
| 20.4.7 | TIM6 and TIM7 prescaler (TIMx_PSC) | 702 |
| 20.4.8 | TIM6 and TIM7 auto-reload register (TIMx_ARR) | 702 |
| 20.4.9 | TIM6 and TIM7 register map | 703 |
| 21 | Independent watchdog (IWDG) | 704 |
| 21.1 | IWDG introduction | 704 |
| 21.2 | IWDG main features | 704 |
| 21.3 | IWDG functional description | 704 |
| 21.3.1 | Hardware watchdog | 704 |
| 21.3.2 | Register access protection | 704 |
| 21.3.3 | Debug mode | 705 |
| 21.4 | IWDG registers | 706 |
| 21.4.1 | Key register (IWDG_KR) | 706 |
| 21.4.2 | Prescaler register (IWDG_PR) | 706 |
| 21.4.3 | Reload register (IWDG_RLR) | 707 |
| 21.4.4 | Status register (IWDG_SR) | 707 |
| 21.4.5 | IWDG register map | 708 |
| 22 | Window watchdog (WWDG) | 709 |
| 22.1 | WWDG introduction | 709 |
| 22.2 | WWDG main features | 709 |
| 22.3 | WWDG functional description | 709 |
| 22.4 | How to program the watchdog timeout | 711 |
| 22.5 | Debug mode | 712 |
| 22.6 | WWDG registers | 713 |
| 22.6.1 | Control register (WWDG_CR) | 713 |
| 22.6.2 | Configuration register (WWDG_CFR) | 714 |
| 22.6.3 | Status register (WWDG_SR) | 714 |
| 22.6.4 | WWDG register map | 715 |
| 23 | Cryptographic processor (CRYP) | 716 |
| 23.1 | CRYP introduction | 716 |
| 23.2 | CRYP main features | 716 |
| 23.3 | CRYP functional description | 718 |
| 23.3.1 | DES/TDES cryptographic core | 719 |
| 23.3.2 | AES cryptographic core | 724 |
| 23.3.3 | Data type | 735 |
| 23.3.4 | Initialization vectors - CRYP_IV0...1(L/R) | 738 |
| 23.3.5 | CRYP busy state | 739 |
| 23.3.6 | Procedure to perform an encryption or a decryption | 740 |
| 23.3.7 | Context swapping | 741 |
| 23.4 | CRYP interrupts | 743 |
| 23.5 | CRYP DMA interface | 744 |
| 23.6 | CRYP registers | 744 |
| 23.6.1 | CRYP control register (CRYP_CR) for STM32F415/417xx | 744 |
| 23.6.2 | CRYP control register (CRYP_CR) for STM32F415/417xx | 746 |
| 23.6.3 | CRYP status register (CRYP_SR) | 749 |
| 23.6.4 | CRYP data input register (CRYP_DIN) | 750 |
| 23.6.5 | CRYP data output register (CRYP_DOUT) | 751 |
| 23.6.6 | CRYP DMA control register (CRYP_DMACR) | 752 |
| 23.6.7 | CRYP interrupt mask set/clear register (CRYP_IMSCR) | 752 |
| 23.6.8 | CRYP raw interrupt status register (CRYP_RISR) | 753 |
| 23.6.9 | CRYP masked interrupt status register (CRYP_MISR) | 753 |
| 23.6.10 | CRYP key registers (CRYP_K0...3(L/R)R) | 754 |
| 23.6.11 | CRYP initialization vector registers (CRYP_IV0...1(L/R)R) | 756 |
| 23.6.12 | CRYP context swap registers (CRYP_CSGCMCCM0..7R and CRYP_CSGCM0..7R) for STM32F42xxx and STM32F43xxx | 758 |
| 23.6.13 | CRYP register map | 759 |
| 24 | Random number generator (RNG) | 763 |
| 24.1 | RNG introduction | 763 |
| 24.2 | RNG main features . . . . . | 763 |
| 24.3 | RNG functional description . . . . . | 763 |
| 24.3.1 | Operation . . . . . | 764 |
| 24.3.2 | Error management . . . . . | 764 |
| 24.4 | RNG registers . . . . . | 764 |
| 24.4.1 | RNG control register (RNG_CR) . . . . . | 765 |
| 24.4.2 | RNG status register (RNG_SR) . . . . . | 765 |
| 24.4.3 | RNG data register (RNG_DR) . . . . . | 766 |
| 24.4.4 | RNG register map . . . . . | 767 |
| 25 | Hash processor (HASH) . . . . . | 768 |
| 25.1 | HASH introduction . . . . . | 768 |
| 25.2 | HASH main features . . . . . | 768 |
| 25.3 | HASH functional description . . . . . | 769 |
| 25.3.1 | Duration of the processing . . . . . | 771 |
| 25.3.2 | Data type . . . . . | 771 |
| 25.3.3 | Message digest computing . . . . . | 773 |
| 25.3.4 | Message padding . . . . . | 774 |
| 25.3.5 | Hash operation . . . . . | 775 |
| 25.3.6 | HMAC operation . . . . . | 775 |
| 25.3.7 | Context swapping . . . . . | 776 |
| 25.3.8 | HASH interrupt . . . . . | 778 |
| 25.4 | HASH registers . . . . . | 778 |
| 25.4.1 | HASH control register (HASH_CR) for STM32F415/417xx . . . . . | 778 |
| 25.4.2 | HASH control register (HASH_CR) for STM32F43xxx . . . . . | 781 |
| 25.4.3 | HASH data input register (HASH_DIN) . . . . . | 784 |
| 25.4.4 | HASH start register (HASH_STR) . . . . . | 785 |
| 25.4.5 | HASH digest registers (HASH_HR0..4/5/6/7) . . . . . | 786 |
| 25.4.6 | HASH interrupt enable register (HASH_IMR) . . . . . | 788 |
| 25.4.7 | HASH status register (HASH_SR) . . . . . | 789 |
| 25.4.8 | HASH context swap registers (HASH_CSRx) . . . . . | 790 |
| 25.4.9 | HASH register map . . . . . | 791 |
| 26 | Real-time clock (RTC) . . . . . | 794 |
| 26.1 | Introduction . . . . . | 794 |
| 26.2 | RTC main features . . . . . | 795 |
| 26.3 | RTC functional description | 797 |
| 26.3.1 | Clock and prescalers | 797 |
| 26.3.2 | Real-time clock and calendar | 798 |
| 26.3.3 | Programmable alarms | 798 |
| 26.3.4 | Periodic auto-wakeup | 798 |
| 26.3.5 | RTC initialization and configuration | 799 |
| 26.3.6 | Reading the calendar | 801 |
| 26.3.7 | Resetting the RTC | 802 |
| 26.3.8 | RTC synchronization | 802 |
| 26.3.9 | RTC reference clock detection | 803 |
| 26.3.10 | RTC coarse digital calibration | 804 |
| 26.3.11 | RTC smooth digital calibration | 805 |
| 26.3.12 | Timestamp function | 807 |
| 26.3.13 | Tamper detection | 807 |
| 26.3.14 | Calibration clock output | 809 |
| 26.3.15 | Alarm output | 809 |
| 26.4 | RTC and low-power modes | 810 |
| 26.5 | RTC interrupts | 810 |
| 26.6 | RTC registers | 812 |
| 26.6.1 | RTC time register (RTC_TR) | 812 |
| 26.6.2 | RTC date register (RTC_DR) | 813 |
| 26.6.3 | RTC control register (RTC_CR) | 814 |
| 26.6.4 | RTC initialization and status register (RTC_ISR) | 816 |
| 26.6.5 | RTC prescaler register (RTC_PRER) | 819 |
| 26.6.6 | RTC wake-up timer register (RTC_WUTR) | 819 |
| 26.6.7 | RTC calibration register (RTC_CALIBR) | 820 |
| 26.6.8 | RTC alarm A register (RTC_ALRMAR) | 821 |
| 26.6.9 | RTC alarm B register (RTC_ALRMBR) | 822 |
| 26.6.10 | RTC write protection register (RTC_WPR) | 823 |
| 26.6.11 | RTC sub second register (RTC_SSR) | 823 |
| 26.6.12 | RTC shift control register (RTC_SHIFTR) | 824 |
| 26.6.13 | RTC time stamp time register (RTC_TSTR) | 824 |
| 26.6.14 | RTC time stamp date register (RTC_TSDR) | 825 |
| 26.6.15 | RTC timestamp sub second register (RTC_TSSSR) | 826 |
| 26.6.16 | RTC calibration register (RTC_CALR) | 826 |
| 26.6.17 | RTC tamper and alternate function configuration register (RTC_TAFCR) | 828 |
| 26.6.18 | RTC alarm A sub second register (RTC_ALRMASSR) ..... | 830 |
| 26.6.19 | RTC alarm B sub second register (RTC_ALRMBSSR) ..... | 831 |
| 26.6.20 | RTC backup registers (RTC_BKPxR) ..... | 832 |
| 26.6.21 | RTC register map ..... | 832 |
| 27 | Inter-integrated circuit (I2C) interface ..... | 835 |
| 27.1 | I2C introduction ..... | 835 |
| 27.2 | I2C main features ..... | 835 |
| 27.3 | I2C functional description ..... | 836 |
| 27.3.1 | Mode selection ..... | 836 |
| 27.3.2 | I2C target mode ..... | 839 |
| 27.3.3 | I2C controller mode ..... | 841 |
| 27.3.4 | Error conditions ..... | 846 |
| 27.3.5 | Programmable noise filter ..... | 847 |
| 27.3.6 | SDA/SCL line control ..... | 848 |
| 27.3.7 | SMBus ..... | 848 |
| 27.3.8 | DMA requests ..... | 851 |
| 27.3.9 | Packet error checking ..... | 852 |
| 27.4 | I2C interrupts ..... | 853 |
| 27.5 | I2C debug mode ..... | 855 |
| 27.6 | I2C registers ..... | 855 |
| 27.6.1 | I2C Control register 1 (I2C_CR1) ..... | 855 |
| 27.6.2 | I2C Control register 2 (I2C_CR2) ..... | 857 |
| 27.6.3 | I2C Own address register 1 (I2C_OAR1) ..... | 859 |
| 27.6.4 | I2C Own address register 2 (I2C_OAR2) ..... | 859 |
| 27.6.5 | I2C Data register (I2C_DR) ..... | 860 |
| 27.6.6 | I2C Status register 1 (I2C_SR1) ..... | 860 |
| 27.6.7 | I2C Status register 2 (I2C_SR2) ..... | 863 |
| 27.6.8 | I2C Clock control register (I2C_CCR) ..... | 865 |
| 27.6.9 | I2C TRISE register (I2C_TRISE) ..... | 866 |
| 27.6.10 | I2C FLTR register (I2C_FLTR) ..... | 866 |
| 27.6.11 | I2C register map ..... | 867 |
| 28 | Serial peripheral interface (SPI) ..... | 868 |
| 28.1 | SPI introduction ..... | 868 |
| 28.2 | SPI and I2S main features ..... | 869 |
| 28.2.1 | SPI features ..... | 869 |
| 28.2.2 | I2S features ..... | 869 |
| 28.3 | SPI functional description ..... | 871 |
| 28.3.1 | General description ..... | 871 |
| 28.3.2 | Configuring the SPI in slave mode ..... | 875 |
| 28.3.3 | Configuring the SPI in master mode ..... | 877 |
| 28.3.4 | Configuring the SPI for half-duplex communication ..... | 879 |
| 28.3.5 | Data transmission and reception procedures ..... | 880 |
| 28.3.6 | CRC calculation ..... | 886 |
| 28.3.7 | Status flags ..... | 887 |
| 28.3.8 | Disabling the SPI ..... | 888 |
| 28.3.9 | SPI communication using DMA (direct memory addressing) ..... | 889 |
| 28.3.10 | Error flags ..... | 891 |
| 28.3.11 | SPI interrupts ..... | 893 |
| 28.4 | I2S functional description ..... | 894 |
| 28.4.1 | I2S general description ..... | 894 |
| 28.4.2 | I2S full duplex ..... | 895 |
| 28.4.3 | Supported audio protocols ..... | 896 |
| 28.4.4 | Clock generator ..... | 902 |
| 28.4.5 | I2S master mode ..... | 904 |
| 28.4.6 | I2S slave mode ..... | 906 |
| 28.4.7 | Status flags ..... | 908 |
| 28.4.8 | Error flags ..... | 909 |
| 28.4.9 | I2S interrupts ..... | 910 |
| 28.4.10 | DMA features ..... | 910 |
| 28.5 | SPI and I2S registers ..... | 911 |
| 28.5.1 | SPI control register 1 (SPI_CR1) (not used in I2S mode) ..... | 911 |
| 28.5.2 | SPI control register 2 (SPI_CR2) ..... | 913 |
| 28.5.3 | SPI status register (SPI_SR) ..... | 914 |
| 28.5.4 | SPI data register (SPI_DR) ..... | 915 |
| 28.5.5 | SPI CRC polynomial register (SPI_CRCPR) (not used in I2S mode) ..... | 916 |
| 28.5.6 | SPI RX CRC register (SPI_RXCRCR) (not used in I2S mode) ..... | 916 |
| 28.5.7 | SPI TX CRC register (SPI_TXCRCR) (not used in I2S mode) ..... | 916 |
| 28.5.8 | SPI_I2S configuration register (SPI_I2SCFGR) ..... | 917 |
| 28.5.9 | SPI_I2S prescaler register (SPI_I2SPR) ..... | 918 |
| 28.5.10 | SPI register map ..... | 920 |
| 29 | Serial audio interface (SAI) ..... | 921 |
| 29.1 | Introduction ..... | 921 |
| 29.2 | Main features ..... | 922 |
| 29.3 | Functional block diagram ..... | 923 |
| 29.4 | Main SAI modes ..... | 924 |
| 29.5 | SAI synchronization mode ..... | 925 |
| 29.6 | Audio data size ..... | 925 |
| 29.7 | Frame synchronization ..... | 925 |
| 29.7.1 | Frame length ..... | 926 |
| 29.7.2 | Frame synchronization polarity ..... | 926 |
| 29.7.3 | Frame synchronization active level length ..... | 927 |
| 29.7.4 | Frame synchronization offset ..... | 927 |
| 29.7.5 | FS signal role ..... | 927 |
| 29.8 | Slot configuration ..... | 928 |
| 29.9 | SAI clock generator ..... | 930 |
| 29.10 | Internal FIFOs ..... | 931 |
| 29.11 | AC'97 link controller ..... | 934 |
| 29.12 | Specific features ..... | 935 |
| 29.12.1 | Mute mode ..... | 935 |
| 29.12.2 | MONO/STEREO function ..... | 935 |
| 29.12.3 | Companding mode ..... | 936 |
| 29.12.4 | Output data line management on an inactive slot ..... | 937 |
| 29.13 | Error flags ..... | 939 |
| 29.13.1 | FIFO overrun/underrun (OVRUDR) ..... | 939 |
| 29.13.2 | Anticipated frame synchronisation detection (AFSDDET) ..... | 941 |
| 29.13.3 | Late frame synchronization detection ..... | 941 |
| 29.13.4 | Codec not ready (CNRDY AC'97) ..... | 942 |
| 29.13.5 | Wrong clock configuration in master mode (with NODIV = 0) ..... | 942 |
| 29.14 | Interrupt sources ..... | 943 |
| 29.15 | Disabling the SAI ..... | 943 |
| 29.16 | SAI DMA interface ..... | 944 |
| 29.17 | SAI registers ..... | 945 |
| 29.17.1 | SAI x configuration register 1 (SAI_xCR1) where x is A or B ..... | 945 |
| 29.17.2 | SAI x configuration register 2 (SAI_xCR2) where x is A or B ..... | 948 |
| 29.17.3 | SAI x frame configuration register (SAI_XFRCR) where x is A or B .. | 950 |
| 29.17.4 | SAI x slot register (SAI_xSLOTR) where x is A or B | 952 |
| 29.17.5 | SAI x interrupt mask register (SAI_xIM) where x is A or B | 953 |
| 29.17.6 | SAI x status register (SAI_xSR) where x is A or B | 955 |
| 29.17.7 | SAI x clear flag register (SAI_xCLRFR) where X is A or B | 957 |
| 29.17.8 | SAI x data register (SAI_xDR) where x is A or B | 958 |
| 29.17.9 | SAI register map | 958 |
| 30 | Universal synchronous asynchronous receiver transmitter (USART) | 960 |
| 30.1 | USART introduction | 960 |
| 30.2 | USART main features | 960 |
| 30.3 | USART functional description | 961 |
| 30.3.1 | USART character description | 964 |
| 30.3.2 | Transmitter | 965 |
| 30.3.3 | Receiver | 968 |
| 30.3.4 | Fractional baud rate generation | 973 |
| 30.3.5 | USART receiver tolerance to clock deviation | 983 |
| 30.3.6 | Multiprocessor communication | 984 |
| 30.3.7 | Parity control | 986 |
| 30.3.8 | LIN (local interconnection network) mode | 987 |
| 30.3.9 | USART synchronous mode | 989 |
| 30.3.10 | Single-wire half-duplex communication | 991 |
| 30.3.11 | Smartcard | 992 |
| 30.3.12 | IrDA SIR ENDEC block | 994 |
| 30.3.13 | Continuous communication using DMA | 996 |
| 30.3.14 | Hardware flow control | 998 |
| 30.4 | USART interrupts | 1001 |
| 30.5 | USART mode configuration | 1002 |
| 30.6 | USART registers | 1002 |
| 30.6.1 | Status register (USART_SR) | 1002 |
| 30.6.2 | Data register (USART_DR) | 1005 |
| 30.6.3 | Baud rate register (USART_BRR) | 1005 |
| 30.6.4 | Control register 1 (USART_CR1) | 1005 |
| 30.6.5 | Control register 2 (USART_CR2) | 1008 |
| 30.6.6 | Control register 3 (USART_CR3) | 1009 |
| 30.6.7 | Guard time and prescaler register (USART_GTPR) | 1012 |
| 30.6.8 | USART register map | 1013 |
| 31 | Secure digital input/output interface (SDIO) . . . . . | 1014 |
| 31.1 | SDIO main features . . . . . | 1014 |
| 31.2 | SDIO bus topology . . . . . | 1015 |
| 31.3 | SDIO functional description . . . . . | 1017 |
| 31.3.1 | SDIO adapter . . . . . | 1018 |
| 31.3.2 | SDIO APB2 interface . . . . . | 1028 |
| 31.4 | Card functional description . . . . . | 1029 |
| 31.4.1 | Card identification mode . . . . . | 1029 |
| 31.4.2 | Card reset . . . . . | 1029 |
| 31.4.3 | Operating voltage range validation . . . . . | 1029 |
| 31.4.4 | Card identification process . . . . . | 1030 |
| 31.4.5 | Block write . . . . . | 1031 |
| 31.4.6 | Block read . . . . . | 1031 |
| 31.4.7 | Stream access, stream write and stream read (MultiMediaCard only) . . . . . | 1032 |
| 31.4.8 | Erase: group erase and sector erase . . . . . | 1033 |
| 31.4.9 | Wide bus selection or deselection . . . . . | 1034 |
| 31.4.10 | Protection management . . . . . | 1034 |
| 31.4.11 | Card status register . . . . . | 1037 |
| 31.4.12 | SD status register . . . . . | 1040 |
| 31.4.13 | SD I/O mode . . . . . | 1044 |
| 31.4.14 | Commands and responses . . . . . | 1045 |
| 31.5 | Response formats . . . . . | 1048 |
| 31.5.1 | R1 (normal response command) . . . . . | 1049 |
| 31.5.2 | R1b . . . . . | 1049 |
| 31.5.3 | R2 (CID, CSD register) . . . . . | 1049 |
| 31.5.4 | R3 (OCR register) . . . . . | 1049 |
| 31.5.5 | R4 (Fast I/O) . . . . . | 1050 |
| 31.5.6 | R4b . . . . . | 1050 |
| 31.5.7 | R5 (interrupt request) . . . . . | 1051 |
| 31.5.8 | R6 . . . . . | 1051 |
| 31.6 | SDIO I/O card-specific operations . . . . . | 1052 |
| 31.6.1 | SDIO I/O read wait operation by SDIO_D2 signaling . . . . . | 1052 |
| 31.6.2 | SDIO read wait operation by stopping SDIO_CK . . . . . | 1052 |
| 31.6.3 | SDIO suspend/resume operation . . . . . | 1053 |
| 31.6.4 | SDIO interrupts . . . . . | 1053 |
| 31.7 | CE-ATA specific operations | 1053 |
| 31.7.1 | Command completion signal disable | 1053 |
| 31.7.2 | Command completion signal enable | 1053 |
| 31.7.3 | CE-ATA interrupt | 1054 |
| 31.7.4 | Aborting CMD61 | 1054 |
| 31.8 | HW flow control | 1054 |
| 31.9 | SDIO registers | 1054 |
| 31.9.1 | SDIO power control register (SDIO_POWER) | 1054 |
| 31.9.2 | SDI clock control register (SDIO_CLKCR) | 1055 |
| 31.9.3 | SDIO argument register (SDIO_ARG) | 1056 |
| 31.9.4 | SDIO command register (SDIO_CMD) | 1056 |
| 31.9.5 | SDIO command response register (SDIO_RESPCMD) | 1057 |
| 31.9.6 | SDIO response 1..4 register (SDIO_RESPx) | 1058 |
| 31.9.7 | SDIO data timer register (SDIO_DTIMER) | 1058 |
| 31.9.8 | SDIO data length register (SDIO_DLEN) | 1059 |
| 31.9.9 | SDIO data control register (SDIO_DCTRL) | 1060 |
| 31.9.10 | SDIO data counter register (SDIO_DCOUNT) | 1061 |
| 31.9.11 | SDIO status register (SDIO_STA) | 1061 |
| 31.9.12 | SDIO interrupt clear register (SDIO_ICR) | 1063 |
| 31.9.13 | SDIO mask register (SDIO_MASK) | 1064 |
| 31.9.14 | SDIO FIFO counter register (SDIO_FIFOCNT) | 1067 |
| 31.9.15 | SDIO data FIFO register (SDIO_FIFO) | 1067 |
| 31.9.16 | SDIO register map | 1068 |
| 32 | Controller area network (bxCAN) | 1069 |
| 32.1 | bxCAN introduction | 1069 |
| 32.2 | bxCAN main features | 1069 |
| 32.3 | bxCAN general description | 1070 |
| 32.3.1 | CAN 2.0B active core | 1070 |
| 32.3.2 | Control, status and configuration registers | 1071 |
| 32.3.3 | Tx mailboxes | 1071 |
| 32.3.4 | Acceptance filters | 1071 |
| 32.4 | bxCAN operating modes | 1072 |
| 32.4.1 | Initialization mode | 1073 |
| 32.4.2 | Normal mode | 1073 |
| 32.4.3 | Sleep mode (low-power) | 1073 |
| 32.5 | Test mode . . . . . | 1074 |
| 32.5.1 | Silent mode . . . . . | 1074 |
| 32.5.2 | Loop back mode . . . . . | 1075 |
| 32.5.3 | Loop back combined with silent mode . . . . . | 1075 |
| 32.6 | Debug mode . . . . . | 1076 |
| 32.7 | bxCAN functional description . . . . . | 1076 |
| 32.7.1 | Transmission handling . . . . . | 1076 |
| 32.7.2 | Time triggered communication mode . . . . . | 1078 |
| 32.7.3 | Reception handling . . . . . | 1078 |
| 32.7.4 | Identifier filtering . . . . . | 1080 |
| 32.7.5 | Message storage . . . . . | 1084 |
| 32.7.6 | Error management . . . . . | 1086 |
| 32.7.7 | Bit timing . . . . . | 1086 |
| 32.8 | bxCAN interrupts . . . . . | 1088 |
| 32.9 | CAN registers . . . . . | 1090 |
| 32.9.1 | Register access protection . . . . . | 1090 |
| 32.9.2 | CAN control and status registers . . . . . | 1090 |
| 32.9.3 | CAN mailbox registers . . . . . | 1099 |
| 32.9.4 | CAN filter registers . . . . . | 1104 |
| 32.9.5 | bxCAN register map . . . . . | 1109 |
| 33 | Ethernet (ETH): media access control (MAC) with DMA controller . . . . . | 1113 |
| 33.1 | Ethernet introduction . . . . . | 1113 |
| 33.2 | Ethernet main features . . . . . | 1113 |
| 33.2.1 | MAC core features . . . . . | 1114 |
| 33.2.2 | DMA features . . . . . | 1115 |
| 33.2.3 | PTP features . . . . . | 1115 |
| 33.3 | Ethernet pins . . . . . | 1116 |
| 33.4 | Ethernet functional description: SMI, MII and RMII . . . . . | 1117 |
| 33.4.1 | Station management interface: SMI . . . . . | 1117 |
| 33.4.2 | Media-independent interface: MII . . . . . | 1120 |
| 33.4.3 | Reduced media-independent interface: RMII . . . . . | 1122 |
| 33.4.4 | MII/RMII selection . . . . . | 1123 |
| 33.5 | Ethernet functional description: MAC 802.3 . . . . . | 1124 |
| 33.5.1 | MAC 802.3 frame format . . . . . | 1125 |
| 34.4 | OTG dual role device (DRD) . . . . . | 1233 |
| 34.4.1 | ID line detection . . . . . | 1233 |
| 34.4.2 | HNP dual role device . . . . . | 1233 |
| 34.4.3 | SRP dual role device . . . . . | 1234 |
| 34.5 | USB peripheral . . . . . | 1234 |
| 34.5.1 | SRP-capable peripheral . . . . . | 1235 |
| 34.5.2 | Peripheral states . . . . . | 1235 |
| 34.5.3 | Peripheral endpoints . . . . . | 1236 |
| 34.6 | USB host . . . . . | 1238 |
| 34.6.1 | SRP-capable host . . . . . | 1239 |
| 34.6.2 | USB host states . . . . . | 1239 |
| 34.6.3 | Host channels . . . . . | 1241 |
| 34.6.4 | Host scheduler . . . . . | 1242 |
| 34.7 | SOF trigger . . . . . | 1243 |
| 34.7.1 | Host SOFs . . . . . | 1243 |
| 34.7.2 | Peripheral SOFs . . . . . | 1244 |
| 34.8 | OTG low-power modes . . . . . | 1244 |
| 34.9 | Dynamic update of the OTG_FS_HFIR register . . . . . | 1245 |
| 34.10 | USB data FIFOs . . . . . | 1246 |
| 34.11 | Peripheral FIFO architecture . . . . . | 1247 |
| 34.11.1 | Peripheral Rx FIFO . . . . . | 1247 |
| 34.11.2 | Peripheral Tx FIFOs . . . . . | 1248 |
| 34.12 | Host FIFO architecture . . . . . | 1248 |
| 34.12.1 | Host Rx FIFO . . . . . | 1248 |
| 34.12.2 | Host Tx FIFOs . . . . . | 1249 |
| 34.13 | FIFO RAM allocation . . . . . | 1249 |
| 34.13.1 | Device mode . . . . . | 1249 |
| 34.13.2 | Host mode . . . . . | 1250 |
| 34.14 | USB system performance . . . . . | 1250 |
| 34.15 | OTG_FS interrupts . . . . . | 1251 |
| 34.16 | OTG_FS control and status registers . . . . . | 1253 |
| 34.16.1 | CSR memory map . . . . . | 1254 |
| 34.16.2 | OTG_FS global registers . . . . . | 1259 |
| 34.16.3 | Host-mode registers . . . . . | 1280 |
| 34.16.4 | Device-mode registers . . . . . | 1290 |
| 34.16.5 | OTG_FS power and clock gating control register (OTG_FS_PCGCCTL) ..... | 1313 |
| 34.16.6 | OTG_FS register map ..... | 1314 |
| 34.17 | OTG_FS programming model ..... | 1323 |
| 34.17.1 | Core initialization ..... | 1323 |
| 34.17.2 | Host initialization ..... | 1324 |
| 34.17.3 | Device initialization ..... | 1324 |
| 34.17.4 | Host programming model ..... | 1325 |
| 34.17.5 | Device programming model ..... | 1341 |
| 34.17.6 | Operational model ..... | 1343 |
| 34.17.7 | Worst case response time ..... | 1361 |
| 34.17.8 | OTG programming model ..... | 1362 |
| 35 | USB on-the-go high-speed (OTG_HS) ..... | 1369 |
| 35.1 | OTG_HS introduction ..... | 1369 |
| 35.2 | OTG_HS main features ..... | 1369 |
| 35.2.1 | General features ..... | 1370 |
| 35.2.2 | Host-mode features ..... | 1371 |
| 35.2.3 | Peripheral-mode features ..... | 1371 |
| 35.3 | OTG_HS functional description ..... | 1371 |
| 35.3.1 | OTG pins ..... | 1372 |
| 35.3.2 | High-speed OTG PHY ..... | 1372 |
| 35.3.3 | Embedded Full-speed OTG PHY ..... | 1373 |
| 35.4 | OTG dual-role device ..... | 1373 |
| 35.4.1 | ID line detection ..... | 1373 |
| 35.4.2 | HNP dual role device ..... | 1373 |
| 35.4.3 | SRP dual-role device ..... | 1374 |
| 35.5 | USB functional description in peripheral mode ..... | 1374 |
| 35.5.1 | SRP-capable peripheral ..... | 1374 |
| 35.5.2 | Peripheral states ..... | 1375 |
| 35.5.3 | Peripheral endpoints ..... | 1376 |
| 35.6 | USB functional description on host mode ..... | 1379 |
| 35.6.1 | SRP-capable host ..... | 1379 |
| 35.6.2 | USB host states ..... | 1380 |
| 35.6.3 | Host channels ..... | 1381 |
| 35.6.4 | Host scheduler ..... | 1383 |
| 36.5 | NOR flash/PSRAM controller | 1537 |
| 36.5.1 | External memory interface signals | 1538 |
| 36.5.2 | Supported memories and transactions | 1540 |
| 36.5.3 | General timing rules | 1541 |
| 36.5.4 | NOR flash/PSRAM controller asynchronous transactions | 1542 |
| 36.5.5 | Synchronous transactions | 1559 |
| 36.5.6 | NOR/PSRAM control registers | 1565 |
| 36.6 | NAND flash/PC Card controller | 1572 |
| 36.6.1 | External memory interface signals | 1573 |
| 36.6.2 | NAND flash / PC Card supported memories and transactions | 1575 |
| 36.6.3 | Timing diagrams for NAND and PC Card | 1575 |
| 36.6.4 | NAND flash operations | 1576 |
| 36.6.5 | NAND flash prewait functionality | 1577 |
| 36.6.6 | Computation of the error correction code (ECC) in NAND flash memory | 1578 |
| 36.6.7 | PC Card/CompactFlash operations | 1579 |
| 36.6.8 | NAND flash/PC Card control registers | 1581 |
| 36.6.9 | FSMC register map | 1588 |
| 37 | Flexible memory controller (FMC) | 1590 |
| 37.1 | FMC main features | 1590 |
| 37.2 | Block diagram | 1591 |
| 37.3 | AHB interface | 1592 |
| 37.3.1 | Supported memories and transactions | 1593 |
| 37.4 | External device address mapping | 1594 |
| 37.4.1 | NOR/PSRAM address mapping | 1595 |
| 37.4.2 | NAND Flash memory/PC Card address mapping | 1596 |
| 37.4.3 | SDRAM address mapping | 1597 |
| 37.5 | NOR Flash/PSRAM controller | 1600 |
| 37.5.1 | External memory interface signals | 1601 |
| 37.5.2 | Supported memories and transactions | 1603 |
| 37.5.3 | General timing rules | 1605 |
| 37.5.4 | NOR Flash/PSRAM controller asynchronous transactions | 1605 |
| 37.5.5 | Synchronous transactions | 1622 |
| 37.5.6 | NOR/PSRAM controller registers | 1628 |
| 37.6 | NAND Flash/PC Card controller | 1635 |
| 37.6.1 | External memory interface signals | 1636 |
| 37.6.2 | NAND Flash / PC Card supported memories and transactions . . . . . | 1638 |
| 37.6.3 | Timing diagrams for NAND Flash memory and PC Card . . . . . | 1638 |
| 37.6.4 | NAND Flash operations . . . . . | 1639 |
| 37.6.5 | NAND Flash prewait functionality . . . . . | 1640 |
| 37.6.6 | Computation of the error correction code (ECC) in NAND Flash memory . . . . . | 1641 |
| 37.6.7 | PC Card/CompactFlash operations . . . . . | 1642 |
| 37.6.8 | NAND Flash/PC Card controller registers . . . . . | 1644 |
| 37.7 | SDRAM controller . . . . . | 1651 |
| 37.7.1 | SDRAM controller main features . . . . . | 1651 |
| 37.7.2 | SDRAM External memory interface signals . . . . . | 1651 |
| 37.7.3 | SDRAM controller functional description . . . . . | 1652 |
| 37.7.4 | Low power modes . . . . . | 1659 |
| 37.7.5 | SDRAM controller registers . . . . . | 1662 |
| 37.8 | FMC register map . . . . . | 1668 |
| 38 | Debug support (DBG) . . . . . | 1671 |
| 38.1 | Overview . . . . . | 1671 |
| 38.2 | Reference Arm® documentation . . . . . | 1672 |
| 38.3 | SWJ debug port (serial wire and JTAG) . . . . . | 1672 |
| 38.3.1 | Mechanism to select the JTAG-DP or the SW-DP . . . . . | 1673 |
| 38.4 | Pinout and debug port pins . . . . . | 1673 |
| 38.4.1 | SWJ debug port pins . . . . . | 1674 |
| 38.4.2 | Flexible SWJ-DP pin assignment . . . . . | 1674 |
| 38.4.3 | Internal pull-up and pull-down on JTAG pins . . . . . | 1674 |
| 38.4.4 | Using serial wire and releasing the unused debug pins as GPIOs . . . . . | 1675 |
| 38.5 | STM32F4xx JTAG TAP connection . . . . . | 1675 |
| 38.6 | ID codes and locking mechanism . . . . . | 1676 |
| 38.6.1 | MCU device ID code . . . . . | 1676 |
| 38.6.2 | Boundary scan TAP . . . . . | 1677 |
| 38.6.3 | Cortex®-M4 with FPU TAP . . . . . | 1678 |
| 38.6.4 | Cortex®-M4 with FPU JEDEC-106 ID code . . . . . | 1678 |
| 38.7 | JTAG debug port . . . . . | 1678 |
| 38.8 | SW debug port . . . . . | 1680 |
| 38.8.1 | SW protocol introduction . . . . . | 1680 |
| 38.8.2 | SW protocol sequence . . . . . | 1680 |
| 38.8.3 | SW-DP state machine (reset, idle states, ID code) . . . . . | 1681 |
| 38.8.4 | DP and AP read/write accesses . . . . . | 1681 |
| 38.8.5 | SW-DP registers . . . . . | 1682 |
| 38.8.6 | SW-AP registers . . . . . | 1682 |
| 38.9 | AHB-AP (AHB access port) - valid for both JTAG-DP and SW-DP . . . . . | 1683 |
| 38.10 | Core debug . . . . . | 1683 |
| 38.11 | Capability of the debugger host to connect under system reset . . . . . | 1684 |
| 38.12 | FPB (Flash patch breakpoint) . . . . . | 1685 |
| 38.13 | DWT (data watchpoint trigger) . . . . . | 1686 |
| 38.14 | ITM (instrumentation trace macrocell) . . . . . | 1686 |
| 38.14.1 | General description . . . . . | 1686 |
| 38.14.2 | Time stamp packets, synchronization and overflow packets . . . . . | 1686 |
| 38.15 | ETM (Embedded Trace Macrocell™) . . . . . | 1688 |
| 38.15.1 | ETM general description . . . . . | 1688 |
| 38.15.2 | ETM signal protocol and packet types . . . . . | 1688 |
| 38.15.3 | Main ETM registers . . . . . | 1689 |
| 38.15.4 | ETM configuration example . . . . . | 1689 |
| 38.16 | MCU debug component (DBGMCU) . . . . . | 1689 |
| 38.16.1 | Debug support for low-power modes . . . . . | 1689 |
| 38.16.2 | Debug support for timers, watchdog, bxCAN and I2C . . . . . | 1690 |
| 38.16.3 | Debug MCU configuration register . . . . . | 1690 |
| 38.16.4 | Debug MCU APB1 freeze register (DBGMCU_APB1_FZ) . . . . . | 1692 |
| 38.16.5 | Debug MCU APB2 Freeze register (DBGMCU_APB2_FZ) . . . . . | 1693 |
| 38.17 | TPIU (trace port interface unit) . . . . . | 1694 |
| 38.17.1 | Introduction . . . . . | 1694 |
| 38.17.2 | TRACE pin assignment . . . . . | 1695 |
| 38.17.3 | TPUI formatter . . . . . | 1696 |
| 38.17.4 | TPUI frame synchronization packets . . . . . | 1697 |
| 38.17.5 | Transmission of the synchronization frame packet . . . . . | 1697 |
| 38.17.6 | Synchronous mode . . . . . | 1697 |
| 38.17.7 | Asynchronous mode . . . . . | 1698 |
| 38.17.8 | TRACECLKIN connection inside the STM32F4xx . . . . . | 1698 |
| 38.17.9 | TPIU registers . . . . . | 1698 |
| 38.17.10 | Example of configuration . . . . . | 1699 |
| 38.18 | DBG register map . . . . . | 1700 |
| Table 1. | STM32F4xx register boundary addresses ..... | 64 |
| Table 2. | Boot modes..... | 69 |
| Table 3. | Memory mapping vs. Boot mode/physical remap in STM32F405xx/07xx and STM32F415xx/17xx ..... | 71 |
| Table 4. | Memory mapping vs. Boot mode/physical remap in STM32F42xxx and STM32F43xxx ..... | 71 |
| Table 5. | Flash module organization (STM32F40x and STM32F41x) ..... | 75 |
| Table 6. | Flash module - 2 Mbyte dual bank organization (STM32F42xxx and STM32F43xxx) ..... | 77 |
| Table 7. | 1 Mbyte flash memory single bank vs dual bank organization (STM32F42xxx and STM32F43xxx) ..... | 78 |
| Table 8. | 1 Mbyte single bank flash memory organization (STM32F42xxx and STM32F43xxx) ..... | 78 |
| Table 9. | 1 Mbyte dual bank flash memory organization (STM32F42xxx and STM32F43xxx) ..... | 79 |
| Table 10. | 512 Kbyte single bank flash memory organization (STM32F42xxx and STM32F43xxx) ..... | 80 |
| Table 11. | Number of wait states according to CPU clock (HCLK) frequency (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 81 |
| Table 12. | Number of wait states according to CPU clock (HCLK) frequency (STM32F42xxx and STM32F43xxx) ..... | 81 |
| Table 13. | Maximum program/erase parallelism ..... | 85 |
| Table 14. | Flash interrupt request ..... | 88 |
| Table 15. | Option byte organization..... | 88 |
| Table 16. | Description of the option bytes (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 89 |
| Table 17. | Description of the option bytes (STM32F42xxx and STM32F43xxx) ..... | 90 |
| Table 18. | Access versus read protection level ..... | 94 |
| Table 19. | OTP area organization ..... | 97 |
| Table 20. | Flash register map and reset values (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 111 |
| Table 21. | Flash register map and reset values (STM32F42xxx and STM32F43xxx) ..... | 111 |
| Table 22. | CRC calculation unit register map and reset values ..... | 115 |
| Table 23. | Voltage regulator configuration mode versus device operating mode ..... | 122 |
| Table 24. | Low-power mode summary ..... | 128 |
| Table 25. | Sleep-now entry and exit ..... | 129 |
| Table 26. | Sleep-on-exit entry and exit ..... | 130 |
| Table 27. | Stop operating modes (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 131 |
| Table 28. | Stop mode entry and exit (for STM32F405xx/07xx and STM32F415xx/17xx) ..... | 132 |
| Table 29. | Stop operating modes (STM32F42xxx and STM32F43xxx) ..... | 134 |
| Table 30. | Stop mode entry and exit (STM32F42xxx and STM32F43xxx) ..... | 136 |
| Table 31. | Standby mode entry and exit ..... | 137 |
| Table 32. | PWR - register map and reset values for STM32F405xx/07xx and STM32F415xx/17xx ..... | 150 |
| Table 33. | PWR - register map and reset values for STM32F42xxx and STM32F43xxx ..... | 150 |
| Table 34. | RCC register map and reset values for STM32F42xxx and STM32F43xxx ..... | 211 |
| Table 35. | RCC register map and reset values ..... | 266 |
| Table 36. | Port bit configuration table ..... | 270 |
| Table 37. | Flexible SWJ-DP pin assignment ..... | 273 |
| Table 38. | RTC_AF1 pin ..... | 281 |
| Table 39. | RTC_AF2 pin ..... | 282 |
| Table 40. | GPIO register map and reset values ..... | 289 |
| Table 41. | SYSCFG register map and reset values (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 296 |
| Table 42. | SYSCFG register map and reset values (STM32F42xxx and STM32F43xxx) ..... | 303 |
| Table 43. | DMA1 request mapping ..... | 309 |
| Table 44. | DMA2 request mapping ..... | 310 |
| Table 45. | Source and destination address ..... | 311 |
| Table 46. | Source and destination address registers in Double buffer mode (DBM=1) ..... | 316 |
| Table 47. | Packing/unpacking & endian behavior (bit PINC = MINC = 1) ..... | 317 |
| Table 48. | Restriction on NDT versus PSIZE and MSIZE ..... | 318 |
| Table 49. | FIFO threshold configurations ..... | 320 |
| Table 50. | Possible DMA configurations ..... | 324 |
| Table 51. | DMA interrupt requests ..... | 326 |
| Table 52. | DMA register map and reset values ..... | 337 |
| Table 53. | Supported color mode in input ..... | 344 |
| Table 54. | Data order in memory ..... | 345 |
| Table 55. | Alpha mode configuration ..... | 346 |
| Table 56. | Supported CLUT color mode ..... | 347 |
| Table 57. | CLUT data order in memory ..... | 347 |
| Table 58. | Supported color mode in output ..... | 348 |
| Table 59. | Data order in memory ..... | 348 |
| Table 60. | DMA2D interrupt requests ..... | 353 |
| Table 61. | DMA2D register map and reset values ..... | 371 |
| Table 62. | Vector table for STM32F405xx/07xx and STM32F415xx/17xx ..... | 374 |
| Table 63. | Vector table for STM32F42xxx and STM32F43xxx ..... | 377 |
| Table 64. | External interrupt/event controller register map and reset values ..... | 389 |
| Table 65. | ADC pins ..... | 392 |
| Table 66. | Analog watchdog channel selection ..... | 395 |
| Table 67. | Configuring the trigger polarity ..... | 399 |
| Table 68. | External trigger for regular channels ..... | 400 |
| Table 69. | External trigger for injected channels ..... | 401 |
| Table 70. | ADC interrupts ..... | 416 |
| Table 71. | ADC global register map ..... | 432 |
| Table 72. | ADC register map and reset values for each ADC ..... | 433 |
| Table 73. | ADC register map and reset values (common ADC registers) ..... | 434 |
| Table 74. | DAC pins ..... | 436 |
| Table 75. | External triggers ..... | 439 |
| Table 76. | DAC register map ..... | 455 |
| Table 77. | DCMI pins ..... | 457 |
| Table 78. | DCMI signals ..... | 459 |
| Table 79. | Positioning of captured data bytes in 32-bit words (8-bit width) ..... | 460 |
| Table 80. | Positioning of captured data bytes in 32-bit words (10-bit width) ..... | 460 |
| Table 81. | Positioning of captured data bytes in 32-bit words (12-bit width) ..... | 461 |
| Table 82. | Positioning of captured data bytes in 32-bit words (14-bit width) ..... | 461 |
| Table 83. | Data storage in monochrome progressive video format ..... | 468 |
| Table 84. | Data storage in RGB progressive video format ..... | 468 |
| Table 85. | Data storage in YCbCr progressive video format ..... | 469 |
| Table 86. | DCMI interrupts ..... | 469 |
| Table 87. | DCMI register map and reset values ..... | 478 |
| Table 88. | LTDC registers versus clock domain ..... | 482 |
| Table 89. | LCD-TFT pins and signal interface . . . . . | 483 |
| Table 90. | Pixel Data mapping versus Color Format . . . . . | 487 |
| Table 91. | LTDC interrupt requests . . . . . | 491 |
| Table 92. | LTDC register map and reset values . . . . . | 512 |
| Table 93. | Counting direction versus encoder signals . . . . . | 552 |
| Table 94. | TIMx Internal trigger connection . . . . . | 565 |
| Table 95. | Output control bits for complementary OCx and OCxN channels with break feature. . . . . | 576 |
| Table 96. | TIM1 and TIM8 register map and reset values . . . . . | 584 |
| Table 97. | Counting direction versus encoder signals . . . . . | 613 |
| Table 98. | TIMx internal trigger connection . . . . . | 628 |
| Table 99. | Output control bit for standard OCx channels. . . . . | 637 |
| Table 100. | TIM2 to TIM5 register map and reset values . . . . . | 644 |
| Table 101. | TIMx internal trigger connection . . . . . | 670 |
| Table 102. | Output control bit for standard OCx channels. . . . . | 678 |
| Table 103. | TIM9/12 register map and reset values . . . . . | 680 |
| Table 104. | Output control bit for standard OCx channels. . . . . | 687 |
| Table 105. | TIM10/11/13/14 register map and reset values . . . . . | 690 |
| Table 106. | TIM6 and TIM7 register map and reset values . . . . . | 703 |
| Table 107. | Min/max IWDG timeout period (in ms) at 32 kHz (LSI). . . . . | 705 |
| Table 108. | IWDG register map and reset values . . . . . | 708 |
| Table 109. | Minimum and maximum timeout values at 30 MHz (\(f_{PCLK1}\)). . . . . | 712 |
| Table 110. | WWDG register map and reset values . . . . . | 715 |
| Table 111. | Number of cycles required to process each 128-bit block (STM32F415/417xx). . . . . | 716 |
| Table 112. | Number of cycles required to process each 128-bit block (STM32F43xxx) . . . . . | 716 |
| Table 113. | Data types. . . . . | 736 |
| Table 114. | CRYP register map and reset values for STM32F415/417xx. . . . . | 759 |
| Table 115. | CRYP register map and reset values for STM32F43xxx . . . . . | 760 |
| Table 116. | RNG register map and reset map. . . . . | 767 |
| Table 117. | HASH register map and reset values on STM32F415/417xx. . . . . | 791 |
| Table 118. | HASH register map and reset values on STM32F43xxx . . . . . | 792 |
| Table 119. | Effect of low-power modes on RTC . . . . . | 810 |
| Table 120. | Interrupt control bits . . . . . | 811 |
| Table 121. | RTC register map and reset values . . . . . | 832 |
| Table 122. | Maximum DNF[3:0] value to be compliant with Thd:dat(max) . . . . . | 847 |
| Table 123. | SMBus vs. I2C . . . . . | 849 |
| Table 124. | I2C Interrupt requests. . . . . | 853 |
| Table 125. | I2C register map and reset values . . . . . | 867 |
| Table 126. | SPI interrupt requests. . . . . | 893 |
| Table 127. | Audio frequency precision (for PLLM VCO = 1 MHz or 2 MHz) . . . . . | 904 |
| Table 128. | I2S interrupt requests . . . . . | 910 |
| Table 129. | SPI register map and reset values . . . . . | 920 |
| Table 130. | Example of possible audio frequency sampling range . . . . . | 931 |
| Table 131. | Interrupt sources. . . . . | 943 |
| Table 132. | SAI register map and reset values . . . . . | 958 |
| Table 133. | Noise detection from sampled data . . . . . | 972 |
| Table 134. | Error calculation for programmed baud rates at \(f_{PCLK} = 8\) MHz or \(f_{PCLK} = 12\) MHz, oversampling by 16. . . . . | 975 |
| Table 135. | Error calculation for programmed baud rates at \(f_{PCLK} = 8\) MHz or \(f_{PCLK} = 12\) MHz, oversampling by 8. . . . . | 976 |
| Table 136. | Error calculation for programmed baud rates at \(f_{PCLK} = 16\) MHz or \(f_{PCLK} = 24\) MHz, oversampling by 16. .... | 976 |
| Table 137. | Error calculation for programmed baud rates at \(f_{PCLK} = 16\) MHz or \(f_{PCLK} = 24\) MHz, oversampling by 8. .... | 977 |
| Table 138. | Error calculation for programmed baud rates at \(f_{PCLK} = 8\) MHz or \(f_{PCLK} = 16\) MHz, oversampling by 16. .... | 978 |
| Table 139. | Error calculation for programmed baud rates at \(f_{PCLK} = 8\) MHz or \(f_{PCLK} = 16\) MHz, oversampling by 8. .... | 978 |
| Table 140. | Error calculation for programmed baud rates at \(f_{PCLK} = 30\) MHz or \(f_{PCLK} = 60\) MHz, oversampling by 16. .... | 979 |
| Table 141. | Error calculation for programmed baud rates at \(f_{PCLK} = 30\) MHz or \(f_{PCLK} = 60\) MHz, oversampling by 8. .... | 980 |
| Table 142. | Error calculation for programmed baud rates at \(f_{PCLK} = 42\) MHz or \(f_{PCLK} = 84\) MHz, oversampling by 16. .... | 981 |
| Table 143. | Error calculation for programmed baud rates at \(f_{PCLK} = 42\) MHz or \(f_{PCLK} = 84\) MHz, oversampling by 8. .... | 982 |
| Table 144. | USART receiver's tolerance when DIV fraction is 0. .... | 983 |
| Table 145. | USART receiver tolerance when DIV_Fraction is different from 0. .... | 984 |
| Table 146. | Frame formats. .... | 986 |
| Table 147. | USART interrupt requests. .... | 1001 |
| Table 148. | USART mode configuration. .... | 1002 |
| Table 149. | USART register map and reset values. .... | 1013 |
| Table 150. | SDIO I/O definitions. .... | 1018 |
| Table 151. | Command format. .... | 1022 |
| Table 152. | Short response format. .... | 1023 |
| Table 153. | Long response format. .... | 1023 |
| Table 154. | Command path status flags. .... | 1023 |
| Table 155. | Data token format. .... | 1026 |
| Table 156. | Transmit FIFO status flags. .... | 1027 |
| Table 157. | Receive FIFO status flags. .... | 1028 |
| Table 158. | Card status. .... | 1038 |
| Table 159. | SD status. .... | 1040 |
| Table 160. | Speed class code field. .... | 1042 |
| Table 161. | Performance move field. .... | 1042 |
| Table 162. | AU_SIZE field. .... | 1042 |
| Table 163. | Maximum AU size. .... | 1043 |
| Table 164. | Erase size field. .... | 1043 |
| Table 165. | Erase timeout field. .... | 1043 |
| Table 166. | Erase offset field. .... | 1044 |
| Table 167. | Block-oriented write commands. .... | 1046 |
| Table 168. | Block-oriented write protection commands. .... | 1047 |
| Table 169. | Erase commands. .... | 1047 |
| Table 170. | I/O mode commands. .... | 1047 |
| Table 171. | Lock card. .... | 1048 |
| Table 172. | Application-specific commands. .... | 1048 |
| Table 173. | R1 response. .... | 1049 |
| Table 174. | R2 response. .... | 1049 |
| Table 175. | R3 response. .... | 1050 |
| Table 176. | R4 response. .... | 1050 |
| Table 177. | R4b response. .... | 1050 |
| Table 178. | R5 response. .... | 1051 |
| Table 179. | R6 response. .... | 1051 |
| Table 180. | Response type and SDIO_RESPx registers. .... | 1058 |
| Table 181. | SDIO register map ..... | 1068 |
| Table 182. | Transmit mailbox mapping ..... | 1084 |
| Table 183. | Receive mailbox mapping. .... | 1084 |
| Table 184. | bxCAN register map and reset values ..... | 1109 |
| Table 185. | Alternate function mapping. .... | 1116 |
| Table 186. | Management frame format ..... | 1118 |
| Table 187. | Clock range. .... | 1120 |
| Table 188. | TX interface signal encoding ..... | 1121 |
| Table 189. | RX interface signal encoding ..... | 1122 |
| Table 190. | Frame statuses ..... | 1137 |
| Table 191. | Destination address filtering ..... | 1143 |
| Table 192. | Source address filtering ..... | 1144 |
| Table 193. | Receive descriptor 0 - encoding for bits 7, 5 and 0 (normal descriptor format only, EDFE=0) ..... | 1174 |
| Table 194. | Time stamp snapshot dependency on registers bits ..... | 1206 |
| Table 195. | Ethernet register map and reset values ..... | 1224 |
| Table 196. | OTG_FS input/output pins ..... | 1231 |
| Table 197. | Compatibility of STM32 low power modes with the OTG ..... | 1244 |
| Table 198. | Core global control and status registers (CSRs). .... | 1254 |
| Table 199. | Host-mode control and status registers (CSRs) ..... | 1255 |
| Table 200. | Device-mode control and status registers ..... | 1256 |
| Table 201. | Data FIFO (DFIFO) access register map ..... | 1257 |
| Table 202. | Power and clock gating control and status registers ..... | 1258 |
| Table 203. | TRDT values. .... | 1264 |
| Table 204. | Minimum duration for soft disconnect. .... | 1292 |
| Table 205. | OTG_FS register map and reset values ..... | 1314 |
| Table 206. | OTG_HS input/output pins ..... | 1372 |
| Table 207. | Compatibility of STM32 low power modes with the OTG ..... | 1385 |
| Table 208. | Core global control and status registers (CSRs). .... | 1391 |
| Table 209. | Host-mode control and status registers (CSRs) ..... | 1392 |
| Table 210. | Device-mode control and status registers ..... | 1393 |
| Table 211. | Data FIFO (DFIFO) access register map ..... | 1395 |
| Table 212. | Power and clock gating control and status registers ..... | 1395 |
| Table 213. | TRDT values. .... | 1402 |
| Table 214. | Minimum duration for soft disconnect. .... | 1434 |
| Table 215. | OTG_HS register map and reset values. .... | 1460 |
| Table 216. | NOR/PSRAM bank selection ..... | 1536 |
| Table 217. | External memory address. .... | 1536 |
| Table 218. | Memory mapping and timing registers ..... | 1536 |
| Table 219. | NAND bank selections ..... | 1537 |
| Table 220. | Programmable NOR/PSRAM access parameters ..... | 1538 |
| Table 221. | Nonmultiplexed I/O NOR flash ..... | 1538 |
| Table 222. | Multiplexed I/O NOR flash ..... | 1539 |
| Table 223. | Nonmultiplexed I/Os PSRAM/SRAM ..... | 1539 |
| Table 224. | Multiplexed I/O PSRAM ..... | 1540 |
| Table 225. | NOR flash/PSRAM controller: example of supported memories and transactions. .... | 1540 |
| Table 226. | FSMC_BCRx bit fields ..... | 1543 |
| Table 227. | FSMC_BTRx bit fields ..... | 1544 |
| Table 228. | FSMC_BCRx bit fields ..... | 1545 |
| Table 229. | FSMC_BTRx bit fields ..... | 1546 |
| Table 230. | FSMC_BWTRx bit fields. .... | 1546 |
| Table 231. | FSMC_BCRx bit fields | 1548 |
| Table 232. | FSMC_BTRx bit fields | 1549 |
| Table 233. | FSMC_BWTRx bit fields | 1549 |
| Table 234. | FSMC_BCRx bit fields | 1551 |
| Table 235. | FSMC_BTRx bit fields | 1551 |
| Table 236. | FSMC_BWTRx bit fields | 1552 |
| Table 237. | FSMC_BCRx bit fields | 1553 |
| Table 238. | FSMC_BTRx bit fields | 1554 |
| Table 239. | FSMC_BWTRx bit fields | 1554 |
| Table 240. | FSMC_BCRx bit fields | 1556 |
| Table 241. | FSMC_BTRx bit fields | 1556 |
| Table 242. | FSMC_BCRx bit fields | 1561 |
| Table 243. | FSMC_BTRx bit fields | 1562 |
| Table 244. | FSMC_BCRx bit fields | 1563 |
| Table 245. | FSMC_BTRx bit fields | 1564 |
| Table 246. | Programmable NAND/PC Card access parameters | 1573 |
| Table 247. | 8-bit NAND flash | 1573 |
| Table 248. | 16-bit NAND flash | 1574 |
| Table 249. | 16-bit PC Card | 1574 |
| Table 250. | Supported memories and transactions | 1575 |
| Table 251. | 16-bit PC-Card signals and access type | 1580 |
| Table 252. | ECC result relevant bits | 1587 |
| Table 253. | FSMC register map | 1588 |
| Table 254. | NOR/PSRAM bank selection | 1595 |
| Table 255. | NOR/PSRAM External memory address | 1596 |
| Table 256. | NAND/PC Card memory mapping and timing registers | 1596 |
| Table 257. | NAND bank selection | 1597 |
| Table 258. | SDRAM bank selection | 1597 |
| Table 259. | SDRAM address mapping | 1597 |
| Table 260. | SDRAM address mapping with 8-bit data bus width | 1598 |
| Table 261. | SDRAM address mapping with 16-bit data bus width | 1599 |
| Table 262. | SDRAM address mapping with 32-bit data bus width | 1599 |
| Table 263. | Programmable NOR/PSRAM access parameters | 1601 |
| Table 264. | Non-multiplexed I/O NOR Flash memory | 1602 |
| Table 265. | 16-bit multiplexed I/O NOR Flash memory | 1602 |
| Table 266. | Non-multiplexed I/Os PSRAM/SRAM | 1602 |
| Table 267. | 16-Bit multiplexed I/O PSRAM | 1603 |
| Table 268. | NOR Flash/PSRAM: Example of supported memories and transactions | 1604 |
| Table 269. | FMC_BCRx bit fields | 1607 |
| Table 270. | FMC_BTRx bit fields | 1607 |
| Table 271. | FMC_BCRx bit fields | 1609 |
| Table 272. | FMC_BTRx bit fields | 1610 |
| Table 273. | FMC_BWTRx bit fields | 1610 |
| Table 274. | FMC_BCRx bit fields | 1612 |
| Table 275. | FMC_BTRx bit fields | 1613 |
| Table 276. | FMC_BWTRx bit fields | 1613 |
| Table 277. | FMC_BCRx bit fields | 1615 |
| Table 278. | FMC_BTRx bit fields | 1615 |
| Table 279. | FMC_BWTRx bit fields | 1616 |
| Table 280. | FMC_BCRx bit fields | 1617 |
| Table 281. | FMC_BTRx bit fields | 1618 |
| Table 282. | FMC_BWTRx bit fields | 1618 |
| Table 283. | FMC_BCRx bit fields ..... | 1620 |
| Table 284. | FMC_BTRx bit fields..... | 1620 |
| Table 285. | FMC_BCRx bit fields ..... | 1625 |
| Table 286. | FMC_BTRx bit fields..... | 1625 |
| Table 287. | FMC_BCRx bit fields ..... | 1626 |
| Table 288. | FMC_BTRx bit fields..... | 1627 |
| Table 289. | Programmable NAND Flash/PC Card access parameters ..... | 1636 |
| Table 290. | 8-bit NAND Flash ..... | 1636 |
| Table 291. | 16-bit NAND Flash ..... | 1637 |
| Table 292. | 16-bit PC Card ..... | 1637 |
| Table 293. | Supported memories and transactions..... | 1638 |
| Table 294. | 16-bit PC-Card signals and access type..... | 1643 |
| Table 295. | ECC result relevant bits ..... | 1650 |
| Table 296. | SDRAM signals..... | 1651 |
| Table 297. | FMC register map ..... | 1668 |
| Table 298. | SWJ debug port pins ..... | 1674 |
| Table 299. | Flexible SWJ-DP pin assignment ..... | 1674 |
| Table 300. | JTAG debug port data registers ..... | 1678 |
| Table 301. | 32-bit debug port registers addressed through the shifted value A[3:2] ..... | 1679 |
| Table 302. | Packet request (8-bits) ..... | 1680 |
| Table 303. | ACK response (3 bits)..... | 1681 |
| Table 304. | DATA transfer (33 bits)..... | 1681 |
| Table 305. | SW-DP registers ..... | 1682 |
| Table 306. | Cortex®-M4 with FPU AHB-AP registers..... | 1683 |
| Table 307. | Core debug registers ..... | 1684 |
| Table 308. | Main ITM registers ..... | 1687 |
| Table 309. | Main ETM registers..... | 1689 |
| Table 310. | Asynchronous TRACE pin assignment..... | 1695 |
| Table 311. | Synchronous TRACE pin assignment ..... | 1695 |
| Table 312. | Flexible TRACE pin assignment..... | 1696 |
| Table 313. | Important TPIU registers..... | 1698 |
| Table 314. | DBG register map and reset values ..... | 1700 |
| Table 315. | Document revision history ..... | 1704 |
| Figure 1. | System architecture for STM32F405xx/07xx and STM32F415xx/17xx devices. .... | 60 |
| Figure 2. | System architecture for STM32F42xxx and STM32F43xxx devices ..... | 62 |
| Figure 3. | Flash memory interface connection inside system architecture (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 73 |
| Figure 4. | Flash memory interface connection inside system architecture (STM32F42xxx and STM32F43xxx) ..... | 74 |
| Figure 5. | Sequential 32-bit instruction execution ..... | 83 |
| Figure 6. | RDP levels ..... | 94 |
| Figure 7. | PCROP levels ..... | 96 |
| Figure 8. | CRC calculation unit block diagram ..... | 113 |
| Figure 9. | Power supply overview for STM32F405xx/07xx and STM32F415xx/17xx ..... | 116 |
| Figure 10. | Power supply overview for STM32F42xxx and STM32F43xxx ..... | 117 |
| Figure 11. | Backup domain ..... | 120 |
| Figure 12. | Power-on reset/power-down reset waveform ..... | 124 |
| Figure 13. | BOR thresholds ..... | 125 |
| Figure 14. | PVD thresholds ..... | 126 |
| Figure 15. | Simplified diagram of the reset circuit ..... | 152 |
| Figure 16. | Clock tree ..... | 153 |
| Figure 17. | HSE/ LSE clock sources ..... | 155 |
| Figure 18. | Frequency measurement with TIM5 in Input capture mode ..... | 160 |
| Figure 19. | Frequency measurement with TIM11 in Input capture mode ..... | 161 |
| Figure 20. | Simplified diagram of the reset circuit ..... | 215 |
| Figure 21. | Clock tree ..... | 217 |
| Figure 22. | HSE/ LSE clock sources ..... | 219 |
| Figure 23. | Frequency measurement with TIM5 in Input capture mode ..... | 224 |
| Figure 24. | Frequency measurement with TIM11 in Input capture mode ..... | 224 |
| Figure 25. | Basic structure of a 5 V-tolerant I/O port bit ..... | 270 |
| Figure 26. | Selecting an alternate function on STM32F405xx/07xx and STM32F415xx/17xx ..... | 274 |
| Figure 27. | Selecting an alternate function on STM32F42xxx and STM32F43xxx ..... | 275 |
| Figure 28. | Input floating/pull up/pull down configurations ..... | 278 |
| Figure 29. | Output configuration ..... | 279 |
| Figure 30. | Alternate function configuration ..... | 279 |
| Figure 31. | High impedance-analog configuration ..... | 280 |
| Figure 32. | DMA block diagram ..... | 306 |
| Figure 33. | System implementation of the two DMA controllers (STM32F405xx/07xx and STM32F415xx/17xx) ..... | 307 |
| Figure 34. | System implementation of the two DMA controllers (STM32F42xxx and STM32F43xxx) ..... | 308 |
| Figure 35. | Channel selection ..... | 309 |
| Figure 36. | Peripheral-to-memory mode ..... | 312 |
| Figure 37. | Memory-to-peripheral mode ..... | 313 |
| Figure 38. | Memory-to-memory mode ..... | 314 |
| Figure 39. | FIFO structure ..... | 319 |
| Figure 40. | DMA2D block diagram ..... | 343 |
| Figure 41. | External interrupt/event controller block diagram ..... | 382 |
| Figure 42. | External interrupt/event GPIO mapping ( STM32F405xx/07xx and STM32F415xx/17xx) ..... | 384 |
| Figure 43. | External interrupt/event GPIO mapping (STM32F42xxx and STM32F43xxx) ..... | 385 |
| Figure 44. | Single ADC block diagram ..... | 391 |
| Figure 45. | Timing diagram | 394 |
| Figure 46. | Analog watchdog's guarded area | 395 |
| Figure 47. | Injected conversion latency | 396 |
| Figure 48. | Right alignment of 12-bit data | 398 |
| Figure 49. | Left alignment of 12-bit data | 398 |
| Figure 50. | Left alignment of 6-bit data | 398 |
| Figure 51. | Multi ADC block diagram(1) | 404 |
| Figure 52. | Injected simultaneous mode on 4 channels: dual ADC mode | 407 |
| Figure 53. | Injected simultaneous mode on 4 channels: triple ADC mode | 407 |
| Figure 54. | Regular simultaneous mode on 16 channels: dual ADC mode | 408 |
| Figure 55. | Regular simultaneous mode on 16 channels: triple ADC mode | 408 |
| Figure 56. | Interleaved mode on 1 channel in continuous conversion mode: dual ADC mode | 409 |
| Figure 57. | Interleaved mode on 1 channel in continuous conversion mode: triple ADC mode | 410 |
| Figure 58. | Alternate trigger: injected group of each ADC | 411 |
| Figure 59. | Alternate trigger: 4 injected channels (each ADC) in discontinuous mode | 412 |
| Figure 60. | Alternate trigger: injected group of each ADC | 412 |
| Figure 61. | Alternate + regular simultaneous | 413 |
| Figure 62. | Case of trigger occurring during injected conversion | 414 |
| Figure 63. | Temperature sensor and VREFINT channel block diagram | 415 |
| Figure 64. | DAC channel block diagram | 436 |
| Figure 65. | Data registers in single DAC channel mode | 438 |
| Figure 66. | Data registers in dual DAC channel mode | 438 |
| Figure 67. | Timing diagram for conversion with trigger disabled TEN = 0 | 439 |
| Figure 68. | DAC LFSR register calculation algorithm | 441 |
| Figure 69. | DAC conversion (SW trigger enabled) with LFSR wave generation | 441 |
| Figure 70. | DAC triangle wave generation | 442 |
| Figure 71. | DAC conversion (SW trigger enabled) with triangle wave generation | 442 |
| Figure 72. | DCMI block diagram | 458 |
| Figure 73. | Top-level block diagram | 459 |
| Figure 74. | DCMI signal waveforms | 460 |
| Figure 75. | Timing diagram | 462 |
| Figure 76. | Frame capture waveforms in Snapshot mode | 464 |
| Figure 77. | Frame capture waveforms in continuous grab mode | 465 |
| Figure 78. | Coordinates and size of the window after cropping | 466 |
| Figure 79. | Data capture waveforms | 466 |
| Figure 80. | Pixel raster scan order | 467 |
| Figure 81. | LTDC block diagram | 481 |
| Figure 82. | LCD-TFT Synchronous timings | 484 |
| Figure 83. | Layer window programmable parameters | 487 |
| Figure 84. | Blending two layers with background | 490 |
| Figure 85. | Interrupt events | 491 |
| Figure 86. | Advanced-control timer block diagram | 516 |
| Figure 87. | Counter timing diagram with prescaler division change from 1 to 2 | 518 |
| Figure 88. | Counter timing diagram with prescaler division change from 1 to 4 | 518 |
| Figure 89. | Counter timing diagram, internal clock divided by 1 | 519 |
| Figure 90. | Counter timing diagram, internal clock divided by 2 | 520 |
| Figure 91. | Counter timing diagram, internal clock divided by 4 | 520 |
| Figure 92. | Counter timing diagram, internal clock divided by N | 520 |
| Figure 93. | Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) | 521 |
| Figure 94. | Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) | 521 |
| Figure 95. | Counter timing diagram, internal clock divided by 1 | 523 |
| Figure 96. | Counter timing diagram, internal clock divided by 2 | 523 |
| Figure 97. | Counter timing diagram, internal clock divided by 4 | 524 |
| Figure 98. | Counter timing diagram, internal clock divided by N | 524 |
| Figure 99. | Counter timing diagram, update event when repetition counter is not used | 525 |
| Figure 100. | Counter timing diagram, internal clock divided by 1, TIMx_ARR=0x6 | 526 |
| Figure 101. | Counter timing diagram, internal clock divided by 2 | 526 |
| Figure 102. | Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 | 527 |
| Figure 103. | Counter timing diagram, internal clock divided by N | 527 |
| Figure 104. | Counter timing diagram, update event with ARPE=1 (counter underflow) | 528 |
| Figure 105. | Counter timing diagram, Update event with ARPE=1 (counter overflow) | 528 |
| Figure 106. | Update rate examples depending on mode and TIMx_RCR register settings | 530 |
| Figure 107. | Control circuit in normal mode, internal clock divided by 1 | 531 |
| Figure 108. | TI2 external clock connection example | 532 |
| Figure 109. | Control circuit in external clock mode 1 | 533 |
| Figure 110. | External trigger input block | 533 |
| Figure 111. | Control circuit in external clock mode 2 | 534 |
| Figure 112. | Capture/compare channel (example: channel 1 input stage) | 535 |
| Figure 113. | Capture/compare channel 1 main circuit | 535 |
| Figure 114. | Output stage of capture/compare channel (channel 1 to 3) | 536 |
| Figure 115. | Output stage of capture/compare channel (channel 4) | 536 |
| Figure 116. | PWM input mode timing | 538 |
| Figure 117. | Output compare mode, toggle on OC1 | 540 |
| Figure 118. | Edge-aligned PWM waveforms (ARR=8) | 541 |
| Figure 119. | Center-aligned PWM waveforms (ARR=8) | 542 |
| Figure 120. | Complementary output with dead-time insertion | 544 |
| Figure 121. | Dead-time waveforms with delay greater than the negative pulse | 544 |
| Figure 122. | Dead-time waveforms with delay greater than the positive pulse | 544 |
| Figure 123. | Output behavior in response to a break | 547 |
| Figure 124. | Clearing TIMx OCxREF | 548 |
| Figure 125. | 6-step generation, COM example (OSSR=1) | 549 |
| Figure 126. | Example of one pulse mode | 550 |
| Figure 127. | Example of counter operation in encoder interface mode | 553 |
| Figure 128. | Example of encoder interface mode with TI1FP1 polarity inverted | 553 |
| Figure 129. | Example of Hall sensor interface | 555 |
| Figure 130. | Control circuit in reset mode | 556 |
| Figure 131. | Control circuit in gated mode | 557 |
| Figure 132. | Control circuit in trigger mode | 558 |
| Figure 133. | Control circuit in external clock mode 2 + trigger mode | 559 |
| Figure 134. | General-purpose timer block diagram | 587 |
| Figure 135. | Counter timing diagram with prescaler division change from 1 to 2 | 589 |
| Figure 136. | Counter timing diagram with prescaler division change from 1 to 4 | 589 |
| Figure 137. | Counter timing diagram, internal clock divided by 1 | 590 |
| Figure 138. | Counter timing diagram, internal clock divided by 2 | 590 |
| Figure 139. | Counter timing diagram, internal clock divided by 4 | 591 |
| Figure 140. | Counter timing diagram, internal clock divided by N | 591 |
| Figure 141. | Counter timing diagram, Update event when ARPE=0 (TIMx_ARR not preloaded) | 592 |
| Figure 142. | Counter timing diagram, Update event when ARPE=1 (TIMx_ARR preloaded) | 592 |
| Figure 143. | Counter timing diagram, internal clock divided by 1 | 593 |
| Figure 144. | Counter timing diagram, internal clock divided by 2 | 594 |
| Figure 145. | Counter timing diagram, internal clock divided by 4 | 594 |
| Figure 146. | Counter timing diagram, internal clock divided by N | 594 |
| Figure 147. | Counter timing diagram, Update event | 595 |
| Figure 148. | Counter timing diagram, internal clock divided by 1, TIMx_ARR=0x6 | 596 |
| Figure 149. Counter timing diagram, internal clock divided by 2 . . . . . | 596 |
| Figure 150. Counter timing diagram, internal clock divided by 4, TIMx_ARR=0x36 . . . . . | 597 |
| Figure 151. Counter timing diagram, internal clock divided by N . . . . . | 597 |
| Figure 152. Counter timing diagram, Update event with ARPE=1 (counter underflow) . . . . . | 598 |
| Figure 153. Counter timing diagram, Update event with ARPE=1 (counter overflow) . . . . . | 598 |
| Figure 154. Control circuit in normal mode, internal clock divided by 1 . . . . . | 599 |
| Figure 155. TI2 external clock connection example . . . . . | 600 |
| Figure 156. Control circuit in external clock mode 1 . . . . . | 601 |
| Figure 157. External trigger input block . . . . . | 601 |
| Figure 158. Control circuit in external clock mode 2 . . . . . | 602 |
| Figure 159. Capture/compare channel (example: channel 1 input stage) . . . . . | 602 |
| Figure 160. Capture/compare channel 1 main circuit . . . . . | 603 |
| Figure 161. Output stage of capture/compare channel (channel 1) . . . . . | 603 |
| Figure 162. PWM input mode timing . . . . . | 605 |
| Figure 163. Output compare mode, toggle on OC1 . . . . . | 607 |
| Figure 164. Edge-aligned PWM waveforms (ARR=8) . . . . . | 608 |
| Figure 165. Center-aligned PWM waveforms (ARR=8) . . . . . | 609 |
| Figure 166. Example of one-pulse mode . . . . . | 610 |
| Figure 167. Clearing TIMx OCxREF . . . . . | 612 |
| Figure 168. Example of counter operation in encoder interface mode . . . . . | 614 |
| Figure 169. Example of encoder interface mode with TI1FP1 polarity inverted . . . . . | 614 |
| Figure 170. Control circuit in reset mode . . . . . | 615 |
| Figure 171. Control circuit in gated mode . . . . . | 616 |
| Figure 172. Control circuit in trigger mode . . . . . | 617 |
| Figure 173. Control circuit in external clock mode 2 + trigger mode . . . . . | 618 |
| Figure 174. Master/Slave timer example . . . . . | 618 |
| Figure 175. Gating timer 2 with OC1REF of timer 1 . . . . . | 619 |
| Figure 176. Gating timer 2 with Enable of timer 1 . . . . . | 620 |
| Figure 177. Triggering timer 2 with update of timer 1 . . . . . | 621 |
| Figure 178. Triggering timer 2 with Enable of timer 1 . . . . . | 622 |
| Figure 179. Triggering timer 1 and 2 with timer 1 TI1 input . . . . . | 623 |
| Figure 180. General-purpose timer block diagram (TIM9 and TIM12) . . . . . | 647 |
| Figure 181. General-purpose timer block diagram (TIM10/11/13/14) . . . . . | 648 |
| Figure 182. Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 650 |
| Figure 183. Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 650 |
| Figure 184. Counter timing diagram, internal clock divided by 1 . . . . . | 651 |
| Figure 185. Counter timing diagram, internal clock divided by 2 . . . . . | 652 |
| Figure 186. Counter timing diagram, internal clock divided by 4 . . . . . | 652 |
| Figure 187. Counter timing diagram, internal clock divided by N . . . . . | 652 |
| Figure 188. Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) . . . . . | 653 |
| Figure 189. Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) . . . . . | 653 |
| Figure 190. Control circuit in normal mode, internal clock divided by 1 . . . . . | 654 |
| Figure 191. TI2 external clock connection example . . . . . | 655 |
| Figure 192. Control circuit in external clock mode 1 . . . . . | 655 |
| Figure 193. Capture/compare channel (example: channel 1 input stage) . . . . . | 656 |
| Figure 194. Capture/compare channel 1 main circuit . . . . . | 657 |
| Figure 195. Output stage of capture/compare channel (channel 1) . . . . . | 657 |
| Figure 196. PWM input mode timing . . . . . | 659 |
| Figure 197. Output compare mode, toggle on OC1 . . . . . | 661 |
| Figure 198. Edge-aligned PWM waveforms (ARR=8) . . . . . | 662 |
| Figure 199. Example of one pulse mode . . . . . | 663 |
| Figure 200. Control circuit in reset mode . . . . . | 665 |
| Figure 201. | Control circuit in gated mode . . . . . | 666 |
| Figure 202. | Control circuit in trigger mode . . . . . | 666 |
| Figure 203. | Basic timer block diagram . . . . . | 692 |
| Figure 204. | Counter timing diagram with prescaler division change from 1 to 2 . . . . . | 694 |
| Figure 205. | Counter timing diagram with prescaler division change from 1 to 4 . . . . . | 694 |
| Figure 206. | Counter timing diagram, internal clock divided by 1 . . . . . | 695 |
| Figure 207. | Counter timing diagram, internal clock divided by 2 . . . . . | 696 |
| Figure 208. | Counter timing diagram, internal clock divided by 4 . . . . . | 696 |
| Figure 209. | Counter timing diagram, internal clock divided by N . . . . . | 696 |
| Figure 210. | Counter timing diagram, update event when ARPE=0 (TIMx_ARR not preloaded) . . . . . | 697 |
| Figure 211. | Counter timing diagram, update event when ARPE=1 (TIMx_ARR preloaded) . . . . . | 697 |
| Figure 212. | Control circuit in normal mode, internal clock divided by 1 . . . . . | 698 |
| Figure 213. | Independent watchdog block diagram . . . . . | 705 |
| Figure 214. | Watchdog block diagram . . . . . | 710 |
| Figure 215. | Window watchdog timing diagram . . . . . | 711 |
| Figure 216. | Block diagram (STM32F415/417xx) . . . . . | 718 |
| Figure 217. | Block diagram (STM32F43xxx) . . . . . | 719 |
| Figure 218. | DES/TDES-ECB mode encryption . . . . . | 721 |
| Figure 219. | DES/TDES-ECB mode decryption . . . . . | 721 |
| Figure 220. | DES/TDES-CBC mode encryption . . . . . | 723 |
| Figure 221. | DES/TDES-CBC mode decryption . . . . . | 724 |
| Figure 222. | AES-ECB mode encryption . . . . . | 725 |
| Figure 223. | AES-ECB mode decryption . . . . . | 726 |
| Figure 224. | AES-CBC mode encryption . . . . . | 727 |
| Figure 225. | AES-CBC mode decryption . . . . . | 728 |
| Figure 226. | AES-CTR mode encryption . . . . . | 729 |
| Figure 227. | AES-CTR mode decryption . . . . . | 730 |
| Figure 228. | Initial counter block structure for the Counter mode . . . . . | 730 |
| Figure 229. | 64-bit block construction according to DATATYPE . . . . . | 737 |
| Figure 230. | Initialization vectors use in the TDES-CBC encryption . . . . . | 739 |
| Figure 231. | CRYP interrupt mapping diagram . . . . . | 744 |
| Figure 232. | Block diagram . . . . . | 763 |
| Figure 233. | Block diagram for STM32F415/417xx . . . . . | 769 |
| Figure 234. | Block diagram for STM32F43xxx . . . . . | 770 |
| Figure 235. | Bit, byte and half-word swapping . . . . . | 772 |
| Figure 236. | HASH interrupt mapping diagram . . . . . | 778 |
| Figure 237. | RTC block diagram . . . . . | 796 |
| Figure 238. | I2C bus protocol . . . . . | 837 |
| Figure 239. | I2C block diagram for STM32F40x/41x . . . . . | 838 |
| Figure 240. | I2C block diagram for STM32F42x/43x . . . . . | 839 |
| Figure 241. | Transfer sequence diagram for target transmitter . . . . . | 840 |
| Figure 242. | Transfer sequence diagram for target receiver . . . . . | 841 |
| Figure 243. | Transfer sequence diagram for controller transmitter . . . . . | 844 |
| Figure 244. | Transfer sequence diagram for controller receiver . . . . . | 845 |
| Figure 245. | I2C interrupt mapping diagram . . . . . | 854 |
| Figure 246. | SPI block diagram . . . . . | 871 |
| Figure 247. | Single master/single slave application . . . . . | 872 |
| Figure 248. | Data clock timing diagram . . . . . | 874 |
| Figure 249. | TI mode - Slave mode, single transfer . . . . . | 876 |
| Figure 250. | TI mode - Slave mode, continuous transfer . . . . . | 877 |
| Figure 251. TI mode - master mode, single transfer . . . . . | 878 |
| Figure 252. TI mode - master mode, continuous transfer . . . . . | 879 |
| Figure 253. TXE/RXNE/BSY behavior in Master / full-duplex mode (BIDIMODE=0 and RXONLY=0) in case of continuous transfers . . . . . | 882 |
| Figure 254. TXE/RXNE/BSY behavior in Slave / full-duplex mode (BIDIMODE=0, RXONLY=0) in case of continuous transfers . . . . . | 883 |
| Figure 255. TXE/BSY behavior in Master transmit-only mode (BIDIMODE=0 and RXONLY=0) in case of continuous transfers . . . . . | 884 |
| Figure 256. TXE/BSY in Slave transmit-only mode (BIDIMODE=0 and RXONLY=0) in case of continuous transfers . . . . . | 884 |
| Figure 257. RXNE behavior in receive-only mode (BIDIRMODE=0 and RXONLY=1) in case of continuous transfers . . . . . | 885 |
| Figure 258. TXE/BSY behavior when transmitting (BIDIRMODE=0 and RXONLY=0) in case of discontinuous transfers . . . . . | 886 |
| Figure 259. Transmission using DMA . . . . . | 890 |
| Figure 260. Reception using DMA . . . . . | 891 |
| Figure 261. TI mode frame format error detection . . . . . | 893 |
| Figure 262. I2S block diagram . . . . . | 894 |
| Figure 263. I2S full duplex block diagram . . . . . | 895 |
| Figure 264. I2S Philips protocol waveforms (16/32-bit full accuracy, CPOL = 0) . . . . . | 897 |
| Figure 265. I2S Philips standard waveforms (24-bit frame with CPOL = 0) . . . . . | 897 |
| Figure 266. Transmitting 0x8EAA33 . . . . . | 897 |
| Figure 267. Receiving 0x8EAA33 . . . . . | 898 |
| Figure 268. I2S Philips standard (16-bit extended to 32-bit packet frame with CPOL = 0) . . . . . | 898 |
| Figure 269. Example . . . . . | 898 |
| Figure 270. MSB justified 16-bit or 32-bit full-accuracy length with CPOL = 0 . . . . . | 899 |
| Figure 271. MSB justified 24-bit frame length with CPOL = 0 . . . . . | 899 |
| Figure 272. MSB justified 16-bit extended to 32-bit packet frame with CPOL = 0 . . . . . | 899 |
| Figure 273. LSB justified 16-bit or 32-bit full-accuracy with CPOL = 0 . . . . . | 900 |
| Figure 274. LSB justified 24-bit frame length with CPOL = 0 . . . . . | 900 |
| Figure 275. Operations required to transmit 0x3478AE . . . . . | 900 |
| Figure 276. Operations required to receive 0x3478AE . . . . . | 901 |
| Figure 277. LSB justified 16-bit extended to 32-bit packet frame with CPOL = 0 . . . . . | 901 |
| Figure 278. Example of LSB justified 16-bit extended to 32-bit packet frame . . . . . | 901 |
| Figure 279. PCM standard waveforms (16-bit) . . . . . | 902 |
| Figure 280. PCM standard waveforms (16-bit extended to 32-bit packet frame) . . . . . | 902 |
| Figure 281. Audio sampling frequency definition . . . . . | 903 |
| Figure 282. I2S clock generator architecture . . . . . | 903 |
| Figure 283. Functional block diagram . . . . . | 923 |
| Figure 284. Audio frame . . . . . | 925 |
| Figure 285. FS role is start of frame + channel side identification (FSDEF = TRIS = 1) . . . . . | 927 |
| Figure 286. FS role is start of frame (FSDEF = 0) . . . . . | 928 |
| Figure 287. Slot size configuration with FBOFF = 0 in SAI_xSLOTR . . . . . | 929 |
| Figure 288. First bit offset . . . . . | 929 |
| Figure 289. Audio block clock generator overview . . . . . | 930 |
| Figure 290. AC'97 audio frame . . . . . | 934 |
| Figure 291. Data companding hardware in an audio block in the SAI . . . . . | 936 |
| Figure 292. Tristate strategy on SD output line on an inactive slot . . . . . | 938 |
| Figure 293. Tristate on output data line in a protocol like I2S . . . . . | 939 |
| Figure 294. Overrun detection error . . . . . | 940 |
| Figure 295. FIFO underrun event . . . . . | 941 |
| Figure 296. USART block diagram . . . . . | 963 |
| Figure 297. Word length programming . . . . . | 964 |
| Figure 298. Configurable stop bits . . . . . | 966 |
| Figure 299. TC/TXE behavior when transmitting . . . . . | 967 |
| Figure 300. Start bit detection when oversampling by 16 or 8 . . . . . | 968 |
| Figure 301. Data sampling when oversampling by 16 . . . . . | 971 |
| Figure 302. Data sampling when oversampling by 8 . . . . . | 972 |
| Figure 303. Mute mode using Idle line detection . . . . . | 985 |
| Figure 304. Mute mode using address mark detection . . . . . | 985 |
| Figure 305. Break detection in LIN mode (11-bit break length - LBDL bit is set) . . . . . | 988 |
| Figure 306. Break detection in LIN mode vs. Framing error detection . . . . . | 989 |
| Figure 307. USART example of synchronous transmission . . . . . | 990 |
| Figure 308. USART data clock timing diagram (M=0) . . . . . | 990 |
| Figure 309. USART data clock timing diagram (M=1) . . . . . | 991 |
| Figure 310. RX data setup/hold time . . . . . | 991 |
| Figure 311. ISO 7816-3 asynchronous protocol . . . . . | 992 |
| Figure 312. Parity error detection using the 1.5 stop bits . . . . . | 993 |
| Figure 313. IrDA SIR ENDEC- block diagram . . . . . | 995 |
| Figure 314. IrDA data modulation (3/16) -Normal mode . . . . . | 995 |
| Figure 315. Transmission using DMA . . . . . | 997 |
| Figure 316. Reception using DMA . . . . . | 998 |
| Figure 317. Hardware flow control between 2 USARTs . . . . . | 998 |
| Figure 318. RTS flow control . . . . . | 999 |
| Figure 319. CTS flow control . . . . . | 1000 |
| Figure 320. USART interrupt mapping diagram . . . . . | 1001 |
| Figure 321. SDIO “no response” and “no data” operations . . . . . | 1015 |
| Figure 322. SDIO (multiple) block read operation . . . . . | 1015 |
| Figure 323. SDIO (multiple) block write operation . . . . . | 1016 |
| Figure 324. SDIO sequential read operation . . . . . | 1016 |
| Figure 325. SDIO sequential write operation . . . . . | 1016 |
| Figure 326. SDIO block diagram . . . . . | 1017 |
| Figure 327. SDIO adapter . . . . . | 1018 |
| Figure 328. Control unit . . . . . | 1019 |
| Figure 329. SDIO adapter command path . . . . . | 1020 |
| Figure 330. Command path state machine (CPSM) . . . . . | 1021 |
| Figure 331. SDIO command transfer . . . . . | 1022 |
| Figure 332. Data path . . . . . | 1024 |
| Figure 333. Data path state machine (DPSM) . . . . . | 1025 |
| Figure 334. CAN network topology . . . . . | 1070 |
| Figure 335. Dual CAN block diagram . . . . . | 1072 |
| Figure 336. bxCAN operating modes . . . . . | 1074 |
| Figure 337. bxCAN in silent mode . . . . . | 1075 |
| Figure 338. bxCAN in loop back mode . . . . . | 1075 |
| Figure 339. bxCAN in combined mode . . . . . | 1076 |
| Figure 340. Transmit mailbox states . . . . . | 1078 |
| Figure 341. Receive FIFO states . . . . . | 1079 |
| Figure 342. Filter bank scale configuration - register organization . . . . . | 1081 |
| Figure 343. Example of filter numbering . . . . . | 1082 |
| Figure 344. Filtering mechanism - Example . . . . . | 1083 |
| Figure 345. CAN error state diagram . . . . . | 1085 |
| Figure 346. Bit timing . . . . . | 1087 |
| Figure 347. CAN frames . . . . . | 1088 |
| Figure 348. Event flags and interrupt generation . . . . . | 1089 |
| Figure 349. RX and TX mailboxes ..... | 1100 |
| Figure 350. ETH block diagram ..... | 1117 |
| Figure 351. SMI interface signals ..... | 1118 |
| Figure 352. MDIO timing and frame structure - Write cycle ..... | 1119 |
| Figure 353. MDIO timing and frame structure - Read cycle ..... | 1120 |
| Figure 354. Media independent interface signals ..... | 1120 |
| Figure 355. MII clock sources ..... | 1122 |
| Figure 356. Reduced media-independent interface signals ..... | 1123 |
| Figure 357. RMII clock sources ..... | 1123 |
| Figure 358. Clock scheme ..... | 1124 |
| Figure 359. Address field format ..... | 1126 |
| Figure 360. MAC frame format ..... | 1127 |
| Figure 361. Tagged MAC frame format ..... | 1128 |
| Figure 362. Transmission bit order ..... | 1134 |
| Figure 363. Transmission with no collision ..... | 1134 |
| Figure 364. Transmission with collision ..... | 1135 |
| Figure 365. Frame transmission in MMII and RMII modes ..... | 1135 |
| Figure 366. Receive bit order ..... | 1139 |
| Figure 367. Reception with no error ..... | 1140 |
| Figure 368. Reception with errors ..... | 1140 |
| Figure 369. Reception with false carrier indication ..... | 1140 |
| Figure 370. MAC core interrupt masking scheme ..... | 1141 |
| Figure 371. Wake-up frame filter register ..... | 1145 |
| Figure 372. Networked time synchronization ..... | 1148 |
| Figure 373. System time update using the Fine correction method ..... | 1151 |
| Figure 374. PTP trigger output to TIM2 ITR1 connection ..... | 1153 |
| Figure 375. PPS output ..... | 1154 |
| Figure 376. Descriptor ring and chain structure ..... | 1155 |
| Figure 377. TxDMA operation in Default mode ..... | 1159 |
| Figure 378. TxDMA operation in OSF mode ..... | 1161 |
| Figure 379. Normal transmit descriptor ..... | 1162 |
| Figure 380. Enhanced transmit descriptor ..... | 1168 |
| Figure 381. Receive DMA operation ..... | 1170 |
| Figure 382. Normal Rx DMA descriptor structure ..... | 1172 |
| Figure 383. Enhanced receive descriptor field format with IEEE1588 time stamp enabled ..... | 1177 |
| Figure 384. Interrupt scheme ..... | 1180 |
| Figure 385. Ethernet MAC remote wake-up frame filter register (ETH_MACRWUFFR) ..... | 1190 |
| Figure 386. OTG full-speed block diagram ..... | 1231 |
| Figure 387. OTG A-B device connection ..... | 1233 |
| Figure 388. USB peripheral-only connection ..... | 1235 |
| Figure 389. USB host-only connection ..... | 1239 |
| Figure 390. SOF connectivity ..... | 1243 |
| Figure 391. Updating OTG_FS_HFIR dynamically ..... | 1246 |
| Figure 392. Device-mode FIFO address mapping and AHB FIFO access mapping ..... | 1247 |
| Figure 393. Host-mode FIFO address mapping and AHB FIFO access mapping ..... | 1248 |
| Figure 394. Interrupt hierarchy ..... | 1252 |
| Figure 395. CSR memory map ..... | 1254 |
| Figure 396. Transmit FIFO write task ..... | 1326 |
| Figure 397. Receive FIFO read task ..... | 1327 |
| Figure 398. Normal bulk/control OUT/SETUP and bulk/control IN transactions ..... | 1328 |
| Figure 399. Bulk/control IN transactions ..... | 1331 |
| Figure 400. Normal interrupt OUT/IN transactions ..... | 1333 |
| Figure 401. Normal isochronous OUT/IN transactions | 1338 |
| Figure 402. Receive FIFO packet read | 1344 |
| Figure 403. Processing a SETUP packet | 1346 |
| Figure 404. Bulk OUT transaction | 1353 |
| Figure 405. TRDT max timing case | 1362 |
| Figure 406. A-device SRP | 1363 |
| Figure 407. B-device SRP | 1364 |
| Figure 408. A-device HNP | 1365 |
| Figure 409. B-device HNP | 1367 |
| Figure 410. USB OTG interface block diagram | 1372 |
| Figure 411. USB host-only connection | 1379 |
| Figure 412. SOF trigger output to TIM2 ITR1 connection | 1384 |
| Figure 413. Updating OTG_HS_HFIR dynamically | 1386 |
| Figure 414. Interrupt hierarchy | 1389 |
| Figure 415. CSR memory map | 1391 |
| Figure 416. Transmit FIFO write task | 1480 |
| Figure 417. Receive FIFO read task | 1481 |
| Figure 418. Normal bulk/control OUT/SETUP and bulk/control IN transactions - DMA mode | 1482 |
| Figure 419. Normal bulk/control OUT/SETUP and bulk/control IN transactions - Slave mode | 1483 |
| Figure 420. Bulk/control IN transactions - DMA mode | 1486 |
| Figure 421. Bulk/control IN transactions - Slave mode | 1487 |
| Figure 422. Normal interrupt OUT/IN transactions - DMA mode | 1489 |
| Figure 423. Normal interrupt OUT/IN transactions - Slave mode | 1490 |
| Figure 424. Normal isochronous OUT/IN transactions - DMA mode | 1495 |
| Figure 425. Normal isochronous OUT/IN transactions - Slave mode | 1496 |
| Figure 426. Receive FIFO packet read in slave mode | 1507 |
| Figure 427. Processing a SETUP packet | 1509 |
| Figure 428. Slave mode bulk OUT transaction | 1516 |
| Figure 429. TRDT max timing case | 1525 |
| Figure 430. A-device SRP | 1526 |
| Figure 431. B-device SRP | 1527 |
| Figure 432. A-device HNP | 1528 |
| Figure 433. B-device HNP | 1530 |
| Figure 434. FSMC block diagram | 1533 |
| Figure 435. FSMC memory banks | 1535 |
| Figure 436. Mode1 read accesses | 1542 |
| Figure 437. Mode1 write accesses | 1543 |
| Figure 438. ModeA read accesses | 1544 |
| Figure 439. ModeA write accesses | 1545 |
| Figure 440. Mode2 and mode B read accesses | 1547 |
| Figure 441. Mode2 write accesses | 1547 |
| Figure 442. Mode B write accesses | 1548 |
| Figure 443. Mode C read accesses | 1550 |
| Figure 444. Mode C write accesses | 1550 |
| Figure 445. Mode D read accesses | 1552 |
| Figure 446. Mode D write accesses | 1553 |
| Figure 447. Multiplexed read accesses | 1555 |
| Figure 448. Multiplexed write accesses | 1555 |
| Figure 449. Asynchronous wait during a read access | 1558 |
| Figure 450. Asynchronous wait during a write access | 1558 |
| Figure 451. Wait configurations . . . . . | 1560 |
| Figure 452. Synchronous multiplexed read mode - NOR, PSRAM (CRAM) . . . . . | 1561 |
| Figure 453. Synchronous multiplexed write mode - PSRAM (CRAM) . . . . . | 1563 |
| Figure 454. NAND/PC Card controller timing for common memory access . . . . . | 1576 |
| Figure 455. Access to non 'CE don't care' NAND-Flash . . . . . | 1577 |
| Figure 456. FMC block diagram . . . . . | 1592 |
| Figure 457. FMC memory banks . . . . . | 1595 |
| Figure 458. Mode1 read access waveforms . . . . . | 1606 |
| Figure 459. Mode1 write access waveforms . . . . . | 1606 |
| Figure 460. ModeA read access waveforms . . . . . | 1608 |
| Figure 461. ModeA write access waveforms . . . . . | 1609 |
| Figure 462. Mode2 and mode B read access waveforms . . . . . | 1611 |
| Figure 463. Mode2 write access waveforms . . . . . | 1611 |
| Figure 464. ModeB write access waveforms . . . . . | 1612 |
| Figure 465. ModeC read access waveforms . . . . . | 1614 |
| Figure 466. ModeC write access waveforms . . . . . | 1614 |
| Figure 467. ModeD read access waveforms . . . . . | 1616 |
| Figure 468. ModeD write access waveforms . . . . . | 1617 |
| Figure 469. Muxed read access waveforms . . . . . | 1619 |
| Figure 470. Muxed write access waveforms . . . . . | 1619 |
| Figure 471. Asynchronous wait during a read access waveforms . . . . . | 1621 |
| Figure 472. Asynchronous wait during a write access waveforms . . . . . | 1622 |
| Figure 473. Wait configuration waveforms . . . . . | 1624 |
| Figure 474. Synchronous multiplexed read mode waveforms - NOR, PSRAM (CRAM) . . . . . | 1624 |
| Figure 475. Synchronous multiplexed write mode waveforms - PSRAM (CRAM) . . . . . | 1626 |
| Figure 476. NAND Flash/PC Card controller waveforms for common memory access . . . . . | 1639 |
| Figure 477. Access to non 'CE don't care' NAND-Flash . . . . . | 1640 |
| Figure 478. Burst write SDRAM access waveforms . . . . . | 1653 |
| Figure 479. Burst read SDRAM access . . . . . | 1654 |
| Figure 480. Logic diagram of Read access with RBURST bit set (CAS=2, RPIPE=0) . . . . . | 1655 |
| Figure 481. Read access crossing row boundary . . . . . | 1657 |
| Figure 482. Write access crossing row boundary . . . . . | 1657 |
| Figure 483. Self-refresh mode . . . . . | 1660 |
| Figure 484. Power-down mode . . . . . | 1661 |
| Figure 485. Block diagram of STM32 MCU and Cortex®-M4 with FPU-level debug support . . . . . | 1671 |
| Figure 486. SWJ debug port . . . . . | 1673 |
| Figure 487. JTAG TAP connections . . . . . | 1676 |
| Figure 488. TPIU block diagram . . . . . | 1694 |