5

Example Programs

To help provide the knowledge needed for programming one’s first projects with a new microcontroller, some program examples are always helpful.

For AVR microcontrollers, we have come to know Atmel’s AVR Assembler, IAR’s C compiler, and the AVR BASIC from Silicon Studio in the last chapter. Example programs explained here will give a first impression of the use of these interesting microcontrollers.

Starting with some examples programmed in Assembler should give an idea of the use of the new Assembler instructions and directives. Because of their different hardware resources (stack and peripherals), we separate the example programs for the AT90S1200 and the AT90S8515 microcontroller.

Some later C examples will show the use ...

Get AVR RISC Microcontroller Handbook 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.