Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Hoja De Datos

Los códigos de productos
ATSAM4S-WPIR-RD
Descargar
Página de 1231
59
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
12.4.1.8 Program Status Register
Name:
PSR
Access:
 Read
/Write
Reset:
 0x00
0000000
The Program Status Register (PSR) combines:
• Application Program Status Register (APSR)
• Interrupt Program Status Register (IPSR)
• Execution Program Status Register (EPSR).
These registers are mutually exclusive bitfields in the 32-bit PSR.
The PSR accesses these registers individually or as a combination of any two or all three registers, using the register 
name as an argument to the MSR or MRS instructions. For example:
• Read of all the registers using PSR with the MRS instruction
• Write to the APSR N, Z, C, V and Q bits using APSR_nzcvq with the MSR instruction.
The PSR combinations and attributes are:
Notes: 1. The processor ignores writes to the IPSR bits.
2. Reads of the EPSR bits return zero, and the processor ignores writes to these bits.
See the instruction descriptions 
 for more information about how to access the program status registers.
31
30
29
28
27
26
25
24
N
Z
C
V
Q
ICI/IT
T
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
ICI/IT
ISR_NUMBER
7
6
5
4
3
2
1
0
ISR_NUMBER
Name
Access
Combination
PSR
Read/Write
APSR, EPSR, and IPSR
IEPSR
Read-only
EPSR and IPSR
IAPSR
Read/Write
APSR and IPSR
EAPSR
Read/Write
APSR and EPSR