NEC 红外遥控协议

NEC Protocol

原文地址:

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 length
  • Address and command are transmitted twice for reliability
  • Pulse distance modulation
  • Carrier frequency of 38kHz
  • Bit time of 1.125ms or 2.25ms

Modulation


The NEC protocol uses pulse distance encoding of thebits. Each pulse is a 560µs long 38kHz carrier burst (about 21 cycles). Alogical "1" takes 2.25ms to transmit, while a logical "0"is only half of that, being 1.125ms. 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 9ms AGC burst,which was used to set the gain of the earlier IR receivers. This AGC burst isthen followed by a 4.5ms space, which is then followed by the Address andCommand. Address and Command are transmitted twice. The second time all bitsare inverted and can be used for verification of the received 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 110ms a repeat code is transmittedfor as long as the key remains down. This repeat code is simply a 9ms AGC pulsefollowed by a 2.25ms space and a 560µs burst.


Extended NEC protocol

The NEC protocol is so widely used that soon all possibleaddresses were used up. By sacrificing 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

NECElectronics

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

 


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值