Fujitsu MB91460 SERIES Nota aplikacyjna - Strona 18

Przeglądaj online lub pobierz pdf Nota aplikacyjna dla Płyta główna Fujitsu MB91460 SERIES. Fujitsu MB91460 SERIES 26 stron. 32-bit microcontroller
Również dla Fujitsu MB91460 SERIES: Podręcznik użytkownika (45 strony), Pierwsze kroki (41 strony), Nota aplikacyjna (23 strony), Nota aplikacyjna (29 strony), Nota aplikacyjna (29 strony)

Fujitsu MB91460 SERIES Nota aplikacyjna

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
*/
*/
*/
*/