![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
this is information on a product in full production. august 2015 docid024738 rev 5 1/134 stm32f401xb stm32f401xc arm ? cortex ? -m4 32b mcu+fpu, 105 dmips, 256kb flash/64kb ram, 11 tims , 1 adc, 11 comm. interfaces datasheet - production data features ? core: arm ? 32-bit cortex ? -m4 cpu with fpu, adaptive real-time accelerator (art accelerator?) allowing 0-wait state execution from flash memory, frequency up to 84 mhz, memory protection unit, 105 dmips/ 1.25 dmips/mhz (dhrystone 2.1), and dsp instructions ? memories ? up to 256 kbytes of flash memory ? up to 64 kbytes of sram ? clock, reset and supply management ? 1.7 v (pdr off) or 1.8 v (pdr on) to 3.6 v application supply and i/os ? por, pdr, pvd and bor ? 4-to-26 mhz crystal oscillator ? internal 16 mhz factory-trimmed rc ? 32 khz oscillator for rtc with calibration ? internal 32 khz rc with calibration ? power consumption ? run: 128 a/mhz (peripheral off) ? stop (flash in stop mode, fast wakeup time): 42 a typ @ 25 c; 65 a max @25 c ? stop (flash in deep power down mode, slow wakeup time): down to 10 a typ@ 25 c; 28 a max @25 c ? standby: 2.4 a @25 c / 1.7 v without rtc; 12 a @85 c @1.7 v ?v bat supply for rtc: 1 a @25 c ? 112-bit, 2.4 msps a/d co nverter: up to 16 channels ? general-purpose dma: 16-stream dma controllers with fifos and burst support ? up to 11 timers: up to six 16-bit, two 32-bit timers up to 84 mhz, each with up to 4 ic/oc/pwm or pulse counter and quadrature (incremental) encoder input, two watchdog timers (independent and window) and a systick timer ? debug mode ? serial wire debug (swd) & jtag interfaces ? cortex-m4 embedded trace macrocell? ? up to 81 i/o ports wit h interrupt capability ? all io ports 5 v tolerant ? up to 78 fast i/os up to 42 mhz ? up to 11 communica tion interfaces ? up to 3 i 2 c interfaces (1mbit/s, smbus/pmbus) ? up to 3 usarts (2 x 10.5 mbit/s, 1 x 5.25 mbit/s), iso 7816 interface, lin, irda, modem control) ? up to 4 spis (up to 42 mbits/s at f cpu = 84 mhz), spi2 and spi3 with muxed full- duplex i 2 s to achieve audio class accuracy via internal audio pll or external clock ? sdio interface ? advanced connectivity ? usb 2.0 full-speed device/host/otg controller with on-chip phy ? crc calculation unit ? 96-bit unique id ? rtc: subsecond accuracy, hardware calendar table 1. device summary reference part number stm32f401xb stm32f401cb, stm32f401rb, stm32f401vb stm32f401xc stm32f401cc, stm32f401rc, STM32F401VC wlcsp49 (2.965x2.965 mm) lqfp100 (14 14 mm) lqfp64 (10 10 mm) ) % * $ ufqfpn48 (7 7 mm) ufbga100 (7 x 7 mm) www.st.com
docid024738 rev 5 2/134 stm32f401xb stm32f401xc contents 4 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 compatibility with stm32f4 series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1 arm ? cortex ? -m4 with fpu core with embedded flash and sram . . . 15 3.2 adaptive real-time memory accelerator (art accelerator?) . . . . . . . . . 15 3.3 memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.4 embedded flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . . 16 3.6 embedded sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.7 multi-ahb bus matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.8 dma controller (dma) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.9 nested vectored interrupt controller (nvic) . . . . . . . . . . . . . . . . . . . . . . . 17 3.10 external interrupt/event controller (exti) . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.11 clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.12 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.13 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.14 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.14.1 internal reset on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.14.2 internal reset off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.15 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.15.1 regulator on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.15.2 regulator off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.15.3 regulator on/off and in ternal power supply super visor availability . . 24 3.16 real-time clock (rtc) and backup registers . . . . . . . . . . . . . . . . . . . . . . 24 3.17 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.18 v bat operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.19 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.19.1 advanced-control timers (tim1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.19.2 general-purpose timers (timx) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 contents stm32f401xb stm32f401xc 3/134 docid024738 rev 5 3.19.3 independent watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.19.4 window watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.19.5 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.20 inter-integrated circuit interface (i2c) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.21 universal synchronous/asynchronous re ceiver transmitters (usart) . . 28 3.22 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.23 inter-integrated sound (i 2 s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.24 audio pll (plli2s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.25 secure digital input/output interface (sdio) . . . . . . . . . . . . . . . . . . . . . . . 30 3.26 universal serial bus on-the-go full-speed (otg_fs) . . . . . . . . . . . . . . . . 30 3.27 general-purpose input/outputs (gpios) . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.28 analog-to-digital converter (adc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.29 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.30 serial wire jtag debug port (swj-dp) . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.31 embedded trace macrocell? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4 pinouts and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.1.7 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 6.3.2 vcap_1/vcap_2 external capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . 61 6.3.3 operating conditions at power-up/power-down (regulator on) . . . . . . . 61 6.3.4 operating conditions at power-up / power-down (regulator off) . . . . . 62 6.3.5 embedded reset and power control bloc k characteristics . . . . . . . . . . . 62 docid024738 rev 5 4/134 stm32f401xb stm32f401xc contents 4 6.3.6 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 6.3.7 wakeup time from low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 6.3.8 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 6.3.9 internal clock source charac teristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.3.10 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.3.11 pll spread spectrum clock generatio n (sscg) characteristics . . . . . . 82 6.3.12 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.3.13 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.3.14 absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 87 6.3.15 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 6.3.16 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.3.17 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 6.3.18 tim timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 6.3.19 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 6.3.20 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 6.3.21 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 6.3.22 v bat monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 6.3.23 embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 6.3.24 sd/sdio mmc card host interface (sdio) characteristics . . . . . . . . . 111 6.3.25 rtc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 7 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 7.1 wlcsp49 2.965x2.965 mm package information . . . . . . . . . . . . . . . . . . . . . .114 7.2 ufqfpn48 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 7.3 lqfp64 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 7.4 lqfp100 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 7.5 ufbga100 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 7.6 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 7.6.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 8 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 list of tables stm32f401xb stm32f401xc 5/134 docid024738 rev 5 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm32f401xb/c features and peripheral counts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 3. regulator on/off and internal power supply superv isor availability. . . . . . . . . . . . . . . . . 24 table 4. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 5. comparison of i2c analog and digital filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 6. usart feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 7. legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 8. stm32f401xb/stm32f401xc pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 9. alternate function mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 10. stm32f401xb/stm32f401xc register boundary addr esses . . . . . . . . . . . . . . . . . . . . . . 51 table 11. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 12. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 13. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 14. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 15. features depending on the operating power supply range . . . . . . . . . . . . . . . . . . . . . . . . 60 table 16. vcap_1/vcap_2 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 17. operating conditions at power-up / power-down (r egulator on) . . . . . . . . . . . . . . . . . . . . 61 table 18. operating conditions at power-up / power-down (r egulator off). . . . . . . . . . . . . . . . . . . . 62 table 19. embedded reset and power control block characterist ics. . . . . . . . . . . . . . . . . . . . . . . . . . 62 table 20. typical and maximum current consumption, code with data processing (art accelerator disabled) running from sram - v dd =1.8v . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 21. typical and maximum current consumption, code with data processing (art accelerator disabled) running from sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 22. typical and maximum current consumption in run mode, code with data processing (art accelerator enabled except pr efetch) running from flash memory- v dd = 1.8 v . . . 65 table 23. typical and maximum current consumption in run mode, code with data processing (art accelerator enabled except pref etch) running from flash memory - v dd = 3.3 v . . 66 table 24. typical and maximum current consumption in run mode, code with data processing (art accelerator disabled) running from flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 25. typical and maximum current consumption in run mode, code with data processing (art accelerator enabled with prefetch) running fr om flash memory . . . . . . . . . . . . . . . . 67 table 26. typical and maximum current consumption in sleep mode . . . . . . . . . . . . . . . . . . . . . . . . 67 table 27. typical and maximum current consumptions in stop mode - v dd =1.8 v . . . . . . . . . . . . . . 68 table 28. typical and maximum current consumption in stop mode - v dd =3.3 v. . . . . . . . . . . . . . . 68 table 29. typical and maximum current consumption in standby mode - v dd =1.8 v . . . . . . . . . . . . 68 table 30. typical and maximum current consumption in standby mode - v dd =3.3 v . . . . . . . . . . . . 69 table 31. typical and maximum current consumptions in v bat mode. . . . . . . . . . . . . . . . . . . . . . . . 69 table 32. switching output i/o current cons umption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 33. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 table 34. low-power mode wakeup timings (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 35. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 36. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 37. hse 4-26 mhz oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 6 table 38. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 39. hsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 40. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 41. main pll characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 42. plli2s (audio pll) characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 docid024738 rev 5 6/134 stm32f401xb stm32f401xc list of tables 6 table 43. sscg parameters constraint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 44. flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 45. flash memory programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 46. flash memory programming with v pp voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 47. flash memory endurance and data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 48. ems characteristics for lqfp100 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 49. emi characteristics for wlcsp49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 50. emi characteristics for lqfp100 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 51. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 52. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 53. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 54. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 55. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 56. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 57. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 58. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 59. i 2 c characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 60. scl frequency (f pclk1 = 42 mhz, v dd = v dd_i2c = 3.3 v) . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 61. spi dynamic characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 62. i 2 s dynamic characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 table 63. usb otg fs startup time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 64. usb otg fs dc electrical characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 65. usb otg fs electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 table 66. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 table 67. adc accuracy at f adc = 18 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 68. adc accuracy at f adc = 30 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 69. adc accuracy at f adc = 36 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 70. adc dynamic accuracy at f adc = 18 mhz - limited test conditions . . . . . . . . . . . . . . . . . 107 table 71. adc dynamic accuracy at f adc = 36 mhz - limited test conditions . . . . . . . . . . . . . . . . . 107 table 72. temperature sensor characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 0 table 73. temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 table 74. v bat monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 table 75. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 table 76. internal reference voltage calibration values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 table 77. dynamic characteristics: sd / mmc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 table 78. rtc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 table 79. wlcsp49 - 0.4 mm pitch wafer level chip scale package mechanical data . . . . . . . . . . 115 table 80. wlcsp49 recommended pcb design rules (0.4 mm pi tch) . . . . . . . . . . . . . . . . . . . . . . 116 table 81. ufqfpn48 - 48-lead, 7 x 7 mm, 0.5 mm pitch, ultra thin fine pitch quad flat package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 table 82. lqfp64 - 64-pin, 10 x 10 mm, 64-pin low-profile quad flat package mechanical data. . . 121 table 83. lqpf100- 100-pin, 14 x 14 mm, 100-pin low-profile quad flat package mechanical data 124 table 84. ufbga100 - 100-ball, 7 x 7 mm, 0.50 mm pitch, ultra fine pitch ball grid array package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 table 85. ufbga100 recommended pcb design rules (0.5 mm pitch bga) . . . . . . . . . . . . . . . . . 127 table 86. package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 table 87. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 table 88. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 list of figures stm32f401xb stm32f401xc 7/134 docid024738 rev 5 list of figures figure 1. compatible board design for lqfp100 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2. compatible board design for lqfp64 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3. stm32f401xb/stm32f401xc block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 4. multi-ahb matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 figure 5. power supply supervisor interconnection with in ternal reset off . . . . . . . . . . . . . . . . . . . 19 figure 6. pdr_on control with internal re set off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 7. regulator off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 8. startup in regulator off: slow v dd slope - power-down reset risen after v cap_1 /v cap_2 stabilization. . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 9. startup in regulator off mode: fast v dd slope - power-down reset risen before v cap_1 /v cap_2 stabilization . . . . . . . . . . . . . . . . . . . . . . . 23 figure 10. stm32f401xb/stm32f401xc wlcsp49 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 11. stm32f401xb/stm32f401xc ufqfpn48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 12. stm32f401xb/stm32f401xc lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 13. stm32f401xb/stm32f401xc lqfp100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 14. stm32f401xb/stm32f401xc ufbga100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 15. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 figure 16. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 figure 17. input voltage measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 figure 18. power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 figure 19. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 figure 20. external capacitor c ext . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 figure 21. typical v bat current consumption (lse and rtc on) . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 figure 22. high-speed external clock source ac timing diagra m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 figure 23. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 figure 24. typical application with an 8 mhz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 figure 25. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 figure 26. acc hsi versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 figure 27. acc lsi versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 28. pll output clock waveforms in center spread mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 figure 29. pll output clock waveforms in down spread mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 figure 30. ft i/o input ch aracteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 figure 31. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 32. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 figure 33. i 2 c bus ac waveforms and measurement ci rcuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 34. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 35. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 36. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 37. i 2 s slave timing diagram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 38. i 2 s master timing diag ram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 39. usb otg fs timings: definition of data signal rise and fall time . . . . . . . . . . . . . . . . . . . 104 figure 40. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 figure 41. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 figure 42. power supply and reference decoupling (v ref+ not connected to v dda ). . . . . . . . . . . . . 109 figure 43. power supply and reference decoupling (v ref+ connected to v dda ). . . . . . . . . . . . . . . . 110 figure 44. sdio high-speed mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 figure 45. sd default mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 figure 46. wlcsp49 - 0.4 mm pitch wafer level chip scale package outline . . . . . . . . . . . . . . . . . . 114 docid024738 rev 5 8/134 stm32f401xb stm32f401xc list of figures 8 figure 47. wlcsp49 0.4 mm pitch wafer level chip scale recommended footprint . . . . . . . . . . . . . 115 figure 48. wlcsp49 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 figure 49. ufqfpn48 - 48-lead, 7 x 7 mm, 0.5 mm pitch, ultra thin fine pitch quad flat package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 figure 50. ufqfpn48 - 48-lead, 7 x 7 mm, 0.5 mm pitch, ultra thin fine pitch quad flat recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 figure 51. ufqfpn48 marking example (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 figure 52. lqfp64 - 64-pin, 10 x 10 mm, 64-pin low-profile quad flat package outline . . . . . . . . . . 120 figure 53. lqfp64 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1 figure 54. lqfp64 marking example (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 figure 55. lqfp100 - 100-pin, 14 x 14 mm, 100-pin low-profile quad flat package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 figure 56. lqfp100 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 figure 57. lqpf100 marking example (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 figure 58. ufbga100 - 100-ball, 7 x 7 mm, 0.50 mm pitch, ultra fine pitch ball grid array package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 figure 59. ufgba100 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 figure 60. ufbga100 marking example (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 introduction stm32f401xb stm32f401xc 9/134 docid024738 rev 5 1 introduction this datasheet provides the description of the stm32f401xb/stm32f401xc line of microcontrollers. the stm32f401xb/stm32f401xc datasheet shou ld be read in conjunction with rm0368 reference manual which is available from the stmicroelectronics website www.st.com . it includes all information concerning flash memory programming. for information on the cortex ? -m4 core, please refer to the cortex ? -m4 programming manual (pm0214) available from www.st.com . docid024738 rev 5 10/134 stm32f401xb stm32f401xc description 53 2 description the stm32f401 x b/stm32f401 x c devices are based on the high-performance arm ? cortex ? -m4 32-bit risc core operating at a frequency of up to 84 mhz. its cortex ? - m4 core features a floating point unit (fpu) si ngle precision which supports all arm single- precision data-processing instructions and data types. it also implements a full set of dsp instructions and a memory protection unit (mpu) which enhances application security. the stm32f401xb/stm32f401xc incorporate high-speed embedded memories (up to 256 kbytes of flash memory, up to 64 kbytes of sram), and an extensive range of enhanced i/os and peripherals connected to two apb buses, two ahb buses and a 32-bit multi-ahb bus matrix. all devices offer one 12-bit adc, a low-pow er rtc, six general-purpose 16-bit timers including one pwm timer for motor control, tw o general-purpose 32-bit timers. they also feature standard and advanced communication interfaces. ? up to three i 2 cs ? up to four spis ? two full duplex i 2 ss. to achieve audio class accuracy, the i 2 s peripherals can be clocked via a dedicated internal audio pll or via an external clock to allow synchronization. ? three usarts ? sdio interface ? usb 2.0 otg full speed interface refer to table 2: stm32f401xb/c features and peripheral counts for the peripherals available for each part number. the stm32f401xb/stm32f401xc operate in the ?40 to +105 c temperature range from a 1.7 (pdr off) to 3.6 v power supply. a comprehensive set of power-saving mode allows the design of low-power applications. these features make the stm32f401xb/stm32 f401xc microcontrollers suitable for a wide range of applications: ? motor drive and application control ? medical equipment ? industrial applications: plc, inverters, circuit breakers ? printers, and scanners ? alarm systems, video intercom, and hvac ? home audio appliances ? mobile phone sensor hub figure 3 shows the general block diagram of the devices. description stm32f401xb stm32f401xc 11/134 docid024738 rev 5 table 2. stm32f401xb/c features and peripheral counts peripherals stm32f401xb stm32f401xc flash memory in kbytes 128 256 sram in kbytes system 64 timers general- purpose 7 advanced- control 1 communication interfaces spi/ i 2 s 3/2 (full duplex) 4/2 (full duplex) 3/2 (full duplex) 4/2 (full duplex) i 2 c3 usart 3 sdio - 1 - 1 usb otg fs 1 gpios 36 50 81365081 12-bit adc number of channels 1 10 16 10 16 maximum cpu frequency 84 mhz operating voltage 1.7 to 3.6 v operating temperatures ambient temperatures: ?40 to +85 c/?40 to +105 c junction temperature: ?40 to + 125 c package wlcsp49 ufqfpn48 lqfp64 ufbga100 lqfp100 wlcsp49 ufqfpn48 lqfp64 ufbga100 lqfp100 docid024738 rev 5 12/134 stm32f401xb stm32f401xc description 53 2.1 compatibility with stm32f4 series the stm32f401xb/stm32f401xc are fully software and feature compatible with the stm32f4 series (stm32f42x, stm32f43x, stm32f41x, stm32f405 and stm32f407) the stm32f401xb/stm32f401xc can be used as drop-in replacement of the other stm32f4 products but some slight changes have to be done on the pcb board. figure 1. compatible board design for lqfp100 package 0 6 9 3 ' 3 ' 3 ' 3 ' 3 % 3 % 3 % 3 % 3 ( 3 ( 3 ( 3 ( 3 ( 3 ( 3 % 9 & |