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.

How to use TCK, TDI, TMS, TDO pins as GPIO during normal functioning?

Other Parts Discussed in Thread: TMS320F28027

Hi,

I need few more GPIO's for my application using TMS320F28027 micro controller. How to use TCK, TDI, TMS, TDO pins as GPIO during normal functioning? Please support me.

Regards,

Mahesh K.R.

  • Hi Mahesh,

    Please check the SPRUFN3D doc: Here's your answer

    Regards,

    Gautam

  • Hi Gautam,

      Thanks for the reply.

    In CCS we write the below instruction to make the I/O line General purpose I/O 

    GPIO_setMode(myGpio, GPIO_Number_1, GPIO_1_Mode_GeneralPurpose);

    and below instruction to make it output.

    GPIO_setDirection(myGpio, GPIO_Number_1, GPIO_Direction_Output);

    For the GPIO 35-38 No instruction is required, If we make TRST=0 externally, these pins become General purpose I/O.

    Do I need to write below instruction to make it output & Input?

    GPIO_setDirection(myGpio, GPIO_Number_35, GPIO_Direction_Output);

    GPIO_setDirection(myGpio, GPIO_Number_36, GPIO_Direction_Input);

    Please clarify.

    Regards,

    Mahesh K.R.

  • Do I need to write below instruction to make it output & Input?

    GPIO_setDirection(myGpio, GPIO_Number_35, GPIO_Direction_Output);

    GPIO_setDirection(myGpio, GPIO_Number_36, GPIO_Direction_Input);

    Yes, writing the instruction is always recommended.

    Regards,

    Gautam

  • Hi Gautam,

      Thank you very much for the support. It is working. I checked GPIO_Number_35. I got three more GPIO. I think TD0 can be used only as an input. There is no output option in the block diagram.

    Regards,

    Mahesh K.R.

  • Yes Mahesh, TDO can only be used as input. Hope all your queries have been answered, if so please close this thread by verifying the answer.

    Regards,

    Gautam

  • Hi Gautam,

      You are right. Now I am clear. I am not able to see the " Verify Answer" button.

    Regards,

    Mahesh K.R.