文件名称:Ex_Int-500007
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 178kb
- 下载次数:
- 0次
- 提 供 者:
- Shi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1
概要
本文档介绍了如何设置并使用外部中断。
本文档同时描述了外部中断的功能,并给出了具体实例。
MCU-AN--/* 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. */
/* (C) Fujitsu Microelectronics (Shanghai) Co., LTD. */
/* Date:20080320 Version:1V0 Author:Levi */
/*-------------------------------------------------------------------------*/
/******************************************************************************
NAME: main.c
FUNCTION: Give a exmaple for mode switch with external interrupt
******************************************************************************/
#include "mb95200.h"
#define RUNMODE 1
#define STOPREQUEST 0
unsigned char status
/*****************************************************************************
NAME: InitExtInt0206 ()
FUNCTION: initial external interrupt
*************************************************************
概要
本文档介绍了如何设置并使用外部中断。
本文档同时描述了外部中断的功能,并给出了具体实例。
MCU-AN--/* 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. */
/* (C) Fujitsu Microelectronics (Shanghai) Co., LTD. */
/* Date:20080320 Version:1V0 Author:Levi */
/*-------------------------------------------------------------------------*/
/******************************************************************************
NAME: main.c
FUNCTION: Give a exmaple for mode switch with external interrupt
******************************************************************************/
#include "mb95200.h"
#define RUNMODE 1
#define STOPREQUEST 0
unsigned char status
/*****************************************************************************
NAME: InitExtInt0206 ()
FUNCTION: initial external interrupt
*************************************************************
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Ex_Int-500007
.............\EI_Basic
.............\........\Debug
.............\........\.....\ABS
.............\........\.....\...\EI_Basic.abs
.............\........\.....\...\EI_Basic.mhx
.............\........\.....\EI_Basic.sup
.............\........\.....\LST
.............\........\.....\...\EI_Basic.mp1
.............\........\.....\OBJ
.............\........\.....\...\main.obj
.............\........\.....\...\main.stk
.............\........\.....\...\mb95200.obj
.............\........\.....\...\startup.obj
.............\........\.....\...\vectors.obj
.............\........\.....\...\vectors.stk
.............\........\.....\...\_f2mc8fx.obj
.............\........\.....\...\_f2mc8fx.stk
.............\........\.....\...\_f2mc8fx_a.obj
.............\........\.....\OPT
.............\........\.....\...\EI_Basic.opa
.............\........\.....\...\EI_Basic.opb
.............\........\.....\...\EI_Basic.opc
.............\........\.....\...\EI_Basic.opl
.............\........\.....\...\EI_Basic.opv
.............\........\EI_Basic.dat
.............\........\EI_Basic.prj
.............\........\EI_Basic.wsp
.............\........\src
.............\........\...\ioreg.txt
.............\........\...\ioregj.txt
.............\........\...\ioregj_a.txt
.............\........\...\ioreg_a.txt
.............\........\...\main.c
.............\........\...\mb95200.h
.............\........\...\mb95200_a.inc
.............\........\...\startup.asm
.............\........\...\vectors.c
.............\........\...\_f2mc8fx.c
.............\........\...\_f2mc8fx.h
.............\........\...\_f2mc8fx_a.asm
.............\EI_ModeSwitch
.............\.............\Debug
.............\.............\.....\ABS
.............\.............\.....\...\EI_ModeSwitch.abs
.............\.............\.....\...\EI_ModeSwitch.mhx
.............\.............\.....\EI_ModeSwitch.sup
.............\.............\.....\LST
.............\.............\.....\...\EI_ModeSwitch.mp1
.............\.............\.....\OBJ
.............\.............\.....\...\main.obj
.............\.............\.....\...\main.stk
.............\.............\.....\...\mb95200.obj
.............\.............\.....\...\startup.obj
.............\.............\.....\...\vectors.obj
.............\.............\.....\...\vectors.stk
.............\.............\.....\...\_f2mc8fx.obj
.............\.............\.....\...\_f2mc8fx.stk
.............\.............\.....\OPT
.............\.............\.....\...\EI_ModeSwitch.opa
.............\.............\.....\...\EI_ModeSwitch.opb
.............\.............\.....\...\EI_ModeSwitch.opc
.............\.............\.....\...\EI_ModeSwitch.opl
.............\.............\.....\...\EI_ModeSwitch.opv
.............\.............\EI_ModeSwitch.dat
.............\.............\EI_ModeSwitch.prj
.............\.............\EI_ModeSwitch.wsp
.............\.............\src
.............\.............\...\ioreg.txt
.............\.............\...\ioregj.txt
.............\.............\...\ioregj_a.txt
.............\.............\...\ioreg_a.txt
.............\.............\...\main.c
.............\.............\...\mb95200.h
.............\.............\...\mb95200_a.inc
.............\.............\...\startup.asm
.............\.............\...\vectors.c
.............\.............\...\_f2mc8fx.c
.............\.............\...\_f2mc8fx.h
.............\.............\...\_f2mc8fx_a.asm
.............\EI_Basic
.............\........\Debug
.............\........\.....\ABS
.............\........\.....\...\EI_Basic.abs
.............\........\.....\...\EI_Basic.mhx
.............\........\.....\EI_Basic.sup
.............\........\.....\LST
.............\........\.....\...\EI_Basic.mp1
.............\........\.....\OBJ
.............\........\.....\...\main.obj
.............\........\.....\...\main.stk
.............\........\.....\...\mb95200.obj
.............\........\.....\...\startup.obj
.............\........\.....\...\vectors.obj
.............\........\.....\...\vectors.stk
.............\........\.....\...\_f2mc8fx.obj
.............\........\.....\...\_f2mc8fx.stk
.............\........\.....\...\_f2mc8fx_a.obj
.............\........\.....\OPT
.............\........\.....\...\EI_Basic.opa
.............\........\.....\...\EI_Basic.opb
.............\........\.....\...\EI_Basic.opc
.............\........\.....\...\EI_Basic.opl
.............\........\.....\...\EI_Basic.opv
.............\........\EI_Basic.dat
.............\........\EI_Basic.prj
.............\........\EI_Basic.wsp
.............\........\src
.............\........\...\ioreg.txt
.............\........\...\ioregj.txt
.............\........\...\ioregj_a.txt
.............\........\...\ioreg_a.txt
.............\........\...\main.c
.............\........\...\mb95200.h
.............\........\...\mb95200_a.inc
.............\........\...\startup.asm
.............\........\...\vectors.c
.............\........\...\_f2mc8fx.c
.............\........\...\_f2mc8fx.h
.............\........\...\_f2mc8fx_a.asm
.............\EI_ModeSwitch
.............\.............\Debug
.............\.............\.....\ABS
.............\.............\.....\...\EI_ModeSwitch.abs
.............\.............\.....\...\EI_ModeSwitch.mhx
.............\.............\.....\EI_ModeSwitch.sup
.............\.............\.....\LST
.............\.............\.....\...\EI_ModeSwitch.mp1
.............\.............\.....\OBJ
.............\.............\.....\...\main.obj
.............\.............\.....\...\main.stk
.............\.............\.....\...\mb95200.obj
.............\.............\.....\...\startup.obj
.............\.............\.....\...\vectors.obj
.............\.............\.....\...\vectors.stk
.............\.............\.....\...\_f2mc8fx.obj
.............\.............\.....\...\_f2mc8fx.stk
.............\.............\.....\OPT
.............\.............\.....\...\EI_ModeSwitch.opa
.............\.............\.....\...\EI_ModeSwitch.opb
.............\.............\.....\...\EI_ModeSwitch.opc
.............\.............\.....\...\EI_ModeSwitch.opl
.............\.............\.....\...\EI_ModeSwitch.opv
.............\.............\EI_ModeSwitch.dat
.............\.............\EI_ModeSwitch.prj
.............\.............\EI_ModeSwitch.wsp
.............\.............\src
.............\.............\...\ioreg.txt
.............\.............\...\ioregj.txt
.............\.............\...\ioregj_a.txt
.............\.............\...\ioreg_a.txt
.............\.............\...\main.c
.............\.............\...\mb95200.h
.............\.............\...\mb95200_a.inc
.............\.............\...\startup.asm
.............\.............\...\vectors.c
.............\.............\...\_f2mc8fx.c
.............\.............\...\_f2mc8fx.h
.............\.............\...\_f2mc8fx_a.asm