Fujitsu MB95210H Series Application Note page 10

8-bit microcontroller, how to use dbg pin
Hide thumbs Also See for MB95210H Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95200h seriesF2mc-8fx series

Table of Contents