CMP - United Business Media TechOnline
All Articles Products Courses Papers VirtuaLabs Webinars Web
 
LoginRegister
      TechOnline > Electronics Company Directory > Technical Paper

Technical Papers
Migrating from Assembly to C for 8-bit Microcontrollers

Click to Download
pdf logo
2004 Embedded Systems Conference San Francisco Paper
44 KB (15 pages)
March 31, 2004
 

Taylor Cox
Atmel

Assembly language has typically been the programming language of choice for embedded system programmers. Looking into the 8-bit microcontroller offerings from different vendors, one finds that these microcontrollers can be programmed using the high-level C programming language as well as assembly. Some microcontrollers have even been designed with high-level languages in mind as a means of programming, thus alleviating common high-level language bottlenecks. The embedded source code examples found in this paper will be based on ATMEL Corporation's 8-bit AVR microcontroller, which was designed for programming using the high-level C language. In order to program microcontrollers using the C language a compiler is required to translate the high-level language in to low-level machine instructions the microcontroller can execute. Utilizing a high-level language when programming microcontrollers offers key advantages over low-level languages while introducing a single 'gotcha' that can be overcome with careful attention and planning.

 
Rate this paper
WORSE | BETTER
1 2 3 4 5

submit a paper
Follow Tech Papers

Atmel
Embedded Systems Conference (ESC)
   

ARTICLE
1. Programming DSPs in High-Level Languages

ARTICLE
2. Advanced Compiler Optimization Techniques

ARTICLE
3. More for Less: Stable Future for 8-bit Microcontrollers

ARTICLE
4. Programming DSPs in High-Level Languages