登录
首页 » 嵌入式系统 » stm32 串口程序

stm32 串口程序

于 2022-03-15 发布 文件大小:1.42 MB
0 266
下载积分: 2 下载次数: 1

代码说明:

STM32的串口是相当丰富的,功能也很强劲。最多可提供5路串口(MiniSTM32使用的是STM32F103RBT6,具有3个串口),有分数波特率发生器、支持单线光通信和半双工单线通讯、支持LIN、智能卡协议和IrDASIR ENDEC规范(仅串口3支持)、具有DMA等。 串口最基本的设置,就是波特率的设置。STM32的串口使用起来还是蛮简单的,只要你开启了串口时钟,并设置相应IO口的模式,然后配置一下波特率,数据位长度,奇偶校验位等信息,就可以使用了。下面,我们就简单介绍下这几个与串口基本配置直接相关的寄存器。1,串口时钟使能。串口作为STM32的一个外设,其时钟由外设时钟使能寄存器控制,这里我们使用的串口1是在APB2ENR寄存器的第14位。APB2ENR寄存器在之前已经介绍过了,这里不再介绍。只是说明一点,就是除了串口1的时钟使能在APB2ENR寄存器,其他串口的时钟使能位都在APB1ENR。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • strongly recommended! This procedure is based on the embedded system development...
    鼎力推荐!本程序是基于嵌入式LUNUX系统开发的源程序代码,所有程序采用C语言进行编写,是学习、开发嵌入式LUNUX系统不可多得的参考资料。-strongly recommended! This procedure is based on the embedded system development LUNUX the source code, all the procedures used for the preparation of C language, learning, the development of embedded systems LUNUX rare reference.
    2022-11-03 02:20:05下载
    积分:1
  • Embedded System Network Simulation
    嵌入式系统的网络仿真-Embedded System Network Simulation
    2023-09-07 23:50:03下载
    积分:1
  • Embedded Linux board in the arm transplant
    嵌入式linux在arm板上的移植-Embedded Linux board in the arm transplant
    2022-02-10 03:06:35下载
    积分:1
  • 2440 jlink project flash AMD160LVDB
    jlink的 2440配置工程文件 flash 用的是AMD160LVDB-2440 jlink project flash AMD160LVDB
    2022-01-26 07:37:13下载
    积分:1
  • This article describes how to use AD to identify the user s keyboard input metho...
    本文介绍了如何用AD识别用户输入的键盘的方法,较之点阵识别有其不可替代的优势;因为如果用4*4的话须消耗8个I/O口,而如果系统有AD功能的话就可能轻松解决了。 单片机8051F330发给ARM然后发给电脑。 其原理就是利用电阻的分压,按键时产生不同的电压,再用中断快速读取电压;然后对其进行编码,通过串口软件EASYARM在个人电脑里显示;经实验观察,效果还可以。 -This article describes how to use AD to identify the user s keyboard input methods, compared with dot-matrix recognition has its irreplaceable advantages because if we use 4* 4, then to be consumed eight I/O port, and if the system function in AD, then on may be easily resolved. Singlechip 8051F330 distributed computer and then distributed to ARM. Its principle is to use the sub-ballast resistor, when keys have different voltage, and then quickly read voltage interruption then encode, through the serial port software EASYARM in the personal computer display by experimental observation, the effect can also be.
    2022-05-25 22:40:40下载
    积分:1
  • xe166系列的CCU6模块、ADC模块、PEC模块结合使用的例程,是英飞凌单片机培训的好资料...
    xe166系列的CCU6模块、ADC模块、PEC模块结合使用的例程,是英飞凌单片机培训的好资料-xe166 series CCU6 module, ADC module, PEC modules used in conjunction with routine, is a good training materials Infineon microcontroller
    2022-07-01 22:08:59下载
    积分:1
  • S3C2440 core board schematics, has been made of PCB board, and tested through.
    S3C2440核心板原理图,已制成PCB板,并试验通过。-S3C2440 core board schematics, has been made of PCB board, and tested through.
    2023-03-23 18:15:03下载
    积分:1
  • 《ARM嵌入式Linux设备驱动实例开发》,第一章代码
    《ARM嵌入式Linux设备驱动实例开发》,第一章代码-" ARM embedded Linux device driver examples of development" , the first chapter code
    2022-04-25 07:43:30下载
    积分:1
  • GPRS module contains information on DEMO, the circuit schematic diagram and the...
    GPRS模组资料包含DEMO,电路原理图以及使用说明书-GPRS module contains information on DEMO, the circuit schematic diagram and the use of manual
    2022-07-28 12:25:13下载
    积分:1
  • linux驱动第二版
    linux驱动第二版-samples-1.0.1.rar第二版的源码例子-linux driver the second edition of-samples-1.0.1.rar second version of the source code examples
    2023-04-15 03:15:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载