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.

TMS320F280049: 参照例程配置GPIO口时使用initGPIO函数,函数描述中写到会使能上拉,函数能实现此功能吗?

Part Number: TMS320F280049
Other Parts Discussed in Thread: TIDM-02000

由于后续有连接MOS管驱动芯片,如果初始化时配置为上拉,那驱动输出都会被抬高吗。由于后续连接的是全桥模块,是否会引起桥臂直通现象?我理解的上拉是DSP内部通过电阻连接到一个高电平,那么默认情况下均会输出高电平,进而引起桥臂直通。

还存在一个问题,我参照方案TIDM-02000中的配置GPIO为EPWM时,所用的函数如下所示,其中第二个函数GPIO_setPadConfig()的作用是什么,我看函数描述里是设置GPIO的配置是上拉还是浮空还是翻转,为什么要设置这个?