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.

[参考译文] TMS570LS1224:Halcogen 将 SCI TX 配置为 GIO、SCI Rx 是否正常?

Guru**** 2524550 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/744885/tms570ls1224-halcogen-config-sci-tx-as-gio-and-sci-rx-as-normal

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

使用 Halcogen I 将 SCI Rx 配置为串行接收引脚。

在 SCI 选项卡中、我还将 SCI TX 函数设置为 GIO、将方向设置为输出。
引脚多路复用器中没有冲突。

但是,在运行 sciInit()并使用指令之后

gioSetBit (sciPORT、PIN_SCI_TX、1);

引脚电平没有变化。

欢迎提出任何想法或建议。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Geert、您好!
    可能是问题的是 PIN_SCI_TX。 它在 sci.h 中定义为4U (如果您使用此定义)、但必须设置/清除的位为2。
    将 gioSetBit (sciPORT、PIN_SCI_TX、1);更改为 gioSetBit (sciPORT、2、1);并进行测试。
    请检查是否也在 PINMUX 选项卡中选中了 SCI 复选框....


    此致、
    米罗