用软件调试时,为什么总是显示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 上传
|