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 can3 pins as GIO on TMS570LS2125?

Guru 16800 points
Other Parts Discussed in Thread: TMS570LS2124

Hello,

"The values of the IO Control registers are only writable if Init bit of CAN Control Register is Cleared." is written at "24.17.29 TIOC" and "24.17.30 RIOC" in TRM of TMS570LS2124.
Is the description correct?

In my condition, only when the Init bit of CAN Control Register is set (to 1), I can use CAN3 pins as GIO.
If I clear (to 0) the Init bit, TIOC and RIOC are initialized.

Could you teach me the correct flow to use CAN3 pins as GIO?

Best Regards.

Nomoto

  • Hello Nomoto,

    I have forwarded your question to one of our experts and they will respond soon.

  • Nomoto-san,

    The statement in the TRM needs to be updated to state that the TIOC and RIOC registers can be used to drive the CAN terminals as general-purpose I/Os only when the INIT bit is set.

    The description of these bits has the correct information. That is, the FUNC, DIR and OUT are forced to a fixed state (non-programmable) when the INIT bit is cleared. The INIT bit is set by default (after reset).

    You do not need to configure anything other than the TIOC and RIOC registers inside the DCAN module in order to use the DCAN terminals for general-purpose I/O.

    Regards, Sunil

  • Sunil-san,

    Thanks for your reply.
    Please update TRM.

    Best Regards

    Nomoto