![]() |
|
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. july 2014 docid17659 rev 10 1/129 stm32l15xx6/8/b ultra-low-power 32-bit mcu arm-based cortex ? -m3, 128kb flash, 16kb sram, 4kb eeprom, lcd, usb, adc, dac datasheet - production data features ? ultra-low-power platform ? 1.65 v to 3.6 v power supply ? -40c to 85c/105c temperature range ? 0.3 a standby mode (3 wakeup pins) ? 0.9 a standby mode + rtc ? 0.57 a stop mode (16 wakeup lines) ? 1.2 a stop mode + rtc ? 9 a low-power run mode ? 214 a/mhz run mode ? 10 na ultra-low i/o leakage ? < 8 s wakeup time ? core: arm ? cortex ? -m3 32-bit cpu ? from 32 khz up to 32 mhz max ? 1.25 dmips/mhz (dhrystone 2.1) ? memory protection unit ? 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 24 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 ? pll for cpu clock and usb (48 mhz) ? pre-programmed bootloader ? usart supported ? development support ? serial wire debug supported ? jtag and trace supported ? up to 83 fast i/os (7 3 i/os 5v tolerant), all mappable on 16 external interrupt vectors ? memories ? up to 128 kb flash with ecc ? up to 16 kb ram ? up to 4 kb of true eeprom with ecc ? 80 byte backup register ? lcd driver for up to 8x40 segments ? support contrast adjustment ? support blinking mode ? step-up converter on board ? rich analog peripherals (down to 1.8 v) ? 12-bit adc 1 msps up to 24 channels ? 12-bit dac 2 channels with output buffers ? 2x ultra-low-power-comparators (window mode and wake up capability) ? dma controller 7x channels ? 8x peripherals communication interface ? 1x usb 2.0 (internal 48 mhz pll) ? 3x usart (iso 7816, irda) ? 2x spi 16 mbits/s ? 2x i2c (smbus/pmbus) ? 10x timers: 6x 16-bit with up to 4 ic/oc/pwm channels, 2x 16-bit basic timer, 2x watchdog timers (independent and window) ? up to 20 capacitive sensing channels supporting touchkey, li near and rotary touch sensors ? crc calculation unit, 96-bit unique id table 1. device summary reference part number stm32l151x6/8/b stm32l151cb, stm32l151c8, stm32l151c6, stm32l151rb, stm32l151r8, stm32l151r6, stm32l151vb, stm32l151v8 stm32l152x6/.8/b stm32l152cb, stm32l152c8, stm32l152c6, stm32l152rb, stm32l152r8, stm32l152r6, stm32l152vb, stm32l152v8 lqfp100 14 14 mm lqfp64 10 10 m m lqfp48 7 7 mm bga100 7 7 mm bga64 5 5 mm ufqfpn48 7 7 mm www.st.com
contents stm32l151x6/8/b, stm32l152x6/8/b 2/129 docid17659 rev 10 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.1 device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 ultralow power device continuum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 2.2.1 performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.2 shared peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.3 common system strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.2.4 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.1 low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 arm ? cortex ? -m3 core with mpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3 reset and supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3.2 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3.3 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3.4 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4 clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.5 low power real-time clock and backup registers . . . . . . . . . . . . . . . . . . . 22 3.6 gpios (general-purpose inputs/outputs) . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.7 memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.8 dma (direct memory access) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.9 lcd (liquid crystal display) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.10 adc (analog-to-digital converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.10.1 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.10.2 internal voltage reference (v refint ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.11 dac (digital-to-analog converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.12 ultralow power comparators and reference voltage . . . . . . . . . . . . . . . . . 25 3.13 routing interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.14 touch sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.15 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 docid17659 rev 10 3/129 stm32l151x6/8/b, stm32l152x6/8/b contents 4 3.15.1 general-purpose timers (tim2, tim3, tim4, tim9, tim10 and tim11) . 27 3.15.2 basic timers (tim6 and tim7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.15.3 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.15.4 independent watchdog (iwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.15.5 window watchdog (wwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.16 communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.16.1 i2c bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.16.2 universal synchronous/asynchronous receiver transmitter (usart) . . 28 3.16.3 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.16.4 universal serial bus (usb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.17 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . . 29 3.18 development support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 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 optional lcd power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.1.8 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.3.2 embedded reset and power control bloc k characteristics . . . . . . . . . . . 52 6.3.3 embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.3.4 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.3.5 wakeup time from low power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.3.6 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.3.7 internal clock source charac teristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 6.3.8 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 contents stm32l151x6/8/b, stm32l152x6/8/b 4/129 docid17659 rev 10 6.3.9 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.3.10 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.3.11 electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.3.12 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.3.13 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 6.3.14 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.3.15 tim timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.3.16 communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 6.3.17 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 6.3.18 dac electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 6.3.19 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 6.3.20 comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 6.3.21 lcd controller (stm32l152xx only) . . . . . . . . . . . . . . . . . . . . . . . . . . 103 7 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 7.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 7.2 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 7.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 8 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 docid17659 rev 10 5/129 stm32l151x6/8/b, stm32l152x6/8/b list of tables 6 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. ultralow power stm32l15xx6/8/b device features and peripheral counts. . . . . . . . . . . . . 10 table 3. functionalities depending on the operating power supply range . . . . . . . . . . . . . . . . . . . . 14 table 4. cpu frequency range depending on dynamic voltag e scaling . . . . . . . . . . . . . . . . . . . . . . 15 table 5. working mode-dependent functionalities (from run/active down to standby) . . . . . . . . . . 16 table 6. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 7. legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 8. stm32l15xx6/8/b pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 9. alternate function input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 10. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 11. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 12. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 13. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 14. embedded reset and power control block characterist ics. . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 15. embedded internal reference voltage calibration valu es . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 16. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4 table 17. current consumption in run mode, code with data processing running from flash. . . . . . 56 table 18. current consumption in run mode, code wit h data processing running from ram . . . . . . 57 table 19. current consumption in sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 20. current consumption in low power run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 21. current consumption in low power sleep mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 22. typical and maximum current consumptions in st op mode . . . . . . . . . . . . . . . . . . . . . . . . 62 table 23. typical and maximum current consumptions in standby mode . . . . . . . . . . . . . . . . . . . . . 64 table 24. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 25. low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 table 26. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 27. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 28. hse oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 table 29. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 30. hsi oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 31. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 32. msi oscillator ch aracteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 33. pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 34. ram and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 35. flash memory and dat a eeprom characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 36. flash memory, data eeprom endurance and data retention . . . . . . . . . . . . . . . . . . . . . . 77 table 37. ems characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 38. emi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 39. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 40. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 41. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 42. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 table 43. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 44. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 45. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 46. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 47. i 2 c characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 48. scl frequency (f pclk1 = 32 mhz, v dd = vdd_i2c = 3.3 v). . . . . . . . . . . . . . . . . . . . . . . . 87 list of tables stm32l151x 6/8/b, stm32l152x6/8/b 6/129 docid17659 rev 10 table 49. spi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 50. usb startup time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 51. usb dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 52. usb: full speed electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 53. adc clock frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 54. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 55. adc accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 56. r ain max for f adc = 16 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 57. dac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 58. temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 table 59. temperature sensor characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 0 table 60. comparator 1 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 table 61. comparator 2 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 table 62. lcd controller characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 63. lqpf100 14 x 14 mm, 100-pin low-profile quad flat package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 64. lqfp64 10 x 10 mm 64-pin low-profile quad flat package mechanical data . . . . . . . . . . 109 table 65. lqfp48 7 x 7 mm, 48-pin low-profile quad fl at package mechanical data. . . . . . . . . . . . 111 table 66. ufqfpn48 7 x 7 mm, 0.5 mm pitch, ultra thin fine-pitch quad flat no-lead package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 table 67. ufbga100 7 x 7 x 0.6 mm 0.5 mm pitch, ultra thin fine-pitch ball grid array package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 table 68. tfbga64 5.0x5.0x1.2 mm, 0.5 mm pitch thin fine-pitch ball grid array package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 table 69. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 table 70. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 table 71. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 docid17659 rev 10 7/129 stm32l151x6/8/b, stm32l152x6/8/b list of figures 7 list of figures figure 1. ultralow power stm32l15xx6/8/b block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 3. stm32l15xvx ufbga100 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 4. stm32l15xvx lqfp100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 5. stm32l15xrx tfbga64 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 6. stm32l15xrx lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 figure 7. stm32l15xcx lqfp48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 figure 8. stm32l15xcx ufqfpn48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 9. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 figure 10. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 11. pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 12. power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 figure 13. optional lcd power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 figure 14. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 figure 15. high-speed external clock source ac timing diagra m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 figure 16. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 figure 17. hse oscillator circuit diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 18. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 19. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 figure 20. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 21. i 2 c bus ac waveforms and measurement ci rcuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 figure 22. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 23. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 24. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 figure 25. usb timings: definition of data signal rise and fa ll time . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 figure 26. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 figure 27. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 figure 28. maximum dynamic current consumption on v ref+ supply pin during adc conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 figure 29. power supply and reference decoupling (v ref+ not connected to v dda ). . . . . . . . . . . . . . 97 figure 30. power supply and reference decoupling (v ref+ connected to v dda ). . . . . . . . . . . . . . . . . 97 figure 31. 12-bit buffered /non-buffered dac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 figure 32. lqfp100 14 x 14 mm, 100-pin low-profile quad flat package outline . . . . . . . . . . . . . . . 105 figure 33. recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 figure 34. lqfp64 10 x 10 mm, 64-pin low-profile quad fl at package outline . . . . . . . . . . . . . . . . . 108 figure 35. recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 figure 36. lqfp48 7 x 7 mm, 48-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . 110 figure 37. recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 figure 38. ufqfpn48 7 x 7 mm 0.5 mm pitch, ultra thin fine-pitch quad flat no-lead package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 figure 39. recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 figure 40. ufbga100 7 x 7 x 0.6 mm 0.5 mm pitch, ultra thin fine-pitch ball grid array package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 figure 41. tfbga64 - 5.0x5. 0x1.2 mm, 0.5 mm pitch, thin fine-pitch ball grid array package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 figure 42. recommended pcb design rules for pads (0.5 mm pitch bga) . . . . . . . . . . . . . . . . . . . 118 figure 43. thermal resistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 introduction stm32l151x6/8/b, stm32l152x6/8/b 8/129 docid17659 rev 10 1 introduction this datasheet provides the ordering informat ion and mechanical devic e characteristics of the stm32l151x6/8/b and stm32l 152x6/8/b ultralow power arm ? cortex ? -m3 based microcontrollers product line. the ultralow power stm32l15xx6/8/b family includes devices in 3 different package types: from 48 to 100 pins. depending on the device chosen, different sets of peripherals are included, the description below gives an over view of the complete range of peripherals proposed in this family. these features make the ultralow power stm 32l15xx6/8/b microcontroller family suitable for a wide range of applications: ? medical and handheld equipment ? application control and user interface ? pc peripherals, gaming, gps and sport equipment ? alarm systems, wired and wireless sensors, video intercom ? utility metering this stm32l151x6/8/b and stm32l152x6/8/b datasheet should be read in conjunction with the stm32l1xxxx refere nce manual (rm0038). the document "getting started with stm32l1xxx hardware development? an3216 gives a hardware implementation overview. both documents are 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. figure 1 shows the general block diagram of the device family. caution: this datasheet does not apply to stm32l15xx6/8/b-a covered by a separate datasheet. docid17659 rev 10 9/129 stm32l151x6/8/b, stm32l152x6/8/b description 46 2 description the ultralow power stm32l15xx6/8/b incorporat es the connectivity power of the universal serial bus (usb) with the high-performance arm ? cortex ? -m3 32-bit risc core operating at 32 mhz frequency (33.3 dmips), a memo ry protection unit (mpu), high-speed embedded memories (flash memory up to 128 kbytes and ram up to 16 kbytes) and an extensive range of enhance d i/os and peripherals co nnected to two apb buses. all devices offer a 12-bit adc, 2 dacs and 2 ultralow power comparators, six general- purpose 16-bit timers and two basic time rs, which can be used as time bases. moreover, the stm32l15xx6/8/b devices contain standard and advanced communication interfaces: up to two i 2 cs and spis, three usarts and a usb.the stm32l15xx6/8/b devices offer up to 20 capacitive sensing chan nels to simply add touch sensing functionality to any application. they also include a real-time clock and a set of backup registers that remain powered in standby mode. finally, the integrated lcd controller has a built-in lcd voltage generator that allows you to drive up to 8 multiplexed lcds with contrast independent of the supply voltage. the ultralow power stm32l15xx6/8/b operates 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. it is available in the -40 to +85 c temperature range, extended to 105c in low power dissipation state. a comprehensive set of po wer-saving modes allows the design of low- power applications. description stm32l151x6/8/b, stm32l152x6/8/b 10/129 docid17659 rev 10 2.1 device overview table 2. ultralow power stm32l15xx6/8/b device features and peripheral counts peripheral stm32l15xcx stm32l15xrx stm32l15xvx flash (kbytes) 32 64 128 32 64 128 64 128 data eeprom (kbytes) 4 ram (kbytes) 10 10 16 10 10 16 10 16 timers general- purpose 6 basic 2 communication interfaces spi 2 i 2 c 2 usart 3 usb 1 gpios 37 51 83 12-bit synchronized adc number of channels 1 14 channels 1 20 channels 1 24 channels 12-bit dac number of channels 2 2 lcd (stm32l152xx only) com x seg 4x18 4x32 8x28 4x44 8x40 comparator 2 capacitive sensing channels 13 20 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 temperatures: ?40 to +85 c junction temperature: ?40 to + 105 c packages lqfp48, ufqfpn48 lqfp64, bga64 lqfp100, bga100 docid17659 rev 10 11/129 stm32l151x6/8/b, stm32l152x6/8/b description 46 2.2 ultralow power device continuum the ultralow power stm32l151x6/8/b and st m32l152x6/8/b are fully pin-to-pin and software compatible. besides the full compatib ility within the family, the devices are part of stmicroelectronics microcontrollers ultralow power strategy which also includes stm8l101xx and stm8l15xx devices. th e stm8l and stm32l families allow a continuum of performance, peripherals , system architecture and features. they are all based on stmicroelectronics ultralow leakage process. note: the ultralow power stm3 2l and general-purpose stm32f xxxx families are pin-to-pin compatible. the stm8l15xxx devices are pin-to-pin compatible with the stm8l101xx devices. please refer to the stm32f and stm8l documentation for more information on these devices. 2.2.1 performance all families incorpor ate highly energy-efficient cores with both harvard architecture and pipelined execution: advanced stm8 core for stm8l families and arm ? cortex ? -m3 core for stm32l family. in addition specific care for the design architecture has been taken to optimize the ma/dmips and ma/mhz ratios. this allows the ultralow power performance to range from 5 up to 33.3 dmips. 2.2.2 shared peripherals stm8l15xxx and stm32l1xxxx share identical peripherals which ensure a very easy migration from one family to another: ? analog peripherals: adc, dac and comparators ? digital peripherals: rtc and some communication interfaces 2.2.3 common system strategy to offer flexibility and optim ize performance, the stm8l 15xx and stm32l1xxxx families use a common architecture: ? same power supply range from 1.65 v to 3.6 v, (1.65 v at power down only for stm8l15xx devices) ? architecture optimized to reach ultralow consumption both in low power modes and run mode ? fast startup strategy from low power modes ? flexible system clock ? ultrasafe reset: same reset strategy including powe r-on reset, power-down reset, brownout reset and programmable voltage detector. 2.2.4 features st ultralow power continuum al so lies in feature compatibility: ? more than 10 packages with pin count from 20 to 144 pins and size down to 3 x 3 mm ? memory density ranging from 4 to 384 kbytes functional overview stm32l1 51x6/8/b, stm32l152x6/8/b 12/129 docid17659 rev 10 3 functional overview figure 1 shows the block diagrams. figure 1. ultralow power st m32l15xx6/8/b block diagram 1. af = alternate function on i/o port pin. y dx / d t t ' ?r]? : d ' ? ^ t ?e & : d / : d <l ^ t > < : d d ^ l ^ t d e : d z ^ d : d k e z ^ d s ax ? s ?} ?x s ?? & , ? h ^ z w h ^ z d d k ^ /u d / ^ ku ^ <u e ^ ^ t < |