If you need to use DMA transmission of TX1, it will involve configuring the peripheral address of DMA. Here, the peripheral address should be the address of DR register of USART1. But how to get the address of this register?
We have tested three methods and all of them are feasible.
method 1:
Directly query the register map in the manual, the DR address of USART1 is 0x40013804
Method 2:
According to the manual, the offset address of the DR register is 0X04, so the DR address of USART1 can be written as (USART1_BASE + 0X04).
Among them, USART1_BASE is defined in stm32f10xb.h
#define USART1_BASE (APB2PERIPH_BASE + 0x00003800U)
Method 3:
If we want to modify the value of DR to 0X03, we will write: USART1->DR = 0X03, then the address of DR is (uint32_t)(&USART1->DR)
The last method is the most pleasing and intuitive.
Previous article:STM32 uses PWM + DMA to drive WS2812
Next article:Detailed explanation of the priority setting method of stm32 tick clock SYStick
Recommended ReadingLatest update time:2024-11-23 11:58
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Research on Intelligent Communication System of Vehicle Controllable Shock Absorber
- Filter Design——FilterSolutions
- Android driver learning 1-driver development process (Android.mk)
- MSP430 clock problem
- 【Repost】Master these five methods to make your MCU easily low power
- Hiring senior power part-time
- TI Cup 2019 National Undergraduate Electronic Design Competition Winners Announcement
- Asking for advice: Question about TMS320C5509A low power mode
- PCB Design Specifications for Switching Power Supplies
- New car safety sensors are not popular in Australia