Part Number: STM32F042C6T6

Manufacturer: STMicroelectronics

Description: IC MCU 32BIT 32KB FLASH 48LQFP

Shipped from: Shenzhen/HK Warehouse

Stock Available: Check with us

Technical Specifications of STM32F042C6T6

Datasheet  STM32F042C6T6 datasheet
Category Integrated Circuits (ICs)
Family Embedded – Microcontrollers
Manufacturer STMicroelectronics
Series STM32 F0
Packaging Tray
Part Status Active
Core Processor ARM? Cortex?-M0
Core Size 32-Bit
Speed 48MHz
Peripherals DMA, I2S, POR, PWM, WDT
Number of I/O 38
Program Memory Size 32KB (32K x 8)
Program Memory Type FLASH
RAM Size 6K x 8
Voltage – Supply (Vcc/Vdd) 1.65 V ~ 3.6 V
Data Converters A/D 13x12b
Oscillator Type Internal
Operating Temperature -40°C ~ 85°C (TA)
Package / Case 48-LQFP
Supplier Device Package 48-LQFP (7×7)

STM32F042C6T6 Description

The STM32F042x4 and x6 microcontrollers feature a high-speed 32-bit RISC CPU (up to 48 MHz), high-capacity embedded storage (up to 32 kbytes of flash memory and 6 kbytes of SRAM), and an extensive set of enhanced peripherals and I/Os. One I2C, two SPIs/I2S, an HDMI CEC, two USARTs, a 12-bit ADC, a CAN, a 32-bit timer, four 16-bit timers, and an advanced-control PWM timer are included in each device.

The STM32F042x4/x6 microcontrollers’ 2.0 to 3.6 V power input range can accommodate temperature ranges of -40 to +85 °C and -40 to +105 °C. The development of low-power applications is made possible by a number of power-saving modes. Seven packages ranging from 20 to 48 pins and a die shape are available for the STM32F042x4/x6 microcontroller.

Accessories are device-specific. The STM32F042x4 and x6 microcontrollers are ideal for use in climate control and air quality monitoring systems, video intercoms, industrial applications, inverters, printers, scanners, PLCs, alarm systems, and handheld equipment such as A/V receivers and digital TV.

STM32F042C6T6 Features

The features of the ARM®32-bit Cortex®-M0-based microcontroller include:

  • Core: The microcontroller has an ARM®32-bit Cortex®-M0 CPU with a working speed of up to 48 MHz, which makes it very efficient.
  • It has 16 to 32 kilobytes of flash memory for storing programs and 6 kilobytes of SRAM with hardware parity for storing data. It also has a CRC calculation unit for checking the security of data.
  • Reset and Power Management: The digital and I/O voltage (VDD) for the microcontroller is between 2 V and 3.6 V. VDD to 3.6 V can be used to set the analog voltage (VDDA). It has a programmable voltage detector (PVD) and a power-on/power-down reset (POR/PDR) feature. To save power, it has low-power modes like sleep, stop, and standby. It also comes with a VBAT power source for the real-time clock (RTC) and backup registers.
  • I/Os and DMA: It has up to 38 fast I/Os, all of which can be put on external interrupt vectors. It has 24 I/Os that can work with 5 V and 8 I/Os that have their own power source, VDDIO2. The microprocessor also has a 5-channel Direct Memory Access (DMA) controller, which makes it easy to send and receive data.

STM32F042C6T6 Functional overview

● ARM®-Cortex®-M0 core

The ARM® Cortex®-M0 is a type of 32-bit RISC processor for embedded systems made by the ARM company. It was made to be a low-cost platform that meets the needs of MCU implementation. It has fewer pins and uses less power than other platforms, but it still has great computing speed and a fast response to interrupts.

The ARM® Cortex®-M0 processors have very efficient code, which is what you’d expect from an ARM core. They also have memory sizes that are usually found in 8-bit and 16-bit devices. All ARM tools and apps can be used with the STM32F042x4 and x6 devices because they have an ARM core built in.

● Cyclic redundancy check calculation unit (CRC)

With a 32-bit data word and a CRC-32 (Ethernet) polynomial, you can use the CRC (cyclic redundancy check) calculation tool to get a CRC code. CRC-based methods are used, among other things, to check the integrity of data being sent or stored. As part of the EN or IEC 60335-1 standard, they provide a way to check the security of the flash memory. The CRC calculation unit helps figure out the software’s signature during runtime. This signature is then compared to a reference signature that was made at linktime and saved in a certain memory location.

● Clocks and startups

On startup, the system clock is chosen, but on reset, the internal RC 8 MHz oscillator is used as the primary CPU clock. If an external 4-32 MHz clock is chosen, it is checked to see if it fails. If a problem is found, the machine goes back to using the internal RC oscillator. If allowed, a software interrupt is made. Also, full interrupt control of the PLL clock entry is available when needed, such as when an external crystal, resonator, or oscillator that is used indirectly fails. The program can set up the frequency of the AHB and APB domains with the help of several prescalers. The AHB and APB bands can go as high as 48 MHz in frequency. The internal RC 48 MHz oscillator can also be used as the system clock or as an input source for the PLL. By using the CRS peripheral and external timing, this oscillator can be fine-tuned automatically.

● General-purpose inputs and outputs (GPIOs)

Software can configure each of the GPIO lines to be an input (with or without pull-up or pull-down), an output (push-pull or open-drain), or a peripheral alternate function. Most of the GPIO pins have both digital and analog features that can be used at the same time.

● Touch-sensing controller (TSC)

The STM32F042x4 and x6 devices make it easy to add capacitive sensors to any application. These devices have up to 14 capacitive sensing lines that are spread across five groups of analog I/O. Capacitive sensing technology can tell when a finger is close to a sensor that can’t be touched directly, like one made of glass or plastic. A proven method based on the surface charge transfer acquisition concept is used to measure the capacitive change caused by the finger or any other conductive object.

It involves charging the sensor capacitance and moving some charges to a sampling capacitor until the capacitor voltage reaches a certain level. The hardware finger sensing driver handles this acquisition directly, eliminating the need for many additional parts and reducing the workload on the CPU.


In conclusion, the STM32F042C6T6 microprocessor has a wide range of features and functions that are useful for developing embedded systems. It has a powerful Cortex-M0 core, a lot of memory options, flexible I/Os, and support for different communication interfaces, so it can be used for a wide range of apps. It is a useful tool for developers because it has good power management, exact timing features, and debugging tools.

The STM32F042C6T6 microcontroller is a good choice if you want to build embedded systems that are both innovative and high-performing. Contact us if you want to find out more about what the STM32F042C6T6 can do, get more information, or get help putting it into your program. At ICRFQ, our hardworking team is committed to giving you high-quality help, quick responses, and excellent customer service. With the STM32F042C6T6 microprocessor, take the next step toward your goals and let us help you along the way.

4.8/5 - (397 votes)
Kevin Chen