![]() |
|
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. march 2016 docid025938 rev 6 1/127 stm32l051x6 stm32l051x8 access line ultra-low-power 32-bit mcu arm ? -based cortex ? -m0+, up to 64 kb flash, 8 kb sram, 2 kb eeprom, adc datasheet - production data features ? ultra-low-power platform ? 1.65 v to 3.6 v power supply ? - 40 to 125 c temperature range ? 0.27 a standby mode (2 wakeup pins) ? 0.4 a stop mode (16 wakeup lines) ? 0.8 a stop mode + rtc + 8 kb ram retention ? 88 a/mhz in run mode ? 3.5 s wakeup time (from ram) ? 5 s wakeup time (from flash memory) ? core: arm ? 32-bit cortex ? -m0+ with mpu ? from 32 khz up to 32 mhz max. ? 0.95 dmips/mhz ? reset and supply management ? ultra-safe, low-power bor (brownout reset) with 5 selectable thresholds ? ultra-low-power por/pdr ? programmable voltage detector (pvd) ? clock sources ? 1 to 25 mhz crystal oscillator ? 32 khz oscillator for rtc with calibration ? high speed internal 16 mhz factory-trimmed rc (+/- 1%) ? internal low-power 37 khz rc ? internal multispeed low-power 65 khz to 4.2 mhz rc ? pll for cpu clock ? pre-programmed bootloader ? usart, spi supported ? development support ? serial wire debug supported ? up to 51 fast i/os (45 i/os 5v tolerant) ? memories ? up to 64 kb flash memory with ecc ?8kb ram ? 2 kb of data eeprom with ecc ? 20-byte backup register ? sector protection against r/w operation ? rich analog peripherals ? 12-bit adc 1.14 msps up to 16 channels (down to 1.65 v) ? 2x ultra-low-power comparators (window mode and wake up capability, down to 1.65 v) ? 7-channel dma controller, supporting adc, spi, i2c, usart, timers ? 7x peripheral communication interfaces ? 2x usart (iso 7816, irda), 1x uart (low power) ? up to 4x spi 16 mbits/s ? 2x i2c (smbus/pmbus) ? 9x timers: 1x 16-bit with up to 4 channels, 2x 16-bit with up to 2 channels, 1x 16-bit ultra-low-power timer, 1x systick, 1x rtc, 1x 16-bit basic, and 2x watchdogs (independent/window) ? crc calculation unit, 96-bit unique id ? all packages are ecopack ? 2 table 1. device summary reference part number stm32l051x6 stm32l051c6, STM32L051K6, stm32l051r6, stm32l051t6 stm32l051x8 stm32l051c8, stm32l051k8, stm32l051r8, stm32l051t8 ufqfpn32 5x5 mm lqfp32 7x7 mm lqfp48 7x7 mm lqfp64 10x10 mm wlcsp36 tfbga64 5x5mm ) % * $ www.st.com
contents stm32l051x6 stm32l051x8 2/127 docid025938 rev 6 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 2.2 ultra-low-power device continuum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.1 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2 interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3 arm? cortex?-m0+ core with mpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4 reset and supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4.2 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4.3 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.5 clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.6 low-power real-time clock and backup registers . . . . . . . . . . . . . . . . . . . 24 3.7 general-purpose inputs/outputs (gpios) . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.8 memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.9 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.10 direct memory access (dma) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.11 analog-to-digital converter (adc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.12 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.12.1 internal voltage reference (v refint ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.13 ultra-low-power comparators and reference voltage . . . . . . . . . . . . . . . . 27 3.14 system configuration controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.15 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.15.1 general-purpose timers (tim2, tim21 an d tim22) . . . . . . . . . . . . . . . . 28 3.15.2 low-power timer (lptim) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.15.3 basic timer (tim6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.15.4 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.15.5 independent watchdog (iwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.15.6 window watchdog (wwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 docid025938 rev 6 3/127 stm32l051x6 stm32l051x8 contents 4 3.16 communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.16.1 i2c bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.16.2 universal synchronous/asynchronous receiver transmitter (usart) . . 31 3.16.3 low-power universal asynchronous receiver transmitter (lpuart) . . . 31 3.16.4 serial peripheral interface (spi)/inter-integrated sound (i2s) . . . . . . . . 32 3.17 cyclic redundancy check (crc) calculation unit . . . . . . . . . . . . . . . . . . . 32 3.18 serial wire debug port (sw-dp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 6 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.1.7 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.3.2 embedded reset and power control bloc k characteristics . . . . . . . . . . . 53 6.3.3 embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.3.4 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.3.5 wakeup time from low-power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6.3.6 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.3.7 internal clock source charac teristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 6.3.8 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.3.9 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.3.10 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.3.11 electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.3.12 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.3.13 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 6.3.14 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 contents stm32l051x6 stm32l051x8 4/127 docid025938 rev 6 6.3.15 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 6.3.16 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 6.3.17 comparators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 6.3.18 timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 6.3.19 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 7 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 7.1 lqfp64 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 7.2 tfbga64 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 7.3 lqfp48 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 7.4 wlcsp36 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 7.5 lqfp32 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 7.6 ufqfpn32 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 7.7 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 7.7.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 8 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 docid025938 rev 6 5/127 stm32l051x6 stm32l051x8 list of tables 6 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. ultra-low-power stm32l051x6/x8 device features and peripheral counts. . . . . . . . . . . . . 11 table 3. functionalities depending on the operating power supply range . . . . . . . . . . . . . . . . . . . . 15 table 4. cpu frequency range depending on dynamic voltag e scaling . . . . . . . . . . . . . . . . . . . . . . 16 table 5. functionalities depending on the working mode ? (from run/active down to standby) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 6. stm32l0xx peripherals interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 table 7. temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 8. internal voltage reference measured values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 9. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 10. comparison of i2c analog and digital filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 11. stm32l051x6/8 i 2 c implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 12. usart implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 13. spi/i2s implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 14. legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 15. stm32l051x6/8 pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 16. alternate function port a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 17. alternate function port b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 18. alternate function port c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 19. alternate function port d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 20. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 21. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 22. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 23. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 24. embedded reset and power control block characterist ics. . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 25. embedded internal reference voltage calibration valu es . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 26. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4 table 27. current consumption in run mode, code with data processing running from flash. . . . . . 56 table 28. current consumption in run mode vs code type, ? code with data processing running from flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 29. current consumption in run mode, code wit h data processing running from ram . . . . . . 58 table 30. current consumption in run mode vs code type, ? code with data processing running from ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 31. current consumption in sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 32. current consumption in low-power run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 33. current consumption in low-power sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 34. typical and maximum current consumptions in st op mode . . . . . . . . . . . . . . . . . . . . . . . . 62 table 35. typical and maximum current consumptions in standby mode . . . . . . . . . . . . . . . . . . . . . 63 table 36. average current consumption during wakeup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 table 37. peripheral current consumption in run or sleep mo de . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 38. peripheral current consumption in stop and stan dby mode . . . . . . . . . . . . . . . . . . . . . . . 65 table 39. low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 40. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 41. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 42. hse oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 43. lse oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 44. 16 mhz hsi16 oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 table 45. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 list of tables stm32l051x6 stm32l051x8 6/127 docid025938 rev 6 table 46. msi oscillator ch aracteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 47. pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 48. ram and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 49. flash memory and dat a eeprom characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 50. flash memory and data eeprom endurance and retention . . . . . . . . . . . . . . . . . . . . . . . 76 table 51. ems characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 52. emi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 53. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 54. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 55. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 56. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 table 57. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 58. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 59. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 60. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 61. r ain max for f adc = 16 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 62. adc accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 63. temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1 table 64. temperature sensor characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 65. comparator 1 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 66. comparator 2 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 67. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 table 68. i2c analog filter characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 69. usart/lpuart characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4 table 70. spi characteristics in voltage range 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 71. spi characteristics in voltage range 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 72. spi characteristics in voltage range 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 73. i2s characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 table 74. lqfp64 - 64-pin, 10 x 10 mm low-profile quad flat ? package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 table 75. tfbga64 ? 64-ball, 5 x 5 mm, 0.5 mm pitch, thin profile fine pitch ball ? grid array package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 table 76. tfbga64 recommended pcb design rules (0.5 mm pitch bga). . . . . . . . . . . . . . . . . . . 105 table 77. lqfp48 - 48-pin, 7 x 7 mm low-profile quad flat package mechanical data. . . . . . . . . . . 108 table 78. wlcsp36 - 2.596 x 2.868 mm, 0.4 mm pitch wafer level chip scale ? mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 table 79. wlcsp36 recommended pcb design rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 table 80. lqfp32 - 32-pin, 7 x 7 mm low-profile quad flat package mechanical data. . . . . . . . . . . 114 table 81. ufqfpn32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat ? package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 table 82. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 table 83. stm32l051x6/8 ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 table 84. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 docid025938 rev 6 7/127 stm32l051x6 stm32l051x8 list of figures 8 list of figures figure 1. stm32l051x6/8 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 3. stm32l051x6/8 lqfp64 pinout - 10 x 10 mm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 4. stm32l051x6/8 tfbga64 ballout - 5x 5 mm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 5. stm32l051x6/8 lqfp48 pinout - 7 x 7 mm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 6. stm32l051x6/8 wlcsp36 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 7. stm32l051x6/8 lqfp32 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 8. stm32l051x6/8 ufqfpn32 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 9. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 figure 10. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 figure 11. pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 figure 12. power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 13. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 14. idd vs vdd, at ta= 25/55/85 /105 c, run mode, code running from ? flash memory, range 2, hse, 1ws . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 figure 15. idd vs vdd, at ta= 25/55/85 /105 c, run mode, code running from ? flash memory, range 2, hsi16, 1ws . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 figure 16. idd vs vdd, at ta= 25/55/ 85/105/125 c, low-power run mode, code running ? from ram, range 3, msi (range 0) at 64 khz, 0 ws . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 figure 17. idd vs vdd, at ta= 25/55/ 85/105/125 c, stop mode with rtc enabled ? and running on lse low drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 figure 18. idd vs vdd, at ta= 25/55/85/ 105/125 c, stop mode with rtc disabled, ? all clocks off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 figure 19. high-speed external clock source ac timing diagra m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 figure 20. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 figure 21. hse oscillator circuit diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 figure 22. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 23. hsi16 minimum and maximum value versus temperat ure . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 24. vih/vil versus vdd (cmos i/os) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 figure 25. vih/vil versus vdd (ttl i/os) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 26. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 27. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 figure 28. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 29. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 figure 30. power supply and reference decoupling (v ref+ not connected to v dda ). . . . . . . . . . . . . . 90 figure 31. power supply and reference decoupling (v ref+ connected to v dda ). . . . . . . . . . . . . . . . . 91 figure 32. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 33. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 figure 34. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 figure 35. i 2 s slave timing diagram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 36. i 2 s master timing diag ram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 37. lqfp64 - 64-pin, 10 x 10 mm low-profile quad flat package outline . . . . . . . . . . . . . . . . 101 figure 38. lqfp64 - 64-pin, 10 x 10 mm low-profile quad flat recommended footprint . . . . . . . . . . 102 figure 39. lqfp64 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 figure 40. tfbga64 ? 64-ball, 5 x 5 mm, 0.5 mm pitch thin profile fine pitch ball ? grid array package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 figure 41. tfbga64 ? 64-ball, 5 x 5 mm, 0.5 mm pitch, thin profile fine pitch ball ? ,grid array recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 list of figures stm32l051x6 stm32l051x8 8/127 docid025938 rev 6 figure 42. tfbga64 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 figure 43. lqfp48 - 48-pin, 7 x 7 mm low-profile quad flat package outline . . . . . . . . . . . . . . . . . . 107 figure 44. lqfp48 - 48-pin, 7 x 7 mm low-profile quad flat recommended footprint . . . . . . . . . . . . 109 figure 45. lqfp48 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 figure 46. wlcsp36 - 2.596 x 2.868 mm, 0.4 mm pitch wafer level chip scale ? package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 figure 47. wlcsp36 - 2.596 x 2.868 mm, 0.4 mm pitch wafer level chip scale ? recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 figure 48. wlcsp36 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 figure 49. lqfp32 - 32-pin, 7 x 7 mm low-profile quad flat package outline . . . . . . . . . . . . . . . . . . 113 figure 50. lqfp32 - 32-pin, 7 x 7 mm low-profile quad flat recommended footprint . . . . . . . . . . . . 114 figure 51. lqfp32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 figure 52. ufqfpn32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat ? package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 figure 53. ufqfpn32 - 32-pin, 5x5 mm, 0.5 mm pitch ultra thin fine pitch quad flat ? recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 figure 54. ufqfpn32 marking example (package top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 figure 55. thermal resistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 docid025938 rev 6 9/127 stm32l051x6 stm32l051x8 introduction 32 1 introduction the ultra-low-power stm32l051x6/8 are offered in 6 different package types: from 32 pins to 64 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. these features make the ultra-low-power st m32l051x6/8 microcontrollers suitable for a wide range of applications: ? gas/water meters and industrial sensors ? healthcare and fitness equipment ? remote control and user interface ? pc peripherals, gaming, gps equipment ? alarm system, wired and wireless sensors, video intercom this stm32l051x6/8 datasheet should be re ad in conjunction with the stm32l0x1xx reference manual (rm0377) . for information on the arm ? cortex ? -m0+ core please refer to the cortex ? -m0+ technical reference manual, available from the www.arm.com website. figure 1 shows the general block diagram of the device family. description stm32l051x6 stm32l051x8 10/127 docid025938 rev 6 2 description the access line ultra-low-power stm32l051x6/8 microcontrollers incorporate the high- performance arm ? cortex ? -m0+ 32-bit risc core operating at a 32 mhz frequency, a memory protection unit (mpu), high-speed embedded memories ( 64 kbytes of flash program memory, 2 kbytes of data eeprom and 8 kbytes of ram) plus an extensive range of enhanced i/os and peripherals. the stm32l051x6/8 devices provide high power efficiency for a wide range of performance. it is achieved with a large choice of internal and external clock sources, an internal voltage adaptation and several low-power modes. the stm32l051x6/8 devices offer several analog features, one 12-bit adc with hardware oversampling, two ultra-low-power comparators, several timers, one low-power timer (lptim), three general-purpose 16-bit timers and one basic timer, one rtc and one systick which can be used as timebases. they also feature two watchdogs, one watchdog with independent clock and window capability and one window watchdog based on bus clock. moreover, the stm32l051x6/8 devices em bed standard and advanced communication interfaces: up to two i2c, two spis, one i2 s, two usarts, a low-po wer uart (lpuart), . the stm32l051x6/8 also include a real-time clock and a set of backup registers that remain powered in standby mode. the ultra-low-power stm32l051x6/8 devices operate from a 1.8 to 3.6 v power supply (down to 1.65 v at power down) with bor and from a 1.65 to 3.6 v power supply without bor option. they are available in the -40 to +125 c temperature range. a comprehensive set of power-saving modes allows the design of low-power applications. docid025938 rev 6 11/127 stm32l051x6 stm32l051x8 description 32 2.1 device overview table 2. ultra-low-power stm32l051x6/x8 device features and peripheral counts peripheral stm32 l051k6 stm32l 051t6 stm32 l051c6 stm32 l051r6 stm32 l051k8 stm32l 051t8 stm32 l051c8 stm32 l051r8 flash (kbytes) 32 64 data eeprom (kbytes) 22 ram (kbytes) 88 timers general- purpose 33 basic 11 lptimer 11 rtc/systick/iwdg/ wwdg 1/1/1/1 1/1/1/1 communi- cation interfaces spi/i2s 3(2) (1) /0 3(2) (1) /0 4(2) (1) /1 4(2) (1) /1 3(2) (1) /0 3(2) (1) /1 4(2) (1) /1 4(2) (1) /1 i 2 c 1 222 1 222 usart 22 lpuart 0 111 0 111 gpios 27 (2) 29 37 51 (3) 27 (2) 29 37 51 (3) clocks: hse/lse/hsi/msi/lsi 0/1/1/1/1 0/1/1/1/1 1/1/1/1/1 1/1/1/1/1 0/1/1/1/1 0/1/1/1/1 1/1/1/1/1 1/1/1/1/1 12-bit synchronized adc ? number of channels 1 10 1 10 1 10 1 16 (3) 1 10 1 10 1 10 1 16 (3) comparators 22 max. cpu frequency 32 mhz operating voltage 1.8 v to 3.6 v (down to 1.65 v at power-down) with bor option 1.65 v to 3.6 v without bor option operating temperatures ambient temperature: ?40 to +125 c junction temperature: ?40 to +130 c packages lqfp32, ufqfpn 32 wlcsp 36 lqfp48 lqfp64 tfbga 64 lqfp32, ufqfpn 32 wlcsp 36 lqfp48 lqfp64 tfbga 64 1. 2 spi interfaces are usarts operating in spi master mode. 2. lqfp32 has two gpios, less than ufqfpn32 (27). 3. tfbga64 has one gpio, one adc input and one c apacitive sensing channel less than lqfp64. description stm32l051x6 stm32l051x8 12/127 docid025938 rev 6 figure 1. stm32l051x6/8 block diagram & |