STM32F030,250k波特率串口通讯,一直卡在中断里,测试程序中断只读接收的数据。串口时钟为48MHz
USART_InitStructure.USART_BaudRate = 250000;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_2;
USART_InitStructure.USART_Parity = USART_Parity_No;
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_InitStructure.USART_Mode = USART_Mode_Rx;
USART_Init(USART1, &USART_InitStructure);
void USART1_IRQHandler(void)
{
INT8U data;
data = USART_ReceiveData(USART1);
}
求教啊。。。。。。。 |