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

- Shipping:

Inventory:2,557
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F038F6P6 from STMicroelectronics is an ARM® Cortex®-M0 32-bit microcontroller with 32 KB Flash, 4 KB SRAM (with hardware parity), and operation at up to 48 MHz. It integrates a 12-bit 1.0 µs ADC (10-channel), nine timers-including one advanced-control timer with deadtime generation-and communication interfaces including I²C Fast Mode Plus (1 Mbit/s), USART with IrDA/LIN/ISO7816 support, and SPI (18 Mbit/s). It targets compact industrial control and sensor node applications requiring extended temperature operation (–40 to +105°C) and low-voltage supply (1.8 V ±8%).
For engineers reviewing the STM32F038F6P6 datasheet, STM32F038F6P6 pinout, STM32F038F6P6 application, or STM32F038F6P6 equivalent, key selection criteria include its TSSOP20 package footprint, 5 V-tolerant I/O count (up to 25 pins), RTC with alarm/wakeup from Stop mode, SWD debug interface, and support for 1.8 V digital supply with separate 2.4–3.6 V analog rail.
Technical Context
The STM32F038F6P6 implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, coupled with tightly coupled memory subsystems: 32 KB Flash with error correction logic and 4 KB SRAM with hardware parity checking. Its clock tree supports multiple sources-4–32 MHz HSE, 32.768 kHz LSE, 8 MHz HSI with x6 PLL, and 40 kHz LSI-enabling precise timing control across operating modes.
Peripheral integration follows ST's STM32F0 architecture: DMA controller (5 channels), NVIC with 32 interrupt lines, EXTI for configurable edge-triggered wakeups, and dedicated analog domain with independent VDDA supply. The advanced-control timer (TIM1) provides six PWM outputs with programmable deadtime and emergency stop, while the RTC includes calendar function, alarm, and periodic wakeup capability from Stop mode.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 32-bit, up to 48 MHz - enables deterministic real-time execution with low gate count and power efficiency. |
| Flash Memory | 32 KB - sufficient for firmware with bootloader, communication stacks, and control algorithms in space-constrained designs. |
| SRAM | 4 KB with hardware parity - supports robust data storage for variables and stack with error detection in safety-critical routines. |
| ADC | 1 × 12-bit, 1.0 µs conversion time, up to 10 channels - delivers high-speed analog sensing for motor current, temperature, or voltage monitoring. |
| Timers | 9 total: 1× advanced-control (TIM1), 4× general-purpose (TIM2/3/14/16), 1× basic (TIM17), plus IWDG/WWDG/SysTick - enables multi-axis PWM, IR decoding, pulse counting, and system supervision. |
| I/O Pins | Up to 38 fast I/Os; 25 with 5 V tolerance - allows direct interfacing with legacy 5 V peripherals without level shifters in mixed-voltage systems. |
| Supply Voltage | VDD = 1.8 V ±8%; VDDA = 2.4–3.6 V - supports ultra-low-power operation while maintaining analog accuracy and noise immunity. |
| Operating Temp | –40°C to +105°C - qualified for industrial automation, smart sensors, and automotive body electronics environments. |
Pinout & Package
The STM32F038F6P6 is housed in a 20-pin TSSOP package (6.5 × 4.4 mm), optimized for automated assembly and board-level space efficiency. Pin functions are validated per ST's official datasheet (DocID026079 Rev 5, Figure 7).
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Digital power supply and ground | 1.8 V ±8% digital rail; decoupling required within 10 mm of pins for stable core operation. |
| VDDA, VSSA | Analog power supply and ground | Separate 2.4–3.6 V analog domain; must be filtered and isolated from digital noise to preserve ADC accuracy. |
| PA0–PA15, PB0–PB1 | General-purpose I/Os | 25 pins support 5 V tolerance; all mappable to external interrupts - enables flexible signal routing and wake-on-event capability. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.8 V logic; supports external reset button or supervisor IC. |
| SWDIO / SWCLK | Serial Wire Debug interface | Two-pin debug port supporting full programming, breakpoint, and real-time variable inspection without JTAG overhead. |
| BOOT0 | Boot mode selection | High at reset selects system memory boot (for DFU); low selects user Flash - enables field firmware recovery. |
Key Features
| Feature | Design Value |
|---|---|
| Advanced-control timer (TIM1) | 6-channel complementary PWM with programmable deadtime and emergency stop - enables safe driving of half-bridge and three-phase inverters. |
| I²C Fast Mode Plus | 1 Mbit/s with extra current sink - supports robust communication with standard and fast-mode I²C slaves in noisy industrial environments. |
| USART with IrDA modulation | Built-in IrDA encoder/decoder and auto baud rate detection - eliminates external transceivers for infrared remote control or diagnostics. |
| RTC with calendar & alarm | Full binary-coded decimal (BCD) calendar, alarm, and periodic wakeup from Stop mode - maintains timekeeping with <1 µA VBAT current. |
| Low-power modes | Sleep, Stop (with RTC active), and ultra-low-leakage standby - achieves sub-1 µA Stop mode current at 1.8 V for battery-powered nodes. |
| 96-bit unique ID | Factory-programmed serial number - enables secure device authentication, license binding, and firmware anti-cloning in OEM deployments. |
Applications
| Industrial Motor Control | Smart Sensor Node |
|---|---|
Use Scenario: Compact BLDC fan controller with speed regulation, overcurrent protection, and thermal monitoring. IC Role / Device Role / Timing Role: Main system controller executing FOC algorithm, generating 6-channel PWM with deadtime, sampling current via ADC, and managing UART-based configuration. Use Value: TIM1's hardware deadtime prevents shoot-through; 1.8 V operation reduces system power; 5 V-tolerant GPIOs interface directly with Hall sensors and status LEDs. |
Use Scenario: Battery-powered environmental monitor logging temperature, humidity, and ambient light with periodic BLE wakeup. IC Role / Device Role / Timing Role: System orchestrator managing sensor I²C reads, ADC conversions, RTC-triggered sleep/wake cycles, and UART-to-BLE bridge firmware. Use Value: Sub-1 µA Stop mode extends battery life; integrated RTC alarm eliminates external timer IC; 4 KB SRAM holds sensor buffers and calibration data. |
| Automotive Body Electronics | Home Appliance UI Controller |
Use Scenario: Door module controlling window lift, mirror adjustment, and interior lighting with LIN bus communication. IC Role / Device Role / Timing Role: LIN slave node handling protocol framing, PWM dimming for LEDs, and analog sensing of switch positions and motor current. Use Value: USART's built-in LIN physical layer support simplifies compliance; extended –40°C to +105°C rating meets AEC-Q100 Grade 2 requirements. |
Use Scenario: Touchless control panel for microwave oven with capacitive touch, buzzer feedback, and display backlight PWM. IC Role / Device Role / Timing Role: Dedicated UI processor managing cap-sense acquisition, audio tone generation via TIM17, and 8-bit PWM for LED brightness control. Use Value: Hardware-accelerated cap-sense (via GPIO analog mode) avoids CPU load; 5 V-tolerant inputs accept direct connection to mechanical buttons and relays. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32F042F6P6 | Same package and pinout; adds USB 2.0 FS device interface and 16 KB additional Flash (64 KB total). | Required where host-side USB connectivity (e.g., HID device, firmware update over USB) is needed. | Select if USB device functionality is mandatory; otherwise, STM32F038F6P6 offers lower cost and identical peripheral set for non-USB use cases. |
| STM32F070F6P6 | Same TSSOP20 package; adds 1× USB 2.0 FS device, 1× additional USART, and 1 KB more SRAM (5 KB), but lacks advanced-control timer (TIM1). | Suitable for USB-connected sensor hubs or protocol converters where 6-channel PWM is unnecessary. | Choose when USB + extra serial interface outweighs need for hardware deadtime generation; not suitable for motor control requiring TIM1. |
Compared with STM32F042F6P6 and STM32F070F6P6, the STM32F038F6P6 provides optimal balance of advanced PWM capability, low-voltage operation, and industrial temperature range without USB overhead-making it ideal for cost-sensitive, space-constrained motor and sensor control where USB is absent.
Availability
STM32F038F6P6 is available at Aetrix Electronics and suitable for industrial motor control, smart sensor nodes, automotive body electronics, and home appliance UI controllers requiring stable component supply and long-term manufacturability.
Supply support for STM32F038F6P6 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 devices, sensors, and analog ICs for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-sensitive, resource-constrained embedded applications requiring ARM Cortex-M0 performance, low power, and high integration-optimized for industrial control, appliance management, and sensor edge nodes.
FAQ
What is the maximum operating frequency of the STM32F038F6P6?
The STM32F038F6P6 operates at up to 48 MHz using its internal 8 MHz HSI oscillator with x6 PLL, or directly from an external 4–32 MHz crystal. This frequency is guaranteed across the full –40°C to +105°C temperature range and 1.8 V ±8% supply, as confirmed in Section 6.3.1 of the datasheet.
Does the STM32F038F6P6 support 5 V tolerant I/Os?
Yes-up to 25 I/O pins on the STM32F038F6P6 are 5 V tolerant when VDD is ≥2.0 V, enabling direct interface with 5 V logic, sensors, and actuators without external level shifters. This is specified in Section 3.7 and Table 44 of the datasheet.
Can the STM32F038F6P6 run from a 1.8 V supply while maintaining ADC accuracy?
Yes-the ADC operates with a separate VDDA supply (2.4–3.6 V), decoupled from the 1.8 V digital VDD. As long as VDDA is within spec and properly filtered, 12-bit ADC performance (±1.5 LSB INL, 70 dB SNR) is maintained per Section 6.3.15, independent of VDD voltage.
Is Serial Wire Debug (SWD) supported on the STM32F038F6P6?
Yes-SWD is fully supported via dedicated SWDIO (PA13) and SWCLK (PA14) pins, enabling programming, debugging, and real-time trace without requiring JTAG pins. SWD functionality is documented in Section 3.16 and verified in production silicon per ST's release notes.
STM32F038F6P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32F0
- Packaging:
- Tray
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0
- Core Size:
- 32-Bit Single-Core
- Speed:
- 48MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 14
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 4K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.65V ~ 1.95V, 1.65V ~ 3.6V
- Data Converters:
- A/D 9x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F038F6P6 FAQ
1.How can I place an order for STM32F038F6P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F038F6P6 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 STM32F038F6P6 reliable?
The price and inventory of STM32F038F6P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F038F6P6 is usually 5 days.
3.What payment methods are accepted for STM32F038F6P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F038F6P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F038F6P6?
STM32F038F6P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F038F6P6 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 STM32F038F6P6?
For technical support, including STM32F038F6P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F038F6P6 requirements.
6.How does Aetrix verify that STM32F038F6P6 is sourced from the original manufacturer or authorized distributors?
All STM32F038F6P6 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 STM32F038F6P6 meets industry standards.
7.What is the process for return or replacement of STM32F038F6P6?
All STM32F038F6P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32F038F6P6, 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 STM32F038F6P6 part is unused and in its original packaging.
Return procedure for STM32F038F6P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F038F6P6 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…

