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.

number of GPIO ports on the Peripheral explorer kit board



Hi,

i see on board just to GPIO ports - GPIO60 and GPIO61. If I need more digital outputs from the board, in real-time, how can i do this? is there a possibility to use other pins on the board like ePWM, CAP, CAN as output ports for more GPIOs? 

if not, i understand the only way to do so is to use one of the communication protocols. which one is recommended? if the needed frequency is about 100kHz?

Thanks in advance,

Israel

  • Hi,

    Israel Rosner said:
    is there a possibility to use other pins on the board like ePWM, CAP, CAN as output ports for more GPIOs? 

    Yes, why not. Simply alter the GPIO muxing configuration.

    Regards,

    Gautam

  • Hi Gautam,

    Well from what i read it looks that the mux possibility is between the GPIOs and the other functions like ePWM. it doesn't look that there is possibility to make the both at the same time - that the GPIO is connected to the ePWM pin as input/output.

    pls see in the attached figure below, it looks that you can't connect the  pin both to the peripheral and the GPIOs. am I wrong?

    or the story is that when we choose '00' in the mux field, the physical pin on the board which is named "ePWM" will be connected to the GPIO?

    hope i'm clear,,,

    Israel

  • hi,

    does my question is not clear? what i wish to know is if it  is possible to use EPWM pins placed on the peripheral board as digital outputs which are connected to the GPIOs and controlled by them?

    thanks in advance,

    Israel

  • Hi Israel,

     what i wish to know is if it  is possible to use EPWM pins placed on the peripheral board as digital outputs which are connected to the GPIOs and controlled by them?

    All the pins have GPIO functionality. Once you configure the PINMUX setting for GPIO functionality then output will be controlled by GPIO module only (DAT/SET/CLEAR registers).

    In earlier post you mentioned following which was a bit confusing.

    Well from what i read it looks that the mux possibility is between the GPIOs and the other functions like ePWM. it doesn't look that there is possibility to make the both at the same time - that the GPIO is connected to the ePWM pin as input/output.

    This is correct. You can not control the output from multiple module.  MUX option can select the pin as GPIO or EPWM and not both. If you want to drive the pins as GPIO then select the mux option "00" (which is default option) and then using SET/CLEAR register you can drive the desired output on that pin.

    Regards,

    Vivek Singh