STM32H503CB is fastly turning into my favorite MCU for three reasons – it is fast, it is low cost and it has en extremely good IO routing system.
It’s only drawback is 128Kb Flash and 32Kb SRAM, but it exist other MCU’s in the same series with more (that also cost more). That said it also contains a good bootloader in ROM, meaning the 128Kb Flash is all user application.
- 32 bit M33 core running at 250Mhz
- Cost lower than 2.- USD in decent volumes.
- 128Kb Flash, 32Kb SRAM
- And an IO system that contains a lot and is very flexible in routing to pins.
The example setup above contains:
- USB
- 1 x UART
- 1 x FD-CAN
- 3 x GPIO
- Oscillolater
- SWD
- 4 x ADC channels
- 4 x PWM channels
- 3 x Ebcoder channels
- 3 x SPI
- 1 x I2C
All pins used on a LQFP48. Selecting IO with a H5 is in general very easy compared to other MCU’s, meaning you get a lot out of this one.