ARM920T coprocessor CP15

Publisher:量子启示Latest update time:2015-04-08 Source: eechinaKeywords:ARM920T Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The ARM920T processor contains the ARM9TDMI core, which implements the ARM architecture v4T. The








ARM920T processor contains two coprocessors:

CP14. Used for debugging

CP15. System control coprocessor, provides additional registers to configure and control cache, MMU, protection system, clock mode, and other system options of the ARM920T, such as big and small endian operation. You can use MCR, MRC to access the registers defined in CP15.

CP15 defines 16 registers, and the register mapping diagram is as follows:







Note: Register position 0 can access two registers, determined by the value of opcode_2.

ARM920T has 3 addresses.











CP15 can only be accessed in privileged mode using MCR and MRC instructions. The format of these instructions is:

MCR/MRC{cond} P15,,Rd,CRn,CRm, 

instructions CDP, LDC, STC and MRC, MCR instructions in non-privileged mode operate CP15 will cause undefined instruction exception. The CRn field of the MRC and MCR instructions specifies the coprocessor register to be accessed. The opcode_1, and CRm fields should be 0 unless a value is specified to select the desired operation.

Register 0, ID code register

can be set to any value except 1 by reading CP15 register 0. The opcode_2 field should be 0 (CRm should be 0 when reading).

For example:

MRC p15,0,Rd,c0,c0,0;return ID register







cache type register 0

contains information about the size and architecture of the cache. The cache type register can be accessed by setting the field to 1 and reading CP15 register 0. For example:

MRC p15,0,Rd,c0,c0,1;returns cache details







The Dsize and Isize fields have the same format:















Register 1, control register

This register contains the control bits for the ARM920T.

MRC p15,0,Rd,c1,c0,0 ;read control register

MCR p15,0,Rd,c1,c0,0;write control register











[page]





Register 2, translation table base (TTB) register

This is the page table base register.







Use the following instructions to access the TTB:

MRC p15,0,Rd,c2,c0,0;read TTB register

MCR p15,0,Rd,c2,c0,0;write TTB register

Register 3,domain access control register

This is the read and write domain access control register.

















MRC p15,0,Rd,c3,c0,0;read domain 15:0 access permissions

MCR p15,0,Rd,c3,c0,0;write domain 15:0 access permissions

Register 4,reserved

Register 5,fault status registers

Register 6,fault address registers

Register 7,cache operations register







Register 8,TLB operations register

is used to manage Translation Lookaside Buffers (TLBs), instruction TLB and data TLB.







Register 9,cache lockdown register

opcode_2=0x0 accesses Dcache 

opcode_2=0x1 accesses Icache









Regiter 10,TLB lockdown register

opcode_2=0x0 accesses D TLB 

opcode_2=0x1 accesses I TLB







Register 11,12,and 14,reserved

Register 13,FCSE PID register

is the fast context switch extension register.








MRC p15,0,Rd,c13,c0,0;read FCSE_PID

MCR p15,0,Rd,c13,c0,0; write FCSE_PID

The addresses issued by ARM9TDMI in the range of 0 to 32MB are converted by register 13 of CP15. Address A becomes A+(FCSE_PID×32MB). FCSE_PID is a 7-bit field that enables 128×32MB of processes to be mapped.









Register 15,test configuration register
Keywords:ARM920T Reference address:ARM920T coprocessor CP15

Previous article:ARM core 920T performance optimization MMU
Next article:ARM920T Clockmodes

Recommended ReadingLatest update time:2024-11-15 16:23

Introduction to ARM coprocessor CP15
Overview In ARM-based embedded application systems, the operation of the storage system is usually completed by the coprocessor CP15. CP15 contains 16 32-bit registers, which are numbered from 0 to 15. The instructions for accessing CP15 registers are mainly MCR and MRC. MRC: Data transfer instruction from coprocess
[Microcontroller]
Introduction to ARM coprocessor CP15
ARM920T System Bus Timing Analysis
1. System bus timing diagram 2. Analysis At the beginning of the first clock cycle, the system address bus gives the address of the storage space to be accessed. After the Tacs time, the chip select signal is given accordingly and the address information on the current address line is latched. After Tcso time, the p
[Microcontroller]
ARM920T System Bus Timing Analysis
A Fieldbus Control System Based on ARM920T
   1. Introduction   With the gradual automation and modernization of industrial control systems, fieldbus control systems have received more and more attention and application. CAN bus is currently a fieldbus with simple development and high performance-price ratio. Compared with other fieldbuses, CAN communication
[Microcontroller]
A Fieldbus Control System Based on ARM920T
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号