文件名称:chip1
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 12.08mb
- 下载次数:
- 0次
- 提 供 者:
- 微*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VB遥控播放器红外遥控解码
#include <regX52.h>
#define c(x) (x*110592/120000)
sbit Ir_Pin=P3^2
sbit beep=P2^1
//sbit RELAY=P2^0
#define INBUF_LEN 4 //数据长度
unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //发送缓冲区
unsigned char inbuf2[50] //接收缓冲区
unsigned char count3
void init_serialcomm( void )
{
SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr
T2CON=0x30
TH2=0x00
TL2=0x00
RCAP2H=0xFF
RCAP2L=0xDC
TR2=1
}
//向串口发送一个字符
void send_char_com( unsigned char ch)
{
SBUF=ch
while (TI== 0 )
TI= 0-VB player remote control infrared remote control decoder# Include <regX52.h># Define c (x) (x* 110592/120000) sbit Ir_Pin = P3 ^ 2 sbit beep = P2 ^ 1// sbit RELAY = P2 ^ 0# define INBUF_LEN 4// data length unsigned char inbuf1 [INBUF_LEN] = (0, 0, 0, 0)// Send buffer unsigned char inbuf2 [50]// receive buffer unsigned char count3 void init_serialcomm (void) ( SCON = 0x50// SCON: serail mode 1, 8-bit UART, enable ucvrT2CON = 0x30 TH2 = 0x00 TL2 = 0x00 RCAP2H = 0xFF RCAP2L = 0xDC TR2 = 1)// to send a serial character void send_char_com (unsigned char ch ) (SBUF = ch while (TI == 0) TI = 0
#include <regX52.h>
#define c(x) (x*110592/120000)
sbit Ir_Pin=P3^2
sbit beep=P2^1
//sbit RELAY=P2^0
#define INBUF_LEN 4 //数据长度
unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //发送缓冲区
unsigned char inbuf2[50] //接收缓冲区
unsigned char count3
void init_serialcomm( void )
{
SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr
T2CON=0x30
TH2=0x00
TL2=0x00
RCAP2H=0xFF
RCAP2L=0xDC
TR2=1
}
//向串口发送一个字符
void send_char_com( unsigned char ch)
{
SBUF=ch
while (TI== 0 )
TI= 0-VB player remote control infrared remote control decoder# Include <regX52.h># Define c (x) (x* 110592/120000) sbit Ir_Pin = P3 ^ 2 sbit beep = P2 ^ 1// sbit RELAY = P2 ^ 0# define INBUF_LEN 4// data length unsigned char inbuf1 [INBUF_LEN] = (0, 0, 0, 0)// Send buffer unsigned char inbuf2 [50]// receive buffer unsigned char count3 void init_serialcomm (void) ( SCON = 0x50// SCON: serail mode 1, 8-bit UART, enable ucvrT2CON = 0x30 TH2 = 0x00 TL2 = 0x00 RCAP2H = 0xFF RCAP2L = 0xDC TR2 = 1)// to send a serial character void send_char_com (unsigned char ch ) (SBUF = ch while (TI == 0) TI = 0
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本站原创 VB遥控播放器红外遥控解码
.................................\s51yaokong
.................................\s51yaokong.hex
.................................\s51yaokong.lnp
.................................\s51yaokong.M51
.................................\s51yaokong.Opt
.................................\s51yaokong.plg
.................................\s51yaokong.Uv2
.................................\s51yaokong_Opt.Bak
.................................\s51yaokong_Uv2.Bak
.................................\s51yk.c
.................................\s51yk.LST
.................................\s51yk.OBJ
.................................\VB遥控音乐播放器上位机程序
.................................\..........................\ASYCFILT.DLL
.................................\..........................\COMCAT.DLL
.................................\..........................\Form1.frm
.................................\..........................\Form1.frx
.................................\..........................\Form2.frm
.................................\..........................\Form2.frx
.................................\..........................\hifans.ini
.................................\..........................\HIFANSBROWSER.uzy
.................................\..........................\HIFANSBROWSER.vbp
.................................\..........................\HIFANSBROWSER.vbw
.................................\..........................\MSCOMCHS.DLL
.................................\..........................\MSCOMM32.OCX
.................................\..........................\MSSCCPRJ.SCC
.................................\..........................\MSVBVM60.DLL
.................................\..........................\MSVCRT.DLL
.................................\..........................\OLEAUT32.DLL
.................................\..........................\OLEPRO32.DLL
.................................\..........................\RICHMCU IR PLAYER.exe
.................................\..........................\rmoc3260.dll
.................................\..........................\rmoc3260.oca
.................................\..........................\scrrnchs.dll
.................................\..........................\scrrun.dll
.................................\..........................\stdole2.tlb
.................................\..........................\VB6CHS.DLL
.................................\..........................\VB6STKIT.DLL
.................................\..........................\安装程序
.................................\..........................\........\VB遥控播放器安装程序.exe
.................................\实验指导文档.doc
.................................\s51yaokong
.................................\s51yaokong.hex
.................................\s51yaokong.lnp
.................................\s51yaokong.M51
.................................\s51yaokong.Opt
.................................\s51yaokong.plg
.................................\s51yaokong.Uv2
.................................\s51yaokong_Opt.Bak
.................................\s51yaokong_Uv2.Bak
.................................\s51yk.c
.................................\s51yk.LST
.................................\s51yk.OBJ
.................................\VB遥控音乐播放器上位机程序
.................................\..........................\ASYCFILT.DLL
.................................\..........................\COMCAT.DLL
.................................\..........................\Form1.frm
.................................\..........................\Form1.frx
.................................\..........................\Form2.frm
.................................\..........................\Form2.frx
.................................\..........................\hifans.ini
.................................\..........................\HIFANSBROWSER.uzy
.................................\..........................\HIFANSBROWSER.vbp
.................................\..........................\HIFANSBROWSER.vbw
.................................\..........................\MSCOMCHS.DLL
.................................\..........................\MSCOMM32.OCX
.................................\..........................\MSSCCPRJ.SCC
.................................\..........................\MSVBVM60.DLL
.................................\..........................\MSVCRT.DLL
.................................\..........................\OLEAUT32.DLL
.................................\..........................\OLEPRO32.DLL
.................................\..........................\RICHMCU IR PLAYER.exe
.................................\..........................\rmoc3260.dll
.................................\..........................\rmoc3260.oca
.................................\..........................\scrrnchs.dll
.................................\..........................\scrrun.dll
.................................\..........................\stdole2.tlb
.................................\..........................\VB6CHS.DLL
.................................\..........................\VB6STKIT.DLL
.................................\..........................\安装程序
.................................\..........................\........\VB遥控播放器安装程序.exe
.................................\实验指导文档.doc