一、仿真原理图:
二、仿真效果:
三、相关代码:
1、定时中断:
void Time0(void ) interrupt 1 using 1
{
count++;
if(count == 50)
{
count = 0;
buffer = keyScan();
if(buffer < 16)
{
value[index++] = buffer;
if(index >= 8)
{
if((value[0] == 8) && (value[1] =&