Read MT-R300 text version

MT-R300

1

MT-R300 16 HD64F3062BF H8/3062BF H8/300H RAM RAM 16 0 LED_PICOPICO_H8_IntHEW

MT-R300 CD-ROM Ver1.00 H8/300H H8/300H MT-R300 CD-ROMVer1.00 H8/300H MT-R300

2.

RAM

PC

RAM

PC

1 7

3.

C "V_Vector"

#include <machine.h> #include "LED_PICOPICO_H8.h"

#pragma interrupt (INT_IMIA0) void INT_IMIA0(void); #pragma section V_Vector void (*const VEC_TBL1[])(void)= { INT_IMIA0 }; #pragma section IntPRG void INT_IMIA0(void) { static int counter_1sec; ITU.TISRA.BIT.IMFA0 = 0; counter_1sec++; if (counter_1sec>=100) { counter_1sec=0; LED1 = ~LED1; LED2 = ~LED2; } }

/*1 /* /*1 /*1 /*1 /*LED1 /*LED2

*/ */ */ 100 10ms */ */ */ 100=1 */

1intprg_debug.c

4. HEW

RAM MT-R300 CD-ROM RAM 7 FF040H 5 1F8000H RAM 16 0 A0 0060H 0063H 60H 1 160A0

7 0 A0 FF040H FF13Fh FF0A0HFF040H + 60H FF0A3H 5 1F8000H 1F80FFH 1F8060H1F8000H + 60H 1F8063H

MT-R300

HEW HEW H8S,H8/300 Standard Toolchain...

2 HEW7

3 7

7 FF13F 5 1F80FFH FF0A0H FF0A3H 4 CV_Vector FF0A4H

5

6 0 1

#pragma section V_Vector void (*const VEC_TBL1[])(void)= { INT_IMIA0, dummy, /* IMIB0 */ dummy, /* OVI0 */ dummy, /* Reserved */ INT_IMIA1 }; #pragma section IntPRG void INT_IMIA0(void) { } void INT_IMIA1(void) { } void dummy(void) { ; }

2 1

#pragma section V_Vector void (*const VEC_TBL1[])(void)= { INT_IMIA0 }; #pragma section V_Vector_02 void (*const VEC_TBL2[])(void)= { INT_IMIA1 }; #pragma section IntPRG void INT_IMIA0(void) { } void INT_IMIA1(void) { }

3

MT-R300

6. HEW

MT-R300 HEW Debug Release 2

#ifdef #else #end debug #ifdef debug-DEFineDebug

#include <machine.h> #include "LED_PICOPICO_H8.h"

#ifdef debug #pragma interrupt (INT_IMIA0) void INT_IMIA0(void); #pragma section V_Vector void (*const VEC_TBL1[])(void)= { INT_IMIA0 }; #endif #pragma section IntPRG #ifdef debug void INT_IMIA0(void) { #else __interrupt(vect=24) void INT_IMIA0(void) { #endif static int counter_1sec; ITU.TISRA.BIT.IMFA0 = 0; counter_1sec++; if (counter_1sec>=100) { counter_1sec=0; LED1 = ~LED1; LED2 = ~LED2; } } /*1 /* /*1 /*1 /*1 /*LED1 /*LED2 100 10ms */ */ */ */ */ */ 100=1 */

4

HEW

HEW HEW H8S,H8/300 Standard Toolchain... Debug -DEFine=debug

4 -DEFine

intprg.cintprg_debug.c Debug intprg.cRelease intprg_debug.c

5

MT-R300

#include <machine.h> #include "LED_PICOPICO_H8.h" #pragma interrupt (INT_IMIA0) void INT_IMIA0(void); #pragma section V_Vector void (*const VEC_TBL1[])(void)= { INT_IMIA0 }; #pragma section IntPRG void INT_IMIA0(void) { static int counter_1sec; ITU.TISRA.BIT.IMFA0 = 0; counter_1sec++; if (counter_1sec>=100) { counter_1sec=0; LED1 = ~LED1; LED2 = ~LED2; } }

/*1 /* /*1 /*1 /*1 /*LED1 /*LED2

*/ */ */ 100 10ms */ */ */ 100=1 */

#include <machine.h> #include "LED_PICOPICO_H8.h" #pragma section IntPRG __interrupt(vect=24) void INT_IMIA0(void) { static int counter_1sec; ITU.TISRA.BIT.IMFA0 = 0; counter_1sec++; if (counter_1sec>=100) { counter_1sec=0; LED1 = ~LED1; LED2 = ~LED2; } } /*1 /* /*1 /*1 /*1 /*LED1 /*LED2 100 10ms */ */ */ */ */ */ 100=1 */

5

H8/300H Microsoft®Windows® Microsoft https:// www.sunhayato.co.jp/inquiry/ http://www.sunhayato.co.jp/

Copyright© 2008 Sunhayato Corp.

2008 8 20 REV.1.00 SG043273

www.sunhayato.co.jp

Information

MT-R300

8 pages

Find more like this

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

831301