基于8952单片机的红外解码(TC9012F编码)
虽然重点在后面,但是先上个程序
#include
#include
#include
////////////////////////////////////////////////
sbit ir=P3^2;//红外接口标志
////////////////////////////////////////////
unsigned char
bit irpro_ok,irok;
unsigned char ircord[4];
unsigned char
//////////////////////////////////////////////
void ir_work(void);
void ircordpro(void);
//////////////////////////////////////////////////////////////////
void tim0_isr (void) interrupt 1 using 1//定时器0中断服务函数
{
}
///////////////////////////////////////////////////////////////////////
void ex0_isr (void) interrupt 0 using 0//外部中断0服务函数
{
}
////////////////////////////////////////////////////////////////////
void TIM0init(void)//定时器0初始化
{
}
///////////////////////////////////////////////////////////////////
void EX0init(void)
{
}
关键词: 8952单片机红外解码TC9012F编
加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码