Accessing cp15 registers, Terms and abbreviations – Digi NS9750 User Manual

Page 76

Advertising
background image

S y s t e m c o n t r o l p r o c e s s o r ( C P 1 5 ) r e g i s t e r s

5 2

N S 9 7 5 0 H a r d w a r e R e f e r e n c e

Accessing CP15 registers

Use only

MRC

and

MCR

instructions, only in privileged mode, to access CP15 registers.

Figure 11 shows the MRC and MCR instruction bit pattern.

Figure 11: CP15 MRC and MCR bit pattern

The mnemonics for these instructions are:

MCR{cond} p15,opcode_1,Rd,CRn,CRm,opcode_2

MRC{cond} p15,opcode_1,Rd,CRn,CRm,opcode_2

If you try to read from a write-only register or write to a read-only register, you will
have

UNPREDICTABLE

results. In all instructions that access CP15:

The

opcode_1

field

SHOULD BE ZERO

, except when the values specified are used

to select the operations you want. Using other values results in
unpredictable behavior.

The

opcode_2

and

CRm

fields

SHOULD BE ZERO

, except when the values

specified are used to select the behavior you want. Using other values
results in unpredictable behavior.

Terms and abbreviations

Table 17 lists the terms and abbreviations used in the CP15 registers and
explanations.

Cond

1

1

1

0

1

1

1

1

1

L

Opcode

_1

Opcode

_2

CRn

CRm

Rd

31

28 27 26 25 24 23

21 20 19

16 15

12 11 10

9

8

7

5

4

3

0

Term

Abbreviation

Description

UNPREDICTABLE

UNP

For reads:

The data returned when reading from this location is
unpredictable, and can have any value.

For writes:

Writing to this location causes unpredictable
behavior, or an unpredictable change in device
configuration.

Table 17: CP15 terms and abbreviations

Advertising