Chapter 8

Embedded Systems Programming

8.1  Assembly versus High-Level Languages

Some PIC microcontrollers can be programmed in high-level languages or in their native machine language. Machine language programming is facilitated by the use of an assembler program, and thus becomes assembly language programming. Although assembly language is the most used and popular way of PIC programming, some PIC microcontrollers can also be programmed in high-level languages such as C or BASIC.

The major argument in favor of high-level languages is their ease of use and their faster learning curve. The advantages of assembly language, on the other hand, are better control and greater efficiency. Another consideration is that only higher-level PICs can be ...

Get Embedded Systems Circuits and Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.