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.

Compiler/TM4C123GH6PM: TM4C123GH6PM

Part Number: TM4C123GH6PM

Tool/software: TI C/C++ Compiler

How can I use portD for ADC channels and for SSI1 in the same module.

  • Rabbia,

    SSI signals on port D use pins PD0, PD1, PD2, PD3. These can be either SSI1 or SSI3.

    Analog pins (AIN4, 5, 6, 7) on port D are on those very same pins.

    The simple answer is NO.

    You could use the pins with those two different purposes as long as you reconfigure the GPIO every time you wish to change the function. However, externally, the circuits for SSI communication and analog measurement are completely different, so that would make no sense.

    Bruno
  • Perhaps a more fundamental question - why would poster "place himself" in such (conflicting) position?
    There are "many" ports - and "many" pins ... should "no other pins be available" - then a larger device must be chosen...

    Just as you well note - while "in theory" the pins (may) be reconfigured - the "required, outside MCU circuitry" - could not support (both) specialized/differing applications.

  • Highly flexible pin muxing allows use as GPIO or one of several peripheral functions

    what does it mean? i don't under stand the pin muxing.

  • Hello Rabbia,

    It means the MCU allows for different functions to be routed to different pins so a device can have 80 or 120 pins instead of 200+ pins.

    That doesn't mean that a single pin can efficiently used for 2-3 functions in a single application. There are a lot of external considers to consider, such as are there going to analog or digital signals being sent to the pin, what requirements there are for the standard or the device being interfaced with, etc.

    What Bruno explained on his post is completely accurate regarding this.

    If you are using the LaunchPad, you can use other pins: www.ti.com/.../spmu296.pdf