Order Of Initialization - Fujitsu F2MC-FR Series Application Note

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

Advertisement

3.8 Order of Initialization

For the Interrupt initialization the order of the steps has to be done like in the following
example code.
/* 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.
/*
/*---------------------------------------------------------------------------*/
void
InitIrqLevels(void)
{
. . .
ICR08 = 24;
. . .
. . .
}
. . .
void
main(void)
{
InitIrqLevels();
__set_il(31);
__EI();
. . .
}
Note that in this example only the initialization flow is shown. Neither the vector definition nor
the Interrupt service routines are shown here.
MCU-AN-300055-E-V10
INTERRUPTS
Chapter 3 Interrupt Recommendations and Examples
(C) Fujitsu Microelectronics Europe GmbH
/* Reload Timer 0
/* Reload Timer 1
/* First initialize all Interrupt Levels */
/* Set global Interrupt Level to 31
/* Enable Interrupt globally
*/
*/
- 18 -
© Fujitsu Microelectronics Europe GmbH
*/
*/
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91460

Table of Contents