Fujitsu ALL Series Application Note page 16

16-bit microcontroller
Table of Contents

Advertisement

Please note, that the corresponding interrupt vector and level has to be defined in the
vectors.c module of our standard template project.
/* 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)
{
. . .
ICR = ((17 & 0xFF) << 8) | 6;
ICR = ((18 & 0xFF) << 8) | 6;
}
. . .
__interrupt
void
IRQ_extint0 (void);
__interrupt
void
IRQ_extint1 (void);
. . .
#pragma
intvect IRQ_extint0
#pragma
intvect IRQ_extint1
. . .
MCU-AN -300203-E-V17
EXTERNAL INTERRUPTS
Chapter 4 External Interrupt Examples
(C) Fujitsu Microelectronics Europe GmbH
17
// EXT0 of MB96340 Series
18
// EXT1 of MB96340 Series
// Priority Level 6 for External
// Interrupt 0 of MB96340 Series
// Priority Level 6 for External
// Interrupt 1 of MB96340 Series
// Prototype EXT0
// Prototype EXT1
- 16 -
© Fujitsu Microelectronics Europe GmbH
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16fx family

Table of Contents