- 1、本文档共10页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
红外线控制方面的内容(Infrared control)
红外线控制方面的内容(Infrared control)
Infrared control
How to do infrared remote control reception with PIC? ============================
You can check the remote control waveform by using an oscilloscope to hang on 20106 of the output after you have used the 20106 and the like. ============================= NEC remote control receiver first normal, after not (with remote control subroutine) please. Not only is the field of PIC novice, recently wrote a NEC remote control test program decoding, the remote control decoding part of this program but it can only be judged correctly the first time after not receiving code, please master pointing I know the remote control code bursts, but I have already set up 32 the receiving code counter, there should be no problem I judge 0 (1.125ms) and 1 (2.25ms) because I used C57, can only be determined by the query mode. Through the high level of time (the following procedures for different time 0.9MS) to decide the 0 or 1. Receiving and decoding NEC format subroutine; remote control code; using PORTA 0 infrared remote control receiver in this program, the address code is 00H, high FFH, data code 00H, anti FFH, received are stored in the 25H ADD8L, 26H ADD8H, DAT8 27H, 28H DAT8F register. ; first receives this signal is turned off. ==================================== REMOTE_RECEIVER CLRF; 20H; set the remote control receiving correct flag. If the zeroth bits of 20H are 1, BTFSC, PORTA, 0, remote control receive is invalid. GOTO BACK; judge 9MS low and 4.5MS high. ----5ms delay----------------; MOVLW 06H; 5ms MOVWF 30H to prevent jitter, delay LOOP4 MOVLW 0FFH MOVWF 31H LOOP5 DECFSZ 31H GOTO LOOP5 DECFSZ, 1 30H, 1 GOTO LOOP4 in BTFSC PORTA, 0; GOTO BACK; remote receiving invalid. LOOP0 BTFSS PORTA, 0; remote control receiver, waiting for high level, about 9-5ms GOTO LOOP0; the following is the STEP MOVLW D32will receive the code set; 32 receiving yards. MOVWF BIT32 STEP1 BTFSC PORTA counter, 0; 4.5ms GOTO STEP1 STEP2 BTFSS for PORTA, 0 GOTO
您可能关注的文档
- 看电流修手机(Look at the current repair phone).doc
- 看完这20部电影(After watching the 20 movies).doc
- 看病难和看病贵问题基于患者角度的实证分析(Difficult medical treatment and expensive medical treatment An Empirical Analysis Based on the perspective of patients).doc
- 看看你是否有社交焦虑症的表现(See if you have social anxiety disorder).doc
- 看透js《燕渡寒潭装修日记》之三十九(Thirty-nine see JS diary of Yan Du Han Tan decoration).doc
- 真三国无双4秘籍 攻略(True Three Kingdoms 4 Cheats).doc
- 真心话大冒险出题(True words, big adventure, test questions).doc
- 真心话大冒险游戏(Big adventure game).doc
- 真心话大冒险的恶搞题库(True words, big adventure, KUSO, question bank).doc
- 真正的生命 在一个当下(Real life is in the present).doc
- 2025届河北省唐山市玉田县高三下学期5月联考试题含解析.doc
- 2025届湖北省孝感市八校高三5月质量检测试题(三模)物理试题含解析.doc
- 2025届贵州省遵义市五校联考高三下学期期末质量抽测物理试题含解析.doc
- 2025届湖北荆门市第一中学高三冲刺压轴卷(四)物理试题试卷含解析.doc
- 2025届河北省唐山二中教育集团迁西县第一中学高三下学期阶段性检测试题物理试题试卷含解析.doc
- 2025届河北省石家庄实验中学高三教学质量检测试题第二次联考物理试题含解析.doc
- 2025届河北省石家庄市正定县第一中学高三冲刺压轴卷(四)物理试题试卷含解析.doc
- 2025届海南省重点名校高三下学期期末质量监控物理试题含解析.doc
- 2025届河南省许昌市长葛一中高三下学期第二学段模块考试物理试题试卷含解析.doc
- 2025届河北省市巨鹿县二中高三下学期4月份高考模拟训练(一)物理试题含解析.doc
文档评论(0)