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.

TDA4VM: Understanding of gpio in tda4vm TRM and sysconfig tools

Part Number: TDA4VM
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi

I now want to configure some functional ports as gpio, so I referred to trm and used the sysconfig tool to configure it.
In the sysconfig tool I can only see the following

This is  GPIO0_[0,127]:

This is GPIO0_[0,35]

This is GPIO1_[0,127]:

This is  GPIO1_[0-35]

Q1:
But GPIO0_[0-35] included in GPIO 0[0-127], and why have independent GPIO0_[0-35]? Because both are the same.(as same as GPIO1_[0-35] and GPIO1_[0-127])

Q2:
I referred to TRM,I see that gpio has three groups, mapped to 10 instances.  For example, WKUP_GPIO0 has a total of WKUP_GPIO0_[0,67]. Is it divided equally between WKUP_GPIO0 and WKUP_GPIO1?


Q3:
In Main domin gpio: I use PRG1_PRU0_GPO11/AF24 as GPIO0_12, So should I use GPIO0_12 in GPIO0_[0-127] or GPIO0_12 in GPIO0_[0-35]? 

Q4:
In Main domin gpio: I use SPI0_CS1/Y4 as GPIO0_112, So how should I know which one of the 10 instances it belongs to?
The only thing I know is that it belongs to the GPIO0 group。



Best regards
Eason

 



  • Hi,

    Can any Ti experts give some answers to the above questions?

    Best Regards
    Eason

  • Hi Eason,

    But GPIO0_[0-35] included in GPIO 0[0-127], and why have independent GPIO0_[0-35]? Because both are the same.(as same as GPIO1_[0-35] and GPIO1_[0-127])

    This is just the way Sysconfig is set up as each GPIO instance is not allowed to have a different number of GPIO pins.

    Let me get back to you about Q2.

    In Main domin gpio: I use PRG1_PRU0_GPO11/AF24 as GPIO0_12, So should I use GPIO0_12 in GPIO0_[0-127] or GPIO0_12 in GPIO0_[0-35]?

    At the top, you will want to use the dropdown to select GPIO0. Once you enable signal 12, you can also check the drop down to ensure you see PRG1_PRU0_GPO11/AF24.

    In Main domin gpio: I use SPI0_CS1/Y4 as GPIO0_112, So how should I know which one of the 10 instances it belongs to?

    All the instances are abstracted into GPIO0 and GPIO1. Based on GPIO0_112, you know it will be part of GPIO0.

    Thanks,

    Neehar

  • Hi, Neehar,


    Thank you for your reply.
    But I still don't understand a little bit.

    You can see, There are ten instance of gpio. I can understand what you say: "This is just the way Sysconfig is set up as each GPIO instance is not allowed to have a different number of GPIO pins." 

     However, in the upper drop-down box and the lower drop-down box of sysconfig, only 4 different combinations of gpio instances can be combined. How did the 10 combinations come about?

    Use Peripheral: GGIO0/1
    Use Case        : GPIO0/1
    2 * 2 = 4

    So how to understanding there are ten instance of gpio modules? 

    Or, in the sysconfig settings, there are only two instances of GPIO0: GPIO0/1, corresponding to the code: CSL_GPIO0_BASE/CSL_GPIO1_BASE?
    The wkup_gpio0 also have two instances: GPIO0/GPIO1, corresponding to the code:
    CSL_WKUP_GPIO0_BASE/CSL_WKUP_GPIO1_BASE?  If I don't assume this, then I won't be able to understand where GPIO2/3/4/5/6/7 comes from, because I don't see any introduction of GPIO2/3/4/5/6/7 in TRM and sysconfig.

    Best Regards
    Eason 

  • Hi Eason,

    Sorry for the delay in responses. Please take a look at these screenshots from the TRM:

    Additionally, if you take a look at section 5.3.3 of the datasheet there are only physical balls for pins within GPIO0 and GPIO1.

    As far as I can tell, the Use Case does not make a difference.

    Thanks,

    Neehar