Enabling And Disabling Interrupts Globally - Fujitsu F2MC-FR Series Application Note

32-bit microcontroller
Hide thumbs Also See for F2MC-FR Series:
Table of Contents

Advertisement

/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES.
/*
/*---------------------------------------------------------------------------*/
__set_il(20);

3.7 Enabling and Disabling Interrupts globally

To enable Interrupts globally use the __EI() language extension. __DI() disables
Interrupts globally. Both extensions access the I-Bit in the Condition Code Register.
Please also see 2.5.1.2.
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES.
/*
/*---------------------------------------------------------------------------*/
. . .
__EI();
/* Enable Interrupts globally */
. . .
__DI();
/* Disable Interrupts globally */
. . .
© Fujitsu Microelectronics Europe GmbH
INTERRUPTS
Chapter 3 Interrupt Recommendations and Examples
(C) Fujitsu Microelectronics Europe GmbH
(C) Fujitsu Microelectronics Europe GmbH
- 17 -
*/
*/
*/
*/
MCU-AN-300055-E-V10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91460

Table of Contents