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.

F28M35芯片的GPIO在上电未初始化之前是什么状态,可以通过寄存器更改上电默认状态吗



F28M35芯片的GPIO在上电未初始化之前是什么状态,可以通过寄存器更改上电默认状态吗?

如果可以的话是如何操作的,谢谢!

  • GPIO的上电默认状态可以参考芯片datasheet的3.16.1 GPIO_MUX1和3.16.2 GPIO_MUX2中的描述:
    其中GPIO_MUX1:...each GPIO_MUX1 pin can have a pullup enabled or disabled. By default, all pullups and outputs are disabled on reset...
    GPIO_MUX2:Each GPIO_MUX2 pin can have a pullup enabled or disabled. On reset, all pins of the GPIO_MUX2 block are
    configured as analog inputs, and the GPIO function is disabled. The GPIO_MUX2 block is programmed
    through a separate set of registers from those used to program GPIO_MUX1.
  • 程序都没跑起来 肯定是不能通过寄存器控制状态的
    硬件设计时就考虑好上电瞬间的状态 增加2k左右的上或下拉电阻