文件名称:STC12C5A60S2_IR_Test_HS0038B
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-05-04
- 文件大小:
- 39kb
- 下载次数:
- 0次
- 提 供 者:
- yush*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
红外数字接收头测试程序
1、程序说明:
该例程演示了接在单片机P3.5端口上的红外数字接收头测试实验。
并在数码管上显示接收到得遥控按键的键值。
本接收程序基于状态机的方式,利用定时器定时扫描接收数据端口,
占用单片机资源少。注意接收到的电平和发射的电平正好相反,
在中断程序中检测下降沿,从检测到第一次下降沿开始计时,到下一个
下降沿到来时的计时值即为检测到的周期,对此周期进行判断,已识别是
引导码还是数据。
2、实验操作
将拨码开关S10的SMG端拨到ON端。
将拨码开关S10的DIR端拨到ON端。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后,使用遥控器对着接收头按键,
可观察到数码管显示接收到的按键值。
注意遥控器电池仓有个小塑料拨片,需拔掉,电池才供电。-The digital infrared receiving head test program
1, descr iption of the procedures:
This routine demonstrates the infrared digital P3.5 port connected to the MCU receiving head test.
To receive remote control and display the key value in the digital tube.
The receiving program based on state machine, using the timer timing scan data receiving port,
Take SCM less resources. Attention is paid to the level of the received level and the level of the transmitter is just the opposite,
In the interrupt program to detect a falling edge, the detection of the first down along the start time, to the next
Down along the arrival time of the value of the time that is detected by the cycle, this cycle to judge, has been identified
Boot code or data.
2, experimental operation
Set the SMG of the dial switch ON to the S10.
Dial switch S10 DIR ON end to end.
While the other end of the dial switch is disconnected, that is not allocated to the ON side.
Otherwise it will affect the experimental
1、程序说明:
该例程演示了接在单片机P3.5端口上的红外数字接收头测试实验。
并在数码管上显示接收到得遥控按键的键值。
本接收程序基于状态机的方式,利用定时器定时扫描接收数据端口,
占用单片机资源少。注意接收到的电平和发射的电平正好相反,
在中断程序中检测下降沿,从检测到第一次下降沿开始计时,到下一个
下降沿到来时的计时值即为检测到的周期,对此周期进行判断,已识别是
引导码还是数据。
2、实验操作
将拨码开关S10的SMG端拨到ON端。
将拨码开关S10的DIR端拨到ON端。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后,使用遥控器对着接收头按键,
可观察到数码管显示接收到的按键值。
注意遥控器电池仓有个小塑料拨片,需拔掉,电池才供电。-The digital infrared receiving head test program
1, descr iption of the procedures:
This routine demonstrates the infrared digital P3.5 port connected to the MCU receiving head test.
To receive remote control and display the key value in the digital tube.
The receiving program based on state machine, using the timer timing scan data receiving port,
Take SCM less resources. Attention is paid to the level of the received level and the level of the transmitter is just the opposite,
In the interrupt program to detect a falling edge, the detection of the first down along the start time, to the next
Down along the arrival time of the value of the time that is detected by the cycle, this cycle to judge, has been identified
Boot code or data.
2, experimental operation
Set the SMG of the dial switch ON to the S10.
Dial switch S10 DIR ON end to end.
While the other end of the dial switch is disconnected, that is not allocated to the ON side.
Otherwise it will affect the experimental
(系统自动生成,下载前可以参看下载内容)
下载文件列表
10、HS0038B红外接收实验\Application\Doc\readme.txt
.......................\...........\Header\STC12C5A60S2.H
.......................\...........\Source\main.c
.......................\...........\.tartup\STARTUP.A51
.......................\IR_Test.plg
.......................\IR_Test.uvopt
.......................\IR_Test.uvproj
.......................\IR_Test_uvopt.bak
.......................\IR_Test_uvproj.bak
.......................\Lis\IR_Test.m51
.......................\...\main.lst
.......................\...\STARTUP.lst
.......................\Obj\IR_Test
.......................\...\IR_Test.hex
.......................\...\IR_Test.lnp
.......................\...\IR_Test.plg
.......................\...\main.obj
.......................\...\STARTUP.obj
.......................\...\STARTUP._ia
.......................\Application\Doc
.......................\...........\Header
.......................\...........\Source
.......................\...........\Startup
.......................\Application
.......................\Lis
.......................\Obj
10、HS0038B红外接收实验