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.

在调试的时候,管脚设置输出高电平结果检测输出的是低电平



 SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); //使能GPIOB端口

  GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, GPIO_PIN_0|GPIO_PIN_1|
     GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5); //使能端口GPIOB的管脚Pin2、Pin3、Pin4、Pin5

GPIOPinWrite( GPIO_PORTB_BASE, GPIO_PIN_0, 1);


    GPIOPinWrite( GPIO_PORTB_BASE, GPIO_PIN_2, 1);

    GPIOPinWrite( GPIO_PORTB_BASE, GPIO_PIN_3, 1);
    GPIOPinWrite( GPIO_PORTB_BASE, GPIO_PIN_1, 1);
    GPIOPinWrite( GPIO_PORTB_BASE, GPIO_PIN_4, 1);
    GPIOPinWrite( GPIO_PORTB_BASE, GPIO_PIN_5, 1);