This post was last edited by Nanxin Intelligent Control IC on 2023-6-20 16:57
Speaking of MCU, ST (STMicroelectronics)'s STM32 microcontrollers have sold billions of units in the past decade, accounting for almost 50% of the market in China. The ability to use STM32 microcontrollers has basically become a standard professional skill for electronic engineers.
The STM32 product family of 32-bit microcontrollers and microprocessors based on the ARM Cortex core has opened up a new free development space for MCUs and provided a variety of easy-to-use software and hardware auxiliary tools.
STM32 MCU combines high performance, real-time performance, digital signal processing, low power consumption, and low voltage, while maintaining high integration and easy development. The industry's most powerful product lineup, processors based on industrial standards, and a large number of software and hardware development tools make STM32 an ideal choice for various small and medium-sized projects and complete platform solutions. However, due to some issues with price and supply chain, sometimes in our embedded product design, we need to consider using some domestic chip alternatives
You don't know until you check. Once you check, you will be shocked. Are the domestic single-chip microcomputers so expensive now?
I want to find a cheap single-chip microcomputer with simple functions, which can realize an analog input and a digital output. I was shocked when I searched online. It's only 0.2 or 0.3 cents ! It's the price of a transistor! It's also a flash memory and can be burned thousands of times.
With the US ban on Huawei in May 2019, and the ongoing Sino-US confrontation, it has become a naive fantasy to simply do business. We don’t know what the future will be like, so we should plan ahead and prepare in advance.
There are so many domestic chips on the market, are you dazzled? Today, let’s talk about Purui microcontrollers. How much do you know about them?
Let’s first understand the background of this company:
Founded in 2016, Purui Semiconductor is an industry-leading supplier of low-power non-volatile memory (Flash/EEPROM) and MCU chips, focusing on the Internet of Things, smart phones and peripherals, wearables, consumer, industrial control, medical, small appliances, security, IOT, sensors, power tools and peripherals, motor control, instrumentation and other fields. It was successfully listed on the Science and Technology Innovation Board in 2021.
MVU Route Map
Let’s first talk about the product that Puran asks about the most: PY32F003
The PY32F003 series microcontroller uses a high-performance 32-bit ARM Cortex-M0+ core and a wide voltage operating range MCU. It embeds up to 32Kbytes flash and 4Kbytes SRAM memory, and has a high operating frequency of 32MHz. It includes a variety of products with different package types. The chip integrates multiple I2C, SPI, USART and other communication peripherals, a 12-bit ADC, 5 16-bit timers, and 2 comparators.
The operating temperature range of the PY32F003 series microcontroller is -40℃~85℃, and the operating voltage range is 1.7V~5.5V. The chip provides sleep and stop low-power working modes to meet different low-power applications.
The PY32F003 series microcontrollers are suitable for a variety of application scenarios, such as controllers, handheld devices, PC peripherals, gaming and GPS platforms, industrial applications, etc.
2. PY32F003 Function Overview:
1. ArmCortex-M0+ core:
The Arm Cortex-M0+ is an entry-level 32-bit Arm Cortex processor designed for a wide range of embedded applications. It offers significant benefits to developers, including:
● Simple structure, easy to learn and program
● Ultra-low power consumption, energy-saving operation
● Reduced code density, etc.
The Cortex-M0+ processor is a 32-bit core with high area and power optimization and a 2-stage pipeline von Neumann architecture.
A large instruction set and extensively optimized design provide high-end processing hardware, including single-cycle multipliers, providing the superior performance expected of 32-bit architecture computers.
performance with higher code density than other 8-bit and 16-bit microcontrollers.
The Cortex-M0+ is tightly coupled with a Nested Vectored Interrupt Controller (NVIC).
2. Memory:
On-chip integrated SRAM. SRAM can be accessed by bytes (8 bits), half-word (16 bits) or word (32 bits). On-chip integrated Flash consists of two different physical areas:
● Main flash area, which contains applications and user data
● Information area, 4KBytes, it includes the following parts:
Option bytes
UID bytes
System memory
The protection of Flash main memory includes the following mechanisms:
● read protection (RDP), prevent access from outside.
● Write protection (WRP) control to prevent unwanted write operations (due to confusion of the program memory pointer PC). The small protection unit of write protection is 4Kbytes.
● Option byte write protection, special unlocking design.
3. Boot mode:
Three different boot modes can be selected through the BOOT0 pin and the boot configuration bit nBOOT1 (stored in the Option bytes).
4. Clock system:
After the CPU starts, the default system clock frequency is HSI 8MHz. The system clock frequency and system clock source can be reconfigured after the program is running. The high-frequency clocks that can be selected are:
● A 4/8/16/22.12/24MHz configurable internal high-precision HSI clock.
● A 32.768KHz configurable internal LSI clock.
● 4~32MHz HSE clock, and CSS function can be enabled to detect HSE. If CSS fails, the hardware will automatically convert the system clock to HSI, and the HSI frequency is configured by software. At the same time, the CPU NMI interrupt is generated.
The AHB clock can be divided based on the system clock, and the APB clock can be divided based on the AHB clock. The maximum frequency of the AHB and APB clocks is 32MHz.
On the necessity of spare tires
For a long time, there has always been a clear-cut contempt chain in the developer circle for whether to use imported or domestic chips. Even Taiwanese chips, which are much more mature than mainland chips, are also despised. Supporters and opponents can criticize and find various reasons. But in the end, it is usually the mentality and emotions that are at work, and it does not help to understand the actual situation. From my own perspective, neither of these two arguments is biased.
|