GPIO的工作模式4种输出模式 哪一种是推挽输出( )
A. GPIO_Mode_Out_OD
B. GPIO_Mode_AF_OD
C. GPIO_Mode_Out_PP
D. GPIO_Mode_AF_PP
查看答案
因为GPIO_ReadInputDataBit()函数是读取端口电平状态,所以其返回值是bit
A. 对
B. 错
当STM32某GPIO配置为输出模式时,可以通过输入数据寄存器读取端口状态
A. 对
B. 错
写出设置STM32的GPIO口功能的函数的实现思路,下面语句正确排序的编号写在答案里如1-2-4-3-5这样(1)GPIO_InitTypeDef GPIO_InitStructure;(2)RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOE, ENABLE);(3)GPIO_Init(GPIOA, &GPIO_InitStructure);(4)while(1){GPIO_SetBits(GPIOA,GPIO_Pin_1);delay(1000);}(5)GPIO_InitStructure.GPIO_Pin =GPIO_Pin_1GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
STM32F4系列GPIO初始化时语句RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);的作用是