ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

NEC Infrared Transmission Protocol

2021-07-11 12:30:58  阅读:232  来源: 互联网

标签:Protocol burst Transmission NEC pulse ms message bit


文章目录

注:由于担心参考链接可能失效,故此将链接指向的文档转载至此。如果因此侵删了您的权利,请联系我,我将在收到通知之后删除相应的内容。

NEC Infrared Transmission Protocol

The NEC IR transmission protocol uses pulse distance encoding of the message bits. Each pulse burst (mark – RC transmitter ON) is 562.5µs in length, at a carrier frequency of 38kHz (26.3µs). Logical bits are transmitted as follows:

  • Logical ‘0’ – a 562.5µs pulse burst followed by a 562.5µs space, with a total transmit time of 1.125ms

  • Logical ‘1’ – a 562.5µs pulse burst followed by a 1.6875ms space, with a total transmit time of 2.25ms

When transmitting or receiving remote control codes using the NEC IR transmission protocol, the WB_IRRC performs optimally when the carrier frequency (used for modulation/demodulation) is set to 38.222kHz.

When a key is pressed on the remote controller, the message transmitted consists of the following, in order:

  • a 9ms leading pulse burst (16 times the pulse burst length used for a logical data bit)

  • a 4.5ms space

  • the 8-bit address for the receiving device

  • the 8-bit logical inverse of the address

  • the 8-bit command

  • the 8-bit logical inverse of the command

  • a final 562.5µs pulse burst to signify the end of message transmission.

The four bytes of data bits are each sent least significant bit first. Figure 1 illustrates the format of an NEC IR transmission frame, for an address of 00h (00000000b) and a command of ADh (10101101b).

在这里插入图片描述

Figure 1. Example message frame using the NEC IR transmission protocol.

Notice from Figure 1 that it takes:

  • 27ms to transmit both the 16 bits for the address (address + inverse) and the 16 bits for the command (command + inverse). This comes from each of the 16 bit blocks ultimately containing eight '0’s and eight '1’s - giving (8 * 1.125ms) + (8 * 2.25ms).

  • 67.5ms to fully transmit the message frame (discounting the final 562.5µs pulse burst that signifies the end of message).

REPEAT CODES

If the key on the remote controller is kept depressed, a repeat code will be issued, typically around 40ms after the pulse burst that signified the end of the message. A repeat code will continue to be sent out at 108ms intervals, until the key is finally released. The repeat code consists of the following, in order:

  • a 9ms leading pulse burst

  • a 2.25ms space

  • a 562.5µs pulse burst to mark the end of the space (and hence end of the transmitted repeat code).

Figure 2 illustrates the transmission of two repeat codes after an initial message frame is sent.

在这里插入图片描述

Figure 2. Example repeat codes sent for a key held down on the transmitting remote controller.

参考

NEC Infrared Transmission Protocol

标签:Protocol,burst,Transmission,NEC,pulse,ms,message,bit
来源: https://blog.csdn.net/qq_29761395/article/details/118652862

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有