STMicroelectronics ST7FOXK2B6
- Part No.:
- ST7FOXK2B6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 32-SDIP (0.400", 10.16mm)
- Datasheet:
-
ST7FOXK2B6.pdf
- Description:
- IC MCU 8BIT 8KB FLASH 32DIP
- Quantity:
- Payment:

- Shipping:

Inventory:1,101
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
ST7FOXK2B6 from STMicroelectronics is an 8-bit Flash microcontroller featuring 8 KB XFlash program memory, 384 bytes RAM, integrated SPI and I²C interfaces, 10-bit ADC with up to 10 channels, six timers (including dual 12-bit auto-reload timers with 4 PWM outputs), and five power-saving modes. It operates from a single supply (2.95–5.5 V), includes internal 8 MHz RC oscillator with trimming, low-voltage detector, and supports In-Circuit Programming (ICP) and In-Application Programming (IAP). It targets cost-sensitive embedded control in industrial sensors and appliance motor management.
For engineers reviewing the ST7FOXK2B6 datasheet, ST7FOXK2B6 pinout, ST7FOXK2B6 application, or ST7FOXK2B6 equivalent, key selection considerations include its 8 KB XFlash endurance (1k write/erase cycles), 20-year data retention at 55 °C, dual 12-bit timer PWM capability, high-sink I/O (up to 8 pins), and support for auto-wakeup from Halt mode via internal low-power oscillator.
Technical Context
The ST7FOXK2B6 implements the ST7 CPU core with 63 basic instructions, 17 addressing modes, and illegal opcode detection. Its clock system integrates three oscillators: trimmable 8 MHz RC, auto-wakeup low-frequency RC, and external crystal/resonator support - enabling dynamic switching between performance and ultra-low-power operation.
Interrupt handling supports 13 vectors plus TRAP and RESET, with software-configurable priority and nested servicing. Peripheral control is register-mapped with dedicated modules for I²C multimaster, SPI synchronous serial, and 10-bit ADC with configurable sampling time and trigger sources.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | 8-bit ST7 CPU with 63 instructions and 17 addressing modes - enables compact firmware and deterministic real-time response. |
| Flash Memory | 8 Kbytes XFlash with Read-Out Protection - supports secure field updates via ICP/IAP and guarantees 1,000 erase/write cycles. |
| RAM | 384 bytes - sufficient for stack, variables, and small buffers in sensor interface or motor control firmware. |
| ADC Resolution | 10-bit SAR with up to 10 input channels - delivers ±1 LSB INL for precision analog sensing in temperature or voltage monitoring. |
| Timers | Dual 12-bit auto-reload timers + dual 8-bit Lite timers + one 16-bit timer - provides 4 independent PWM outputs with dead-time generation for half-bridge motor drive. |
| I/O Pins | Up to 24 multifunctional bidirectional I/Os, including 8 high-sink outputs (20 mA) - drives LEDs, relays, or logic-level MOSFET gates directly. |
| Supply Voltage | 2.95 V to 5.5 V - compatible with single-cell LiFePO₄, 3.3 V or 5 V system rails without external regulators. |
| Power Modes | Five modes: Halt (0.3 µA), Active-Halt, Auto Wakeup from Halt, Wait, Slow - enables sub-µA standby in battery-powered endpoints. |
Pinout & Package
LQFP32 package (7 × 7 mm, 0.8 mm pitch) with 32-pin quad flat lead frame - suitable for automated SMT assembly and thermal management in compact industrial PCBs.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply input; decoupling required near pin for noise immunity. |
| VSS | Ground reference | Digital ground return path; must be low-impedance and separated from analog ground if ADC used. |
| PA0–PA7 | Port A I/O | Bidirectional port with alternate functions including ADC inputs, SPI signals, and timer outputs. |
| PB0–PB7 | Port B I/O | Includes high-sink outputs (PB0–PB7 capable of 20 mA sink), I²C lines (PB4/SCL, PB5/SDA), and reset input (PB7). |
| PC0–PC7 | Port C I/O | Supports timer capture/compare, UART-like asynchronous communication, and external interrupt inputs. |
| OSCIN/OSCOUT | Crystal oscillator interface | Accepts 1–8 MHz ceramic resonator or quartz crystal; internal load caps eliminate external capacitors in basic configurations. |
| NRST | Active-low reset | Asynchronous external reset input; also accepts watchdog or LVD-generated reset pulses. |
Key Features
| Feature | Design Value |
|---|---|
| In-Application Programming (IAP) | Enables firmware updates over SPI or I²C without halting main application - critical for remote device maintenance. |
| Auto Wakeup from Halt mode | Uses internal low-frequency RC oscillator to wake CPU on timer or external event - eliminates need for external wakeup circuitry. |
| Dual 12-bit auto-reload timers | Provide 4 independent PWM outputs with programmable dead-time insertion - supports complementary gate drive in BLDC motor controllers. |
| Low Voltage Detector (LVD) | Monitors VDD and triggers reset at 2.7 V (±0.1 V) - prevents erratic operation during brown-out conditions in unregulated supplies. |
| High-sink I/O capability | 8 pins deliver 20 mA sink current each - directly drives status LEDs or small solenoids without external drivers. |
Applications
| Industrial Sensor Node | Smart Appliance Control |
|---|---|
|
Use Scenario: Battery-powered temperature/humidity sensor node transmitting data via I²C to gateway MCU. IC Role / Device Role / Timing Role: Primary controller managing ADC sampling, SPI flash logging, and low-power sleep/wake scheduling. Use Value: Auto-wakeup from Halt mode reduces average current to <1 µA; 10-bit ADC ensures ±0.5°C measurement accuracy. |
Use Scenario: Washing machine main control board regulating motor speed, water valve, and user interface. IC Role / Device Role / Timing Role: System orchestrator executing PID loop, driving triac/relay outputs, and decoding encoder feedback. Use Value: Dual 12-bit timers generate precise 3-phase PWM with dead-time; high-sink I/O directly controls indicator LEDs and buzzer. |
| Energy Metering Interface | Building Automation Controller |
|
Use Scenario: Sub-metering module measuring AC line voltage/current using shunt-based sensing and isolation. IC Role / Device Role / Timing Role: Signal conditioner and communication bridge converting analog measurements to I²C packets for host MCU. Use Value: 10-channel ADC supports simultaneous voltage, current, and auxiliary sensor inputs; I²C multimaster allows shared bus arbitration. |
Use Scenario: HVAC zone controller reading thermostats, driving actuators, and reporting status over RS-485 (via SPI-to-UART bridge). IC Role / Device Role / Timing Role: Local decision engine executing occupancy logic, fan speed ramping, and fault detection. Use Value: Five power modes enable <2 µA deep sleep between 10-second polling intervals; 8 KB Flash stores calibration tables and firmware updates. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 8-bit Flash microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8S003F3P6 | STM8 core, 8 KB Flash, 1 KB RAM, no auto-wakeup RC oscillator, higher max clock (16 MHz) | Lacks integrated auto-wakeup from Halt; requires external RTC or GPIO wakeup for periodic sensing | Choose when higher instruction throughput is needed and external wakeup circuitry is acceptable. |
| EFM8BB10F8G-A-QFN20 | Silicon Labs 8051 core, 8 KB Flash, 512 B RAM, 2.1–3.6 V supply, integrated USB | Narrower voltage range; USB interface adds complexity but enables direct PC connectivity | Prefer when USB device functionality is required and supply is regulated to 3.3 V. |
Compared with STM8S003F3P6 and EFM8BB10F8G-A-QFN20, the ST7FOXK2B6 uniquely combines wide supply range (2.95–5.5 V), auto-wakeup RC oscillator, and high-sink I/O in LQFP32 - making it optimal for direct-battery or unregulated industrial designs requiring minimal external components.
Availability
ST7FOXK2B6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart appliance control, energy metering interfaces, and building automation controllers requiring stable component supply across multi-year production cycles.
Supply support for ST7FOXK2B6 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 ICs, sensors, and analog products for industrial, automotive, and consumer markets.
The ST7 family was engineered for cost-effective, low-power embedded control in resource-constrained applications - emphasizing Flash endurance, mixed-signal integration, and robustness in harsh electrical environments.
FAQ
Does ST7FOXK2B6 support debug interface and in-circuit programming?
Yes. The ST7FOXK2B6 supports In-Circuit Programming (ICP) via the ICC (In-Circuit Communication) interface using two dedicated pins (ICCLK and ICDAT). It also enables In-Application Programming (IAP) through firmware routines that reprogram Flash while the application runs - both methods require no external HV programming voltage and operate at standard VDD levels.
What is the maximum operating frequency and how is it configured?
The ST7FOXK2B6 achieves a maximum system clock of 8 MHz using its internal trimmed RC oscillator. Frequency is set via the Main Clock Control/Status Register (MCCSR) and can be switched dynamically between internal RC, external crystal, or external clock source. Crystal mode supports 1–8 MHz; RC oscillator accuracy is ±1% after factory trimming at 25 °C.
Can the 10-bit ADC perform conversions during low-power modes?
Yes. The ADC remains operational in Wait and Slow modes, and can be triggered by timer events or external interrupts. However, it is disabled in Halt and Active-Halt modes. Conversion time is 13 µs per sample (1 MHz ADC clock), and the result is stored in a 16-bit data register with configurable left/right alignment.
How does the dual 12-bit auto-reload timer support motor control?
Each 12-bit timer provides two independent output compare channels and one input capture channel. When configured in enhanced one-pulse mode with dead-time generation, they produce complementary PWM pairs with programmable delay - essential for preventing shoot-through in half-bridge or inverter topologies used in BLDC and stepper motor drives.
ST7FOXK2B6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-SDIP (0.400", 10.16mm)
- Series:
- ST7
- Packaging:
- Tube
- Product Status:
- Obsolete
- Programmable:
- Not Verified
- Core Processor:
- ST7
- Core Size:
- 8-Bit
- Speed:
- 8MHz
- Connectivity:
- I2C, SPI
- Peripherals:
- LVD, POR, PWM, WDT
- Number of I/O:
- 24
- Program Memory Size:
- 8KB (8K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 384 x 8
- Voltage - Supply (Vcc/Vdd):
- 4.5V ~ 5.5V
- Data Converters:
- A/D 10x10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Through Hole
- Supplier Device Package:
ST7FOXK2B6 FAQ
1.How can I place an order for ST7FOXK2B6 through Aetrix?
Please submit a Request for Quotation (RFQ) for ST7FOXK2B6 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 ST7FOXK2B6 reliable?
The price and inventory of ST7FOXK2B6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for ST7FOXK2B6 is usually 5 days.
3.What payment methods are accepted for ST7FOXK2B6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for ST7FOXK2B6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for ST7FOXK2B6?
ST7FOXK2B6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your ST7FOXK2B6 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 ST7FOXK2B6?
For technical support, including ST7FOXK2B6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your ST7FOXK2B6 requirements.
6.How does Aetrix verify that ST7FOXK2B6 is sourced from the original manufacturer or authorized distributors?
All ST7FOXK2B6 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 ST7FOXK2B6 meets industry standards.
7.What is the process for return or replacement of ST7FOXK2B6?
All ST7FOXK2B6 units undergo pre-shipment inspection (PSI). If there is an issue with ST7FOXK2B6, 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 ST7FOXK2B6 part is unused and in its original packaging.
Return procedure for ST7FOXK2B6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
ST7FOXK2B6 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…

