高等继续教育 / 嵌入式系统导论
题型描述: 编程题
阅读程序回答下面问题。
void USART1_Config(void)
{
USART_InitTypeDef USART_InitStructure;
......
USART_InitStructure.USART_BaudRate = 115200;
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_Rx | USART_Mode_Tx;
USART_Init(USART1, &USART_InitStructure);
USART_Cmd(USART1, ENABLE);
}
(1)调用该函数后,设置的USART1数据格式中的停止位是几位?
(2)调用该函数后,USART1在数据传送时是否使用了硬件流控制?
参考答案:
佳题速递: