LESSON 01: INTRODUCTION TO STM32F103C8T6

posted in: Microcontroller | 0

1. Brief Introduction

STM32 is one of the popular chip lines of STMicroelectronics with many common families such as F0,F1,F2,F3,F4….. Stm32f103 belongs to the F1 family with ARM COTEX M3 core. STM32F103 is a 32 bit microcontroller, maximum speed up to 72Mhz. The price is also quite cheap compared to other microcontrollers with similar functions on the market (ranging from 30 – 50K). Loaders as well as programming tools are quite diverse and easy to use.

Some of the main applications: used for drivers for application control, general application control, handheld and drug devices, computers and gaming peripherals, GPS basic, industrial applications, PLC programming equipment, inverters, printers, scanners, alarm systems, intercom equipment…

Programming software: there are many compilers for STM32 such as IAR Embedded Workbench, Keil C, Makefile… In this series, I use Keil C because it is quite popular and easy to use.

Programming libraries: there are many types of programming libraries for STM32 such as: STM32snippets, STM32Cube LL, STM32Cube HAL, Standard Peripheral Libraries, Mbed core. Each library has its own advantages and disadvantages, here I would like to use Standard Peripheral Libraries because it has been around for a long time and is quite popular, supports many peripherals and is also easy to understand the nature of programming.

Loader circuit: there are many types of loaders such as: ULINK, J-LINK, CMSIS-DAP, STLINK… here I use Stlink because the price is quite cheap and debugging is also good. In the process of learning and practicing coding, you can use built-in IO and peripheral kits to make debugging easier.




2. Detailed specifications of STM32F103C8T6

  • ARM 32-bit Cortex M3 with max clock of 72Mhz.
  • Memory:
    • 64 kbytes of Flash memory (programmable memory).
    • 20kbytes SRAM.
  • Clock, reset and power management.
    • Operating voltage 2.0V -> 3.6V.
    • Power on reset(POR), Power down reset(PDR) and programmable voltage detector (PVD).
    • Use external quartz from 4Mhz -> 20Mhz.
    • Internal quartz uses RC oscillator in 8Mhz or 40khz mode.
    • Using 32.768khz external quartz is used for RTC.
  • In case of low voltage:
    • There are modes: sleep, inactive or active in standby mode.
    • Power at the Vbat pin by battery to operate the RTC and use data storage when the main power supply is lost. كيف تربح المال من النت
  • 2 sets of 12-bit ADCs with 9 channels each. كيف تربح في مراهنات كرة القدم
    • The conversion value range is from 0 to 3.6V.
    • Multi-channel or 1-channel sampling.
    • Has internal temperature sensor.
  • DMA: this converter helps to increase processing speed because there is no too deep CPU intervention.
    • 7 DMA channels.
    • DMA support for ADC, I2C, SPI, UART.
  • 7 timers.
    • 3 16-bit timers supporting IC/OC/PWM modes.
    • A 16-bit timer supports motor control with protection modes such as input interrupt, dead-time, etc.
    • 2 watdog timers for protection and error checking.
    • 1 sysTick timer 24 bit count down for applications such as Delay….
  • Supports 9 communication channels including:
    • 2 sets of I2C(SMBus/PMBus).
    • 3 sets of USART (ISO 7816 interface, LIN, IrDA capability, modem control).
    • 2 SPIs (18 Mbit/s).
    • 1 set of CAN interface (2.0B Active)
    • USB 2.0 full-speed interface
  • Check for CRC and 96-bit ID errors.
STM32 HAL driver for LoRa SX1278 wireless module | Wojciech Domski Blog

3. Blule bill board overview

  • 1 Mini USB port for power, charging and debugging.
  • 2 MCUs include 1 loaded MCU and 1 MCU used for programming.
  • There is a separate Output pin for the load pins on MCU1.
  • There are full Output pins for MCU2 pins.
  • Separate external power supply pin for MCU2 if not using power from USB.
  • 32.768khz quartz for RTC and Backup.
  • The loader is used for boot loader mode. استراتيجية بينجو
  • External Reset button and 1 LED display on pin PB9, 1 LED indicates power for MCU2.

Link to download datasheet stm32f103

Link to download Blue Pill schematic kit

Leave a Reply

Your email address will not be published.