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.

F28335GPIO口输入问题

将GPIO8配置为输入口,禁止内部上拉,将3.3V电源通过导线连接到GPIO8,为什么读GpioDataRegs.GPADAT.bit.GPIO8寄存器读不到高电平?或使能内部上拉,将电源地通过导线连接到GPIO8,也读不到低电平。

EALLOW;

GpioCtrlRegs.GPAMUX1.bit.GPIO8 = 0;

GpioCtrlRegs.GPADIR.bit.GPIO8 = 0; 

GpioCtrlRegs.GPAPUD.bit.GPIO8 = 1;

GpioCtrlRegs.GPACTRL.bit.QUALPRD1 = 1;

GpioCtrlRegs.GPAQSEL1.bit.GPIO8 = 1; 

EDIS;