打印

关于USART

[复制链接]
210|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
丑帅丑帅的|  楼主 | 2019-11-28 21:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

用软件调试时,为什么总是显示disable pin :TX.也无法输出数据寄存器里面的结果呀。



void USART_Configuration(void)

{

USART_InitTypeDef USART_InitStructure;

USART_InitStructure.USART_BaudRate = 9600;

USART_InitStructure.USART_WordLength = USART_WordLength_8b;

USART_InitStructure.USART_StopBits = USART_StopBits_1;

USART_InitStructure.USART_Parity = USART_Parity_No;

USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;

USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;

USART_Init(USART1, &USART_InitStructure);

}



<div class="pattl">









MQ7VG9FTAWTZOE~VA4T63LN.jpg
(225.46 KB, 下载次数: 0)


<div class="tip tip_4" id="aid4718_menu" style="display: none" disautofocus="true">


下载附件




2015-1-13 10:10 上传

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

741

主题

742

帖子

0

粉丝