Fujitsu MB95200H/210H Series Application Note page 10

Hide thumbs Also See for MB95200H/210H Series:
Table of Contents

Advertisement

vector.c
/******************************vector.c*********************************/
THIS SAMPLE CODE IS PROVIDED AS IT IS AND IS SUBJECT TO ALTERATIONS. FUJITSU
MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
INFRINGEMENT FOR ANY PURPOSES.
/********************************************************************/
// VECTORS.C Interrupt level (priority) setting
- Interrupt vector definition
#include
"mb95200.h"
void
InitIrqLevels(void)
{
ILR0 = 0xEF;
// IRQ0: external interrupt ch4
// IRQ1: external interrupt ch5
// IRQ2: external interrupt ch2 | ch6 --> 01
// IRQ3: external interrupt ch3 | ch7 --> 01
ILR1 = 0xFF;
// IRQ4: UART/SIO ch0
// IRQ5: 8/16-bit timer ch0 (lower)
// IRQ6: 8/16-bit timer ch0 (upper)
// IRQ7: LIN-UART (reception)
ILR2 = 0xFF;
// 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
ILR3 = 0xFF;
// 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
ILR4 = 0xFF;
// IRQ16: 16-bit reload timer ch1 | I2C ch0
// IRQ17: 16-bit PPG ch1
// IRQ18: 10-biat A/D-converter
// IRQ19: Timebase timer
ILR5 = 0xFF;
// IRQ20: Watch timer / counter
// IRQ21: external interrupt ch 8-11
// IRQ22: 8/16-bit timer ch1 (lower) | external interrupt ch 12-15
// IRQ23: Flash | Custom ch1
}
// Prototypes
//================================================================
//Add your prototypes, each vector definition needs a prototype. Either do it here or include a header
file containing them.
DBG pin operation V1.0
Chapter 5 Sample code
--> 01
--> 01
--> 01
MCU-AN-500009-E-10 – Page 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95200h seriesMb95210h series

Table of Contents