1 The serial port program lacks clock enable. Enable the clock before configuring the peripherals:
RCC_APB1PeriphClockCmd( RCC_APB1Periph_USART3, ENABLE);
Keywords:USART3
Reference address:USART3 PD8 PD9 remapping multiplexing problem
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD | RCC_APB2Periph_AFIO,ENABLE);
2 PD8 PD9 should be fully mapped.
USART3_REMAP[1:0]: USART3 remapping bits 5:4
These bits can be set to '1' or '0' by software to control the CTS, RTS, CK, TX and RX multiplexing functions of USART3 on the GPIO terminal.
Image of mouth.
00: no remapping (TX/PB10, RX/PB11, CK/PB12, CTS/PB13, RTS/PB14);
01: Partial image (TX/PC10, RX/PC11, CK/PC12, CTS/PB13, RTS/PB14);
10: unused combination;
11: Full image (TX/PD8, RX/PD9, CK/PD10, CTS/PD11, RTS/PD12).
Previous article:STM32 FSMC Study Notes
Next article:STM32 Window Watchdog (WWDG)
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
MoreDaily News
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
Guess you like
- N ways to program the development board
- Analysis of Rectification Circuit and Filter Circuit
- GD32E231 DIY Competition (9)——"Home Intelligent Monitoring" Project Summary
- About G2553 with 20 pins cannot be programmed
- PT6312 driver Samsung segment screen hardware design driver source code
- Why does the STM series MCU use SMD T card instead of traditional T card?
- The problem that the main function cannot be run after downloading the program with IAR compiler
- Added multiple ST sensor drivers in MakeCode
- Selection of power device heat sink
- LabView Note 4: Temperature Monitoring System Based on LabView Password Login