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

- Shipping:

Inventory:2,475
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F038F6P6TR from STMicroelectronics is an ARM® Cortex®-M0 32-bit microcontroller with 32 KB Flash, 4 KB SRAM (HW parity), and operating voltage down to 1.8 V. It integrates a 12-bit ADC (1.0 µs conversion), 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, and SPI (18 Mbit/s). It targets cost-sensitive industrial control and sensor interface applications requiring extended temperature operation (–40 to +105°C).
For engineers reviewing the STM32F038F6P6TR datasheet, STM32F038F6P6TR pinout, STM32F038F6P6TR application, or STM32F038F6P6TR equivalent, key selection criteria include its 1.8 V core supply compatibility, 5 V-tolerant I/Os (up to 25 pins), integrated RTC with alarm/wakeup, SWD debug support, and TSSOP20 package footprint for space-constrained PCB layouts.
Technical Context
The STM32F038F6P6TR implements a single-cycle ARM Cortex-M0 core running at up to 48 MHz via internal 8 MHz RC oscillator with x6 PLL or external 4–32 MHz crystal. Its clock tree includes dedicated 32 kHz LSE for RTC calibration and independent 40 kHz LSI for watchdog timing-enabling precise real-time operation without external timing components.
It features a 5-channel DMA controller servicing peripherals including ADC, timers, and communication interfaces; supports hardware CRC calculation; and provides full interrupt vector mapping across all 38 GPIOs, with 25 pins rated for 5 V tolerance-critical for mixed-voltage system interfacing in industrial I/O modules and smart sensors.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | ARM Cortex-M0, 48 MHz max - enables deterministic real-time control with <100 ns interrupt latency. |
| Flash / SRAM | 32 KB Flash, 4 KB SRAM with HW parity - sufficient for firmware + data logging with ECC-like reliability. |
| ADC | 12-bit, 1.0 µs conversion, 10-channel - supports fast analog sensing (e.g., motor current, temperature) with 0–3.6 V input range. |
| Timers | 9 timers: 1x advanced-control (6-PWM + deadtime), 4x general-purpose, 2x watchdog, 1x SysTick - enables motor gate drive, IR modulation, and system supervision. |
| I/O Voltage | Digital I/Os: 1.8 V ±8%; Analog supply: 2.4–3.6 V; 25 pins 5 V tolerant - allows direct connection to legacy 5 V logic and sensors. |
| Communication | I²C Fast Mode Plus (1 Mbit/s), USART (LIN/IrDA/ISO7816), SPI (18 Mbit/s) - supports industrial fieldbus bridging and secure smart-card interfaces. |
| Operating Temp | –40 to +105°C - qualified for under-hood automotive sensors and industrial PLC I/O modules. |
| Debug | Serial Wire Debug (SWD) - enables low-pin-count in-circuit debugging and flash programming via 2-wire interface. |
Pinout & Package
TSSOP20 package (6.5 × 4.4 mm, 0.65 mm pitch), RoHS-compliant and ECOPACK®2 certified, optimized for automated assembly and thermal performance in compact industrial modules.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Digital power supply | 1.8 V ±8% main supply; decoupling required per datasheet layout guidelines. |
| VSS | Digital ground | Reference return for digital logic and I/Os; separate analog ground recommended. |
| VDDA | Analog power supply | 2.4–3.6 V for ADC, RTC, and analog peripherals; must be filtered and isolated from digital noise. |
| PA0–PA9 | General-purpose I/O | Up to 10 pins configurable as GPIO, ADC inputs, or timer channels; PA0–PA7 support 5 V tolerance. |
| PA10–PA15 | Alternate function I/O | Support USART1_TX/RX, SPI1_SCK/MOSI/MISO, I²C1_SCL/SDA, and SWDIO/SWCLK debug signals. |
| NRST | Active-low reset | Asynchronous reset input; internal pull-up; compatible with open-drain reset supervisors. |
| BOOT0 | Boot mode select | High at reset enables system memory bootloader; tied low for normal Flash execution. |
| OSC_IN / OSC_OUT | External crystal interface | Supports 4–32 MHz crystals; optional for high-precision clocking when internal RC is insufficient. |
Key Features
| Feature | Design Value |
|---|---|
| Low-voltage operation | 1.8 V core supply enables battery-powered and energy-harvested sensor nodes with extended runtime. |
| 5 V-tolerant I/Os | 25 pins tolerate 5 V inputs while powered from 1.8 V - eliminates level shifters in mixed-voltage industrial interfaces. |
| Advanced-control timer | TIM1 supports 6-channel complementary PWM with programmable deadtime and emergency stop - suitable for BLDC motor gate drivers. |
| RTC with calibration | Integrated 32 kHz oscillator with software-calibratable drift compensation - delivers ±1 ppm accuracy over temperature without external crystal. |
| Hardware CRC unit | Dedicated peripheral computes CRC-32 over memory blocks in one cycle - accelerates firmware integrity checks and secure boot validation. |
| SWD debug interface | 2-pin Serial Wire Debug replaces JTAG, reducing PCB footprint and routing complexity while retaining full debug capability. |
Applications
| Industrial Sensor Node | Smart Meter Interface |
|---|---|
Use Scenario: Compact environmental monitoring node measuring temperature, humidity, and analog gas sensor outputs in factory settings. IC Role / Device Role / Timing Role: Main controller executing sensor acquisition, local filtering, and RS-485 data transmission using USART with automatic baud rate detection. Use Value: 12-bit ADC with 1.0 µs conversion and 5 V-tolerant I/Os enable direct connection to legacy analog sensors; 1.8 V operation extends battery life in wireless deployments. | Use Scenario: Pulse counting and tariff switching module in electricity meters interfacing with mechanical or optical encoders and EEPROM. IC Role / Device Role / Timing Role: Real-time data aggregator with calendar RTC, backup registers, and tamper-detection logic using VBAT-supplied RTC and independent watchdog. Use Value: Integrated RTC with alarm and periodic wakeup from Stop mode reduces system power to <1 µA; HW parity on SRAM ensures metering data integrity. |
| Motor Control Actuator | IoT Edge Gateway Subsystem |
Use Scenario: Low-cost BLDC fan or pump driver with hall-effect feedback and thermal protection. IC Role / Device Role / Timing Role: Motor gate driver controller generating six complementary PWM signals with synchronized deadtime and emergency stop via TIM1. Use Value: Advanced-control timer eliminates need for external gate-driver ICs; 105°C rating supports operation near motor windings without derating. | Use Scenario: Protocol translation bridge between Zigbee/Z-Wave radios and legacy Modbus RTU field devices. IC Role / Device Role / Timing Role: Dual-interface coordinator managing UART-based radio commands and SPI-driven Modbus slave peripherals. Use Value: Simultaneous I²C (for sensor config), USART (radio comms), and SPI (Modbus PHY) reduce BOM count; SWD enables field firmware updates over UART. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32F030F4P6 | Same TSSOP20 package, but only 16 KB Flash, no advanced-control timer, no 5 V-tolerant I/Os. | Limited to basic control tasks without motor drive or mixed-voltage interfacing. | Select when cost is primary constraint and advanced peripherals are unnecessary. |
| STM32F042F6P6 | Same Flash/SRAM, adds USB 2.0 FS device interface and CEC support; retains 5 V-tolerant I/Os and advanced timer. | Suitable for USB-connected human interface devices (HID) or firmware-upgradable peripherals. | Choose when USB connectivity or CEC protocol support is required alongside motor control capability. |
Compared with STM32F030F4P6, the STM32F038F6P6TR offers critical enhancements for industrial edge nodes: 5 V-tolerant I/Os eliminate external level shifters, and its advanced-control timer enables embedded motor drive without external gate drivers. Versus STM32F042F6P6, it trades USB for lower system cost and reduced EMI sensitivity in electrically noisy environments.
Availability
STM32F038F6P6TR is available at Aetrix Electronics and suitable for industrial sensor nodes, smart meter interfaces, motor control actuators, and IoT edge gateway subsystems requiring stable component supply across extended temperature ranges and long production lifecycles.
Supply support for STM32F038F6P6TR 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 analog solutions for industrial, automotive, and consumer markets.
The STM32F0 series delivers entry-level ARM Cortex-M0 performance with industrial-grade reliability, targeting cost-sensitive embedded applications where robustness, low power, and peripheral integration outweigh raw compute throughput.
FAQ
What is the maximum operating frequency of the STM32F038F6P6TR?
The STM32F038F6P6TR achieves a maximum CPU frequency of 48 MHz using its internal 8 MHz RC oscillator with x6 PLL or an external 4–32 MHz crystal. This frequency is fully supported across the full –40 to +105°C temperature range and 1.8 V ±8% supply, as validated in Section 6.3.1 of the official datasheet (DocID026079 Rev 5).
Does the STM32F038F6P6TR support 5 V-tolerant I/Os, and how many pins have this feature?
Yes, the STM32F038F6P6TR supports 5 V-tolerant I/Os on up to 25 pins, including PA0–PA7, PB0–PB1, and several alternate-function pins like USART TX/RX and SPI MOSI/MISO. This capability is explicitly specified in Section 3.7 and Table 44 of the datasheet, enabling direct interfacing with 5 V logic without external level-shifting circuitry.
Can the STM32F038F6P6TR operate from a single 1.8 V supply, and what are the analog supply requirements?
Yes, the STM32F038F6P6TR operates from a single 1.8 V ±8% digital supply (VDD), while its analog domain requires a separate VDDA supply ranging from 2.4 V to 3.6 V. This dual-supply architecture isolates noise-sensitive analog circuits (ADC, RTC, temperature sensor) from digital switching transients, as detailed in Sections 3.5.1 and 6.3.3 of the datasheet.
Is the STM32F038F6P6TR pin-compatible with other members of the STM32F038x6 family?
No - the STM32F038F6P6TR uses the TSSOP20 package, whereas other variants (e.g., STM32F038C6, STM32F038G6) use LQFP48, UFQFPN32, or WLCSP25 packages. Pin compatibility exists only within the same package option; TSSOP20 devices share identical pinouts across F038x6 variants, but differ from other package types in both pin count and signal mapping.
STM32F038F6P6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32F0
- Packaging:
- Tape & Reel (TR)
- 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:
STM32F038F6P6TR FAQ
1.How can I place an order for STM32F038F6P6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F038F6P6TR 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 STM32F038F6P6TR reliable?
The price and inventory of STM32F038F6P6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F038F6P6TR is usually 5 days.
3.What payment methods are accepted for STM32F038F6P6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F038F6P6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F038F6P6TR?
STM32F038F6P6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F038F6P6TR 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 STM32F038F6P6TR?
For technical support, including STM32F038F6P6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F038F6P6TR requirements.
6.How does Aetrix verify that STM32F038F6P6TR is sourced from the original manufacturer or authorized distributors?
All STM32F038F6P6TR 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 STM32F038F6P6TR meets industry standards.
7.What is the process for return or replacement of STM32F038F6P6TR?
All STM32F038F6P6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32F038F6P6TR, 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 STM32F038F6P6TR part is unused and in its original packaging.
Return procedure for STM32F038F6P6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F038F6P6TR 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…

