高等继续教育 / 嵌入式系统导论
题型描述: 编程题
阅读程序回答下面问题。
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进行数据传送时一次传送的数据位数是几位?
参考答案:
佳题速递: