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.

[参考译文] 编译器/TM4C123GE6PM:从寄存器读取

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/853160/compiler-tm4c123ge6pm-read-from-register

器件型号:TM4C123GE6PM
Thread 中讨论的其他器件:EK-TM4C123GXL

工具/软件:TI C/C++编译器

从特定寄存器读取命令是什么。 我在一个寄存器中有内容、但我不确定如何读取这些内容、并最终在 PuTTy 上打印这些内容

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

    您好!

     可以使用 HWREG()读取寄存器。 可以使用 UARTprintf()发送到终端窗口。 我建议您从诸如 hello.c 的 TivaWare 示例开始 该示例可在中找到 /examples/boards/ek-tm4c123gxl/hell/hello.c. 您还可以在中找到所有驱动程序  /driverlib。 选择任何您将找到 HWREG()函数以读取和写入寄存器的文件。