Fujitsu ALL Series Application Note page 13

16-bit microcontroller
Table of Contents

Advertisement

Please note, that the ISRs for the External Interrupts and the Reload Timer also has to be
defined in vectors.c.
/* 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 = ((51 & 0xFF) << 8) | 5;
}
__interrupt
void
IRQHandler_EI0 (void);
__interrupt
void
IRQHandler_RLT0 (void);
#pragma
intvect IRQHandler_EI0
#pragma
intvect IRQHandler_RLT0
Also make sure that the RLT0 interrupt priority is higher than that of External Interrupt 0, in
order to avoid nesting of interrupts.
© Fujitsu Microelectronics Europe GmbH
EXTERNAL INTERRUPTS
Chapter 4 External Interrupt Examples
(C) Fujitsu Microelectronics Europe GmbH
17
51
// Priority Level 6 for External
// Interrupt 0 of MB96340 Series
// Priority Level 5 for Reload
// Timer 0 of MB96340 Series
// Prototype
// Prototype
// EXT0 of MB96340 Series
// RLT0 of MB96340 Series
- 13 -
*/
*/
MCU-AN -300203-E-V17

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16fx family

Table of Contents