根据 TMS570LS0714芯片手册(P14)、ECAP1和 ECAP2的通道与 MIBSPI3复用。
图1.
图2.
在 EB 配置工具中可以看到、ICU 功能的实现只能通过 N2HET 模块进行配置。
有人能帮我?
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.
根据 TMS570LS0714芯片手册(P14)、ECAP1和 ECAP2的通道与 MIBSPI3复用。
图1.
图2.
在 EB 配置工具中可以看到、ICU 功能的实现只能通过 N2HET 模块进行配置。
有人能帮我?
您好!
首先、它应该在 PortMuxPinFunc (在您的图片中)中选择 port_PIN_MUX_alt2。
其次、根据 ICU_Driver_userguide (请参阅图1和图2)将 PIN_41 (N2HET1[15])分配给 PWM。
第三,ICU 在调试过程中无法收集数据(占空比和周期)(参见图3)。
顺便说一下、我在测试代码中调用的函数是接下来的三个函数:
ICU_Init (&IcuConfigSet_0)、
ICU_StartSignalMeasurement (IcuChannel_ECAP4)、
ICU_GetDutyCycleValues (IcuChannel_ECAP4、&Duty_Cycle 值)、
图1.
图2.
图3.
MCAL 版本: