Getting started with embedded C, part 1
IAR Embedded Workbench and flashing LED

This is the first instalment of a three-part series which will introduce the fundamentals of programming a microcontroller in C. You can immediately try all the examples using the MSP430 hardware, which is also described in this issue, in combination with a PC or laptop which has a USB interface. The software we’ve used is available as a free download. In this way you will learn step by step how you can use the higher programming language C in all kinds of electronics projects.
C is a genuine general-purpose programming language (there are over 400 different languages for computer systems). C is a small, compact language, which is not all that difficult to learn. These days C is used mostly in embedded microcontroller applications. This means devices that contain a microcontroller doing one specific task, such as a coffee maker (compare that to the processor in a PC which runs a variety of programs). The Java language is also quite frequently used for this, but it places much higher demands on the hardware, specifically in terms of speed and memory.
This is a MEMBER ONLY article. You need a subscription to read this article.
- Access to Elektor archive and 5,000+ Gerber files
- Receive up to 8 magazines per year (digital and/or paper)
- 10% discount in the Elektor store
Available from €4.95 per month.
What is Members Only
Elektor is committed to providing high-quality content on electronics, catering to tens of thousands of paying members. As part of this commitment, Elektor has launched Premium, an initiative that offers exclusive online articles to members sometimes even before they appear in the magazine.
Every day, members can access in-depth articles that showcase the best of Elektor's premium content.
This initiative aims to reward members with early access. Once logged in, members can easily enjoy this exclusive content and engage in discussions about featured projects. While Premium adds to the existing resources available, Elektor will continue to provide a wealth of free information.
Join the Elektor community today to take advantage of Premium and other benefits!
Discussion (0 comments)