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.

[参考译文] TM4C1294NCPDT:一个使用 FP0和 PF4作为正常输出 GPIO 的问题、用于在 TI TM4C1294NCPDT 板上控制 D4和 D3到开/关。

Guru**** 2534810 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/836488/tm4c1294ncpdt-a-question-of-used-the-fp0-and-pf4-as-normal-output-gpios-to-control-d4-and-d3-to-on-off-on-the-ti-tm4c1294ncpdt-board

器件型号:TM4C1294NCPDT

大家好、TI 团队、

我使用  TM4C1294 Connected Launchpad (EK-TM4C1294XL) 进行相同的实验。

我 使用 FP0和 PF4作为正常输出 GPIO 来控制 D4和 D3到开/关、如下所示:

我修改 pinout.c 中的代码、将 PF0和 PF4写入1、D4处于照明状态、但 D3未处于照明状态、代码如下所示、

我阅读了 TM4C1294数据表、它不涉及代码。

为什么 D3不点亮?

此致、

Eric

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

    您好!

     您应该更改:

    发件人:

    ROM_GPIOPinWrite (GPIO_PORTF_BASE、GPIO_PIN_0 | GPIO_PIN_4、1);

    至:

    ROM_GPIOPinWrite (GPIO_PORTF_BASE、GPIO_PIN_0 | GPIO_PIN_4、GPIO_PIN_0 | GPIO_PIN_4);

    请注意、这些引脚是使用位打包字节指定的。 您写入的内容仅设置 PF0、而不设置 PF4。 如果要同时设置 PF0和 PF4、则需要写入0x11、而不是0x1。