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.

TMS320F28377D: ecap和inputxbar 使用

Part Number: TMS320F28377D

你好,我想知道在28377d中,若是使用ecap功能,当管脚初始化为ecap复用功能后,为何还需要配置inputxbar?这点好像和335不大一样,335配置cap后,直接能用,是否有这点差异呢

TI例程中:

//
// InitECap1Gpio - Initialize ECAP1 GPIOs
//
void InitECap1Gpio(Uint16 pin)
{
EALLOW;
InputXbarRegs.INPUT7SELECT = pin; // Set eCAP1 source to GPIO-pin
EDIS;
}

  • 你好,请查看下手册中这句话:

    It is important to note that the function selected on the GPIO mux does not affect the Input X-BAR.

    管脚复用是不会影响input X-BAR的,所以这里要对其进行配置。

    28335是没有这个input X-BAR的。

  • 要用cap功能,为什么一定要用inputxbar呢,gpio和外设没有连线嘛,必须用inputxbar连接?此外inputxbar做cap功能的话,是不是只能有cap复用的gpio引脚才能连过去?其他脚没用。

  • 要用cap功能,为什么一定要用inputxbar呢,gpio和外设没有连线嘛,必须用inputxbar连接?

    应该是必须的。

    此外inputxbar做cap功能的话,是不是只能有cap复用的gpio引脚才能连过去?其他脚没用。

    不是。其他脚也可以用。