Fujitsu MB91460 SERIES Nota applicativa - Pagina 18

Sfoglia online o scarica il pdf Nota applicativa per Scheda madre Fujitsu MB91460 SERIES. Fujitsu MB91460 SERIES 26. 32-bit microcontroller
Anche per Fujitsu MB91460 SERIES: Manuale d'uso (45 pagine), Come iniziare (41 pagine), Nota applicativa (23 pagine), Nota applicativa (29 pagine), Nota applicativa (29 pagine)

Fujitsu MB91460 SERIES Nota applicativa

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