STM32F102R6T6A - 48MHz Cortex-M3 MCU, 32KB Flash, USB | STMicroelectronics
Référence : STM32F102R6T6A ✓ Actif| Qté | Prix unitaire | Total |
|---|---|---|
| 1 | $4.2 | $4,20 |
| 10 | $3.78 | $37,80 |
| 100 | $3.36 | $336,00 |
| 500 | $2.99 | $1 495,00 |
| 1 000 | $2.65 | $2 650,00 |
STM32F102R6T6A Présentation
An ARM Cortex-M3 microcontroller is a 32-bit RISC processor core designed by Arm for deterministic real-time embedded applications. The Cortex-M3 family is widely used in industrial control, consumer electronics, and USB-connected devices because it combines Thumb-2 instruction efficiency with tightly-coupled NVIC interrupt handling and single-cycle multiply. Within the broader STM32 family hierarchy, the F102 sits below the F103 (72 MHz, more peripherals) and above the F100 (no USB), positioning it as the entry-point USB-enabled MCU for low-cost designs.
Key features of the STM32F102R6T6A include 32 KB Flash in a 32K x 8 organization, 6 KB SRAM, a 12-bit ADC with up to 16 channels, five timers (one 16-bit advanced PWM, one 16-bit general-purpose, two watchdog timers, and a SysTick), and five communication interfaces including USB FS, one I2C, two SPIs, and three USARTs. The 64-pin LQFP package exposes 51 general-purpose I/O lines and supports 5 V tolerant I/Os on most pins, simplifying mixed-voltage interfacing.
The device operates from a 2.0 V to 3.6 V supply, includes a power-on reset (POR), programmable voltage detector (PVD), and a low-power sleep/stop/standby mode set. The integrated USB 2.0 Full-Speed device controller with on-chip PHY eliminates external USB transceivers, reducing BOM cost for HID, CDC, and DFU class devices.
Typical applications include USB human-interface devices (keyboards, mice, game controllers), USB-to-UART bridges, industrial control panels, low-end motor control with PWM, sensor hubs, and small home appliances. The wide peripheral mix and free STM32CubeIDE toolchain make it popular for rapid prototyping and OEM designs.
When designing with this part, ensure the USB DP/DQ traces are 90 ohms differential and routed within 2 mm of each other; improper impedance causes USB compliance failure. The on-chip 8 MHz HSI RC is factory-trimmed to +/-2% across temperature, allowing USB operation without an external crystal when the CRS (clock recovery system) is used.
This page synthesizes distributor pricing, parametric alternatives, and practical PCB/USB design notes not consolidated on the manufacturer product page. (424 words)
Alternatives de remplacement direct pour STM32F102R6T6A — même boîtier, compatible broche à broche. Les références à boîtier différent nécessitant une retouche du PCB sont exclues.
Outil de comparaison rapide — sélectionnez des références alternatives pour une comparaison côte à côte :
STM32F102R8T6A
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
STM32F103R6T6
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
STM32F102RBT6
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
STM32F101R6T6
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
GD32F103R6T6
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
MM32F103R6T6
✅ Remplacement direct📋 Alternative de référence (hors catalogue)
STM32F102R6T6A Valeurs maximales et caractéristiques électriques
| Core | ARM Cortex-M3 32-bit RISC |
| Fréquence d'horloge maximale | 48 MHz |
| Program Memory Size | 32 KB (32K x 8) Flash |
| RAM Size | 6 KB SRAM |
| Tension d'alimentation | 2.0 V to 3.6 V |
| Température de fonctionnement | -40C to +85C |
| Boîtier | 64-pin LQFP |
| Type de montage | Surface Mount |
| USB Interface | 1 x USB 2.0 Full-Speed (with on-chip PHY) |
| Number of I/O Pins | 51 |
| ADC | 1 x 12-bit, up to 16 channels |
| Timers | 5 (1x 16-bit advanced PWM, 1x 16-bit GP, 2x WDT, SysTick) |
| Communication Interfaces | 1x I2C, 2x SPI, 3x USART, 1x USB FS |
| Connectivity | I2C, IrDA, LINbus, SPI, UART/USART, USB |
| Peripherals | DMA, PDR, POR, PVD, PWM, Temp Sensor, WDT |
| Largeur du bus de données | 32-bit |
| Niveau MSL | 3 (168 hours) |
| Statut RoHS | Compliant |
Configuration des broches de STM32F102R6T6A
| Broche 1 | PC13 — GPIO/Tamper-RTC, GPIO13, Tamper-RTC input |
| Broche 2 | PC14 — OSC32_IN, 32.768 kHz crystal input |
| Broche 3 | PC15 — OSC32_OUT, 32.768 kHz crystal output |
| Broche 4 | VSS_1 — Ground |
| Broche 5 | VDD_1 — Digital supply 2.0-3.6 V |
| Broche 6 | OSC_IN — External clock/crystal input |
| Broche 7 | OSC_OUT — External clock/crystal output |
| Broche 8 | NRST — Reset input (active low) |
| Broche 9 | VSSA — Analog ground |
| Broche 10 | VDDA — Analog supply 2.0-3.6 V |
| Broche 11 | PA0 — GPIO/ADC_IN0/WKUP |
| Broche 12 | PA1 — GPIO/ADC_IN1 |
| Broche 13 | PA2 — GPIO/USART2_TX/ADC_IN2 |
| Broche 14 | PA3 — GPIO/USART2_RX/ADC_IN3 |
| Broche 15 | PA4 — GPIO/SPI1_NSS/USART2_CK/ADC_IN4 |
| Broche 16 | PA5 — GPIO/SPI1_SCK/ADC_IN5 |
| Broche 17 | PA6 — GPIO/SPI1_MISO/ADC_IN6 |
| Broche 18 | PA7 — GPIO/SPI1_MOSI/ADC_IN7 |
| Broche 19 | PB0 — GPIO/ADC_IN8 |
| Broche 20 | PB1 — GPIO/ADC_IN9 |
| Broche 21 | PB2/BOOT1 — GPIO/BOOT1 |
| Broche 22 | PB10 — GPIO/I2C2_SCL/USART3_TX |
| Broche 23 | PB11 — GPIO/I2C2_SDA/USART3_RX |
| Broche 24 | VSS_2 — Ground |
| Broche 25 | VDD_2 — Digital supply 2.0-3.6 V |
| Broche 26 | PB12 — GPIO/SPI2_NSS |
| Broche 27 | PB13 — GPIO/SPI2_SCK/USART3_CK |
| Broche 28 | PB14 — GPIO/SPI2_MISO |
| Broche 29 | PB15 — GPIO/SPI2_MOSI |
| Broche 30 | PA8 — GPIO/USART1_CK/TIM1_CH1 |
| Broche 31 | PA9 — GPIO/USART1_TX/TIM1_CH2 |
| Broche 32 | PA10 — GPIO/USART1_RX/TIM1_CH3 |
| Broche 33 | PA11 — GPIO/USB_DM/USB negative data |
| Broche 34 | PA12 — GPIO/USB_DP/USB positive data |
| Broche 35 | PA13 — GPIO/SWDIO |
| Broche 36 | VSS_3 — Ground |
| Broche 37 | VDD_3 — Digital supply 2.0-3.6 V |
| Broche 38 | PA14 — GPIO/SWCLK |
| Broche 39 | PA15 — GPIO/SPI1_NSS |
| Broche 40 | PC10 — GPIO/USART3_TX |
| Broche 41 | PC11 — GPIO/USART3_RX |
| Broche 42 | PC12 — GPIO |
| Broche 43 | PD2 — GPIO/TIM3_ETR |
| Broche 44 | PB3 — GPIO/SPI1_SCK |
| Broche 45 | PB4 — GPIO/SPI1_MISO |
| Broche 46 | PB5 — GPIO/SPI1_MOSI |
| Broche 47 | PB6 — GPIO/I2C1_SCL |
| Broche 48 | PB7 — GPIO/I2C1_SDA |
| Broche 49 | PB8 — GPIO/TIM4_CH1 |
| Broche 50 | PB9 — GPIO/TIM4_CH2 |
| Broche 51 | VSS_4 — Ground |
| Broche 52 | VDD_4 — Digital supply 2.0-3.6 V |
| Broche 53 | PC0 — GPIO/ADC_IN10 |
| Broche 54 | PC1 — GPIO/ADC_IN11 |
| Broche 55 | PC2 — GPIO/ADC_IN12 |
| Broche 56 | PC3 — GPIO/ADC_IN13 |
| Broche 57 | PC4 — GPIO/ADC_IN14 |
| Broche 58 | PC5 — GPIO/ADC_IN15 |
| Broche 59 | PC6 — GPIO |
| Broche 60 | PC7 — GPIO |
| Broche 61 | PC8 — GPIO |
| Broche 62 | PC9 — GPIO |
| Broche 63 | PA0-WKUP — Wakeup pin |
| Broche 64 | VSS_5 — Ground |
Applications typiques
STM32F102R6T6A convient pour 7 applications: USB Human Interface Devices, USB-to-UART Bridge / CDC Device, Industrial Control Panels, Low-End BLDC Motor Control, Sensor Hub and IoT Edge Nodes, Small Home Appliance Controllers, USB DFU Bootloader Programming Station.
USB Human Interface Devices
The STM32F102R6T6A's integrated USB 2.0 Full-Speed device controller with on-chip PHY makes it ideal for USB HID class peripherals such as keyboards, mice, gamepads, and presentation remote controls. The 48 MHz Cortex-M3 core delivers sufficient throughput to handle HID report descriptors and debounce logic simultaneously, while 6 KB SRAM accommodates HID ring buffers without external memory. Compared to designs using a separate USB controller chip, the integrated USB on the F102 reduces BOM cost by 30-40% and eliminates the need for external PHY terminations. The 51 GPIO lines support button matrix scanning, LED driving, and rotary encoder inputs without additional I/O expanders. The free STM32CubeIDE toolchain with USB device class libraries accelerates prototype development.
Recommandé
USB-to-UART Bridge / CDC Device
The STM32F102R6T6A is widely deployed in USB-to-UART bridges and USB CDC class devices because it integrates USB FS plus three independent USARTs in a single chip. This eliminates the FTDI-style external USB-UART IC, replacing it with firmware-driven CDC ACM. Each USART supports up to 4.5 Mbps, sufficient for bridging RS-232/RS-485 networks. The 32 KB Flash holds the USB stack plus CDC application logic, and the 6 KB SRAM serves as USB endpoint buffer plus USART FIFOs. Industrial automation equipment uses this configuration to expose legacy serial ports over USB without driver installation on modern operating systems. The 2.0-3.6 V supply simplifies interfacing with 3.3 V sensors and 5 V RS-232 line drivers via level shifters.
Recommandé
Industrial Control Panels
Industrial control panels use the STM32F102R6T6A for HMI input handling, sensor readout, and USB-based firmware update via DFU class. The 12-bit ADC with up to 16 channels reads 4-20 mA sensor loops through external shunt resistors, while the 16-bit advanced PWM timer drives industrial LED indicators, relays, or heating element PID control. The -40C to +85C industrial temperature range and 5 V tolerant I/Os allow direct interfacing with industrial 24 V signals via external resistor dividers. The DMA controller offloads ADC scan sequences without CPU intervention, leaving bandwidth for USB communication and display refresh. The integrated POR, PVD, and watchdog timers ensure reliable operation in electrically noisy factory environments.
Recommandé
Low-End BLDC Motor Control
The STM32F102R6T6A's 16-bit advanced PWM timer with complementary outputs and dead-time insertion drives low-power 3-phase BLDC and PMSM motors up to approximately 200 W. The Cortex-M3 core at 48 MHz executes sensorless FOC or 6-step commutation algorithms with sufficient headroom for USB telemetry streaming. The integrated op-amps (on select variants) and 5 V tolerant I/O simplify gate-driver interfacing. While the F103 series is preferred for high-end FOC, the F102 is well-suited to small pumps, fans, and drone motors where cost dominates. Quadrature encoder interface on timer 2 enables closed-loop position control for robotics and CNC accessory axes.
Recommandé
Sensor Hub and IoT Edge Nodes
USB-connected sensor hubs and IoT edge nodes leverage the STM32F102R6T6A to aggregate I2C/SPI sensor data and stream it over USB or USART to a host processor. With 1x I2C and 2x SPI interfaces, the F102 can simultaneously read temperature sensors, accelerometers, and pressure sensors at bus speeds up to 18 MHz on SPI. The 32 KB Flash stores edge processing logic for data filtering before USB transmission, while the 6 KB SRAM buffers sensor data between USB frames. Low-power sleep mode at 1.8 mA enables battery-powered deployments. Designers appreciate the wide 2.0-3.6 V supply range that supports direct Li-Ion battery operation without LDO regulation, reducing BOM further.
Recommandé
Small Home Appliance Controllers
Consumer home appliances such as coffee machines, blenders, and air purifiers use the STM32F102R6T6A as a low-cost touchscreen or button interface controller with USB firmware update capability. The 51 GPIO lines drive 7-segment displays, capacitive touch buttons, buzzer PWM, and triac gate control for AC loads up to 600 V via optocouplers. The 32 KB Flash holds the user interface logic plus preset programs, while 6 KB SRAM stores runtime state. USB DFU class firmware updates allow manufacturers to ship bug fixes and feature updates without field service. The industrial -40C to +85C temperature rating handles appliance environments near heating elements without derating.
Recommandé
USB DFU Bootloader Programming Station
Production programming fixtures use the STM32F102R6T6A as a USB host programmer that loads firmware images into target MCUs over SWD or UART. The on-chip USB FS device allows the fixture to present itself as a USB mass-storage or HID device to the host PC, simplifying the production operator workflow. The 32 KB Flash stores the programming application plus a small FAT filesystem for image storage, while 6 KB SRAM buffers USB transfers during programming cycles. Multiple USARTs allow simultaneous programming of multiple target boards. The 48 MHz core supports bit-banged SWD protocols at 1 MHz, sufficient for in-system programming of most STM32 and third-party Cortex-M targets.
Recommandé
Récapitulatif des produits recommandés
Données de référence d'ingénierie pour STM32F102R6T6A — comparaison, recommandations de conception et informations de conformité.
Guide de sélection
Comparaison avec les alternatives
| Paramètre | Ce produit | STM32F102R8T6A | STM32F103R6T6 | GD32F103R6T6 | MM32F103R6T6 |
|---|---|---|---|---|---|
| Brand | STMicroelectronics | STMicroelectronics | STMicroelectronics | GigaDevice | MindMotion |
| Package | LQFP-64 | LQFP-64 - same | LQFP-64 - same | LQFP-64 - same | LQFP-64 - same |
| Maximum Clock Frequency | 48 MHz | 48 MHz | 72 MHz | 108 MHz | 96 MHz |
| Flash Size | 32 KB | 64 KB | 32 KB | 32 KB | 32 KB |
| SRAM Size | 6 KB | 10 KB | 10 KB | 10 KB | 10 KB |
| USB Interface | USB FS | USB FS | USB FS | USB FS | USB FS |
| CAN Bus | No | No | Yes | Yes | Yes |
| GPIO Count | 51 | 51 | 51 | 51 | 51 |
| Supply Voltage | 2.0 V to 3.6 V | 2.0 V to 3.6 V | 2.0 V to 3.6 V | 2.6 V to 3.6 V | 2.0 V to 3.6 V |
Principaux différenciateurs
- Integrated USB PHY with no external components (vs GD32F103R6T6)
- Wider 2.0-3.6 V supply range supports direct Li-Ion operation (vs GD32F103R6T6)
- Free STM32CubeIDE with full peripheral library support (vs MM32F103R6T6)
- USB FS peripheral without CAN bus overhead (vs STM32F103R6T6)
Notes de conception
USB differential pair routing is critical: PA11 (USB_DM) and PA12 (USB_DP) must be routed as a 90-ohm differential pair with matched length within 2 mm of each other, with no splits or ground cuts under the pair. Use a continuous ground plane under the pair, and place the 22-ohm series termination resistors within 5 mm of the MCU pins. Failure to follow this guideline causes USB compliance test failures and intermittent enumeration issues in production.
Decouple all four VDD pins with 100 nF ceramic capacitors placed within 3 mm of each pin. Add a single 4.7 uF bulk capacitor on the supply rail near the MCU. VDDA requires its own 100 nF + 1 uF RC filter network (typical 100 ohm + 100 nF) to isolate analog supply noise from the digital VDD. NRST requires a 10 kohm pull-up to VDD and a 100 nF capacitor to ground for stable reset behavior.
Estimated: At 48 MHz with USB active, the F102 draws ~25 mA typical and up to 40 mA peak. Ensure the LDO or supply can source at least 50 mA with adequate headroom. A common pitfall is using a 3.3 V LDO with 100 mA rating that saturates at high USB traffic, causing brown-out resets. The on-chip 8 MHz HSI has +/-2% accuracy after calibration, sufficient for USB when CRS is enabled; external crystal is required for CAN or USB when higher precision is needed.
Informations de conformité
RoHS and REACH compliant per ST material declaration. Lead-free (Pb-free) with SAC305 plating on LQFP-64 terminations. Not AEC-Q100 qualified - this is a commercial/industrial grade part; for automotive applications, use STM32F102R6T6A automotive grade variants or STM32F103 series AEC-Q100 qualified parts.