};
};
break;
};
/*update display array*/
};
}
void ext0() interrupt 0 using 3 /*外部中断0中断服务函数:键值处理*/
{
unsigned char b=0;
delay_ms(40);
{
b=read7290(0x01); /*读键值寄存器的值*/
switch(b)
{/*键盘:电机键*/
case 33:new=0x01;//new=new&0x67;
if(s==1)
{if (num==1)
num=2;
else
num=1;}
else
{s=1;num=1;
};
break;
/*键盘:温度键*/
case 34:new=0x02;//new=new&0x67;
if (s==2)
{if (num==1)
num=2;
else
num=1;}
else
{s=2;
num=1;
};
break;
/*键盘:电量键*/
case 35:new=0x04;//new=new&0x67;
if (s!=3)
{s=3;
num
首页 上一页 4 5 6 7 8 9 10 下一页 尾页 7/13/13
实验一转速测量与控制(七)由毕业论文网(www.huoyuandh.com)会员上传。