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.

TMS320F28388S: Pin option setting in "sci_ex1_echoback" example

Part Number: TMS320F28388S

In the example code, set the SCI pin as shown below.

GPIO_SetupPinMux(28, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(28, GPIO_INPUT, GPIO_PUSHPULL);

GPIO_SetupPinMux(29, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(29, GPIO_OUTPUT, GPIO_ASYNC);

Looking for the forum, the output pin does not require an option, so it seems to have used any option.

Is there a reason to use the input pin as a pushpull?

  • Hello,

    Using the GPIO_PUSHPULL tag prevents the pull-up from being enabled on the RX pin, which is desired if the SCI RX pin is being driven by another source. You can see how this parameter is used by looking at the function definition for GPIO_SeupPinOptions.

    Thank you,

    Luke