STMicroelectronics STM32C031F6P6
- Part No.:
- STM32C031F6P6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 20-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
STM32C031F6P6.pdf
- Description:
- IC MCU 32BIT 32KB FLASH 20TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:1,179
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32C031F6P6 from STMicroelectronics is an Arm® Cortex®-M0+ 32-bit microcontroller with 32 KB flash, 12 KB SRAM, 2× USART, 12-bit ADC (0.4 µs conversion), and operation up to 48 MHz. It features 5 V-tolerant I/Os, hardware parity on SRAM, and supports -40°C to 85°C ambient temperature - deployed in industrial sensor nodes and smart metering front-ends.
For engineers reviewing the STM32C031F6P6 datasheet, STM32C031F6P6 pinout, STM32C031F6P6 application, or STM32C031F6P6 equivalent, key selection factors include its TSSOP20 package footprint, 2.0–3.6 V supply range, integrated CRC unit, low-power Stop/Standby modes, and dual USARTs with LIN/IrDA support for cost-sensitive embedded control.
Technical Context
The STM32C031F6P6 integrates an Arm Cortex-M0+ core with MPU, a 48 MHz internal RC oscillator (±1 %), and a 32 kHz LSE crystal oscillator with calibration. Its memory subsystem includes 32 KB of flash with readout protection and 12 KB of SRAM with hardware parity checking - enabling deterministic real-time execution and data integrity verification.
Peripheral interconnect uses a multi-layer AHB/APB bus matrix supporting concurrent DMA transfers across timers, ADC, and communication interfaces. Clock tree allows dynamic switching between HSI48, LSE, and external crystal sources, while the reset system provides POR/PDR, programmable BOR, and independent watchdogs (IWDG/WWDG) for robust system recovery.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 48 MHz max - enables deterministic real-time task scheduling with <10 ns interrupt latency. |
| Flash / RAM | 32 KB flash with protection; 12 KB SRAM with hardware parity - supports secure firmware updates and fault-tolerant data buffers. |
| ADC | 12-bit, 0.4 µs conversion time, up to 19 external channels - delivers high-speed analog sensing for motor current or battery voltage monitoring. |
| Timers | Eight timers: one advanced-control (TIM1), four general-purpose (TIM3/14/16/17), two watchdogs - supports PWM generation, input capture, and fail-safe timeout supervision. |
| Communication | Two USARTs (one with ISO7816/LIN/IrDA), one I²C (Fast-mode Plus, 1 Mbit/s), one SPI (24 Mbit/s) - enables multi-protocol connectivity in constrained-node designs. |
| I/O Voltage | 5 V-tolerant on all GPIOs - simplifies interface with legacy 5 V peripherals without level-shifting circuitry. |
| Supply Range | 2.0 V to 3.6 V - compatible with single-cell Li-ion, 3.3 V LDOs, and energy-harvesting power supplies. |
Pinout & Package
TSSOP20 (YA) package: 20-pin thin shrink small outline package, 6.4 × 4.4 mm body, 0.65 mm pitch, surface-mount, ECOPACK2-compliant.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.0–3.6 V digital supply rail; decoupling required per datasheet layout guidelines. |
| VSS | Ground | Digital ground reference; must be connected to PCB ground plane with low-inductance path. |
| NRST | Reset input | Active-low asynchronous reset; internal pull-up; accepts 5 V-tolerant logic levels. |
| PA0 | GPIO / ADC1_IN0 / TIM2_CH1 | Multi-function pin usable as analog input channel 0 or timer capture/compare signal. |
| PA1 | GPIO / ADC1_IN1 / TIM2_CH2 | Supports simultaneous ADC sampling and PWM output for closed-loop motor control. |
| PA2 | GPIO / USART2_TX / ADC1_IN2 | Enables full-duplex serial communication or analog sensing without external muxing. |
| PA3 | GPIO / USART2_RX / ADC1_IN3 | Shared RX line and ADC input - allows wake-up-on-receive while preserving analog acquisition capability. |
| PA4 | GPIO / SPI1_NSS / ADC1_IN4 | Hardware chip select for SPI slave mode or dedicated ADC channel for auxiliary sensing. |
| PA5 | GPIO / SPI1_SCK / TIM2_CH1 | Provides synchronous clock for external SPI peripherals or complementary timer output. |
| PA6 | GPIO / SPI1_MISO / TIM2_CH2 | Enables bidirectional SPI data flow or dual-channel PWM for H-bridge gate drive timing. |
| PA7 | GPIO / SPI1_MOSI / TIM2_CH3 | Drives SPI data-out or generates third-phase PWM for three-phase motor commutation. |
| PA8 | GPIO / RCC_MCO / TIM1_CH1 | Outputs system clock or timer waveform for debug clock injection or external sync. |
| PA9 | GPIO / USART1_TX / TIM1_CH2 | Primary UART TX or advanced timer channel - used for bootloader communication or servo control. |
| PA10 | GPIO / USART1_RX / TIM1_CH3 | UART RX with wake-up capability or complementary PWM output for precise phase alignment. |
| PA13 | SWDIO | Serial Wire Debug I/O - enables non-intrusive debugging and programming via standard SWD interface. |
| PA14 | SWCLK | Serial Wire Debug clock - synchronizes debug data transfer at up to 48 MHz frequency. |
| PF0 | GPIO / OSC_IN | Crystal oscillator input for 4–48 MHz external clock source; requires external load capacitors. |
| PF1 | GPIO / OSC_OUT | Crystal oscillator output; drives external crystal in parallel-resonant configuration. |
| BOOT0 | Boot mode select | High at reset forces system memory boot; pulled low via external resistor for main flash execution. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC calculation unit | Accelerates firmware image checksum validation and communication packet integrity checks in real time. |
| Programmable brownout reset (BOR) | Configurable trip points (2.1/2.4/2.7 V) prevent erratic operation during brownout conditions without external supervisor IC. |
| 5 V-tolerant I/Os | Eliminates need for external level shifters when interfacing with 5 V sensors, displays, or logic families. |
| Calendar RTC with alarm | Enables time-stamped logging and scheduled wake-up from Stop mode using 32.768 kHz LSE crystal. |
| Low-power modes (Stop/Standby/Shutdown) | Consumes as low as 0.32 µA in Shutdown mode - extends battery life in always-on sensor applications. |
Applications
| Industrial Sensor Node | Smart Energy Meter Front-End |
|---|---|
Use Scenario: Compact environmental sensor module measuring temperature, humidity, and CO₂ with wireless telemetry. IC Role / Device Role / Timing Role: Main controller executing sensor fusion algorithms, managing UART-to-LoRaWAN bridge, and regulating sleep/wake cycles. Use Value: Integrated 12-bit ADC and ultra-low shutdown current (0.32 µA) enable multi-year battery operation with periodic wake-up sampling. |
Use Scenario: Residential electricity meter with pulse counting, tamper detection, and RS-485 communication. IC Role / Device Role / Timing Role: System-on-chip handling metrology interface, tariff switching, secure data logging, and isolated serial communication. Use Value: Dual USARTs with LIN/IrDA support allow both utility-side diagnostics and consumer-side display interface in same footprint. |
| Motor Control Actuator | IoT Edge Gateway Subsystem |
Use Scenario: Brushless DC fan controller with speed regulation, thermal protection, and fault reporting. IC Role / Device Role / Timing Role: Real-time PWM generator using TIM1 advanced timer, ADC-based current sensing, and overtemperature shutdown. Use Value: Hardware parity on SRAM and independent watchdogs ensure functional safety compliance in Class B IEC 60730 applications. |
Use Scenario: Local concentrator aggregating BLE/Zigbee sensor data before forwarding via Ethernet or cellular modem. IC Role / Device Role / Timing Role: Protocol translation hub managing multiple concurrent serial interfaces (USART/I²C/SPI) and local flash-based firmware updates. Use Value: 32 KB flash with readout protection secures OTA update payload storage; 5 V-tolerant I/Os simplify connection to legacy modems. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32C011F4P6 | 16 KB flash, 6 KB SRAM, no RTC calendar, fewer USARTs (1x) | Limited firmware complexity and timekeeping requirements | Select when basic control + minimal peripheral count suffices and BOM cost is critical. |
| STM32G031F6P6 | Same pinout, 64 KB flash, 12 KB SRAM, enhanced crypto engine, higher temp grade (125°C) | Requires secure boot, longer firmware lifespan, or extended industrial temperature operation | Choose for future-proofing, security-critical functions, or harsh-environment deployments. |
Compared with STM32C011F4P6, the STM32C031F6P6 adds calendar RTC and second USART for dual-protocol telemetry; versus STM32G031F6P6, it trades crypto acceleration and extended temperature rating for lower unit cost and identical TSSOP20 footprint compatibility.
Availability
STM32C031F6P6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart energy meter front-ends, motor control actuators, and IoT edge gateway subsystems requiring stable component supply across multi-year production cycles.
Supply support for STM32C031F6P6 includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
STMicroelectronics is a global semiconductor leader headquartered in Geneva, Switzerland, designing and manufacturing microcontrollers, power management ICs, MEMS, and automotive semiconductors since 1987.
The STM32C0 series targets cost-sensitive, space-constrained embedded applications demanding high integration, low power, and industrial-grade reliability - optimized for appliance control, lighting, and basic industrial automation.
FAQ
What is the maximum operating frequency of the STM32C031F6P6?
The STM32C031F6P6 operates at up to 48 MHz using its internal 48 MHz RC oscillator (HSI48) with ±1 % accuracy, or from an external 4–48 MHz crystal. This frequency is fully supported across its entire operating voltage range (2.0–3.6 V) and temperature range (–40°C to +85°C).
Does the STM32C031F6P6 support hardware encryption?
No, the STM32C031F6P6 does not include hardware cryptographic accelerators such as AES or PKA engines. It relies on software-based encryption libraries. For hardware crypto, consider the pin-compatible STM32G031F6P6, which integrates AES-128 and random number generation.
Can the STM32C031F6P6 run from a 3.3 V supply with full peripheral functionality?
Yes - the device is fully specified for operation at 3.3 V (within its 2.0–3.6 V range), supporting all peripherals including ADC, timers, USARTs, and I²C at maximum clock speed. The 12-bit ADC maintains full 0–3.6 V input range and 1 LSB accuracy at this supply.
Is the TSSOP20 package of the STM32C031F6P6 RoHS and REACH compliant?
Yes, the STM32C031F6P6 in TSSOP20 (YA) package is ECOPACK2-compliant, meeting RoHS Directive 2011/65/EU and REACH Regulation (EC) No. 1907/2006, with lead-free terminations and halogen-free molding compound.
STM32C031F6P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32C0
- Packaging:
- Tray
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit
- Speed:
- 48MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, POR, PWM, Temp Sensor, WDT
- Number of I/O:
- 18
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 12K x 8
- Voltage - Supply (Vcc/Vdd):
- 2V ~ 3.6V
- Data Converters:
- A/D 15x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32C031F6P6 FAQ
1.How can I place an order for STM32C031F6P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32C031F6P6 on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for STM32C031F6P6 reliable?
The price and inventory of STM32C031F6P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32C031F6P6 is usually 5 days.
3.What payment methods are accepted for STM32C031F6P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32C031F6P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32C031F6P6?
STM32C031F6P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32C031F6P6 order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for STM32C031F6P6?
For technical support, including STM32C031F6P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32C031F6P6 requirements.
6.How does Aetrix verify that STM32C031F6P6 is sourced from the original manufacturer or authorized distributors?
All STM32C031F6P6 products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that STM32C031F6P6 meets industry standards.
7.What is the process for return or replacement of STM32C031F6P6?
All STM32C031F6P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32C031F6P6, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The STM32C031F6P6 part is unused and in its original packaging.
Return procedure for STM32C031F6P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32C031F6P6 Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

