In-Depth Exploration of Byte Alignment Issues

In-Depth Exploration of Byte Alignment Issues

1. The Concept of “Memory Alignment” Memory alignment, also known as byte alignment, is an attribute of the memory address where a data type can be stored. This attribute is essentially the memory address itself, which must conform to certain specifications. This specification states that the memory address value must be a power of 2. … Read more

Configuring DAC Output for Fixed Voltage and Square Wave on STM32

Configuring DAC Output for Fixed Voltage and Square Wave on STM32

The STM32F103VCT6 features two 12-bit DACs. The conversion speed of the DAC has not been confirmed, but some online sources suggest a frequency of 1MHz, which means 1us. The ADC conversion time at a working frequency of 56MHz is 1us, and at 72MHz it is 1.17us. If there is a symmetrical relationship between AD and … Read more

Designing High Load UART Communication with STM32

Designing High Load UART Communication with STM32

1 Introduction Direct Memory Access (DMA) is a component used by the CPU to “move” (copy) data from one address space to another without CPU intervention during the data copying process. The CPU is notified once the data copying is complete. As a result, using DMA can free up CPU resources when copying large amounts … Read more

Understanding Embedded Operating System Memory Management

Understanding Embedded Operating System Memory Management

Article word count: 5000, Content value index: ☆ ☆ ☆ ☆ ☆ Key content: ☆ Linux memory organization structure and page layout, causes of memory fragmentation and optimization algorithms. ☆ Several memory management methods in the Linux kernel, memory usage scenarios, and pitfalls in memory usage. ☆ Explore the mechanisms and mysteries of memory management … Read more

Understanding DMA in Embedded Systems

Understanding DMA in Embedded Systems

Click the blue text Follow us Due to changes in the public account’s push rules, please click “Read” and add “Star” to get exciting technical shares as soon as possible. Source from the internet, please delete if infringing DMA, short for Direct Memory Access, is a method for transferring data directly between memory and peripherals … Read more

Technical Sharing | Discussion on MM32F5 Series: Maximizing Throughput with Bus Design

Technical Sharing | Discussion on MM32F5 Series: Maximizing Throughput with Bus Design

This article is reprinted from the Jishu Community Jishu Column: Agile MM32 MCU Table of Contents Bus Architecture of MM32F5270 Case Study: Audio Player with Display Summary & Next The previous article introduced the MM32F5 series which utilizes the “Star” STAR-MC1 processor. If readers recall, the “Star” processor has a significant advantage over the M3 … Read more

Performance Ranking of ARM Mali Series GPUs

Performance Ranking of ARM Mali Series GPUs

Click the above Computer Enthusiasts to follow us In the field of SoCs (processors) dedicated to smartphones, the most common GPU brands are Qualcomm Adreno, Imagination PowerVR, and ARM Mali. Today, let us summarize the performance ranking of ARM Mali GPUs. It should be noted that ARM does not produce processors itself; it only provides … Read more

Do UART Serial Ports Need DMA for Transmission?

Do UART Serial Ports Need DMA for Transmission?

DMA is a commonly used feature in embedded real-time task processing. Using DMA for UART data packet transmission can significantly reduce CPU processing time, preventing excessive waste of CPU resources, especially when transmitting a large number of data packets (such as high-frequency command transmissions). Brief Introduction to DMA DMA: Direct Memory Access. In simple terms, … Read more

How to Swap UART Rx and Tx Pins and Invert Levels

How to Swap UART Rx and Tx Pins and Invert Levels

Follow+Star Public Account, don’t miss wonderful content Source | AI Electronics Today I will share with you some features of UART in STM32, mainly targeting newer series of STM32 (such as: STM32H7, G0, G4, etc.), which allows changes to the Rx and Tx pins, level inversion, high-low order, and introduces timeout, etc. Embedded Column 1 … Read more

STM32G4 TIM+SPI+DMA Application Example

STM32G4 TIM+SPI+DMA Application Example

Currently, there are STM32 users developing products using the STM32G474R chip, where TIM1 is used for power drive, with TIM1 operating in center-aligned counting mode. There is a demand to trigger external ADC device sampling at the moment indicated by the arrow in the figure below during each cycle of TIM1. After the ADC completes … Read more