用 C 语言为微控制器编写应用程序

发布于 2024-07-09 10:37:11 字数 208 浏览 12 评论 0原文

您知道哪些专用于 PIC 微控制器 C 语言软件开发的资源?

我希望看到某种能够处理 IO(用于输入的按钮和用于输出的 LCD)和应用程序逻辑的框架。 您可以将其视为一个非常简单的操作系统。 我知道 PIC 的内存对于此类框架来说可能很小,因此我认为它可能是一个代码生成器,可以根据配置文件创建特定代码。 然后添加特定于您的应用程序的代码片段。 你见过类似的东西吗?

What resources do you know dedicated to software development in C for PIC microcontrollers?

I would like to see some kind of framework that handles both IO (buttons for input and LCD for output) and application logic. You can think of it as a VERY simple OS. I understand that PIC's memory can be small for such frameworks so I think it could be a code generator that creates a specific code based on a config file. Then you add code fragments specific to your app. Have you seen something similar?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

姐不稀罕 2024-07-16 10:37:11

TinyOS(用 C 语言编写)已移植到某些 PIC 微控制器:

但是如果您想要做的只是简单的 I/O,然后它比您需要的更复杂,并且您自己编写代码可能比完成学习曲线要​​容易得多。

否则,可以使用 PLC“梯形逻辑”方法编写相当复杂的逻辑。 有一个基于 PIC 微控制器的:

TinyOS (written in a dialect of C) has been ported to some of the PIC microcontrollers:

But if all you want to do is is simple I/O then its way more sophisticated than you need and probably much easier just to write the code yourself than go through the learning curve.

Otherise it possible to write fairly sophisticated logic using a PLC 'ladder logic' approach. There's one based on PIC microcontrollers at:

绾颜 2024-07-16 10:37:11

我从来没有见过这样的图书馆。 这可能是因为一个项目与另一个项目的 I/O 配置可能非常不同,因此很难拥有一组“通用”功能。

I've never seen a library like this. This is probably because the I/O configurations can be really different from one project to the other, making it really hard to have a "generic" set of functions.

陪你搞怪i 2024-07-16 10:37:11

当然,这取决于哪个 PIC。 PIC24/dsPIC 有许多中断级别,很容易使用它们来制作简单的基于优先级的调度程序。

对于确定性和良好的 A/D 过滤,很难击败具有一些基于定时器的中断级别的系统。

如果您确实想要一个操作系统,这里有一些: Contiki pico|操作系统 TNKernel

It depends on which PIC, of course. The PIC24/dsPIC have many interrupt levels, and it is easy to use them to make a simple priority based scheduler.

For determinism and good A/D filtering it's hard to beat a system with a few timer based interrupt levels.

If you really want an OS, here are a few: Contiki pico|OS TNKernel

梦冥 2024-07-16 10:37:11

查看 CCS C 编译器 (http://www.ccsinfo.com)。 它有一个很好的综合库,用于处理数字 I/O、ADC、公共总线通信。 还提供教程和开发板。

它有一个出色的点对点支持论坛 http://www.ccsinfo.com/forum 。 如果您正在考虑 CCS C,请务必查看此论坛,因为它会为您识别此 IDE 的一些特性。

它相对便宜。 我已经使用它很多年了。 它一直做得很好。

Look into CCS C compiler (http://www.ccsinfo.com). It has a nice comprehensive library for handling digital I/O, ADC, common bus communication. Tutorials and development boards available too.

It has a remarkable peer-to-peer support forum http://www.ccsinfo.com/forum . If you are considering CCS C, make sure to check out this forum, because it will identify for you some of this IDE's idiosyncrasies.

It's relatively inexpensive. I've been using it for years. It's been doing an adequate job.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文