1. Introduction
STM32F103C8T6 is a 32-bit microcontroller based on the Cortex-M3 core launched by STMicroelectronics (ST). The hardware is packaged in LQFP48 and belongs to the STM32 series of ST microcontrollers.
Component | Specification |
---|---|
Microcontroller | Cortex-M3 |
Flash | 64K x 8bit |
SRAM | 20K x 8bit |
GPIO | 37 GPIO pins, including PA0-PA15, PB0-PB15, PC13-PC15, PD0-PD1 |
ADC | 2x 12-bit ADC, 12 channels |
External channels | PA0-PA7, PB0-PB1 |
Internal channels | Temperature sensor channel ADC_Channel_16, internal reference voltage channel ADC_Channel_17 |
Timers | 4x 16-bit timers/counters (TIM1, TIM2, TIM3, TIM4) |
TIM1 with dead-time insertion, commonly used for PWM motor control | |
Watchdog timers | 2x watchdog timers (independent IWDG, windowed WWDG) |
Tick timer | 24-bit down-counting SysTick timer |
Operating range | 2V~3.6V, -40°C ~ 85°C |
Communication | 2x IIC, 2x SPI, 3x USART, 1x CAN |
2.The naming convention for the STM32 series
Product series: STM32 represents STMicroelectronics' Cortex-Mx series core (ARM) 32-bit MCU
product type:
F- Universal
S-simple
L- low power consumption
H - high performance
AL- Low power consumption type for automotive applications
AF-General purpose for automotive applications.
Product sub-series:
103: ARM Cortex-M3 core, enhanced.
Number of pins:
C=LQFP/QFN 48 pins or WLCSP 32 pins
Flash type:
4=16KB
6=32KB and so on. Add 2 to the left and multiply by 2 to the right.
Package:
T-LQFP package
Operating temperature:
6: -40℃~85℃
8: -40℃~105℃
In summary, the naming rules of the STM32 series are: product series + product type + product sub-series + pin number + flash memory type + package + operating temperature.
3. Minimum system board
Perhaps you have often heard the word smallest system board, so what is the smallest system board? In fact, the smallest system board is the most streamlined circuit, so streamlined that it can only maintain the most basic normal work of the MCU. The minimum system is generally composed of an external reset circuit, an external clock circuit, and an MCU body. In addition, there are no other external devices such as Bluetooth, external EEPROM, clock chip DS1302, and SPI interface display. (Note: STM32 supports internal clock and power-on reset, but in the traditional sense, the smallest system is composed of an external reset circuit, an external clock circuit and an MCU body.)
4.Schematic diagram of STM32F103C8T6 minimum system board
The schematic diagram of the board of STM32F103C8T6 is shown in Figure 1, and the component list is shown in Figure 2.
Figure 1 The schematic diagram of the core board of STM32F103C8T6
Figure 2 Component list
5.program download
STM32 MCU supports 3 kinds of program download methods, which can be divided into ISP serial port download (use USB-TTL to connect PA9, PA10), SWD download (use ST-LINK to connect PA13, PA14), JTAG download (use JLINK to connect PA13, PA14) according to different principles. PA14, PA15, PB3, PB4).
6.The original introduction of the ST website
The STM32F103xx medium-density performance line family incorporates the high-performance ARM®Cortex®-M3 32-bit RISC core operating at a 72 MHz frequency, high-speed embedded memories (Flash memory up to 128 Kbytes and SRAM up to 20 Kbytes), and an extensive range of enhanced I/Os and peripherals connected to two APB buses. All devices offer two 12-bit ADCs, three general purpose 16-bit timers plus one PWM timer, as well as standard and advanced communication interfaces: up to two I2Cs and SPIs, three USARTs, an USB and a CAN.
The devices operate from a 2.0 to 3.6 V power supply. They are available in both the –40 to +85 °C temperature range and the –40 to +105 °C extended temperature range. A comprehensive set of power-saving mode allows the design of low-power applications.
The STM32F103xx medium-density performance line family includes devices in six different package types: from 36 pins to 100 pins. Depending on the device chosen, different sets of peripherals are included, the description below gives an overview of the complete range of peripherals proposed in this family.
These features make the STM32F103xx medium-density performance line microcontroller family suitable for a wide range of applications such as motor drives, application control, medical and handheld equipment, PC and gaming peripherals, GPS platforms, industrial applications, PLCs, inverters, printers, scanners, alarm systems, video intercoms, and HVACs.
Main Features
- ARM®32-bit Cortex®-M3 CPU Core
- 72 MHz maximum frequency,1.25 DMIPS/MHz (Dhrystone 2.1) performance at 0 wait state memory access
- Single-cycle multiplication and hardware division
- Memories
- 64 or 128 Kbytes of Flash memory
- 20 Kbytes of SRAM
- Clock, reset and supply management
- 2.0 to 3.6 V application supply and I/Os
- POR, PDR, and programmable voltage detector (PVD)
- 4-to-16 MHz crystal oscillator
- Internal 8 MHz factory-trimmed RC
- Internal 40 kHz RC
- PLL for CPU clock
- 32 kHz oscillator for RTC with calibration
- Low-power
- Sleep, Stop and Standby modes
- VBAT supply for RTC and backup registers
- 2 x 12-bit, 1 μs A/D converters (up to 16 channels)
- Conversion range: 0 to 3.6 V
- Dual-sample and hold capability
- Temperature sensor
- DMA
- 7-channel DMA controller
- Peripherals supported: timers, ADC, SPIs, I2Cs and USARTs
- Up to 80 fast I/O ports
- 26/37/51/80 I/Os, all mappable on 16 external interrupt vectors and almost all 5 V-tolerant
- Debug mode
- Serial wire debug (SWD) & JTAG interfaces
- 7 timers
- Three 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter and quadrature (incremental) encoder input
- 16-bit, motor control PWM timer with dead-time generation and emergency stop
- 2 watchdog timers (Independent and Window)
- SysTick timer 24-bit downcounter
- Up to 9 communication interfaces
- Up to 2 x I2C interfaces (SMBus/PMBus)
- Up to 3 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
- Up to 2 SPIs (18 Mbit/s)
- CAN interface (2.0B Active)
- USB 2.0 full-speed interface
- CRC calculation unit, 96-bit unique ID
Packages are ECOPACK®