![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
april 2011 doc id 14610 rev 8 1/112 1 stm32f101xc stm32f101xd stm32f101xe high-density access line, arm-b ased 32-bit mcu with 256 to 512 kb flash, 9 timers, 1 adc an d 10 communication interfaces features core: arm 32-bit cortex?-m3 cpu ? 36 mhz maximum frequency, 1.25 dmips/mhz (dhrystone 2.1) performance ? single-cycle multiplication and hardware division memories ? 256 to 512 kbytes of flash memory ? up to 48 kbytes of sram ? flexible static memory controller with 4 chip select. supports compact flash, sram, psram, nor and nand memories ? lcd parallel interface, 8080/6800 modes clock, reset and supply management ? 2.0 to 3.6 v application supply and i/os ? por, pdr, and programmable voltage detector (pvd) ? 4-to-16 mhz crystal oscillator ? internal 8 mhz factory-trimmed rc ? internal 40 khz rc with calibration capability ? 32 khz oscillator for rtc with calibration low power ? sleep, stop and standby modes ?v bat supply for rtc and backup registers 1 x 12-bit, 1 s a/d converters (up to 16 channels) ? conversion range: 0 to 3.6 v ? temperature sensor 2 12-bit d/a converters dma ? 12-channel dma controller ? peripherals supported: timers, adc, dac, spis, i 2 cs and usarts up to 112 fast i/o ports ? 51/80/112 i/os, all mappable on 16 external interrupt vectors and almost all 5 v-tolerant debug mode ? serial wire debug (swd) & jtag interfaces ? cortex-m3 embedded trace macrocell? up to 9 timers ? up to four 16-bit timers, each with up to 4 ic/oc/pwm or pulse counters ? 2 watchdog timers (independent and window) ? systick timer: a 24-bit downcounter ? 2 16-bit basic timers to drive the dac up to 10 communication interfaces ? up to 2 x i 2 c interfaces (smbus/pmbus) ? up to 5 usarts (iso 7816 interface, lin, irda capability, modem control) ? up to 3 spis (18 mbit/s) crc calculation unit, 96-bit unique id ecopack ? packages table 1. device summary reference part number stm32f101xc stm32f101rc stm32f101vc stm32f101zc stm32f101xd stm32f101rd stm32f101vd stm32f101zd stm32f101xe stm32f101re stm32f101ze stm32f101ve lqf p144 20 2 0 mm lqfp64 10 10 mm lqfp100 14 14 mm www.st.com
contents stm32f101xc, stm32f101xd, stm32f101xe 2/112 doc id 14610 rev 8 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2 full compatibility throughout the family . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3.1 arm ? cortex?-m3 core with embedded flash and sram . . . . . . . . . 14 2.3.2 embedded flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.3 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . 15 2.3.4 embedded sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.5 fsmc (flexible static memory controller) . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.6 lcd parallel interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.7 nested vectored interrupt controller (nvic) . . . . . . . . . . . . . . . . . . . . . . 16 2.3.8 external interrupt/event controller (exti) . . . . . . . . . . . . . . . . . . . . . . . 16 2.3.9 clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.3.10 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.3.11 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.3.12 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.3.13 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.3.14 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.3.15 dma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.3.16 rtc (real-time clock) and backup registers . . . . . . . . . . . . . . . . . . . . . . 18 2.3.17 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.3.18 i2c bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.3.19 universal synchronous/asynchronous receiver transmitters (usarts) 20 2.3.20 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.3.21 gpios (general-purpose inputs/outputs) . . . . . . . . . . . . . . . . . . . . . . . . 20 2.3.22 adc (analog to digital converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3.23 dac (digital-to-analog converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3.24 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3.25 serial wire jtag debug port (swj-dp) . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3.26 embedded trace macrocell? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3 pinouts and pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 stm32f101xc, stm32f101xd, stm32f101xe contents doc id 14610 rev 8 3/112 4 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.1.7 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.3.2 operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 38 5.3.3 embedded reset and power control block characteristics . . . . . . . . . . . 39 5.3.4 embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.3.5 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.3.6 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.3.7 internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 5.3.8 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 5.3.9 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 5.3.10 fsmc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 5.3.11 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 5.3.12 absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 78 5.3.13 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 5.3.14 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 5.3.15 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 5.3.16 tim timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 5.3.17 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 5.3.18 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 5.3.19 dac electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.3.20 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 6 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 6.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 6.2 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 contents stm32f101xc, stm32f101xd, stm32f101xe 4/112 doc id 14610 rev 8 6.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 6.2.2 evaluating the maximum junction temperature for an application . . . . 105 7 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 8 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 stm32f101xc, stm32f101xd, stm32f101xe list of tables doc id 14610 rev 8 5/112 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm32f101xc, stm32f101xd and stm32f101xe features and peripheral counts . . . . 11 table 3. stm32f101xx family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 4. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 5. high-density stm32f101xx pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 6. fsmc pin definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 7. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 8. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 9. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 10. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 11. operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 12. embedded reset and power control block characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 13. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 table 14. maximum current consumption in run mode, code with data processing running from flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 15. maximum current consumption in run mode, code with data processing running from ram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 16. maximum current consumption in sleep mode, code running from flash or ram. . . . . . . 43 table 17. typical and maximum current consumptions in stop and standby modes . . . . . . . . . . . . 43 table 18. typical current consumption in run mode, code with data processing running from flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 19. typical current consumption in sleep mode, code running from flash or ram . . . . . . . . . 47 table 20. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 21. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 22. low-speed user external clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 23. hse 4-16 mhz oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 table 24. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 25. hsi oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 26. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 27. low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 28. pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 29. flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 30. flash memory endurance and data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 31. asynchronous non-multiplexed sram/psram/nor read timings . . . . . . . . . . . . . . . . . . 58 table 32. asynchronous non-multiplexed sram/psram/nor write timings . . . . . . . . . . . . . . . . . . 59 table 33. asynchronous multiplexed nor/psram read timings. . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 34. asynchronous multiplexed nor/psram write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 table 35. synchronous multiplexed nor/psram read timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 36. synchronous multiplexed psram write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 37. synchronous non-multiplexed nor/psram read timings . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 38. synchronous non-multiplexed psram write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 39. switching characteristics for pc card/cf read and write cycles . . . . . . . . . . . . . . . . . . . . 73 table 40. switching characteristics for nand flash read and write cycles . . . . . . . . . . . . . . . . . . . . 76 table 41. ems characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 42. emi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 43. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 44. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 45. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 list of tables stm32f101xc, stm32f101xd, stm32f101xe 6/112 doc id 14610 rev 8 table 46. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 47. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 48. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 49. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 50. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 51. i 2 c characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 52. scl frequency (f pclk1 = 36 mhz, v dd = 3.3 v) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 53. stm32f10xxx spi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 54. spi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 55. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 table 56. r ain max for f adc = 14 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 57. adc accuracy - limited test conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 58. adc accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 59. dac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 60. ts characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 table 61. lqfp144, 20 x 20 mm, 144-pin thin quad flat package mechanical data . . . . . . . . . . . . 101 table 62. lqpf100 ? 14 x 14 mm, 100-pin low-profile quad flat package mechanical data . . . . . . 102 table 63. lqfp64 ? 10 x 10 mm, 64 pin low-profile quad flat package mechanical data . . . . . . . . 103 table 64. package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 table 65. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 stm32f101xc, stm32f101xd, stm32f101xe list of figures doc id 14610 rev 8 7/112 list of figures figure 1. stm32f101xc, stm32f101xd and stm32f101xe access line block diagram . . . . . . . . 12 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3. stm32f101xc, stm32f101xd and stm32f101xe access line lqfp144 pinout . . . . . . 23 figure 4. stm32f101xc, stm32f101xd and stm32f101xe lqfp100 pinout . . . . . . . . . . . . . . . 24 figure 5. stm32f101xc, stm32f101xd and stm32f101xe lqfp64 pinout . . . . . . . . . . . . . . . . 25 figure 6. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 7. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 8. pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 9. power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 10. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 11. typical current consumption in run mode versus frequency (at 3.6 v) - code with data processing running from ram, peripherals enabled. . . . . . . . . . . . . . . . . . 42 figure 12. typical current consumption in run mode versus frequency (at 3.6 v) - code with data processing running from ram, peripherals disabled . . . . . . . . . . . . . . . . . 42 figure 13. typical current consumption on v bat with rtc on vs. temperature at different v bat values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 figure 14. typical current consumption in stop mode with regulator in run mode versus temperature at different v dd values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 figure 15. typical current consumption in stop mode with regulator in low-power mode versus temperature at different v dd values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 16. typical current consumption in standby mode versus temperature at different v dd values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 17. high-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 figure 18. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 figure 19. typical application with an 8 mhz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 figure 20. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 figure 21. asynchronous non-multiplexed sram/psram/nor read waveforms . . . . . . . . . . . . . . . 58 figure 22. asynchronous non-multiplexed sram/psram/nor write waveforms . . . . . . . . . . . . . . . 59 figure 23. asynchronous multiplexed nor/psram read waveforms. . . . . . . . . . . . . . . . . . . . . . . . . 60 figure 24. asynchronous multiplexed nor/psram write waveforms . . . . . . . . . . . . . . . . . . . . . . . . 62 figure 25. synchronous multiplexed nor/psram read timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 figure 26. synchronous multiplexed psram write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 figure 27. synchronous non-multiplexed nor/psram read timings . . . . . . . . . . . . . . . . . . . . . . . . . 67 figure 28. synchronous non-multiplexed psram write timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 figure 29. pc card/compactflash controller waveforms for common memory read access . . . . . . . 69 figure 30. pc card/compactflash controller waveforms for common memory write access . . . . . . . 70 figure 31. pc card/compactflash controlle r waveforms for attribute memory read access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 32. pc card/compactflash controlle r waveforms for attribute memory write access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 33. pc card/compactflash controller waveforms for i/o space read access . . . . . . . . . . . . . 72 figure 34. pc card/compactflash controller waveforms for i/o space write access . . . . . . . . . . . . . 73 figure 35. nand controller waveforms for read access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 figure 36. nand controller waveforms for write access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 figure 37. nand controller waveforms for common memory read access . . . . . . . . . . . . . . . . . . . . . 75 figure 38. nand controller waveforms for common memory write access. . . . . . . . . . . . . . . . . . . . . 76 figure 39. standard i/o input characteristics - cmos port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 figure 40. standard i/o input characteristics - ttl port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1 list of figures stm32f101xc, stm32f101xd, stm32f101xe 8/112 doc id 14610 rev 8 figure 41. 5 v tolerant i/o input characteristics - cmos port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 42. 5 v tolerant i/o input characteristics - ttl port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 43. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 44. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 45. i 2 c bus ac waveforms and measurement circuit (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 figure 46. spi timing diagram - slave mode and cpha=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 figure 47. spi timing diagram - slave mode and cpha=1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 figure 48. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 figure 49. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 figure 50. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 figure 51. power supply and reference decoupling (v ref+ not connected to v dda ). . . . . . . . . . . . . . 96 figure 52. power supply and reference decoupling (vref+ connected to vdda) . . . . . . . . . . . . . . . 97 figure 53. 12-bit buffered /non-buffered dac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 54. lqfp144, 20 x 20 mm, 144-pin thin quad flat package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 55. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 56. lqfp100 ? 14 x 14 mm, 100-pin low-profile quad flat package outline . . . . . . . . . . . . . . 102 figure 57. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 58. lqfp64 ? 10 x 10 mm, 64 pin low-profile quad flat package outline . . . . . . . . . . . . . . . . 103 figure 59. recommended footprint (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 figure 60. lqfp64 p d max vs. t a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 stm32f101xc, stm32f101xd, stm32f101xe introduction doc id 14610 rev 8 9/112 1 introduction this datasheet provides the ordering information and mechanical device characteristics of the stm32f101xc, stm32f101xd and stm32f101xe high-density access line microcontrollers. for more details on the whole stmicroelectronics stm32f101xx family, please refer to section 2.2: full compatib ility throughou t the family . the high-density stm32f101xx datasheet should be read in conjunction with the stm32f10xxx reference manual. for information on programming, erasing and protection of the internal flash memory please refer to the stm32f10xxx flash programming manual. the reference and flash programming manuals are both available from the stmicroelectronics website www.st.com. for information on the cortex?-m3 core please refer to the cortex?-m3 technical reference manual, available from the www.arm.com website at the following address: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/. description stm32f101xc, stm32f101xd, stm32f101xe 10/112 doc id 14610 rev 8 2 description the stm32f101xc, stm32f101xd and stm32f101xe access line family incorporates the high-performance arm ? cortex?-m3 32-bit risc core operating at a 36 mhz frequency, high-speed embedded memories (flash memory up to 512 kbytes and sram up to 48 kbytes), and an extensive ra nge of enhanced i/os and peripherals c onnected to two apb buses. all devices offer one 12-bit adc, four general-purpose 16-bit timers, as well as standard and advanced communication interfaces: up to two i 2 cs, three spis and five usarts. the stm32f101xx high-density access line family operates in the ?40 to +85 c temperature range, from a 2.0 to 3.6 v power supply. a comprehensive set of power-saving mode allows the design of low-power applications. these features make the stm32f101xx high-density access line microcontroller family suitable for a wide range of applications such as medical and handheld equipment, pc peripherals and gaming, gps platforms, industrial applications, plc, printers, scanners alarm systems and video intercom. stm32f101xc, stm32f101xd, stm32f101xe description doc id 14610 rev 8 11/112 2.1 device overview the stm32f101xx high-density access line family offers devices in 3 different package types: from 64 pins to 144 pins. depending on the device chosen, different sets of peripherals are included, the description below gives an overview of the complete range of peripherals proposed in this family. figure 1 shows the general block diagram of the device family. table 2. stm32f101xc, stm32f101xd and stm32f101xe features and peripheral counts peripherals stm32f101rx stm32f101vx stm32f101zx flash memory in kbytes 256 384 512 256 384 512 256 384 512 sram in kbytes 32 48 32 48 32 48 fsmc no yes (1) 1. for the lqfp100 package, only fsmc bank1 an d bank2 are available. bank1 can only support a multiplexed nor/psram memory using the ne1 chip select. bank2 can only support a 16- or 8-bit nand flash memory using the nce2 chip select. t he interrupt line cannot be used since port g is not available in this package. ye s timers general- purpose 4 basic 2 comm spi 3 i 2 c2 usart 5 gpios 51 80 112 12-bit adc number of channels 1 16 1 16 1 16 12-bit dac number of channels 1 2 cpu frequency 36 mhz operating voltage 2.0 to 3.6 v operating temperatures ambient temperature: ?40 to +85 c (see ta bl e 1 0 ) junction temperature: ?40 to +105 c (see ta b l e 1 0 ) package lqfp64 lqfp100 lqfp144 description stm32f101xc, stm32f101xd, stm32f101xe 12/112 doc id 14610 rev 8 figure 1. stm32f101xc, stm32f101xd and stm32f101xe access line block diagram 1. t a = ?40 c to +85 c (junction temperature up to 105 c). 2. af = alternate function on i/o port pin. pa[15:0] ext.it 112af ahb2 wkup f m a x : 3 6 mhz v ss i2c2 gp dma1 tim2 tim 3 xtal 3 2khz fl as h 512 k b yte s v dd b a ck u p interf a ce tim4 b us m a trix 64 b it rtc rc 8 mhz cortex-m 3 cpu d bus o b l fl as h interf a ce u s art 2 s pi2 b a ck u p reg i2c1 rx, tx, ct s , r t s , u s art 3 rc 40 khz s t a nd b y iwdg @ v bat por / pdr @v dda v bat =1. 8 v to 3 .6 v ck, as af rx, tx , ct s , rt s , ck, as af nvic s pi1 interf a ce @vdda pvd int ahb2 apb2 awu s pi 3 uart4 rx,tx as af uart5 rx,tx as af tim5 pll @v dda f s mc dac_out1 as af dac_out2 as af s ram 4 8 kb gp dma2 tim6 tim7 njtr s t jtdi jtck/ s wclk jtm s / s wdio jtdo as af a[25:0] d[15:0] clk noe nwe ne[4:1] nbl[1:0] nwait nl as af 7 ch a nnel s 5 ch a nnel s gpio port a gpio port b gpio port c gpio port d gpio port e gpio port f gpio port g u s art1 temp. s en s or 12- b it adc if pb[15:0] pc[15:0] pd[15:0] pe[15:0] pf[15:0] pg[15:0] adc_in[0:15] @ v dda apb2: fm a x = 24/ 3 6 mhz apb1 tr a ce controller p bus i bus s y s tem re s et & clock control pclk1 pclk2 hclk fclk power volt. reg. 3 . 3 v to 1. 8 v su pply su pervi s ion @v dd por re s et nr s t v dda v ss a o s c_in o s c_out @v dd xtal o s c 4-16 mhz o s c 3 2_in o s c 3 2_out tamper-rtc/ alarm/ s econd out 4 ch a nnel s as af 4 ch a nnel s as af 4 ch a nnel s as af 4 ch a nnel s as af mo s i, mi s o s ck, n ss as af mo s i, mi s o s ck, n ss as af s cl, s da, s mba as af s cl, s da, s mba as af wwdg a i1469 3 d apb1: f m a x = 24/ 3 6 mhz traceclk traced[0: 3 ] as a s s w/jtag tpiu tr a ce/trig v ref+ v ref? mo s i, mi s o, s ck, n ss as af rx, tx, ct s , rt s as af 12 b it dac1 if if if 12 b it dac 2 stm32f101xc, stm32f101xd, stm32f101xe description doc id 14610 rev 8 13/112 figure 2. clock tree 1. when the hsi is used as a pll clock input, the maxi mum system clock frequency t hat can be achieved is 36 mhz. 2. to have an adc conversion time of 1 s, apb2 must be at 14 mhz or 28 mhz. hse osc 4-16 mhz osc_in osc_out osc32_in osc32_out lse osc 32.768 khz hsi rc 8 mhz lsi rc 40 khz to independent watchdog (iwdg) pll x2, x3, x4 pllmul hse = high speed external clock signal lse = low speed external clock signal lsi = low speed internal clock signal hsi = high speed internal clock signal legend: mco clock output main pllxtpre /2 ..., x16 ahb prescaler /1, 2..512 /2 pllclk hsi hse apb1 prescaler /1, 2, 4, 8, 16 adc prescaler /2, 4, 6, 8 adcclk pclk1 hclk pllclk to ahb bus, core, memory and dma to adc lse lsi hsi /128 /2 hsi hse peripherals to apb1 peripheral clock enable (18 bits) enable (6 bits) peripheral clock apb2 prescaler /1, 2, 4, 8, 16 pclk2 peripherals to apb2 peripheral clock enable (11 bits) 36 mhz max 36 mhz 36 mhz max 36 mhz max to rtc pllsrc sw mco css to cortex system timer /8 clock enable (7 bits) sysclk max rtcclk rtcsel[1:0] timxclk iwdgclk sysclk fclk cortex free running clock tim2,3,4,5,6,7 to tim2,3,4,5,6 and 7 to fsmc fsmcclk peripheral clock enable ai15100 if (apb1 prescaler =1) x1 else x2 flitfclk to flash programming interface description stm32f101xc, stm32f101xd, stm32f101xe 14/112 doc id 14610 rev 8 2.2 full compatibility throughout the family the stm32f101xx is a complete family whose members are fully pin-to-pin, software and feature compatible. in the reference manual, the stm32f101x4 and stm32f101x6 are identified as low-density devices, the stm32f101x8 and stm32f101xb are referred to as medium-density devices, and the stm32f101xc, stm32f101xd and stm32f101xe are referred to as high-density devices. low- and high-density devices are an extension of the stm32f101x8/b medium-density devices, they are specified in the stm32f101x4/6 and stm32f101xc/d/e datasheets, respectively. low-density devices feature lower flash memory and ram capacities, less timers and peripherals. high-density devices have higher flash memory and ram densities, and additional peripherals like fsmc and dacwhile remaining fully compatible with the other members of the family. the stm32f101x4, stm32f101x6, stm32f101xc, stm32f101xd and stm32f101xe are a drop-in replacement for the stm32f101x8/b devices, allowing the user to try different memory densities and providi ng a greater degree of freedom during the development cycle. moreover, the stm32f101xx access line family is fully compatible with all existing stm32f103xx performance line and stm32f102xx usb access line devices. 2.3 overview 2.3.1 arm ? cortex?-m3 core with embedded flash and sram the arm cortex?-m3 processor is the latest generation of arm processors for embedded systems. it has been developed to provide a low-cost platform that meets the needs of mcu implementation, with a reduced pin count and low-power consumption, while delivering outstanding computational performance and an advanced system response to interrupts. table 3. stm32f101xx family pinout memory size low-density devices medium-densi ty devices high-density devices 16 kb flash 32 kb flash (1) 1. for orderable part numbers that do not show the a inte rnal code after the temperature range code (6), the reference datasheet for electrical c haracteristics is that of the st m32f101x8/b medium-density devices. 64 kb flash 128 kb flash 256 kb flash 384 kb flash 512 kb flash 4 kb ram 6 kb ram 10 kb ram 16 kb ram 32 kb ram 48 kb ram 48 kb ram 144 5 usarts 4 16-bit timers, 2 basic timers 3 spis, 2 i 2 cs, 1 adc, 2 dacs fsmc (100 and 144 pins) 100 3 usarts 3 16-bit timers 2 spis, 2 i2cs, 1 adc 64 2 usarts 2 16-bit timers 1 spi, 1 i 2 c 1 adc 48 36 stm32f101xc, stm32f101xd, stm32f101xe description doc id 14610 rev 8 15/112 the arm cortex?-m3 32-bit risc processor features exceptional code-efficiency, delivering the high-performance expected from an arm core in the memory size usually associated with 8- and 16-bit devices. the stm32f101xc, stm32f101xd and stm32f101xe access line family having an embedded arm core, is therefore compatible with all arm tools and software. figure 1 shows the general block diagram of the device family. 2.3.2 embedded flash memory 256 to 512 kbytes of embedded flash are available for storing programs and data. 2.3.3 crc (cyclic redundanc y check) calculation unit the crc (cyclic redundancy check) calculation unit is used to get a crc code from a 32-bit data word and a fixed generator polynomial. among other applications, crc-based techniques are used to verify data transmission or storage integrity. in the scope of the en/iec 60335-1 standard, they offer a means of verifying the flash memory integrity. the crc ca lculation unit helps co mpute a signature of the software during runtime, to be compared with a reference signature generated at link- time and stored at a given memory location. 2.3.4 embedded sram up to 48 kbytes of embedded sram accessed (read/write) at cpu clock speed with 0 wait states. 2.3.5 fsmc (flexible static memory controller) the fsmc is embedded in the stm32f101xc, stm32f101xd and stm32f101xe access line family. it has four chip select outputs supporting the following modes: pc card/compact flash, sr am, psram, nor and nand. functionality overview: the three fsmc interrupt lines are ored in order to be connected to the nvic write fifo code execution from external memory except for nand flash and pc card the targeted frequency is hclk/2, so external access is at 18 mhz when hclk is at 36 mhz 2.3.6 lcd parallel interface the fsmc can be configured to interface seamlessly with most graphic lcd controllers. it supports the intel 8080 and motorola 6800 modes, and is flexible enough to adapt to specific lcd interfaces. this lcd parallel interface capability makes it easy to build cost- effective graphic applications using lcd modules with embedded controllers or high- performance solutions using external controllers with dedicated acceleration. description stm32f101xc, stm32f101xd, stm32f101xe 16/112 doc id 14610 rev 8 2.3.7 nested vectored interrupt controller (nvic) the stm32f101xc, stm32f101xd and stm32f101xe access line embeds a nested vectored interrupt controller able to handle up to 60 maskable interrupt channels (not including the 16 interrupt lines of cortex?-m3) and 16 priority levels. closely coupled nvic gives low-latency interrupt processing interrupt entry vector table address passed directly to the core closely coupled nvic core interface allows early processing of interrupts processing of late arriving higher priority interrupts support for tail-chaining processor state automatically saved interrupt entry restored on interrupt exit with no instruction overhead this hardware block provides flexible interrupt management features with minimal interrupt latency. 2.3.8 external interrupt /event controller (exti) the external interrupt/event controller consists of 19 edge detector lines used to generate interrupt/event requests. each line can be independently configured to select the trigger event (rising edge, falling edge, both) and can be masked independently. a pending register maintains the status of the interrupt requests. the exti can detect an external line with a pulse width shorter than the internal apb2 cloc k period. up to 112 gp ios can be connected to the 16 external interrupt lines. 2.3.9 clocks and startup system clock selection is performed on startup, however the internal rc 8 mhz oscillator is selected as default cpu clock on reset. an ex ternal 4-16 mhz clock can be selected, in which case it is monitored for failure. if failure is detected, the system automatically switches back to the internal rc oscillato r. a software interrupt is genera ted if enabled. similarly, full interrupt management of the pll clock is available when necessary (for example with failure of an indirectly used external oscillator). several prescalers are used to configure the ahb frequency, th e high-speed apb (apb2) domain and the low-speed apb (apb1) domain. the maximum frequency of the ahb and apb domains is 36 mhz. see figure 2 for details on the clock tree. 2.3.10 boot modes at startup, boot pins are used to select one of three boot options: boot from user flash: you have an option to boot from any of two memory banks. by default, boot from flash memory bank 1 is selected. you can choose to boot from flash memory bank 2 by setting a bit in the option bytes. boot from system memory boot from embedded sram the bootloader is located in system memory. it is used to reprogram the flash memory by using usart1. stm32f101xc, stm32f101xd, stm32f101xe description doc id 14610 rev 8 17/112 2.3.11 power supply schemes v dd = 2.0 to 3.6 v: external power supply for i/os and the internal regulator. provided externally through v dd pins. v ssa , v dda = 2.0 to 3.6 v: external analog power supplies for adc, dac, reset blocks, rcs and pll (minimum voltage to be applied to v dda is 2.4 v when the adc or dac is used). v dda and v ssa must be connected to v dd and v ss , respectively. v bat = 1.8 to 3.6 v: power supply for rtc, external clock 32 khz oscillator and backup registers (through power switch) when v dd is not present. for more details on how to connect power pins, refer to figure 9: power supply scheme . 2.3.12 power supply supervisor the device has an integrated power-on reset (por)/power-down reset (pdr) circuitry. it is always active, and ensures proper operation starting from/down to 2 v. the device remains in reset mode when v dd is below a specified threshold, v por/pdr , without the need for an external reset circuit. the device features an embedded programmable voltage detector (pvd) that monitors the v dd /v dda power supply and compares it to the v pvd threshold. an interrupt can be generated when v dd /v dda drops below the v pvd threshold and/or when v dd /v dda is higher than the v pvd threshold. the interrupt service routine can then generate a warning message and/or put the mcu into a safe state. the pvd is enabled by software. refer to table 12: embedded reset and power control block characteristics for the values of v por/pdr and v pvd . 2.3.13 voltage regulator the regulator has three operation modes: main (mr), low power (lpr) and power down. mr is used in the nominal regulation mode (run) lpr is used in the stop modes. power down is used in standby mode: the regulator output is in high impedance: the kernel circuitry is powered down, inducing ze ro consumption (but the contents of the registers and sram are lost) this regulator is always enabled after reset. it is disabled in standby mode. 2.3.14 low-power modes the stm32f101xc, stm32f101xd and stm32f101xe access line supports three low- power modes to achieve the best compromise between low power consumption, short startup time and available wakeup sources: sleep mode in sleep mode, only the cpu is stopped. all peripherals continue to operate and can wake up the cpu when an interrupt/event occurs. stop mode stop mode achieves the lowest power consumption while retaining the content of sram and registers. all clocks in the 1.8 v domain are stopped, the pll, the hsi rc and the hse crystal oscillators are disabled. the voltage regulator can also be put either in normal or in low power mode. description stm32f101xc, stm32f101xd, stm32f101xe 18/112 doc id 14610 rev 8 the device can be woken up from stop mode by any of the exti line. the exti line source can be one of the 16 external lines, the pvd output or the rtc alarm. standby mode the standby mode is used to achieve the lowest power consumption. the internal voltage regulator is switched off so that the entire 1.8 v domain is powered off. the pll, the hsi rc and the hse crystal oscillators are also switched off. after entering standby mode, sram and register contents are lost except for registers in the backup domain and standby circuitry. the device exits standby mode when an external reset (nrst pin), a iwdg reset, a rising edge on the wkup pin, or an rtc alarm occurs. note: the rtc, the iwdg, and the corresponding clock sources are not stopped by entering stop or standby mode. 2.3.15 dma the flexible 12-channel general-purpose dmas (7 channels for dma1 and 5 channels for dma2) are able to manage memory-to-memory, peripheral-to-memory and memory-to- peripheral transfers. the two dma controllers support circular buffer management, removing the need for user code intervention when the controller reaches the end of the buffer. each channel is connected to dedicated hardware dma requests, with support for software trigger on each channel. configuration is made by software and transfer sizes between source and destination are independent. dma can be used with the main peripherals: spi, i 2 c, usart, general-purpose and basic timers timx, dac and adc. 2.3.16 rtc (real-time cl ock) and backup registers the rtc and the backup registers are supplied through a switch that takes power either on v dd supply when present or through the v bat pin. the backup registers are forty-two 16-bit registers used to store 84 bytes of user application data when v dd power is not present. they are not reset by a system or power reset, and they are not reset when the device wakes up from the standby mode. the real-time clock provides a set of continuo usly running counters which can be used with suitable software to provide a clock calendar function, and provides an alarm interrupt and a periodic interrupt. it is clocke d by a 32.768 khz external crysta l, resonator or oscillator, the internal low power rc oscillator or the high speed external clock divided by 128. the internal low-speed rc has a typical frequency of 40 khz. the rtc can be calibrated using an external 512 hz output to compensate for any natural quartz deviation. the rtc features a 32-bit programmable counter for long term measurement using the compare register to generate an alarm. a 20-bit prescaler is used for the time base clock and is by default configured to generate a time base of 1 second from a clock at 32.768 khz. 2.3.17 timers and watchdogs the high-density stm32f101xx access line devices include up to four general-purpose timers, two basic timers, two watchdog timers and a systick timer. ta bl e 4 compares the features of the general-purpose and basic timers. stm32f101xc, stm32f101xd, stm32f101xe description doc id 14610 rev 8 19/112 general-purpose timers (timx) there are up to 4 synchronizable general-purpose timers (tim2, tim3, tim4 and tim5) embedded in the stm32f101xc, stm32f101xd and stm32f101xe access line devices. these timers are based on a 16-bit auto-rel oad up/down counter, a 16-bit prescaler and feature 4 independent channels each for input capture/output compare, pwm or one-pulse mode output. this gives up to 16 input captur es / output compares / pwms on the largest packages. the general-purpose timers can work together with the advanced-control timer via the timer link feature for synchronization or event chaining. their counter can be frozen in debug mode. any of the general-purpose timers can be used to generate pwm outputs. they all have independent dma request generation. these timers are capable of handling quadrature (incremental) encoder signals and the digital outputs from 1 to 3 hall-effect sensors. basic timers tim6 and tim7 these timers are mainly used for dac trigger generation. they can also be used as a generic 16-bit time base. independent watchdog the independent watchdog is based on a 12-bit downcounter and 8-bit prescaler. it is clocked from an independent 40 khz internal rc and as it operates independently from the main clock, it can operate in stop and standby modes. it can be used either as a watchdog to reset the device when a problem occurs, or as a free running timer for application timeout management. it is hardware or software configurable through the option bytes. the counter can be frozen in debug mode. window watchdog the window watchdog is based on a 7-bit downcoun ter that can be set as free running. it can be used as a watchdog to reset the device when a problem occurs. it is clocked from the main clock. it has an early warning interrup t capability and the counter can be frozen in debug mode. table 4. timer feature comparison timer counter resolution counter type prescaler factor dma request generation capture/compare channels complementary outputs tim2, tim3, tim4, tim5 16-bit up, down, up/down any integer between 1 and 65536 ye s 4 n o tim6, tim7 16-bit up any integer between 1 and 65536 ye s 0 n o description stm32f101xc, stm32f101xd, stm32f101xe 20/112 doc id 14610 rev 8 systick timer this timer is dedicated to real-time operating systems, but could also be used as a standard down counter. it features: a 24-bit down counter autoreload capability maskable system interrupt generation when the counter reaches 0. programmable clock source 2.3.18 i2c bus up to two i2c bus interfaces can operate in multi-master and slave modes. they support standard and fast modes. they support 7/10-bit addressing mode and 7-bit dual addressing mode (as slave). a hardware crc generation/verification is embedded. they can be served by dma and they support smbus 2.0/pmbus. 2.3.19 universal sync hronous/asynchronous receiver transmitters (usarts) the stm32f101xc, stm32f101xd and stm32f101xe access line embeds three universal synchronous/asynchronous receiver transmitters (usart1, usart2 and usart3) and two universal asynchronous receiver transmitters (uart4 and uart5). these five interfaces provide asynchronous communication, irda sir endec support, multiprocessor communication mode, single-wire half-duplex communication mode and have lin master/slave capability. the five inte rfaces are able to comm unicate at speeds of up to 2.25 mbit/s. usart1, usart2 and usart3 also provide hardware management of the cts and rts signals, smart card mode (iso 7816 complia nt) and spi-like communication capability. all interfaces can be served by the dma controller except for uart5. 2.3.20 serial perip heral interface (spi) up to three spis are able to communicate up to 18 mbits/s in slave and master modes in full-duplex and simplex communication modes. the 3-bit prescaler gives 8 master mode frequencies and the frame is configurable to 8 bits or 16 bits. the hardware crc generation/verification supports basic sd card/mmc modes. all spis can be served by the dma controller. 2.3.21 gpios (genera l-purpose inputs/outputs) each of the gpio pins can be configured by software as output (push-pull or open-drain), as input (with or without pull-up or pull-down) or as peripheral alternate function. most of the gpio pins are shared with digital or analog alternate functions. all gpios are high current- capable except for analog inputs. the i/os alternate function configuration can be locked if needed following a specific sequence in order to avoid spurious writing to the i/os registers. stm32f101xc, stm32f101xd, stm32f101xe description doc id 14610 rev 8 21/112 2.3.22 adc (analog to digital converter) a 12-bit analog-to-digital converter is embedded into stm32f101xc, stm32f101xd and stm32f101xe access line devices. it has up to 16 external channels, performing conversions in single-shot or scan modes. in scan mode, automatic conversion is performed on a selected group of analog inputs. the adc can be served by the dma controller. an analog watchdog feature allows very precise monitoring of the converted voltage of one, some or all selected channels. an interrupt is generated when the converted voltage is outside the programmed thresholds. the events generated by the general-purpose timers (timx) can be internally connected to the adc start trigger and injection trigger, respectively, to allow the application to synchronize a/d conversion and timers. 2.3.23 dac (digital-t o-analog converter) the two 12-bit buffered dac channels can be used to convert two digital signals into two analog voltage signal outputs. the chosen design structure is composed of integrated resistor strings and an amplifier in inverting configuration. this dual digital interface supports the following features: two dac converters: one for each output channel 8-bit or 12-bit monotonic output left or right data alignment in 12-bit mode synchronized update capability noise-wave generation triangular-wave generation dual dac channel independent or simultaneous conversions dma capability for each channel external triggers for conversion input voltage reference v ref+ seven dac trigger inputs are used in the stm32f101xc, stm32f101xd and stm32f101xe access line family. the dac channels are triggered through the timer update outputs that are also connected to different dma channels. 2.3.24 temperature sensor the temperature sensor has to generate a voltage that varies linearly with temperature. the conversion range is between 2 v < v dda < 3.6 v. the temperature sensor is internally connected to the adc_in16 input channel which is used to convert the sensor output voltage into a digital value. 2.3.25 serial wire jtag debug port (swj-dp) the arm swj-dp interface is embedded, and is a combined jtag and serial wire debug port that enables either a serial wire debug or a jtag probe to be connected to the target. the jtag tms and tck pins are shared respectively with swdio and swclk and a specific sequence on the tms pin is used to switch between jtag-dp and sw-dp. description stm32f101xc, stm32f101xd, stm32f101xe 22/112 doc id 14610 rev 8 2.3.26 embedded trace macrocell? the arm ? embedded trace macrocell provides a greater visibilit y of the instruction and data flow inside the cpu core by streaming compressed data at a very high rate from the stm32f10xxx through a small number of etm pins to an external hardware trace port analyzer (tpa) device. the tpa is connected to a host computer using ethernet, or any other high-speed channel. real-time instruction and data flow activity can be recorded and then formatted for display on the host computer running debugger software. tpa hardware is commercially available from common development tool vendors. it operates with third party debugger software tools. stm32f101xc, stm32f101xd, stm32f101xe pinouts and pin descriptions doc id 14610 rev 8 23/112 3 pinouts and pin descriptions figure 3. stm32f101xc, stm32f101xd and stm32f101xe access line lqfp144 pinout v dd_3 v ss_3 pe1 pe0 pb9 pb8 boot0 pb7 pb6 pb5 pb4 pb3 pg15 v dd_11 v ss_11 pg14 pg13 pg12 pg11 pg10 pg9 pd7 pd6 v dd_10 v ss_10 pd5 pd4 pd3 pd2 pd1 pd0 pc12 pc11 pc10 pa15 pa14 pe2 v dd_2 pe3 v ss_2 pe4 nc pe5 pa13 pe6 pa12 vbat pa11 pc13-tamper-rtc pa10 pc14-osc32_in pa9 pc15-osc32_out pa8 pf0 pc9 pf1 pc8 pf2 pc7 pf3 pc6 pf4 v dd_9 pf5 v ss_9 v ss_5 pg8 v dd_5 pg7 pf6 pg6 pf7 pg5 pf8 pg4 pf9 pg3 pf10 pg2 osc_in pd15 osc_out pd14 nrst v dd_8 pc0 v ss_8 pc1 pd13 pc2 pd12 pc3 pd11 v ssa pd10 v ref- pd9 v ref+ pd8 v dda pb15 pa0-wkup pb14 pa1 pb13 pa2 pb12 pa3 v ss_4 v dd_4 pa4 pa5 pa6 pa7 pc4 pc5 pb0 pb1 pb2 pf11 pf12 vss_6 v dd_6 pf13 pf14 pf15 pg0 pg1 pe7 pe8 pe9 v ss_7 v dd_7 pe10 pe11 pe12 pe13 pe14 pe15 pb10 pb11 v ss_1 v dd_1 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 109 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 72 lqfp144 120 119 118 117 116 115 114 113 112 111 110 61 62 63 64 65 66 67 68 69 70 71 26 27 28 29 30 31 32 33 34 35 36 83 82 81 80 79 78 77 76 75 74 73 ai14667 pinouts and pin descriptions stm32f101xc, stm32f101xd, stm32f101xe 24/112 doc id 14610 rev 8 figure 4. stm32f101xc, stm32f101xd and stm32f101xe lqfp100 pinout 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 vdd_2 vss_2 nc pa 1 3 pa 1 2 pa 1 1 pa 1 0 pa 9 pa 8 pc9 pc8 pc7 pc6 pd15 pd14 pd13 pd12 pd11 pd10 pd9 pd8 pb15 pb14 pb13 pb12 pa 3 vss_4 vdd_4 pa 4 pa 5 pa 6 pa 7 pc4 pc5 pb0 pb1 pb2 pe7 pe8 pe9 pe10 pe11 pe12 pe13 pe14 pe15 pb10 pb11 vss_1 vdd_1 vdd_3 vss_3 pe1 pe0 pb9 pb8 boot0 pb7 pb6 pb5 pb4 pb3 pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 pc12 pc11 pc10 pa15 pa14 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 pe2 pe3 pe4 pe5 pe6 vbat pc13-tamper-rtc pc14-osc32_in pc15-osc32_out vss_5 vdd_5 osc_in osc_out nrst pc0 pc1 pc2 pc3 vssa vref- vref+ vdda pa 0 - w k u p pa 1 pa 2 ai14391 lqfp100 stm32f101xc, stm32f101xd, stm32f101xe pinouts and pin descriptions doc id 14610 rev 8 25/112 figure 5. stm32f101xc, stm32f101xd and stm32f101xe lqfp64 pinout 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 29 30 31 32 25 26 27 28 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 v bat pc13-tamper-rtc pc14-osc32_in pc15-osc32_out pd0-osc_in pd1-osc_out nrst pc0 pc1 pc2 pc3 v ssa v dda pa 0 - w k u p pa 1 pa 2 v dd_3 v ss_3 pb9 pb8 boot0 pb7 pb6 pb5 pb4 pb3 pd2 pc12 pc11 pc10 pa 1 5 pa 1 4 v dd_2 v ss_2 pa 1 3 pa 1 2 pa 1 1 pa 1 0 pa 9 pa 8 pc9 pc8 pc7 pc6 pb15 pb14 pb13 pb12 pa 3 v ss_4 v dd_4 pa 4 pa 5 pa 6 pa 7 pc4 pc5 pb0 pb1 pb2 pb10 pb11 v ss_1 v dd_1 lqfp64 ai14392 table 5. high-density stm32f101xx pin definitions pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lqfp144 lqfp64 lqfp100 default remap 1 - 1 pe2 i/o ft pe2 traceclk/ fsmc_a23 2 - 2 pe3 i/o ft pe3 traced0/fsmc_a19 3 - 3 pe4 i/o ft pe4 traced1/fsmc_a20 4 - 4 pe5 i/o ft pe5 traced2/fsmc_a21 5 - 5 pe6 i/o ft pe6 traced3/fsmc_a22 616 v bat sv bat 7 2 7 pc13-tamper-rtc (5) i/o pc13 (6) tamper-rtc 8 3 8 pc14-osc32_in (5) i/o pc14 (6) osc32_in 949pc15-osc32_out (5) i/o pc15 (6) osc32_out 10 - - pf0 i/o ft pf0 fsmc_a0 11 - - pf1 i/o ft pf1 fsmc_a1 12 - - pf2 i/o ft pf2 fsmc_a2 13 - - pf3 i/o ft pf3 fsmc_a3 14 - - pf4 i/o ft pf4 fsmc_a4 15 - - pf5 i/o ft pf5 fsmc_a5 16 - 10 v ss_5 sv ss_5 17 - 11 v dd_5 sv dd_5 pinouts and pin descriptions stm32f101xc, stm32f101xd, stm32f101xe 26/112 doc id 14610 rev 8 18 - - pf6 i/o pf6 fsmc_niord 19 - - pf7 i/o pf7 fsmc_nreg 20 - - pf8 i/o pf8 fsmc_niowr 21 - - pf9 i/o pf9 fsmc_cd 22 - - pf10 i/o pf10 fsmc_intr 23 5 12 osc_in i osc_in 24 6 13 osc_out o osc_out 25714 nrst i/o nrst 26 8 15 pc0 i/o pc0 adc_in10 27 9 16 pc1 i/o pc1 adc_in11 28 10 17 pc2 i/o pc2 adc_in12 29 11 18 pc3 i/o pc3 adc_in13 30 12 19 v ssa sv ssa 31 - 20 v ref- sv ref- 32 - 21 v ref+ sv ref+ 33 13 22 v dda sv dda 34 14 23 pa0-wkup i/o pa0 wkup/ usart2_cts (7) / adc_in0/tim5_ch1/ tim2_ch1_etr (7) 35 15 24 pa1 i/o pa1 usart2_rts (7) / adc_in1/tim5_ch2 tim2_ch2 (7) 36 16 25 pa2 i/o pa2 usart2_tx (7) / tim5_ch3/adc_in2/ tim2_ch3 (7) 37 17 26 pa3 i/o pa3 usart2_rx (7) / tim5_ch4 / adc_in3/ tim2_ch4 (7) 38 18 27 v ss_4 sv ss_4 39 19 28 v dd_4 sv dd_4 40 20 29 pa4 i/o pa4 spi1_nss/ dac_out1 adc_in4 / usart2_ck (7) 41 21 30 pa5 i/o pa5 spi1_sck/ dac_out2/adc_in5 42 22 31 pa6 i/o pa6 spi1_miso / adc_in6 / tim3_ch1 (7) table 5. high-density stm32f101 xx pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lqfp144 lqfp64 lqfp100 default remap stm32f101xc, stm32f101xd, stm32f101xe pinouts and pin descriptions doc id 14610 rev 8 27/112 43 23 32 pa7 i/o pa7 spi1_mosi / adc_in7/ tim3_ch2 (7) 44 24 33 pc4 i/o pc4 adc_in14 45 25 34 pc5 i/o pc5 adc_in15 46 26 35 pb0 i/o pb0 adc_in8 / tim3_ch3 (7) 47 27 36 pb1 i/o pb1 adc_in9/tim3_ch4 (7) 48 28 37 pb2 i/o ft pb2/boot1 49 - - pf11 i/o ft pf11 fsmc_nios16 50 - - pf12 i/o ft pf12 fsmc_a6 51 - - v ss_6 sv ss_6 52 - - v dd_6 sv dd_6 53 - - pf13 i/o ft pf13 fsmc_a7 54 - - pf14 i/o ft pf14 fsmc_a8 55 - - pf15 i/o ft pf15 fsmc_a9 56 - - pg0 i/o ft pg0 fsmc_a10 57 - - pg1 i/o ft pg1 fsmc_a11 58 - 38 pe7 i/o ft pe7 fsmc_d4 59 - 39 pe8 i/o ft pe8 fsmc_d5 60 - 40 pe9 i/o ft pe9 fsmc_d6 61 - - v ss_7 sv ss_7 62 - - v dd_7 sv dd_7 63 - 41 pe10 i/o ft pe10 fsmc_d7 64 - 42 pe11 i/o ft pe11 fsmc_d8 65 - 43 pe12 i/o ft pe12 fsmc_d9 66 - 44 pe13 i/o ft pe13 fsmc_d10 67 - 45 pe14 i/o ft pe14 fsmc_d11 68 - 46 pe15 i/o ft pe15 fsmc_d12 69 29 47 pb10 i/o ft pb10 i2c2_scl/ usart3_tx (7) tim2_ch3 70 30 48 pb11 i/o ft pb11 i2c2_sda/ usart3_rx (7) tim2_ch4 71 31 49 v ss_1 sv ss_1 72 32 50 v dd_1 sv dd_1 73 33 51 pb12 i/o ft pb12 spi2_nss (7) / i2c2_smba usart3_ck (7) table 5. high-density stm32f101 xx pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lqfp144 lqfp64 lqfp100 default remap pinouts and pin descriptions stm32f101xc, stm32f101xd, stm32f101xe 28/112 doc id 14610 rev 8 74 34 52 pb13 i/o ft pb13 spi2_sck (7) / usart3_cts (7) 75 35 53 pb14 i/o ft pb14 spi2_miso (7) / usart3_rts (7) 76 36 54 pb15 i/o ft pb15 spi2_mosi (7) 77 - 55 pd8 i/o ft pd8 fsmc_d13 usart3_tx 78 - 56 pd9 i/o ft pd9 fsmc_d14 usart3_rx 79 - 57 pd10 i/o ft pd10 fsmc_d15 usart3_ck 80 - 58 pd11 i/o ft pd11 fsmc_a16 usart3_cts 81 - 59 pd12 i/o ft pd12 fsmc_a17 tim4_ch1 / usart3_rts 82 - 60 pd13 i/o ft pd13 fsmc_a18 tim4_ch2 83 - - v ss_8 sv ss_8 84 - - v dd_8 sv dd_8 85 - 61 pd14 i/o ft pd14 fsmc_d0 tim4_ch3 86 - 62 pd15 i/o ft pd15 fsmc_d1 tim4_ch4 87 - - pg2 i/o ft pg2 fsmc_a12 88 - - pg3 i/o ft pg3 fsmc_a13 89 - - pg4 i/o ft pg4 fsmc_a14 90 - - pg5 i/o ft pg5 fsmc_a15 91 - - pg6 i/o ft pg6 fsmc_int2 92 - - pg7 i/o ft pg7 fsmc_int3 93 - - pg8 i/o ft pg8 94 - - v ss_9 sv ss_9 95 - - v dd_9 sv dd_9 96 37 63 pc6 i/o ft pc6 tim3_ch1 97 38 64 pc7 i/o ft pc7 tim3_ch2 98 39 65 pc8 i/o ft pc8 tim3_ch3 99 40 66 pc9 i/o ft pc9 tim3_ch4 100 41 67 pa8 i/o ft pa8 usart1_ck/ mco 101 42 68 pa9 i/o ft pa9 usart1_tx (7) 102 43 69 pa10 i/o ft pa10 usart1_rx (7) 103 44 70 pa11 i/o ft pa11 usart1_cts table 5. high-density stm32f101 xx pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lqfp144 lqfp64 lqfp100 default remap stm32f101xc, stm32f101xd, stm32f101xe pinouts and pin descriptions doc id 14610 rev 8 29/112 104 45 71 pa12 i/o ft pa12 usart1_rts 105 46 72 pa13 i/o ft jtms-swdio pa 1 3 106 - 73 not connected 107 47 74 v ss_2 sv ss_2 108 48 75 v dd_2 sv dd_2 109 49 76 pa14 i/o ft jtck-swclk pa14 110 50 77 pa15 i/o ft jtdi spi3_nss tim2_ch1_etr/ pa15 / spi1_nss 111 51 78 pc10 i/o ft pc10 uart4_tx usart3_tx 112 52 79 pc11 i/o ft pc11 uart4_rx usart3_rx 113 53 80 pc12 i/o ft pc12 uart5_tx usart3_ck 114 5 81 pd0 i/o ft osc_in (8) fsmc_d2 (9) 115 6 82 pd1 i/o ft osc_out (8) fsmc_d3 (9) 116 54 83 pd2 i/o ft pd2 tim3_etr/uart5_rx 117 - 84 pd3 i/o ft pd3 fsmc_clk usart2_cts 118 - 85 pd4 i/o ft pd4 fsmc_noe usart2_rts 119 - 86 pd5 i/o ft pd5 fsmc_nwe usart2_tx 120 - - v ss_10 sv ss_10 121 - - v dd_10 sv dd_10 122 - 87 pd6 i/o ft pd6 fsmc_nwait usart2_rx 123 - 88 pd7 i/o ft pd7 fsmc_ne1/ fsmc_nce2 usart2_ck 124 - - pg9 i/o ft pg9 fsmc_ne2/ fsmc_nce3 125 - - pg10 i/o ft pg10 fsmc_ne3/ fsmc_nce4_1 126 - - pg11 i/o ft pg11 fsmc_nce4_2 127 - - pg12 i/o ft pg12 fsmc_ne4 128 - - pg13 i/o ft pg13 fsmc_a24 129 - - pg14 i/o ft pg14 fsmc_a25 130 - - v ss_11 sv ss_11 131 - - v dd_11 sv dd_11 132 - - pg15 i/o ft pg15 table 5. high-density stm32f101 xx pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lqfp144 lqfp64 lqfp100 default remap pinouts and pin descriptions stm32f101xc, stm32f101xd, stm32f101xe 30/112 doc id 14610 rev 8 133 55 89 pb3 i/o ft jtdo spi3_sck tim2_ch2 / pb3 traceswo spi1_sck 134 56 90 pb4 i/o ft njtrst spi3_miso pb4 / tim3_ch1 spi1_miso 135 57 91 pb5 i/o pb5 i2c1_smba/ spi3_mosi tim3_ch2 / spi1_mosi 136 58 92 pb6 i/o ft pb6 i2c1_scl/ tim4_ch1 (7) usart1_tx 137 59 93 pb7 i/o ft pb7 i2c1_sda/fsmc_nadv tim4_ch2 (7) usart1_rx 138 60 94 boot0 i boot0 139 61 95 pb8 i/o ft pb8 tim4_ch3 (7) i2c1_scl 140 62 96 pb9 i/o ft pb9 tim4_ch4 (7) i2c1_sda 141 - 97 pe0 i/o ft pe0 tim4_etr (7) / fsmc_nbl0 142 - 98 pe1 i/o ft pe1 fsmc_nbl1 143 63 99 v ss_3 sv ss_3 144 64 100 v dd_3 sv dd_3 1. i = input, o = output, s = supply. 2. ft = 5 v tolerant. 3. function availability depends on the chosen device. 4. if several peripherals share the same i/o pin, to avoid conflict between these al ternate functions onl y one peripheral should be enabled at a time through the peri pheral clock enable bit (in the correspondi ng rcc peripheral clock enable register). 5. pc13, pc14 and pc15 are supplied through the power switch. si nce the switch only sinks a limited amount of current (3 ma), the use of gpios pc13 to pc15 in output mode is limited: the speed should not exceed 2 mhz with a maximum load of 30 pf and these ios must not be used as a current source (e.g. to drive an led). 6. main function after the first backup domain power-up. later on, it depends on the contents of the backup registers even after reset (because these registers are not reset by the main reset). for details on how to manage these ios, refer to the battery backup domain and bkp register description sections in the stm32f10xxx reference manual, available from the stmicroelectronics website: www.st.com. 7. this alternate function can be remapped by software to some other port pins (if available on the used package). for more details, refer to the alternate function i/o and debug configurat ion section in the stm32f10xxx reference manual, available from the stmicroelectroni cs website: www.st.com. 8. for the lqfp64 package, the pins number 5 and 6 are c onfigured as osc_in/osc_out after reset, however the functionality of pd0 and pd1 can be remapped by software on these pins. for the lqfp100 and lqfp144 packages, pd0 and pd1 are available by default, so there is no need for remapping. for more detail s, refer to alternate function i/o and debug configuration section in the stm32f10xxx reference manual 9. for devices delivered in lq fp64 packages, the fsmc f unction is not available. table 5. high-density stm32f101 xx pin definitions (continued) pins pin name type (1) i / o level (2) main function (3) (after reset) alternate functions (4) lqfp144 lqfp64 lqfp100 default remap stm32f101xc, stm32f101xd, stm32f101xe pinouts and pin descriptions doc id 14610 rev 8 31/112 table 6. fsmc pin definition pins fsmc lqfp100 (1) cf cf/ide nor/psram/ sram nor/psram mux nand 16 bit pe2 a23 a23 yes pe3 a19 a19 yes pe4 a20 a20 yes pe5 a21 a21 yes pe6 a22 a22 yes pf0 a0 a0 a0 - pf1 a1 a1 a1 - pf2 a2 a2 a2 - pf3 a3 a3 - pf4 a4 a4 - pf5 a5 a5 - pf6 niord niord - pf7 nreg nreg - pf8 niowr niowr - pf9 cd cd - pf10 intr intr - pf11 nios16 nios16 - pf12 a6 a6 - pf13 a7 a7 - pf14 a8 a8 - pf15 a9 a9 - pg0 a10 a10 - pg1 a11 - pe7 d4 d4 d4 da4 d4 yes pe8 d5 d5 d5 da5 d5 yes pe9 d6 d6 d6 da6 d6 yes pe10 d7 d7 d7 da7 d7 yes pe11 d8 d8 d8 da8 d8 yes pe12 d9 d9 d9 da9 d9 yes pe13 d10 d10 d10 da10 d10 yes pe14 d11 d11 d11 da11 d11 yes pe15 d12 d12 d12 da12 d12 yes pd8 d13 d13 d13 da13 d13 yes pinouts and pin descriptions stm32f101xc, stm32f101xd, stm32f101xe 32/112 doc id 14610 rev 8 pd9 d14 d14 d14 da14 d14 yes pd10 d15 d15 d15 da15 d15 yes pd11 a16 a16 cle yes pd12 a17 a17 ale yes pd13 a18 a18 yes pd14 d0 d0 d0 da0 d0 yes pd15 d1 d1 d1 da1 d1 yes pg2 a12 - pg3 a13 - pg4 a14 - pg5 a15 - pg6 int2 - pg7 int3 - pd0 d2 d2 d2 da2 d2 yes pd1 d3 d3 d3 da3 d3 yes pd3 clk clk yes pd4 noe noe noe noe noe yes pd5 nwe nwe nwe nwe nwe yes pd6 nwait nwait nwait nwait nwait yes pd7 ne1 ne1 nce2 yes pg9 ne2 ne2 nce3 - pg10 nce4_1 nce4_1 ne3 ne3 - pg11 nce4_2 nce4_2 - pg12 ne4 ne4 - pg13 a24 a24 - pg14 a25 a25 - pb7 nadv nadv yes pe0 nbl0 nbl0 yes pe1 nbl1 nbl1 yes 1. ports f and g are not available in dev ices delivered in 100-pin packages. table 6. fsmc pin definition (continued) pins fsmc lqfp100 (1) cf cf/ide nor/psram/ sram nor/psram mux nand 16 bit stm32f101xc, stm32f101xd, stm32f101xe memory mapping doc id 14610 rev 8 33/112 4 memory mapping the memory map is shown in figure 6 . figure 6. memory map 512-mbyte block 7 cortex-m3's internal peripherals 512-mbyte block 6 not used 512-mbyte block 5 fsmc register 512-mbyte block 4 fsmc bank3 & bank4 512-mbyte block 3 fsmc bank1 & bank2 512-mbyte block 2 peripherals 512-mbyte block 1 sram 0x0000 0000 0x1fff ffff 0x2000 0000 0x3fff ffff 0x4000 0000 0x5fff ffff 0x6000 0000 0x7fff ffff 0x8000 0000 0x9fff ffff 0xa000 0000 0xbfff ffff 0xc000 0000 0xdfff ffff 0xe000 0000 0xffff ffff 512-mbyte block 0 code flash 0x0808 0000 0x1fff efff 0x1fff f000- 0x1fff f7ff 0x1fff f800 - 0x1fff f80f 0x0800 0000 0x0807 ffff 0x0008 0000 0x07ff ffff 0x0000 0000 0x0007 ffff system memory reserved reserved aliased to flash or system memory depending on boot pins sram (48 kb aliased by bit-banding) reserved 0x2000 0000 0x2000 bfff 0x2000 c000 0x3fff ffff tim2 tim3 0x4000 0000 - 0x4000 03ff tim4 tim5 tim6 tim7 reserved 0x4000 0400 - 0x4000 07ff 0x4000 0800 - 0x4000 0bff 0x4000 0c00 - 0x4000 0fff 0x4000 1000 - 0x4000 13ff 0x4000 1400 - 0x4000 17ff 0x4000 1800 - 0x4000 27ff rtc 0x4000 2800 - 0x4000 2bff wwdg 0x4000 2c00 - 0x4000 2fff iwdg 0x4000 3000 - 0x4000 33ff reserved 0x4000 3400 - 0x4000 37ff spi2 0x4000 3800 - 0x4000 3bff spi3 0x4000 3c00 - 0x4000 3fff reserved 0x4000 4000 - 0x4000 43ff usart2 0x4000 4400 - 0x4000 47ff 0x4000 4800 - 0x4000 4bff usart3 uart4 0x4000 4c00 - 0x4000 4fff uart5 0x4000 5000 - 0x4000 53ff i2c1 0x4000 5400 - 0x4000 57ff i2c2 0x4000 5800 - 0x4000 5bff reserved 0x4000 5c00 - 0x4000 6bff bkp 0x4000 6c00 - 0x4000 6fff pwr 0x4000 7000 - 0x4000 73ff dac 0x4000 7400 - 0x4000 77ff reserved 0x4000 7800 - 0x4000 ffff afio 0x4001 0000 - 0x4001 03ff port a exti 0x4001 0400 - 0x4001 07ff 0x4001 0800 - 0x4001 0bff port b 0x4001 0c00 - 0x4001 0fff port c 0x4001 1000 - 0x4001 13ff port d 0x4001 1400 - 0x4001 17ff port e 0x4001 1800 - 0x4001 1bff port f 0x4001 1c00 - 0x4001 1fff port g 0x4001 2000 - 0x4001 23ff adc1 0x4001 2400 - 0x4001 27ff 0x4001 2800 - 0x4001 2fff spi1 0x4001 3000 - 0x4001 33ff 0x4001 3400 - 0x4001 37ff usart1 0x4001 3800 - 0x4001 3bff reserved dma1 0x4002 0000 - 0x4002 03ff dma2 0x4002 0400 - 0x4002 07ff reserved 0x4002 0400 - 0x4002 0fff rcc 0x4002 1000 - 0x4002 13ff reserved 0x4002 1400 - 0x4002 1fff flash interface 0x4002 2000 - 0x4002 23ff 0x4002 2400 - 0x4002 2fff reserved fsmc bank 1 nor/psram 1 0x6000 0000 - 0x63ff ffff fsmc bank 1 nor/psram 2 0x6400 0000 - 0x67ff ffff fsmc bank 1 nor/psram 3 0x6800 0000 - 0x6bff ffff fsmc bank 1 nor/psram 4 0x6c00 0000 - 0x6fff ffff fsmc bank 2 nand (nand1) 0x7000 0000 - 0x7fff ffff fsmc bank 3 nand (nand2) 0x8000 0000 - 0x8fff ffff fsmc bank 4 pccard 0x9000 0000 - 0x9fff ffff fsmc register 0xa000 0000 - 0xa000 0fff reserved 0xa000 1000 - 0xbfff ffff ai14811c option bytes reserved 0x4001 8000 - 0x4001 83ff 0x4001 8400 - 0x4001 ffff reserved reserved 0x4001 3c00 - 0x4001 7fff reserved 0x4002 3000 - 0x4002 33ff 0x4002 3400 - 0x5fff ffff reserved crc electrical characteristics stm32f101xc, stm32f101xd, stm32f101xe 34/112 doc id 14610 rev 8 5 electrical characteristics 5.1 parameter conditions unless otherwise specified, all voltages are referenced to v ss . 5.1.1 minimum and maximum values unless otherwise specified the minimum and ma ximum values are guaranteed in the worst conditions of ambient temperature, supply voltage and frequencies by tests in production on 100% of the devices with an ambient temperature at t a = 25 c and t a = t a max (given by the selected temperature range). data based on characterization results, desi gn simulation and/or technology characteristics are indicated in the table footnotes and are not tested in production. based on characterization, the minimum and maximum values refer to sample tests and represent the mean value plus or minus three times the standard deviation (mean3 ). 5.1.2 typical values unless otherwise specified, typical data are based on t a = 25 c, v dd = 3.3 v (for the 2v v dd 3.6 v voltage range). they are given only as design guidelines and are not tested. typical adc accuracy values are determined by characterization of a batch of samples from a standard diffusion lot over the full temperature range, where 95% of the devices have an error less than or equal to the value indicated (mean2 ). 5.1.3 typical curves unless otherwise specified, all typical curves are given only as design guidelines and are not tested. 5.1.4 loading capacitor the loading conditions used for pin parameter measurement are shown in figure 7 . stm32f101xc, stm32f101xd, stm32f101xe electrical characteristics doc id 14610 rev 8 35/112 5.1.5 pin input voltage the input voltage measurement on a pin of the device is described in figure 8 . 5.1.6 power supply scheme figure 9. power supply scheme caution: in figure 9 , the 4.7 f capacitor must be connected to v dd3 . figure 7. pin loading conditions figure 8. pin input voltage ai14123 c=50pf stm32f101 pin ai14124 stm32f101 pin v in a i 6 $ $ ! n a l o g 2 # s 0 , , 0 o w e r s w i t c h 6 " ! 4 ' 0 ) / s / 5 4 ) . + e r n e l l o g i c # 0 5 $ i g i t a l - e m o r i e s " a c k u p c i r c u i t r y / 3 # + 2 4 # " a c k u p r e g i s t e r s 7 a k e u p l o g i c n & ? & 6 2 e g u l a t o r 6 3 3 6 $ $ ! 6 2 % & |