®
ARM
-based 32-bit MCU, up to 32 KB Flash, crystal-less USB
FS 2.0, CAN, 9 timers, ADC and comm. interfaces, 2.0 - 3.6 V
Features
®
• Core: ARM
32-bit Cortex
frequency up to 48 MHz
• Memories
– 16 to 32 Kbytes of Flash memory
– 6 Kbytes of SRAM with HW parity
• CRC calculation unit
• Reset and power management
– Digital and I/Os supply: V
– Analog supply: V
– Selected I/Os: V
– Power-on/Power down reset (POR/PDR)
– Programmable voltage detector (PVD)
– Low power modes: Sleep, Stop, Standby
– V
supply for RTC and backup registers
BAT
• Clock management
– 4 to 32 MHz crystal oscillator
– 32 kHz oscillator for RTC with calibration
– Internal 8 MHz RC with x6 PLL option
– Internal 40 kHz RC oscillator
– Internal 48 MHz oscillator with automatic
trimming based on ext. synchronization
• Up to 38 fast I/Os
– All mappable on external interrupt vectors
– Up to 24 I/Os with 5 V tolerant capability
and 8 with independent supply V
• 5-channel DMA controller
• One 12-bit, 1.0 µs ADC (up to 10 channels)
– Conversion range: 0 to 3.6 V
– Separate analog supply: 2.4 V to 3.6 V
• Up to 14 capacitive sensing channels for
touchkey, linear and rotary touch sensors
• Calendar RTC with alarm and periodic wakeup
from Stop/Standby
January 2017
This is information on a product in full production.
®
-M0 CPU,
= 2 V to 3.6 V
DD
= from V
to 3.6 V
DDA
DD
= 1.65 V to 3.6 V
DDIO2
DDIO2
DocID025832 Rev 5
STM32F042x4 STM32F042x6
LQFP48 7x7 mm
LQFP32 7x7 mm
• Nine timers
– One 16-bit advanced-control timer for six
channel PWM output
– One 32-bit and four 16-bit timers, with up to
four IC/OC, OCN, usable for IR control
decoding
– Independent and system watchdog timers
– SysTick timer
• Communication interfaces
– One I
Plus (1 Mbit/s) with 20 mA current sink,
SMBus/PMBus and wakeup
– Two USARTs supporting master
synchronous SPI and modem control, one
with ISO7816 interface, LIN, IrDA, auto
baud rate detection and wakeup feature
– Two SPIs (18 Mbit/s) with 4 to 16
programmable bit frames, one with I
interface multiplexed
– CAN interface
– USB 2.0 full-speed interface, able to run
from internal 48 MHz oscillator and with
BCD and LPM support
• HDMI CEC, wakeup on header reception
• Serial wire debug (SWD)
• 96-bit unique ID
• All packages ECOPACK
Table 1. Device summary
Reference
STM32F042x4
STM32F042x6
-
Datasheet
UFQFPN48 7x7 mm WLCSP36
UFQFPN32 5x5 mm
2.6x2.7 mm
UFQFPN28 4x4 mm
2
C interface supporting Fast Mode
®
2
Part number
STM32F042F4, STM32F042G4,
STM32F042K4, STM32F042T4, STM32F042C4
STM32F042F6, STM32F042G6,
STM32F042K6, STM32F042T6, STM32F042C6
production data
TSSOP20
6.5x4.4 mm
2
S
1/117
www.st.com
Need help?
Do you have a question about the STM32F042F4 and is the answer not in the manual?
Questions and answers