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: EB configure Tool relative problem

Part Number: TMS570LS0714

1.According to the TMS570LS0714 chip manual (P14), the channels of ECAP1 and ECAP2 are multiplexed with MIBSPI3.

                                                                                                    figure  1

                                                                                           figure 2

2.It can be seen in the EB configuration tool that the implementation of the ICU function can only be configured through the N2HET module.

Can someone do a favor for me?

  • Hello,

    The pinmux is configured under port:

  • ICU cannot collect data (duty cycle and period) during debugging
  • Hello,

    Firstly, it should select PORT_PIN_MUX_ALT2  in PortMuxPinFunc(in your picture).

    Secondly, Pin_41(N2HET1[15]) is assigned to PWM according to ICU_Driver_userguide(see figure 1 and figure 2).

    Thirdly,ICU cannot collect data (duty cycle and period) during debugging(see figure 3).

    By the way,The function I called in the test code is the next three:

    Icu_Init(&IcuConfigSet_0),

    Icu_StartSignalMeasurement(IcuChannel_ECAP4),

    Icu_GetDutyCycleValues(IcuChannel_ECAP4,&Duty_Cycle_Values),

                                                                                                  Figure 1

                                                                                                                          Figure 2

                                                                                                                                                       Figure 3

  • Hi,

    Can you call Icu_StopSignalMeasurement(IcuChannel_ECAP4) first before you get the period/duty cycle value?

    What is the value of IcuChannel_ECAP4?
  • Hi,

    All right, I will have a try to call Icu_StopSignalMeasurement(IcuChannel_ECAP4) .

    In addition,IcuChannel_ECAP4 is a configure parameter.

                                                                                                                                                                                Figure 1


                                                                                                              Figure 2

     

    Thanks and Regards,
    Hong yunqiang 

  • Can you try N2HET[22] and N2HET[24] first, because those pin's default functionality is N2HET? So you don't need to configure the pinmux.I'd like to narrow down on this issue.

  • Another thing, what is your MCAL version? Can you post icu_PBcfg.c?
  • 1、N2HET1[22] and N2HET1[24] do not implement multiplexing functionality  with ECAP(see figure 1).

    2、if we want to implement the functionality of ICU(ECAP), we only use N2HET(see figure 2). But ECAP  implement multiplexing functionality  with MIBSPI(see figure 1).

    3、I have had a try to call  Icu_StopSignalMeasurement(IcuChannel_ECAP4),but it does’t work.


                                                                                                               figure 1

                                                                                                         figure 2

    So now  it only use N2HET1[23], but  I  can't  get  measurements by  calling  function.

  • Hi,

     Have you looked through icu_PBcfg.c at your leisure? Will you continue to help me?

    Thanks and Regards,

    Hong yunqiang

  • Hello Hong,

    Icu_PBcfg.c looks correct. The problem might be caused by the pin mux. Please call pinmux function first:

    /* Initialize Port module for all Pin Mux related setting */
    Port_Init(&Port_Runtime);