Today Embedic will share with you some of the gains of learning STM32, hoping to enlighten students who are new to STM32. If there is something wrong with the discussion, I hope you can criticize and correct me. you are welcome to leave a message and discuss at embedic.com.
As a beginner to STM32, you usually choose to buy a development board, because there are many integrated modules on the development board, such as infrared module, button module, LED module, DAC module, ADC module, can module, 485 module, Ethernet Module, WiFi module, buzzer module, SRAM module, display screen, etc. Some friends may want to use stm32 as an infrared detection car, then an infrared module is needed; some friends may need to use a WiFi module to design communication products. A picture of the development board used by Embedic when learning STM32 is posted below.
The STM32 series is designed for ARM Cortex®-M0, M0+, M3, M4 and M7 cores designed for embedded applications requiring high performance, low cost and low power consumption (ST's product portfolio contains a comprehensive range of microcontrollers, from robust, low- cost 8-bit MCUs up to 32-bit ARM-based Cortex®-M0 and M0+, Cortex®-M3, Cortex®-M4 Flash microcontrollers with a great choice of peripherals. ST has also extended this range to include an ultra-low -power MCU platform).
It has the following 3 characteristics:
• New 32-bit MCU series based on ARM core
-Standard ARM architecture-The core is the Cortex-M core specially designed by ARM for embedded applications requiring high performance, low cost and low power consumption
• Advanced architecture
-High performance-Low voltage-Low power consumption-Innovative core and peripherals
•Easy to use/free/low risk
Cortex-M3 series belong to ARMv7 architecture
The ARMv7 architecture defines 3 series with a clear division of labor:
"A" series: For cutting-edge virtual memory-based operating systems and user applications
"R" series: for real-time systems;
"M" series: for microcontrollers.
Description of STM32 model:
Take the STM32F103RBT6 chip as an example. The model consists of 7 parts, and the naming rules are as follows:
(1) STM32: STM32 represents a 32-bit microcontroller with ARM Cortex-M3 core.
(2) F: F stands for chip sub-series.
(3) 103: 103 represents the enhanced series.
(4) R: R represents the number of pins, where T represents 36 pins, C represents 48 pins, R represents 64 pins, V represents 100 pins, and Z represents 144 pins.
(5) B: B represents the capacity of embedded Flash, where 6 represents 32K byte Flash, 8 represents 64K byte Flash, B represents 128K byte Flash, C represents 256K byte Flash, D represents 384K byte Flash , E stands for 512K byte Flash.
(6) T: T represents the package, where H represents BGA package, T represents LQFP package, and U represents VFQFPN package.
(7) 6: 6 represents the operating temperature range, where 6 represents -40—85°C, and 7 represents -40—105°C.
Generally speaking, STM32 has the following advantages:
(1) Extremely high performance: mainstream Cortex core.
(2) Rich and reasonable peripherals, reasonable power consumption, and reasonable price.
(3) Powerful software support: rich software packages.
(4) Comprehensive and rich technical documentation.
(5) There are many types of chip models and wide coverage.
(6) Strong user base: The company that was the first to successfully test the CM3 chip has accumulated a large number of user groups to pave the way for it.
What can STM32 do:
The usefulness of STM32 depends on its internal resources. I learned that STM32 has many communication interfaces inside. So if the module you use has this interface, it can communicate. such as:
USART: ESP8266 WIFI module, GSM module, Bluetooth module, GPS module, fingerprint recognition module, etc.
IIC: EEPROM, MPU6050 gyroscope, 0.96 inch OLED screen, capacitive screen, etc.
SPI: Serial FLASH, Ethernet W5500, VS1003/1053 audio module, SPI interface OLED screen, resistive screen, etc.
AD/DA: photosensitive sensor module, smoke sensor module, combustible gas sensor module, simple oscilloscope, etc.
STM32 related part numbers are also many people want to know, here is a brief introduction.
Divided into different products according to the core architecture:
Mainstream products (STM32F0, STM32F1, STM32F3)
Ultra-low power consumption products (STM32L0, STM32L1, STM32L4, STM32L4+)
High-performance products (STM32F2, STM32F4, STM32F7, STM32H7)
Before the STM32F105 and STM32F107 interconnected series of microcontrollers, STMicroelectronics has launched the STM32 basic series, enhanced series, USB basic series, and complementary series; the new series of products continue to use the 72MHz processing frequency of the enhanced series. The memory includes 64KB to 256KB flash memory and 20KB to 64KB embedded SRAM. The new series adopts three packages of LQFP64, LQFP100 and LFBGA100. Different packages maintain the consistency of pin arrangement. Combined with the design concept of STM32 platform, developers can re-optimize functions, memory, performance and pin count by selecting products to minimize Hardware changes to meet individual application requirements.
The models circulating in the market are:
Basic type: STM32F101R6, STM32F101C8, STM32F101R8, STM32F101V8, STM32F101RB, STM32F101VB
Enhanced: STM32F103C8, STM32F103R8, STM32F103V8, STM32F103RB, STM32F103VB, STM32F103VE, STM32F103ZE
The new STM32 Connectivity series microcontrollers add a full-speed USB (OTG) interface, so that the terminal product can act as both a USB host and a USB slave when connecting to another USB device; it also adds a hardware to support IEEE1588 accurate time Protocol (PTP) Ethernet interface. Implementing this protocol with hardware can reduce CPU overhead and improve the response speed of synchronous communication between real-time applications and networked devices.
The new interconnected series is also the first product in the STM32 family to integrate two CAN2.0B controllers, allowing developers to develop gateway devices that can connect to two industry standard CAN (controller area network) buses. In addition, the new series of microcontrollers also support Ethernet, USB OTG and CAN2.0B peripheral interfaces to work at the same time. Therefore, developers only need a single chip to design a gateway device that integrates all these peripheral interfaces.
The STM32 interconnected series products have enhanced audio performance and adopt an advanced phase-locked loop mechanism to achieve audio-level I2S communication. Combined with USB host or slave function, STM32 can read, decode and output audio signals from external storage (U disk or MP3 player). Designers can also develop human-machine interface (HMI) functions on the new series of microcontrollers, such as play and stop buttons, and display interfaces. This feature makes it useful for various home audio equipment, such as audio docking systems, alarm clocks/music players and home theaters.
The new series of products integrate advanced connection-oriented peripherals, standard STM32 peripherals (including a PWM timer), and a high-performance 32-bit ARM Cortex-M3 CPU. These features enable developers to use devices (such as home appliances, building Or industrial automation) integrate multiple functions, such as motor control, user interface control and device interconnection functions. Other target applications include systems that require networking, data logging, or USB peripheral expansion, such as patient monitoring, sales terminals, vending machines, and security systems.
The STM32 series microcontrollers, including the new interconnected series, have a variety of supporting software and development tools, including a free software library provided by STMicroelectronics and extensive support from third-party tool manufacturers. STMicroelectronics will also launch a new evaluation board and is currently providing samples of the STM32F105 and STM32F107 interconnected series to major customers.
The STM32 interconnection series products are divided into two models: STM32F105 and STM32F107. STM32F105 has USB OTG and CAN2.0B interface. STM32F107 adds Ethernet 10/100 MAC module on the basis of USB OTG and CAN2.0B interface. The on-chip integrated Ethernet MAC supports MII and RMII. Therefore, only one external PHY chip is required to implement a complete Ethernet transceiver. Only a 25MHz crystal oscillator can provide the clock frequency for the entire microcontroller, including Ethernet and USB OTG peripheral interfaces. The microcontroller can also generate a 25MHz or 50MHz clock output to drive the external Ethernet PHY layer chip, thereby saving customers an additional crystal oscillator.
In terms of audio functions, the new series of microcontrollers provide two I2S audio interfaces, supporting two modes of master and slave, both for input and output, with a resolution of 16-bit or 32-bit. The audio sampling frequency ranges from 8kHz to 96kHz. Utilizing the powerful processing performance of the new series of microcontrollers, developers can implement audio codecs in software, thereby eliminating the need for external components.
Insert the U disk into the USB OTG interface of the microcontroller, you can upgrade the software on site; you can also download the code through the Ethernet to upgrade the software. This function can simplify the management and maintenance of large system networks (such as remote controllers or point-of-sale equipment).
In addition to the newly-added function-enhanced peripheral interface, the STM32 interconnect series also provides the same standard interface as other STM32 microcontrollers. This peripheral sharing improves the application flexibility of the entire product family and allows developers to The same software is reused in multiple designs. The standard peripherals of the new STM32 include 10 timers, two 12-bit 1-Msample/s analog-to-digital converters (2-Msample/s in interleaved mode), two 12-bit digital-to-analog converters, two I2C interfaces, Five USART interfaces and three SPI ports. The new product peripheral has a total of 12 DMA channels and a CRC calculation unit. Like other STM32 microcontrollers, it supports a 96-bit unique identification code.
The new series of microcontrollers also continues the low voltage and energy saving advantages of the STM32 product family. The operating voltage range of 2.0V to 3.6V is compatible with mainstream battery technologies, such as lithium batteries and Ni-MH batteries. The package also has a dedicated pin Vbat for battery operating mode. The code is executed from the flash memory at a frequency of 72MHz and consumes only 27mA. There are four low-power modes, which can reduce current consumption to two microamperes. Quick start from the low-power mode also saves power; the start-up circuit uses the 8MHz signal generated inside the STM32, and it takes less than 6 microseconds to wake the microcontroller from the stop mode.
ST's EnergyLite™ ultra-low-power technology platform is the key to STM32L's industry-leading energy efficiency performance. This technology platform is also widely used in ST's 8-bit microcontroller STM8L series products. The EnergyLite™ ultra-low power technology platform is based on ST's unique 130nm manufacturing process. In order to achieve ultra-low leakage current characteristics, STMicroelectronics has deeply optimized the platform. In work and sleep modes, EnergyLite™ ultra-low-power technology platform can maximize energy efficiency. In addition, the platform's embedded flash memory uses ST's unique low-power flash memory technology. This platform also integrates a direct memory access (DMA) support function. When the application system is running, the flash memory and CPU are turned off, and the peripherals are still working, which can save developers a lot of time.
In addition to the most prominent energy-saving features related to the process, the STM32L series also provides more other functions, allowing developers to optimize the power consumption characteristics of the application design. Through six ultra-low power consumption modes, STM32L series products can complete tasks with the lowest power consumption at any set time. These available modes include: (preliminary data in 1.8V/25°C environment)
· 10.4μA low power operation mode, 32kHz operating frequency
· 6.1 μA low-power sleep mode, a timer works
· 1.3 μA shutdown mode: real-time clock (RTC) running, save context, and retain RAM content
· 0.5 μA shutdown mode: run without real-time clock, save context, retain RAM content
· 1.0μA standby mode: real-time clock operation, save backup registers
· 270nA standby mode: run without real-time clock, save backup registers
The STM32L series adds 2 new low-power modes, low-power operation and low-power sleep. By using ultra-low power regulators and oscillators, the microcontroller can greatly reduce the power consumption at low frequencies. The regulator does not rely on the supply voltage to meet the current requirements. STM32L also provides a dynamic voltage rise and fall function, which is an energy-saving technology that has been successfully applied for many years, which can further reduce the internal working voltage of the chip when it runs at low and medium frequencies. In normal operating mode, the current consumption of flash memory is the lowest 230μA/MHz, and the power consumption/performance ratio of STM32L is the lowest 185μA/DMIPS.
In addition, the STM32L circuit is designed to achieve high performance at low voltage and effectively extend the charging interval of battery-powered devices. The minimum operating power supply voltage for the on-chip analog function is 1.8V. The minimum operating power supply voltage for digital functions is 1.65V. When the battery voltage drops, the operating time of battery-powered devices can be extended.
Manufacturer: Texas Instruments
IC DSP FIXED POINT 169BGA
Product Categories: DSP
Manufacturer: Texas Instruments
IC DSP FIXED/FLOAT POINT 256BGA
Product Categories: DSP
IC MCU 32BIT 128KB FLASH 64QFN
Product Categories: 32bit MCU
Looking forward to your comment