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.

[参考译文] AM3358:RS485

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/932722/am3358-rs485

器件型号:AM3358

您好!

SDK: Linux-RT-4.1.18

客户希望将 uart2用作 RS485、 并将 GPIO0_5用作 contol 信号。 他只能 在手动上拉/下拉 GPIO0_5时实现发送/接收。 请提供一些建议。

uart2_pins_default: pinmux_uart2_pins  {
    pinctrl-single,pins = <
        0x150 (PIN_INPUT_PULLUP | MUX_MODE1) /* (A17) spi0_sclk.uart2_rxd */
        0x154 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* (B17) spi0_d0.uart2_txd */
        0x15c (PIN_OUTPUT | MUX_MODE7) /* (A16) spi0_cs0.gpio0[5] */
    >;
};
&uart2 {
    pinctrl-names = "default";
    pinctrl-0 = <&uart2_pins_default>;
    rts-gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>;
    rs485-rts-active-high;
    rs485-rts-delay = <1 1>;
    linux,rs485-enabled-at-boot-time;
    status = "okay";
};
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Nancy、

    当不手动控制 GPIO0_5时、当 UART 发送数据时、它的状态是否改变?