大家好,小弟写了一个关于接受红外线遥控的程序。因本人不知道该遥控器的代码,故添加了串口程序进行查看。但发现我无论按什么键,代码都是F。不知道小弟哪里写错了。请各位大神指点一下,谢谢!
#include
#include
#define har unsigned char
#define chen unsigned int
***it hw=P3^2;
har num1,flg;
har a,z,i,k,temp;
har table[4]={0};
chen num;
void delay(har d)
{
har x,y;
for(x=20;x>0;x--)
for(y=d;y>0;y--);
}