紫阳真人 发表于 2018-12-12 17:11

LPC1788不能输出高电平

int main()
{
        LPC_GPIO0->DIR = 0x88000000;
        LPC_GPIO3->DIR = 0x06000000;
        GPIO_SetValue(3, 1 << 25);/*test1*/
        GPIO_SetValue(3, 1 << 26);/*test2*/
        GPIO_SetValue(0, 1 << 31);/*test3*/
        GPIO_SetValue(0, 1 << 27);/*test4*/
        while(1);
}
我写了一段非常简单的代码,功能就是输出四路高电平,然而GPIO_SetValue(0, 1 << 27);这路始终没有输出高电平,其他正常,求解是哪里的问题

紫阳真人 发表于 2018-12-13 12:49

自问自答:

页: [1]
查看完整版本: LPC1788不能输出高电平