文件名称:pvpvc
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 50kb
- 下载次数:
- 0次
- 提 供 者:
- 微*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
遥控解码通过电脑串口显示
/* 晶振:11.0569MHz */
#include <REGX52.h>
#define uchar unsigned char
uchar data IRcode[4] //定义一个4字节的数组用来存储代码
uchar CodeTemp //编码字节缓存变量
uchar i,j,k //延时用的循环变量
sbit IRsignal=P3^2 //HS0038接收头OUT端直接连P3.2(INT0)
/**************************延时0.9ms子程序**********************/
void Delay0_9ms(void)
{uchar j,k
for(j=18 j>0 j--)
for(k=20 k>0 k--)
}
/***************************延时1ms子程序**********************/
void Delay1ms(void)
{uchar i,j
for(i=2 i>0 i--)
for(j=230 j>0 j--)
}-Remote control via the computer serial decode show/* Crystal: 11.0569MHz* /# Include <REGX52.h># Define uchar unsigned charuchar data IRcode [4]// define a 4-byte array used to store code uchar CodeTemp// encoding variable byte cache uchar i, j, k// delay cycle with variable sbit IRsignal = P3 ^ 2// HS0038 receive the first direct link OUT terminal P3.2 (INT0 )/************************** 0.9ms delay**********************/ void Subroutine Delay0_9ms (void) (uchar j, k for (j = 18 j> 0 j-) for (k = 20 k> 0 k-) }/*************************** Subroutine 1ms delay**********************/ void Delay1ms (void) (uchar i, j for (i = 2 i> 0 i-) for (j = 230 j> 0 j-))
/* 晶振:11.0569MHz */
#include <REGX52.h>
#define uchar unsigned char
uchar data IRcode[4] //定义一个4字节的数组用来存储代码
uchar CodeTemp //编码字节缓存变量
uchar i,j,k //延时用的循环变量
sbit IRsignal=P3^2 //HS0038接收头OUT端直接连P3.2(INT0)
/**************************延时0.9ms子程序**********************/
void Delay0_9ms(void)
{uchar j,k
for(j=18 j>0 j--)
for(k=20 k>0 k--)
}
/***************************延时1ms子程序**********************/
void Delay1ms(void)
{uchar i,j
for(i=2 i>0 i--)
for(j=230 j>0 j--)
}-Remote control via the computer serial decode show/* Crystal: 11.0569MHz* /# Include <REGX52.h># Define uchar unsigned charuchar data IRcode [4]// define a 4-byte array used to store code uchar CodeTemp// encoding variable byte cache uchar i, j, k// delay cycle with variable sbit IRsignal = P3 ^ 2// HS0038 receive the first direct link OUT terminal P3.2 (INT0 )/************************** 0.9ms delay**********************/ void Subroutine Delay0_9ms (void) (uchar j, k for (j = 18 j> 0 j-) for (k = 20 k> 0 k-) }/*************************** Subroutine 1ms delay**********************/ void Delay1ms (void) (uchar i, j for (i = 2 i> 0 i-) for (j = 230 j> 0 j-))
(系统自动生成,下载前可以参看下载内容)
下载文件列表
遥控解码通过电脑串口显示
........................\IRCOM
........................\ircom.c
........................\IRCOM.hex
........................\IRCOM.lnp
........................\ircom.LST
........................\IRCOM.M51
........................\ircom.OBJ
........................\IRCOM.Opt
........................\IRCOM.plg
........................\IRCOM.Uv2
........................\IRCOM_Uv2.Bak
........................\实验说明 .txt
........................\IRCOM
........................\ircom.c
........................\IRCOM.hex
........................\IRCOM.lnp
........................\ircom.LST
........................\IRCOM.M51
........................\ircom.OBJ
........................\IRCOM.Opt
........................\IRCOM.plg
........................\IRCOM.Uv2
........................\IRCOM_Uv2.Bak
........................\实验说明 .txt