
While lacking of choice is not always a real engineering problem, having too many choices is usually more troublesome. So I went to element 14 parametric search to look for a suitable chip. Considering the additional clock, power and programming/debug lines, the minimal pin count I’m going for is 64. To my estimation these peripherals require about 40 pins.

Sector protection against R/W operation.Up to 38 fast I/Os (31 I/Os 5V tolerant).Internal multispeed low-power 65 kHz to 4.2 MHz RC.High speed internal 16 MHz factory-trimmed RC (+/- 1%).32 kHz oscillator for RTC with calibration.Ultra-safe, low-power BOR (brownout reset) with 5 selectable thresholds.41 μA 12-bit ADC conversion (at 10ksps).0.68 μA Stop mode + RTC + 8 KB RAM retention.A comprehensive set of power-saving modes allows the design of low-power applications.

They are available in the -40 to +125 ☌ temperature range. The ultra-low-power STM32L031x4/6 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. The STM32L031x4/6 also include a real-time clock and a set of backup registers that remain powered in Standby mode. Moreover, the STM32L031x4/6 devices embed standard and advanced communication interfaces: one I2C, one SPI, one USART, and a low-power UART (LPUART). They also feature two watchdogs, one watchdog with independent clock and window capability and one window watchdog based on bus clock. The STM32L031x4/6 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, one RTC and one SysTick which can be used as timebases. It is achieved with a large choice of internal and external clock sources, an internal voltage adaptation and several low-power modes. The STM32L031x4/6 devices provide high power efficiency for a wide range of performance.

Description The access line ultra-low-power STM32L031x4/6 family incorporates the high-performance ARM® Cortex®-M0+ 32-bit RISC core operating at a 32 MHz frequency, high-speed embedded memories (up to 32 Kbytes of Flash program memory, 1 Kbytes of data EEPROM and 8 Kbytes of RAM) plus an extensive range of enhanced I/Os and peripherals.
