红外线控制方面的内容(Infrared control).doc

红外线控制方面的内容(Infrared control).doc

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档