Fujitsu F2MC-8FX Series Note d'application - Page 10

Parcourez en ligne ou téléchargez le pdf Note d'application pour {nom_de_la_catégorie} Fujitsu F2MC-8FX Series. Fujitsu F2MC-8FX Series 12 pages. 8-bit microcontroller
Également pour Fujitsu F2MC-8FX Series : Manuel d'utilisation (20 pages), Note d'application (23 pages), Manuel de configuration (18 pages), Manuel de configuration (19 pages), Manuel de configuration (30 pages), Note d'application (20 pages), Note d'application (21 pages), Manuel d'utilisation (21 pages), Manuel de configuration (23 pages), Manuel de l'utilisateur (24 pages), Manuel de configuration (17 pages)

Fujitsu F2MC-8FX Series Note d'application
vector.c
/******************************vector.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.
/********************************************************************/
//
VECTORS.C Interrupt level (priority) setting
- Interrupt vector definition
#include
"mb95200.h"
void
InitIrqLevels(void)
{
ILR0 = 0xEF;
ILR1 = 0xFF;
ILR2 = 0xFF;
ILR3 = 0xFF;
ILR4 = 0xFF;
ILR5 = 0xFF;
interrupt ch 12-15
}
//
Prototypes
//================================================================
//Add your own prototypes here. Each vector definition needs is prototype.
Either do it here or include a header file containing them.
DBG pin operation V1.0
Chapter 5 Sample code
// IRQ0:
external interrupt
// IRQ1:
external interrupt
// IRQ2:
external interrupt ch2 | ch6
// IRQ3:
external interrupt ch3 | ch7
// IRQ4:
UART/SIO ch0
// IRQ5:
8/16-bit timer ch0 (lower)
// IRQ6:
8/16-bit timer ch0 (upper)
// IRQ7:
LIN-UART (reception)
// IRQ8:
LIN-UART (transmission)
// IRQ9:
8/16-bit PPG ch1 (lower) | UART/SIO ch1
// IRQ10: 8/16-bit PPG ch1 (upper) | I2C ch1
// IRQ11: 16-bit reload timer ch0
// IRQ12: 8/16-bit PPG ch0 (upper)
// IRQ13: 8/16-bit PPG ch0 (lower)
// IRQ14: 8/16-bit timer ch1 (upper)
// IRQ15: 16-bit PPG ch0 + ch2
// IRQ16: 16-bit reload timer ch1 | I2C ch0
// IRQ17: 16-bit PPG ch1
// IRQ18: 10-biat A/D-converter
// IRQ19: Timebase timer
// IRQ20: Watch timer / counter
// IRQ21: external interrupt ch 8-11
// IRQ22: 8/16-bit timer ch1 (lower) | external
//
IRQ23: Flash | Custom ch1
MCU-AN-500009-E-10 – Page 10
ch4
--> 01
ch5
--> 01
--> 01
--> 01
--> 01