当前位置: 代码迷 >> 综合 >> STM32F103_study33( CUBEMX Create a serial portUSART)
  详细解决方案

STM32F103_study33( CUBEMX Create a serial portUSART)

热度:125   发布时间:2023-10-16 08:24:12.0

STM32F103_study33( CUBEMX Create a serial portUSART)
2.
STM32F103_study33( CUBEMX Create a serial portUSART)
3.
STM32F103_study33( CUBEMX Create a serial portUSART)
4.
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)

STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
思考:为什么这儿选择USART1?
这里要查看原理图和产品手册
下面是原理图:由于我们连接线时,连接的硬件模块是USB转串口,所以我们在原理图上面也得选择USB转串口原理图。查看原理图看到串口数据的收发连接在PA9和PA10引脚上面,那又怎么推导要选择USART1呢?
这就得查看产品手册了:

STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
通过上面 的图我们知道。我们需要连接PA9和PA10引脚。
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
这两个要一样
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
STM32F103_study33( CUBEMX Create a serial portUSART)
这些串口挂在这些总线上,所以直接用这些总线的时钟
STM32F103_study33( CUBEMX Create a serial portUSART)
这个NVIC优先级之前讲过,但我没有看,之后有时间回去看看
STM32F103_study33( CUBEMX Create a serial portUSART)

  相关解决方案