Simple project STM32F030F4P6 ( 0.5$!!!) CoCooX IDE I used UART,PWM,GPIO etc.

This processor STM32F030F4P6 cost $ 0.5 well suited to replace the AVR. The project is written in CoCoox IDE.

CONTROLLER

BOOTLOADER ARDUINO/STM32

Key Features chip STM32F030F4P6

Core: ARM®32-bit Cortex™-M0 CPU, frequency up to 48 MHz
Memories
16 to 64 Kbytes of Flash memory
4 to 8 Kbytes of SRAM with HW parity checking
CRC calculation unit
Reset and power management
Voltage range: 2.4 V to 3.6 V
Power-on/Power down reset (POR/PDR)
Low power modes: Sleep, Stop, Standby
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
Up to 55 fast I/Os
All mappable on external interrupt vectors
Up to 36 I/Os with 5 V tolerant capability
5-channel DMA controller
1 x 12-bit, 1.0 ?s ADC (up to 16 channels)
Conversion range: 0 to 3.6 V
Separate analog supply from 2.4 up to 3.6 V
Up to 10 timers
One 16-bit 7-channel advanced-control timer for 6 channels PWM output, with deadtime generation and emergency stop
One 16-bit timer, with up to 4 IC/OC, usable for IR control decoding
One 16-bit timer, with 2 IC/OC, 1 OCN, deadtime generation and emergency stop
Two 16-bit timers, each with IC/OC and OCN, deadtime generation, emergency stop and modulator gate for IR control
One 16-bit timer with 1 IC/OC
One 16-bit basic timer
Independent and system watchdog timers
SysTick timer: 24-bit downcounter
Calendar RTC with alarm and periodic wakeup from Stop/Standby
Communication interfaces
Up to two I2C interfaces: one supporting Fast Mode Plus (1 Mbit/s) with 20 mA current sink
Up to two USARTs supporting master synchronous SPI and modem control; one with auto baud rate detection
Up to two SPIs (18 Mbit/s) with 4 to 16 programmable bit frame
Serial wire debug (SWD)

tl.zip (254 KB)