Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CS 220 / ARM / ARM7TDMI_TechnicalReferenceManual.pdf
Скачиваний:
109
Добавлен:
16.04.2015
Размер:
1.63 Mб
Скачать

Programmer’s Model

2.4Data types

The ARM7TDMI processor supports the following data types:

words, 32-bit

halfwords, 16-bit

bytes, 8-bit.

You must align these as follows:

word quantities must be aligned to four-byte boundaries

halfword quantities must be aligned to two-byte boundaries

byte quantities can be placed on any byte boundary.

Note

Memory systems are expected to support all data types. In particular, the system must support subword writes without corrupting neighboring bytes in that word.

2-6

Copyright © 1994-2001. All rights reserved.

ARM DDI 0029G

Programmer’s Model

2.5Operating modes

The ARM7TDMI processor has seven modes of operation:

User mode is the usual ARM program execution state, and is used for executing most application programs.

Fast Interrupt (FIQ) mode supports a data transfer or channel process.

Interrupt (IRQ) mode is used for general-purpose interrupt handling.

Supervisor mode is a protected mode for the operating system.

Abort mode is entered after a data or instruction Prefetch Abort.

System mode is a privileged user mode for the operating system.

Note

You can only enter System mode from another privileged mode by modifying the mode bit of the Current Program Status Register (CPSR).

Undefined mode is entered when an undefined instruction is executed.

Modes other than User mode are collectively known as privileged modes. Privileged modes are used to service interrupts or exceptions, or to access protected resources.

Each register has a mode identifier as listed in Table 2-1.

Table 2-1 Register mode identifiers

Mode

Mode identifier

 

 

User

usr

 

 

Fast interrupt

fiq

 

 

Interrupt

irq

 

 

Supervisor

svc

 

 

Abort

abt

 

 

System

sys

 

 

Undefined

und

 

 

ARM DDI 0029G

Copyright © 1994-2001. All rights reserved.

2-7

Соседние файлы в папке ARM