Serial port pins in stm32

Publisher:jiaohe1Latest update time:2015-06-12 Source: 51heiKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
USART1_CK ------ PA8
USART1_TX ------  PA9
USART1_RX ----- PA10
USART1_CTS ----- PA11
USART1_RTS ----- PA12 

USART2_CTS ----- PA0
USART2_RTS ----- PA1
USART2_TX   ----- PA2
USART2_RX   ----- PA3
USART2_CK  ----- PA4

USART3_TX   ----- PB10
USART3_RX  -----  PB11
USART3_CK -----  PB12
USART3_CTS ----- PB13
USART3_RTS ----- PB14

USART4_TX ----- PC10
USART4_RX ----- PC11

USART5_TX ----- PC12
USART5_RX ----- PD2
Keywords:stm32 Reference address:Serial port pins in stm32

Previous article:About the timer signals in the STM32 data sheet
Next article:STM32 MCU timer debugging square wave output

Recommended ReadingLatest update time:2024-11-16 14:41

STM32 BKP routine
#include "stm32f10x.h" /*RCC clock configuration*/ void RCC_config(void) {   ErrorStatus HSEStartUpStatus;  /* RCC registers are set to default configuration */  RCC_DeInit();  /* Turn on external high speed clock */  RCC_HSEConfig(RCC_HSE_ON);  /* Wait for the external high-speed clock to stabilize*/  HSEStartUp
[Microcontroller]
Keil5.15 uses GCC compiler to compile STM32 project
We use Keil to compile MCU project code using ARMCC. In fact, Keil also supports embedded GCC compiler. We can use GCC to compile our project code. 1. Download the GCC compiler GCC compiler download address  2. Install GCC We can unzip GCC to the installation directory of Keil. As shown below 3. Configure Keil t
[Microcontroller]
Keil5.15 uses GCC compiler to compile STM32 project
SPI initialization of stm32
1 void SPIx_Init(void)  2 {       3 RCC- APB2ENR|=1 2; //PORTA clock enable        4 RCC- APB2ENR|=1 12; //SPI1 clock enable   5              6 //Here is only for SPI port initialization  7 GPIOA- CRL&=0X000FFFFF;   8 GPIOA- CRL|=0XBBB00000; //PA5.6.7 multiplexed push-pull output           9 //GPIOA- ODR|=0X7 5; //PA5
[Microcontroller]
Clock source of timer in STM32
There are up to 8 timers in STM32, of which TIM1 and TIM8 are advanced timers that can generate three pairs of PWM complementary outputs, commonly used to drive three-phase motors, and their clocks are generated by the output of APB2. The other 6 are ordinary timers, and their clocks are generated by the output of APB1
[Microcontroller]
Clock source of timer in STM32
STM32 TIM8 PWM output
The initialization configuration of STM32 TIM8 is different from that of general timer. I configured it according to the general timer at first. No matter I configured one channel or all channels, PWM would not work . Then I checked the information and found that I needed to add this line of code: TIM_CtrlPWMOutputs(T
[Microcontroller]
STM32 TIM8 PWM output
STM32 encryption implementation
Purpose: Encrypt embedded code programs running on STM32 Compilation environment: IAR Embedded System for ARM5.5 1. STM32Flash organization The Flash of STM32 includes main memory (HD version, 512KB) + information block. The information block includes 2KB system memory (for system bootstrap startup code) and 16 byte
[Microcontroller]
STM32 encryption implementation
STM32 Learning: DMA Detailed Explanation
The DMA part I used is relatively simple. Of course, maybe this is a new thing, and I can't use its complex functions for the time being. The following is a question and answer format to express my thoughts. What is DMA used for?        Direct memory access is used to provide high-speed data transfer between periphera
[Microcontroller]
STM32 Learning: DMA Detailed Explanation
STM32 RTC test successful_only display hours, minutes and seconds
Source file location STM32F10x_StdPeriph_Lib_V3.1.2\Project\STM32F10x_StdPeriph_Examples\RTC\Calendar 仔细阅读其中的readme  摘抄如下 @par How to use it ?  In order to make the program work, you must do the following : - Create a project and setup all project configuration - Add the required Library files : - stm32f10x_
[Microcontroller]
STM32 RTC test successful_only display hours, minutes and seconds
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号