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.

[参考译文] CCS/RM46L850:监控高电平信号

Guru**** 2526700 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/875954/ccs-rm46l850-monitoring-level-high-signal

器件型号:RM46L850

工具/软件:Code Composer Studio

你(们)好

在这里、我尝试读取 n2het1_20中的输入信号。 输出为 GIOB_2 (开/关)

与 gioGetbit()不同;在 het.h 中没有这样的函数。 如何在 n2het.can 中读取特定的单个引脚高电平或低电平、请指导我。

谢谢

此致

摇滚

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

    尊敬的 Rock:

    不由 N2HET 输出引脚动作驱动的 N2HET 引脚仍可用作正常的 GIO 引脚。  

    您可以使用 hetPORT1访问这些 GIO 寄存器:

      

    例如:

    gioSetPort (hetPORT1、gioGetPort (hetPORT1)^ 0x00000001); -->将 N2HET1[0]设置为高电平

    gioGetBit (hetPORT1、0x01); -->读取 N2HET1[1]的值

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

    感谢 QJ Wang。

    工作。

    此致

    摇滚