(VI) ARM Status Register - PSR

Publisher:月光男孩Latest update time:2017-02-04 Source: eefocusKeywords:ARM  PSR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

ARM Program State Register

In ARM mode, there are 16 data registers and 1 or 2 status registers that are accessible at any time. In privileged mode  , the corresponding special group of registers can be used.

operating mode ;

The functions of each bit of the status register are as follows:

Among them, it is important to pay attention to the upper 4 bits (28-31) and the lower 8 bits (0-7). 
Note: 
- DNM (Do Not Modify): different from the assignment by software; 
- Condition code flags: N, Z, C, V. These bits can be operated by logical or arithmetic operations, or MSR and LDM instructions. The processor will test these flags to determine whether to operate some instructions.

- Control bits (lower 8 bits I, F, T, M[4:0]). When an exception occurs, the values ​​of these bits will change accordingly. In privileged mode, these bits can also be modified by software. They are used more frequently.


Keywords:ARM  PSR Reference address:(VI) ARM Status Register - PSR

Previous article:(V) STM32 engineering code HardFault exception error checking and debugging method
Next article:(VII) Remote location of abnormal programs in embedded systems

Recommended ReadingLatest update time:2024-11-16 14:36

ARM processor architecture
The ARM architecture is the foundation on which every ARM processor is built. The ARM architecture has evolved over time to include architectural features that address growing new features, high performance requirements, and the needs of emerging markets. For information on the latest announced version, see ARMv8 Ar
[Microcontroller]
ARM processor architecture
ARM series: "What is architecture"
After studying the book "Embedded Systems - Using Open Source and StrongARM/XScale Processors", I have a more comprehensive and in-depth understanding of the ARM core architecture, which corrected many of my previous misunderstandings. Now, with the ARM core architecture as the main line, I will summarize the relevant
[Microcontroller]
Design of wireless audio and video intercom system based on ARM Linux
With the advent of the digital and networking era, especially the development of broadband wireless networks, it has provided an opportunity for the application of large-volume transmission services such as audio and video on wireless networks. At the same time, due to the unique sensory characteristics of audio and v
[Microcontroller]
Design of wireless audio and video intercom system based on ARM Linux
Software optimization design based on ARM processor
Introduction With the extensive application of embedded systems in industrial control, automotive systems, home networks, medical and health care, wireless technology and other fields, embedded system developers must face a variety of complex challenges, including how to balance code performance and system cost. In
[Microcontroller]
Software optimization design based on ARM processor
Mode registers in ARM state
Summary of each mode register in ARM state All 37 registers are divided into two categories: 31 general-purpose 32-bit registers (actually all corresponding physical registers) 6 status registers R8 and R8_fig are different registers R0-R7 are ungrouped registers. For any processor mode, these registers corresp
[Microcontroller]
Mode registers in ARM state
Design of ARM embedded automobile energy-saving control system
How the system works This system mainly consists of three parts, namely the detection part, the control part and the actuator. The detection part includes the detection of signals such as the pedal position sensor, the crankshaft position sensor, the compressor piston position sensor, the vehicle running speed sensor,
[Microcontroller]
Design of ARM embedded automobile energy-saving control system
Design and implementation of signal transmitter controller based on ARM44B0x
1 Introduction The signal transmitter used on the ship works continuously, so a controller is needed to monitor the working status of the transmitter. It is common to use a single-chip microcomputer as the core of the controller, but because 32-bit microprocessors have better accuracy and reliability and low cost and
[Microcontroller]
Design and implementation of signal transmitter controller based on ARM44B0x
Using Qt ARM cross-compilation prompts "This Qt version has an unknown tool chain"
In Tools- Options- Qt4 (the higher version of Qt is "Tools- Options- Compile and Run- Qt4"), when adding the ARM version of qmake, it prompts "This Qt version has an unknown tool chain" I encountered two situations where this was prompted. The first one is because QtCreator does not have permission to access the mks
[Microcontroller]
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号