stm32uart单线半双工通信

上传者: 45624762 | 上传时间: 2021-07-13 23:34:03 | 文件大小: 33KB | 文件类型: 7Z
stm32uart单线半双工通信 在使用数字舵机时,所用到的通信方式为uart通信,但舵机只有三根接线,出去vcc和gnd,只有一条通信线,也就是说要实现双向通信,只能使用单线半双工模式,本人在利用stm32标准库配置uart串口时,发现标准库配置较为繁琐,且容错率较低,稍有不慎,uart就无法实现单项通信,遂决定使用STcubeMX软件,使用官方hal库对单片机进行配置,自己摸索实属不易,现仅能实现uart1接收再通过uart1发送,以STM32F103C8为例,仅通过A9即可实现上位机与单片机之间的通讯。现将相关文件上传。

文件下载

资源详情

[{"title":"( 38 个子文件 33KB ) stm32uart单线半双工通信","children":[{"title":"stm32_1wireusart","children":[{"title":"Src","children":[{"title":"main.c <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false},{"title":"gpio.c <span style='color:#111;'> 4.59KB </span>","children":null,"spread":false},{"title":"stm32f1xx_it.c <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"system_stm32f1xx.c <span style='color:#111;'> 16.01KB </span>","children":null,"spread":false},{"title":"stm32f1xx_hal_msp.c <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"usart.c <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false}],"spread":true},{"title":".mxproject <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"MDK-ARM","children":[{"title":"startup_stm32f103xb.s <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"stm32_1wireusart.uvguix.admin <span style='color:#111;'> 137.01KB </span>","children":null,"spread":false},{"title":"stm32_1wireusart.uvoptx <span style='color:#111;'> 16.01KB </span>","children":null,"spread":false},{"title":"JLinkSettings.ini <span style='color:#111;'> 755B </span>","children":null,"spread":false},{"title":"DebugConfig","children":[{"title":"stm32_basetime_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_2Pwm_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_1wireusart_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_SinglePwm_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_systime_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_gpio_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_usart_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"stm32_Pwm_STM32F103C8_1.0.0.dbgconf <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"stm32_2Pwm","children":null,"spread":false},{"title":"stm32_1wireusart","children":[{"title":"stm32_1wireuart.hex <span style='color:#111;'> 14.46KB </span>","children":null,"spread":false}],"spread":true},{"title":"stm32_1wireusart.uvprojx <span style='color:#111;'> 20.65KB </span>","children":null,"spread":false},{"title":"EventRecorderStub.scvd <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"stm32_1wireusart.uvguix.ubt <span style='color:#111;'> 176.24KB </span>","children":null,"spread":false},{"title":"RTE","children":[{"title":"_stm32_1wireusart","children":[{"title":"RTE_Components.h <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":false},{"title":"_stm32_Pwm","children":[{"title":"RTE_Components.h <span style='color:#111;'> 350B </span>","children":null,"spread":false}],"spread":false},{"title":"_stm32_systime","children":[{"title":"RTE_Components.h <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false},{"title":"_stm32_usart","children":[{"title":"RTE_Components.h <span style='color:#111;'> 262B </span>","children":null,"spread":false}],"spread":false},{"title":"_stm32_basetime","children":[{"title":"RTE_Components.h <span style='color:#111;'> 360B </span>","children":null,"spread":false}],"spread":false},{"title":"RTE_Components.h <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"_stm32_2Pwm","children":[{"title":"RTE_Components.h <span style='color:#111;'> 352B </span>","children":null,"spread":false}],"spread":false},{"title":"_stm32_gpio","children":[{"title":"RTE_Components.h <span style='color:#111;'> 352B </span>","children":null,"spread":false}],"spread":false},{"title":"_stm32_SinglePwm","children":[{"title":"RTE_Components.h <span style='color:#111;'> 362B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"stm32_1wireusart.ioc <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"Inc","children":[{"title":"main.h <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"usart.h <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"stm32f1xx_it.h <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"gpio.h <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"stm32f1xx_hal_conf.h <span style='color:#111;'> 14.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明