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.

[参考译文] RM48L952:LIN 引脚用作 GIO

Guru**** 662690 points
Other Parts Discussed in Thread: HALCOGEN
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1208122/rm48l952-lin-pins-used-as-gio

器件型号:RM48L952
主题中讨论的其他器件:HALCOGEN

您好!

我从 HALCoGen 中配置了 LIN 驱动程序、以使用 LIN TX 和 RX 作为 GIO、问题是我无法通过 SW 控制它们。 我只能在手动将值放入 DSET 寄存器时才可以看到行更改,而不能通过调用正确的 gioSet*。

    gioSetBit(linPORT, PIN_LIN_TX ,0);
    [....]
    gioSetBit(linPORT, PIN_LIN_TX ,1);

此致、

Cosmin

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Cosmin:

    请确保以下几点、

    1. 在调用 gioSetBit 之前调用 linInit 函数。 因为此函数会将 LIN 引脚设置为 GIO 模式以及 GIO 引脚的方向。

    2.在  gioSetBit 函数中、对 TX 使用位2、对 RX 使用位1。

    我在 RM46上创建了一个工作示例、供您 参考。 我将在下面附上项目、请仔细阅读。

    在上面的项目中、我为 SET 和 CLR 位设置断点并使用逻辑分析仪验证了引脚、并且可以看到引脚在切换  

    --

    谢谢。此致、
    Jagadish。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Jagadish、您好!

    它起作用了! 非常感谢您的支持。

    此致、

    Cosmin