微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > MCU和单片机设计讨论 > USART调试问题

USART调试问题

时间:10-02 整理:3721RD 点击:
为什么调试时这里有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_Odd;
USART_InitStructure.USART_HardwareFlowControl =USART_HardwareFlowControl_RTS_CTS;
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
USART_Init(USART3, &USART_InitStructure);
//使能USART3
USART_Cmd(USART3, ENABLE);
}


取消打钩试试···

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top