文件名称:WXMKTEST.C
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:12.09kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
摘要:VC/C++源码,系统相关,无线遥控
单片机无线遥控接收模块C程序源码:
void main(void)
{
P2_7=0 //开数码管显示 选通左右侧的数码管
P0=0xc0 //初始显示数字0
while(1){
P1=0xff //P1口设置为输入状态 先全部写1
i=P1 //赋值给临时存贮变量
i=i&0x0f //和0x0f相与 屏蔽高四位,读取无线遥控码
if (i==0x04)//如果是0x04,则代表无线遥控器的按键A按下,执行显示
{
P0=0x88 //字母A的字型码
beep1()
}
if (i==0x01)//如果是0x01,则代表无线遥控器的按键b按下,执行显示
{
P0=0x83 //字母b的字型码
fmq=1
}
if (i==0x08)//如果是0x08,则代表无线遥控器的按键C按下,执行显示
{
P0=0xc6 //字母C的字型码
P3_7=1 //继电器吸合
}
if (i==0x02)//如果是0x02,则代表无线遥控器的按键d按下,执行显示
{
P0=0xa1 //字母d的字型码
P3_7=0 //继电器释放
}
-Abstract: the VC/C++ source code, related systems, wireless remote control
Wireless remote control receiving module C program source code:
Void main ( void )
{
P2_7 = 0 // open digital tube display gated side digital tube
P0 =0xc0 // initial display number 0
While (1) {
P1 =0xff // P1set to input state to write all1
I = P1 // assign values to temporary storage of variables
I = i&0x0f //0x0f and shielded high four, read the wireless remote control code
If ( I = = 0x04)// if it is 0x04, represents the wireless remote control button A press, executing display
{
P0 =0x88 // A font code
Beep1( )
}
If ( I = = 0x01)// if it is 0x01, represents the wireless remote control button B press, executing display
{
P0 =0x83 // b font code
FMQ = 1
}
If ( I = = 0x08)// if it is 0x08, represents the wireless remote control button C press, executing display
{
P0 =0xc6 // C font code
P3_7 = 1 // relay
}
If ( I = = 0x02)// if it is 0x02, represents the wireless remote control butt
单片机无线遥控接收模块C程序源码:
void main(void)
{
P2_7=0 //开数码管显示 选通左右侧的数码管
P0=0xc0 //初始显示数字0
while(1){
P1=0xff //P1口设置为输入状态 先全部写1
i=P1 //赋值给临时存贮变量
i=i&0x0f //和0x0f相与 屏蔽高四位,读取无线遥控码
if (i==0x04)//如果是0x04,则代表无线遥控器的按键A按下,执行显示
{
P0=0x88 //字母A的字型码
beep1()
}
if (i==0x01)//如果是0x01,则代表无线遥控器的按键b按下,执行显示
{
P0=0x83 //字母b的字型码
fmq=1
}
if (i==0x08)//如果是0x08,则代表无线遥控器的按键C按下,执行显示
{
P0=0xc6 //字母C的字型码
P3_7=1 //继电器吸合
}
if (i==0x02)//如果是0x02,则代表无线遥控器的按键d按下,执行显示
{
P0=0xa1 //字母d的字型码
P3_7=0 //继电器释放
}
-Abstract: the VC/C++ source code, related systems, wireless remote control
Wireless remote control receiving module C program source code:
Void main ( void )
{
P2_7 = 0 // open digital tube display gated side digital tube
P0 =0xc0 // initial display number 0
While (1) {
P1 =0xff // P1set to input state to write all1
I = P1 // assign values to temporary storage of variables
I = i&0x0f //0x0f and shielded high four, read the wireless remote control code
If ( I = = 0x04)// if it is 0x04, represents the wireless remote control button A press, executing display
{
P0 =0x88 // A font code
Beep1( )
}
If ( I = = 0x01)// if it is 0x01, represents the wireless remote control button B press, executing display
{
P0 =0x83 // b font code
FMQ = 1
}
If ( I = = 0x08)// if it is 0x08, represents the wireless remote control button C press, executing display
{
P0 =0xc6 // C font code
P3_7 = 1 // relay
}
If ( I = = 0x02)// if it is 0x02, represents the wireless remote control butt
(系统自动生成,下载前可以参看下载内容)
下载文件列表
WXMKTEST.C/
WXMKTEST.C/无线遥控接收模块实验/
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.C
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.hex
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.lnp
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.LST
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.M51
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.OBJ
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.Opt
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.plg
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.Uv2
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST_Opt.Bak
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST_Uv2.Bak
WXMKTEST.C/无线遥控接收模块实验/
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.C
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.hex
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.lnp
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.LST
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.M51
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.OBJ
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.Opt
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.plg
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST.Uv2
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST_Opt.Bak
WXMKTEST.C/无线遥控接收模块实验/WXMKTEST_Uv2.Bak
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.