?? int.c
字號:
/*
*******************************************************************************
**
** 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.c
** Abstract : This file implements device driver for INT module.
** APIlib : NEC78K0KX2.lib V1.01 [09 Aug. 2005]
**
** Device : uPD78F0513(44-pin)
**
** Compiler : NEC/CC78K0
**
*******************************************************************************
*/
/*
*******************************************************************************
** Include files
*******************************************************************************
*/
#include "macrodriver.h"
#include "int.h"
/*
*******************************************************************************
** MacroDefine
*******************************************************************************
*/
/*
**-----------------------------------------------------------------------------
**
** Abstract:
** This function initializes the external interrupt, key return function.
**
** Parameters:
** None
**
** Returns:
** None
**
**-----------------------------------------------------------------------------
*/
void INT_Init( void )
{
EGP = EGP_INT;
EGN = EGN_INT;
PM12.0 = 1; /* set P120 input mode */
ISC.0 = 0;
PPR0 = 1;
PIF0 = 0;
PMK0 = 0; /* enable INTP0 */
PM3.0 = 1; /* set P30 input mode */
PPR1 = 1;
PIF1 = 0;
PMK1 = 0; /* enable INTP1 */
PM3.1 = 1; /* set P31 input mode */
PPR2 = 1;
PIF2 = 0;
PMK2 = 0; /* enable INTP2 */
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -