⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 int.h

📁 nec 78K0 样例对程序初始化电表样
💻 H
字号:
/*
*******************************************************************************
**
**  This device driver was created by Applilet for the 78K0/KB2, 78K0/KC2,
**  78K0/KD2, 78K0/KE2 and 78K0/KF2 8-Bit Single-Chip Microcontrollers.
**
**  Copyright(C) NEC Electronics Corporation 2002 - 2005
**  All rights reserved by NEC Electronics Corporation.
**
**  This program should be used on your own responsibility.
**  NEC Electronics Corporation assumes no responsibility for any losses
**  incurred by customers or third parties arising from the use of this file.
**
**  Filename :	int.h
**  Abstract :	This file implements device driver for INT module.
**  APIlib :	NEC78K0KX2.lib V1.01 [09 Aug. 2005]
**
**  Device :	uPD78F0513(44-pin)
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/

#ifndef	_MDINT_
#define	_MDINT_
/*
*******************************************************************************
**  MacroDefine
*******************************************************************************
*/
#define	EGP_INT	0x0
#define	EGN_INT	0x7
#define	PU7_KR	0x0
#define	PM7_KR	0x0
#define	KRM_KR	0x0

enum ExternalINT {
	EX_INTP0, EX_INTP1, EX_INTP2, EX_INTP3,
	EX_INTP4, EX_INTP5
	};

enum INTInputEdge {
	None, RisingEdge, FallingEdge, BothEdge
	};

enum MaskableSource {
	INT_LVI, INT_INTP0, INT_INTP1, INT_INTP2,
	INT_INTP3, INT_INTP4, INT_INTP5, INT_SRE6,
	INT_SR6, INT_ST6, INT_CSI10_ST0, INT_TMH1,
	INT_TMH0, INT_TM50, INT_TM000, INT_TM010,
	INT_AD, INT_SR0, INT_WTI, INT_TM51,
	INT_KR, INT_WT,
	INT_IIC0 = 24
	};
void INT_Init( void );
__interrupt void MD_INTP0( void );
__interrupt void MD_INTP1( void );
__interrupt void MD_INTP2( void );

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -