如何使用 C 对 TI TMS320C674x 实时时钟进行编程
激烈的谷歌搜索未能找到一个关于如何对 RTC 进行编程的好例子。 我能找到的只是 C5000/4000 型号的示例,它们的工作方式似乎有所不同,因为我无法找到编译示例代码所需的任何头文件。
我得到的最接近的是找到 RTC 用户手册,但这没有帮助所有关于使用 C 实际编程实时时钟的主题
我非常感谢一个工作示例或指向此类示例存在的位置的指针
Intense googeling failed to turn out a single decent example of how to program the RTC.
all I could find were examples for the C5000/4000 models, which seems work differently as I was unable to locate any of the header files required to get the sample code to compile.
the closest I got was finding the RTC user manual, but it's no help at all on the subject of actually programming the real time clock using C
I'd appreciate to no end a working example or a pointer to where such an example exists
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您正在使用 TI 的 DSP/BIOS,因为这似乎是使用 C6000 系列 DSP 的最常见方式。 DSP/BIOS 操作系统提供了许多用于与实时时钟(CLK 模块)连接的 API。这些 API 抽象了 RTC 的寄存器和其他低级细节,如 RTC 用户手册中所述。这通常是使用时钟的最简单方法,因为它避免了手动“编程”的需要。
请参阅 中的 CLK 部分API 参考。
I'm assuming you are using TI's DSP/BIOS, as this seems to be the most common manner in which the C6000 family of DSPs are used. The DSP/BIOS operating system provides a number of APIs for interfacing with the real time clock (the CLK module). These APIs abstract away the registers and other low-level details of the RTC as described in the RTC user manual. This is generally the simplest way to use the clock as it avoids the need to manually "program" it.
See the CLK section in the API reference.