herunterladen

AT91 Assembler Code Startup Sequence for C
Code Applications Software Based on the
AT91SAM7S64 Evaluation Board
1. Introduction
For reasons of modularity and portability most application code for the AT91SAM7S
ARM
®
-based microcontrollers is written in C. However, the startup sequence required
to initialize the ARM Processor Mode and certain key peripherals is heavily dependent
on the register architecture and memory mapping processor. For this reason the C-
startup sequence is written in assembler.
This Application Note describes an example of the AT91SAM7S C-startup sequence.
It is based on the C-startup sequence for the AT91SAM7S64 Evaluation Board work-
ing with the IAR 4.11A Development Tools. Further examples of C-startup sequences
are available in the AT91 software package.
The C-startup sequence is activated on power-up and after a reset.
AT91
ARM
®
Thumb
®
Microcontrollers
Application
Note
6131A–ATARM–04-Mar-05