6
/******************************************************************************
***************
* name: close_keyboard
* func: close keyboard interrupt
* para: none
* ret: none
* modify:
* comment:
*******************************************************************************
*************/
void close_keyboard()
{
pISR_EINT1 = NULL;
pISR_EINT4567 = NULL;
/* Mask interrupt */
rINTMSK = rINTMSK | BIT_EINT1 | BIT_EINT4567;
}
/******************************************************************************
***************
* name: KeyboardInt
* func: keyboard interrupt handler function
* para: none
* ret: none
* modify:
* comment:
*******************************************************************************
*************/
void KeyboardInt(void)
{
int nTemp,i,j,k,m=0;
char bbyte;
rI_ISPC = BIT_EINT1; // clear pending bit
char pbyte[10];
nTemp = key_read();
if(nTemp > -1)
{
// Lcd_Draw_HLine(10, 310, 80, WHITE, 50);
input_char = nTemp;
Lcd_DspAscII8x16(15,45,WHITE,word);
switch(input_char)
{
case 0:
num=1;break;