Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing apps in C for microcontrollers

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?

like image 358
grigy Avatar asked Nov 16 '08 14:11

grigy


2 Answers

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

  • http://www.tinyos.net
  • http://en.wikipedia.org/wiki/TinyOS

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:

  • http://www.cq.cx/ladder.pl
like image 180
tonys Avatar answered Sep 26 '22 23:09

tonys


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.

like image 41
SoapBox Avatar answered Sep 23 '22 23:09

SoapBox