Selecting the right microcontroller is critical for project success. This guide provides a systematic approach to Hangshun MCU selection.

Understanding Your Requirements

before selecting an MCU, clearly define: Performance requirements (MIPS, clock speed); Memory needs (Flash and SRAM); Peripheral requirements (interfaces, ADC, timers); Power constraints (active and sleep current); Cost targets (BOM and development); Environmental conditions (temperature, reliability).

Hangshun MCU Portfolio Overview

General Purpose MCUs (HS32F1xx/HS32F4xx): Cortex-M0/M3/M4 cores; 32KB-1MB Flash; Rich peripheral set; Best for: Industrial control, consumer electronics, general embedded.

Touch Control MCUs (HS32T0xx): Integrated capacitive touch; 6-24 channels; Water rejection technology; Best for: Home appliances, HMI panels, consumer devices.

Motor Control MCUs (HS32M1xx/HS32M2xx): Dedicated motor control peripherals; FOC algorithm support; Integrated gate drivers; Best for: BLDC drives, servo systems, power tools.

Wireless MCUs (HS32B1xx/HS32S1xx): BLE 5.0 or Sub-1GHz; Ultra-low power; Integrated protocol stacks; Best for: IoT sensors, smart home, asset tracking.

Selection Decision Tree

step 1: Application Category - Touch interface required? �?Touch Control MCU; Motor control needed? �?Motor Control MCU; Wireless connectivity? �?Wireless MCU; General processing? �?General Purpose MCU.

Step 2: Performance Level - Basic control (simple loops): Cortex-M0 @ 48MHz; Medium complexity (multiple tasks): Cortex-M3 @ 72MHz; High performance (DSP, complex algorithms): Cortex-M4 @ 168MHz with FPU.

Step 3: Memory Sizing - Small applications: 32-64KB Flash, 4-8KB SRAM; Medium applications: 128-256KB Flash, 16-32KB SRAM; Large applications: 512KB-1MB Flash, 64-128KB SRAM.

Step 4: Peripheral Requirements - List all required interfaces; Check pin availability in target package; Consider future expansion needs; Verify special features (USB, Ethernet, CAN).

Cost Optimization Strategies

select minimum viable MCU for application; Use internal oscillators where precision allows; Leverage integrated peripherals to reduce external components; Consider package size vs. PCB cost trade-offs; Plan for volume pricing tiers.

Migration Considerations

hangshun MCUs are pin-compatible with STM32 in many cases; Software migration using HAL libraries; Register-level compatibility for direct porting; Migration guides available from BeiLuo FAE.

Getting Started

after selection: Order development kit; Download SDK and documentation; Review application notes; Contact FAE for design review support.