This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PD7输出高电平



SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE,GPIO_PIN_7);

GPIOPinWrite(GPIO_PORTD_BASE,GPIO_PIN_7,0x80);

为什么这样设定PD7没高电平输出。    

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
GPIOPinTypeGPIOOutput(GPIO_PORTE_BASE,GPIO_PIN_1);

GPIOPinWrite(GPIO_PORTE_BASE,GPIO_PIN_1,0x01);

PE1有输出。