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.

TMS570LS3137: Questions on ICU and GPIO

Part Number: TMS570LS3137

I am facing below issues related to ICU module & GPIO .

  1. I have configured the PINs 23, 36, 38 as input ICU and testing with signal generators. I could not observe any changes in the pins while reading.
  2. I have configured Pin 97 as GPIO output and trying to set the pin to high and low. But, no changes are observed in the output pin.

Please support me in resolving the issue.

  • Hello Lakshmikanth,

    In order to use ICU, you need to configure NHET, and add channels for ICU. Can you please post your configuration files and EB generated files used in your CCS project?

  • Hello Lakshmikanth,

    I got the EB generated files: ICU_PBcfg.c and Port_PBcfg.c. I checked the pinmux, ICU code, etc, I don't see the problem.

    Your settings are based on 144pin package. Did you select the correct device package in your configuration? 

    It's pretty hard to read the source code, can you share the EB config files with us?

  • Hello QJ,

    We have selected the correct device package during configuration.

    We are using Davinci Configurator for MCAL configuration in our project.

    I have already shared the configuration files in the attachment along with the generated files. 

    Please check and let us know if any details are required.

  • Posting QJ's response from the direct emails for the code shared offline

    ---

    I got two Davinci generated files from you: Icu_PBcfg.c and Port_PBCfg.c. As I mentioned before, the ICU code (NHET assembly code) for input capture looks correct.

     

    I double checked the pinmux for pin 23--N2HET1[01], pin36--N2HET1[04] and pin 38--N2HET1[06] again today:

    1. Pin 23: you use PORT_PIN_MUX_ALT_1 for bit 16 of PINMUX_4. It is not correct, please use PORT_PIN_MUX_DEFAULT. I am sorry for missing this error last time.

    The pinmux setting for Pin36 (N2HET1[04]) and Pin38 (N2HET1[06]) are correct. Even the pinmux for Pin 23 is not correct, you should be able to capture data from pin 36 and pin 38.

     

    For LS3137 PGE package, Pin 97 is MibSPI5ENA and MII_RXD[3]. Your pinmux setting is to use this pin as MibSPI5ENA. I guess you want to use this pin as GPIO through SPIPC0 register. I don’t have your configuration file for SPI. If you did not configure SPIPC0 correctly, we are not able to use pin 97 as GPIO.

     

    Can you please share other files generated from your Davinci configurator, so I can port them to my CCS project to do a test?

  • We did configuration change for DIO and now we could control Pin 97 (MibSPI5ENA) as digital output.

    Although, I use only MIBSPI5NENA from SPI5 port , it is required to configure 7 dummy DIO channels under the DioPortSpi5 before configuring for MIBSPI5NENA. This information is not available in user guide.

    Please add these hints in user guide.