SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 144

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
10.18.7
10.18.7.1
10.18.7.2
10.18.7.3
10.18.7.4
10.18.7.5
144
MSR
SAM3N
CONTROL, R1 ; Read R1 value and write it to the CONTROL register
MSR
Syntax
Operation
Restrictions
Condition flags
Examples
Move the contents of a general-purpose register into the specified special register.
where:
cond
Rn
spec_reg
PRIMASK, BASEPRI, BASEPRI_MAX, FAULTMASK, or CONTROL.
The register access operation in MSR depends on the privilege level. Unprivileged software can
only access the APSR, see
ware can access all special registers.
In unprivileged software writes to unallocated or execution state bits in the PSR are ignored.
When you write to BASEPRI_MAX, the instruction writes to BASEPRI only if either:
See
Rn must not be SP and must not be PC.
This instruction updates the flags explicitly based on the value in Rn.
• Rn is non-zero and the current BASEPRI value is 0
• Rn is non-zero and less than the current BASEPRI value.
MSR{cond} spec_reg, Rn
“MRS” on page
is an optional condition code, see
is the source register.
can be any of: APSR, IPSR, EPSR, IEPSR, IAPSR, EAPSR, PSR, MSP, PSP,
143.
“Application Program Status Register” on page
“Conditional execution” on page
11011A–ATARM–04-Oct-10
47. Privileged soft-
84.

Related parts for SAM3N0C