NEC infrared remote control protocol

Source: Internet
Author: User

[+]

  1. NEC ProtocolFeaturesModulationProtocolExtended NEC protocolExternal LinksExample CommandsNEC Protocol

    Original article address:

    Http://www.sbprojects.com/knowledge/ir/nec.php

    To my knowledge the protocol I describe here was developedby NEC. I 've seen very similar protocol descriptions on the internet, and therethe protocol is called Japanese Format.
    I do admit that I don't know exactly who developed it. what I do know is thatit is used in my late VCR produced by Sanyo and was marketed under the name ofFisher. NEC manufactured the remote control IC.
    This description was taken from the VCR's service manual. Those were the days, when service manuals were fulled with useful information!

    Features
    • 8 bit address and 8 bit command lengthAddress and command are transmitted twice for reliabilityPulse distance modulationCarrier frequency of 38 kHzBit time of 1.125 ms or 2.25 msModulation

      The NEC protocol uses pulse distance encoding of thebits. the Each pulse is a 560 μs long 38 kHz carrier burst (about 21 cycles ). alogical "1" takes 2.25 ms to transmit, while a logical "0" is only half of that, being 1.125 ms. the recommended carrier duty-cycle is 1/4or 1/3.

      Protocol

      The picture above shows a typical pulse train of the NECprotocol. with this protocol the LSB is transmitted first. in this case Address $59 and Command $16 is transmitted. A message is started by a 9 ms AGC burst, which was used to set the gain of the earlier IR receivers. this AGC burst isthen followed by a 4.5 ms space, which is then followed by the Address andCommand. address and Command are transmi Tted twice. the second time all bitsare inverted and can be used for verification of the specified ed message. thetotal transmission time is constant because every bit is repeated with itsinverted length. if you're not interested in this reliability you can ignorethe inverted values, or you can expand the Address and Command to 16 bits each!

      A command is transmitted only once, even when the key onthe remote control remains pressed. every 110 ms a repeat code is transmittedfor as long as the key remains down. this repeat code is simply a 9 ms AGC pulsefollowed by a 2.25 ms space and a 560 μs burst.

      Extended NEC protocol

      The NEC protocol is so widely used that soon all possibleaddresses were used up. by sacriicing the address redundancy the address rangewas extended from 256 possible values to approximately 65000 different values. this way the address range was extended from 8 bits to 16 bits without changingany other property of the protocol.
      The command redundancy is still preserved. Therefore each address can stillhandle 256 different commands.

      Keep in mind that 256 address values of the extendedprotocol are invalid because they are in fact normal NEC protocol addresses. whenever the low byte is the exact inverse of the high byte it is not a validextended address.

      External Links

      Necelectrow.

      Example Commands

      The table below lists the messages sent by the remotecontrol of my late Fisher 530 VCR (it served us well during its 20 years longlife ).

      NEC Message

      Key Function

      $68-$00

      Play

      $68-$01

      Rec

      $68-$02

      Audio Dub

      $68-$03

      Frame Adv

      $68-$04

      Slow

      $68-$05

      Quick

      $68-$06

      Cue

      $68-$07

      Review

      $68-$08

      FF

      $68-$09

      Rew

      $68-$ 0A

      Stop

      $68-$ 0B

      Pause/Still

      $68-$ 0C

      Up key

      $68-$ 1E

      Down key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.