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.

F28377D的GPIO口配置问题

Other Parts Discussed in Thread: CONTROLSUITE

从手册上看配置GPIO口时,需要配置GPAGMUX和GPAMUX,通过这两个寄存器的组合,配置出引脚的各种功能,而且GPAGMUX寄存器要先于GPAMUX配置,但controlsuite的例程里gpio_setup_cpu01看,并没有配置GPAGMUX寄存器,请问这是为什么,正确的配置是哪个呢?

  • GPAGMUX 有三种组合,00,01,11,默认是00,你可以根据datasheet table 4-2的引脚分配表来配置GPAGMUX和GPAMUX.

    例程之所以有些引脚不配置GPAGMUX,是因为不需要,保持默认值就可以。

    Eric