0,18 USD is fine for you ?
STM8S003F3P6
Core
16 MHz advanced STM8 core with Harvard architecture and 3-stage pipeline
Extended instruction set
Memories
Program memory: 8 Kbyte Flash memory; data retention 20 years at 55 °C after 100 cycles
RAM: 1 Kbyte
Data memory: 128 bytes true data EEPROM; endurance up to 100 k write/erase cycles
Clock, reset and supply management
2.95 V to 5.5 V operating voltage
Flexible clock control, 4 master clock sourcesLow-power crystal resonator oscillatorExternal clock inputInternal, user-trimmable 16 MHz RCInternal low-power 128 kHz RC
Clock security system with clock monitor
Power managementLow-power modes (wait, active-halt, halt)Switch-off peripheral clocks individuallyPermanently active, low-consumption power-on and power-down reset
Interrupt management
Nested interrupt controller with 32 interrupts
Up to 27 external interrupts on 6 vectors
Timers
Advanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs, dead-time insertion and flexible synchronization
16-bit general purpose timers, with 3 CAPCOM channels (IC, OC or PWM)
8-bit basic timer with 8-bit prescaler
Auto wakeup timer
Window and independent watchdog timers
Communications interfaces
UART with clock output for synchronous operation, SmartCard, IrDA, LIN master mode
SPI interface up to 8 Mbit/s
I2 C interface up to 400 Kbit/s
Analog to digital converter (ADC)
10-bit ADC, ± 1 LSB ADC with up to 5 multiplexed channels, scan mode and analog watchdog
I/Os
Up to 28 I/Os on a 32-pin package including 21 high-sink outputs
Highly robust I/O design, immune against current injection
https://world.taobao.com/item/43177451657.htm?fromSite=main&ali_refid=a3_430620_1006:1110346096:N:STM8S003F3P6:37d2d1427d7dc66d9731122a0b031de2&ali_trackid=1_37d2d1427d7dc66d9731122a0b031de2&spm=a312a.7700714.0.0.mvajsm