Set Interrupt Mask Register (Simrn) - Freescale Semiconductor MCF52277 Reference Manual

Table of Contents

Advertisement

Interrupt Controller Modules
Field
5
If set, the interrupt controller automatically loads the level of an interrupt request into the CLMASK (current level
EMASK
mask) when the acknowledge is performed. At the exact same cycle, the value of the current interrupt level mask is
saved in the SLMASK (saved level mask) register.
This feature can be used to support software-managed nested interrupts, and is intended to complement the
interrupt masking functions supported in the ColdFire processor. The value of SLMASK register should be read from
the interrupt controller and saved in the interrupt stack frame in memory, and restored near the service routine's exit.
If cleared, the INTC does not perform any automatic masking of interrupt levels. The state of this bit does not affect
the ColdFire processor's interrupt masking logic in any manner.
4–0
Reserved, must be cleared.
15.2.5

Set Interrupt Mask Register (SIMRn)

The SIMRn register provides a simple mechanism to set a given bit in the IMRn registers to mask the
corresponding interrupt request. The value written to the SIMR field causes the corresponding bit in the
IMRn register to be set. The SIMRn[SALL] bit provides a global set function, forcing the entire contents
of IMRn to be set, thus masking all interrupts. Reads of this register return all zeroes. This register is
provided so interrupt service routines can easily mask the given interrupt request without the need to
perform a read-modify-write sequence on the IMRn register.
Address: 0xFC04_801C (SIMR0)
0xFC04_C01C (SIMR1)
7
R
0
W
Reset:
0
Field
7
Reserved, must be cleared.
6
Set all bits in the IMRn register, masking all interrupt requests.
SALL
0 Only set those bits specified in the SIMR field.
1 Set all bits in IMRn register. The SIMR field is ignored.
5–0
Set the corresponding bit in the IMRn register, masking the interrupt request.
SIMR
15.2.6
Clear Interrupt Mask Register (CIMRn)
The CIMRn register provides a simple mechanism to clear a given bit in the IMRn registers to enable the
corresponding interrupt request. The value written to the CIMR field causes the corresponding bit in the
IMRn register to be cleared. The CIMRn[CALL] bit provides a global clear function, forcing the entire
contents of IMRn to be cleared, thus enabling all interrupts. Reads of this register return all zeroes. This
15-8
Table 15-9. ICONFIGn Field Descriptions (continued)
6
5
0
0
SALL
0
0
Figure 15-8. Set Interrupt Mask Register (SIMRn)
Table 15-10. SIMRn Field Descriptions
MCF52277 Reference Manual, Rev. 1
Description
4
3
0
0
SIMR
0
0
Description
Access: User write-only
2
1
0
0
0
0
0
0
0
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents