ir formats 1
TRANSCRIPT
![Page 1: IR Formats 1](https://reader036.vdocuments.us/reader036/viewer/2022080223/55cf94bf550346f57ba42347/html5/thumbnails/1.jpg)
Its almost impossible to buy a TV today thatdoesn’t have a IR remote controller and itsonly when we temporarily mislay this devicethat we realise how useful they are. Back in1975 when the first remote controllersappeared they used ultra sonic signals tosend the control information, these were latersuperseded by the controllers that we arefamiliar with today using infra red. The infrared devices offer lower production costs, wideoperating range and good communicationsecurity. A look inside a typical remote con-troller will show that it consists of only oneIC. The IC interprets each key press andsends a coded data signal to the transmitterIR diode. A simple resonator is also used tosupply a stable clock. On the receiving sidein the equipment being controlled we find aIR detector and demodulator which is nor-mally integrated into the same device. TheSFH505-xx family of devices from Siemenscontains the receiver, demodulator and out-put driver so that the received data can beconnected directly to a micro controller orcontrol decoder. Unfortunately the actual con-trol protocol used by each manufacturer aremostly incompatible.The IR message transmitted by the controller
is subject to interference from otherIR sources in the vicinity. Theseinclude heaters, incandescent lampsand other heat generators. One stan-dard method of rejecting thisunwanted interference is to modulateeach transmitted bit with a stablecarrier frequency in the range of 30 to40 kHz. Another method is the so-called flash mode, this technique isemployed by the Plessey MV500 chip(described in the February 1991 edi-tion of Elektor Electronics). Thismethod outputs data in the form of17 µs short flashes of IR light fol-lowed by different off periods. Nokiaalso use this method with theirIRT1250 IC. This system has howevernot gained wide acceptance and thevast majority of remote controllersuse the modulation technique.
The accompanying oscilloscopepictures show each of the describedtransmission formats received by theTemic TFMS5360 receiver IC. Thisdevice is optimised for reception of asignal modulated at 36 KHz but canalso detect other frequencies albeit
with a reduced range. In the upperhalf of the picture a single telegramis shown and in the lower half a con-tinuous key-press is shown. The out-put of the IC goes low when themodulated signal is detected.
It is important to note that theequipment manufacturer is entirelyat liberty to choose a transmitterclock frequency and as such the tim-ing given here may not be accurateunder all conditions. The timings ofpulse lengths may also be affectedby the sample clock in theTFMS5360 and could have an error of±160 µs (Temic data sheet).
The communications formatsdescribed are the most popular butit does not represent all the possibleformats that you are likely to find.Many firms have devised their owncontrol format, sometimes in order toreduce costs or sometimes to incor-porate different control features thatare not catered for with the existingstandards. If you use a mask pro-grammable micro controller for cod-ing and decoding you will be com-
GENERALINTEREST
50 Elektor Electronics 3/2001
IR Remote ControlCodes (1)formats, protocols and(in)compatibilityBy A.N. Other
There are so many different remotecontrol message formats currently inuse that it can all be a bit confusing. If you are experimenting with remotecontroller IC’s then its important to know the different control protocolsused by each manufacturer. This article seeks to describe the most pop-ular protocols in current use.
![Page 2: IR Formats 1](https://reader036.vdocuments.us/reader036/viewer/2022080223/55cf94bf550346f57ba42347/html5/thumbnails/2.jpg)
pletely at liberty to devise your ownprotocol which may be more suitedto your own particular hardware ofsoftware. This method also ensuresthat a manufacturer will not need toworry about licencing fees or possi-ble patent infringement.
Some modern remote IR con-trollers transmit the message a num-ber of times using different messageformats. For example the controllerwill first send out the Japanese codeand then 50 ms later sends out thesame command but this time usingRC 5 code. The advantage here for
the equipment manufacturer is thatfor future equipment developmentyou need not wait for a chip manu-facturer to produce a controller usinga particular IR coding standard. It isnow possible to select the best orcheapest integrated equipment con-troller and be sure that the IR remotecontroller will produce compatiblecontrol signals.
So which manufacturer and whichcoding system? This articledescribes some of the most popularIR coding standards currently in use.
(010023-1)
GENERALINTEREST
513/2001 Elektor Electronics
Code Manufacturer
RECS80 Thomson, Nordmende
NEC Harman/Kardon, Yamaha,
Canon
DENON Denon
SIRCS Sony
RC5 Loewe, Philips, Grundig,
Marantz
MOTOROLA Grundig, Kathrein
JAPAN Panasonic, Loewe
SAMSUNG Samsung
DAEWOO Daewoo
The most widely used coding method for IR control in Europeis the RC 5 code. This was originally developed by Philips andhas the capacity to send 2048 different commands. 32 address-able groups each with 64 commands. Each piece of equipmenthas its own address so that for example adjusting the volumeof your audio system will not affect the sound level of your TV.One complete message has a length of 14 bits and is com-posed of the following bits:
– 2 Start bits to control the AGC levels (Auto gain control) inthe receiver IC.
– 1 Toggle bit indicates that a new key is pressed.– 5 System address bits– 6 command bits
The toggle bit changes its value every time a new key ispressed and is used to tell the difference between pressingthe key again and holding the key down. The five address bitsfollow the toggle bit and indicate which piece of equipment isbeing controlled. Lastly the six command bits contain the con-trol information.
RC5 code employs biphase encoding, One bit of data is rep-resented by two half bits. A Low/High combination of thesebits indicates a data ‘1‘ whereas a High/Low combination indi-cates a data ‘0‘ The length of each bit is 1.778 ms, and a com-plete message is 24.889 ms long.
The RC5 code is probably the best documented protocol forIR control and particularly interesting are the two free systemaddresses 7 and 13 these are not allocated to any particularequipment type but are reserved for experimental purposes.Typical IC’s used for this message format are:
Transmitter:SAA3006, SAA3010 (Philips)HT6230 (Holtek)
Receiver:SAA3009, SAA3049 (Philips)
Table 1 shows in decimal the correspondence between theequipment and command codes used for this format.
Figure 1. RC5 code at the output of the receiver IC TFMS5360.
1 1 1 1 11 1 0
command
010023 - 12
address (bit 4 … bit 0)
24.889ms
113.778ms
start bits toggle bit
0 0 0 0 0 0
1778us
"1""0"889us
Figure 2. RC5 code message format (Address 1, command 28shown).
RC5 Code
![Page 3: IR Formats 1](https://reader036.vdocuments.us/reader036/viewer/2022080223/55cf94bf550346f57ba42347/html5/thumbnails/3.jpg)
GENERALINTEREST
52 Elektor Electronics 3/2001
The RC5 codes:Address Equipment0 . . . . . . . . . . . . . . . . .TV11 . . . . . . . . . . . . . . . . .TV22 . . . . . . . . . . . . . . . . .Videotext3 . . . . . . . . . . . . . . . . .Expansion for TV1 and TV24 . . . . . . . . . . . . . . . . .Laser Vision Player5 . . . . . . . . . . . . . . . . .Video recorder1 (VCR1)6 . . . . . . . . . . . . . . . . .Video recorder2 (VCR2)7 . . . . . . . . . . . . . . . . .Reserved8 . . . . . . . . . . . . . . . . .SAT19 . . . . . . . . . . . . . . . . .Expansion for VCR1 and VCR210 . . . . . . . . . . . . . . . .SAT211 . . . . . . . . . . . . . . . .Reserved12 . . . . . . . . . . . . . . . .CD Video13 . . . . . . . . . . . . . . . .Reserved14 . . . . . . . . . . . . . . . .CD Photo15 . . . . . . . . . . . . . . . .Reserved16 . . . . . . . . . . . . . . . .Audio preamplifier117 . . . . . . . . . . . . . . . .Tuner18 . . . . . . . . . . . . . . . .Analogue cassette recorder19 . . . . . . . . . . . . . . . .Audio preamplifier220 . . . . . . . . . . . . . . . .CD21 . . . . . . . . . . . . . . . .Audio Rack or Aufnahmegerät22 . . . . . . . . . . . . . . . .Audio Satellite receiver23 . . . . . . . . . . . . . . . .DCC Recorder24 . . . . . . . . . . . . . . . .Reserved25 . . . . . . . . . . . . . . . .Reserved26 . . . . . . . . . . . . . . . .writable CD27...31 . . . . . . . . . . . . .Reserved
keycodes:Code Key Function0 . . . . . . . . . . . . . . . . .01 . . . . . . . . . . . . . . . . .12 . . . . . . . . . . . . . . . . .23 . . . . . . . . . . . . . . . . .34 . . . . . . . . . . . . . . . . .45 . . . . . . . . . . . . . . . . .56 . . . . . . . . . . . . . . . . .67 . . . . . . . . . . . . . . . . .78 . . . . . . . . . . . . . . . . .89 . . . . . . . . . . . . . . . . .916 . . . . . . . . . . . . . . . .Volume +17 . . . . . . . . . . . . . . . .Volume –18 . . . . . . . . . . . . . . . .Brightness +19 . . . . . . . . . . . . . . . .Brightness –20 . . . . . . . . . . . . . . . .Colour saturation +21 . . . . . . . . . . . . . . . .Colour saturation –22 . . . . . . . . . . . . . . . .Bass +23 . . . . . . . . . . . . . . . .Bass –24 . . . . . . . . . . . . . . . .Treble +25 . . . . . . . . . . . . . . . .Treble –26 . . . . . . . . . . . . . . . .Balance right27 . . . . . . . . . . . . . . . .Balance left63 . . . . . . . . . . . . . . . .System select71 . . . . . . . . . . . . . . . .Dim local display77 . . . . . . . . . . . . . . . .Linear function increment78 . . . . . . . . . . . . . . . .Linear function decrement80 . . . . . . . . . . . . . . . .Step up81 . . . . . . . . . . . . . . . .Step down82 . . . . . . . . . . . . . . . .Menu on83 . . . . . . . . . . . . . . . .Menu off84 . . . . . . . . . . . . . . . .Display A/V system status85 . . . . . . . . . . . . . . . .Step left86 . . . . . . . . . . . . . . . .Step right87 . . . . . . . . . . . . . . . .Acknowledge88 . . . . . . . . . . . . . . . .PIP on/off (Pay TV channel + for system 3)89 . . . . . . . . . . . . . . . .PIP shift (Pay TV channel - for system 3)90 . . . . . . . . . . . . . . . .PIP / main swap (Radio channel + for system 3)91 . . . . . . . . . . . . . . . .Strobe on/off (Radio system – for channel 3)
92 . . . . . . . . . . . . . . . .Multi strobe (Date + for system 9)93 . . . . . . . . . . . . . . . .Main frozen (Date – for system 9)94 . . . . . . . . . . . . . . . .3/9 multi-scan (Start time + for system 9)95 . . . . . . . . . . . . . . . .PIP select (Start time – for system 9)96 . . . . . . . . . . . . . . . .Mosaic/multi-PIP (Record program + for system 9)97 . . . . . . . . . . . . . . . .Picture DNR (Record program – for system 9)98 . . . . . . . . . . . . . . . .Main stored (Alternate channel for system 9)99 . . . . . . . . . . . . . . . .PIP strobe (Stop time + for system 9)100 . . . . . . . . . . . . . . .Recall main picture (Stop time – for system 9)101 . . . . . . . . . . . . . . .PIP freeze102 . . . . . . . . . . . . . . .PIP step up +103 . . . . . . . . . . . . . . .PIP step down –118 . . . . . . . . . . . . . . .Sub mode119 . . . . . . . . . . . . . . .Options sub mode123 . . . . . . . . . . . . . . .Connect124 . . . . . . . . . . . . . . .Disconnect
Special commands for equipment addresses 0 und 1 (TV1 / TV2):Code Key Function10 . . . . . . . . . . . . . . . .1/2/3 digits / 1011 . . . . . . . . . . . . . . . .Freq./prog./ch./1112 . . . . . . . . . . . . . . . .Standby13 . . . . . . . . . . . . . . . .Mute/de-mute14 . . . . . . . . . . . . . . . .Personal pref.15 . . . . . . . . . . . . . . . .Display28 . . . . . . . . . . . . . . . .Contrast +29 . . . . . . . . . . . . . . . .Contrast –30 . . . . . . . . . . . . . . . .Search +31 . . . . . . . . . . . . . . . .Tint/hue –32 . . . . . . . . . . . . . . . .Ch./prog. +33 . . . . . . . . . . . . . . . .Ch./prog. –34 . . . . . . . . . . . . . . . .Altern./ch.35 . . . . . . . . . . . . . . . .? language36 . . . . . . . . . . . . . . . .Spatial stereo37 . . . . . . . . . . . . . . . .Stereo/mono38 . . . . . . . . . . . . . . . .Sleep timer39 . . . . . . . . . . . . . . . .Tint/hue. +40 . . . . . . . . . . . . . . . .RF switch41 . . . . . . . . . . . . . . . .Store/execute/vote42 . . . . . . . . . . . . . . . .Time43 . . . . . . . . . . . . . . . .Scan fwd./increm.44 . . . . . . . . . . . . . . . .Decrement46 . . . . . . . . . . . . . . . .Sec con/menu47 . . . . . . . . . . . . . . . .Show clock48 . . . . . . . . . . . . . . . .Pause49 . . . . . . . . . . . . . . . .Erase/correct50 . . . . . . . . . . . . . . . .Rewind51 . . . . . . . . . . . . . . . .Go to52 . . . . . . . . . . . . . . . .Wind53 . . . . . . . . . . . . . . . .Play54 . . . . . . . . . . . . . . . .Stop55 . . . . . . . . . . . . . . . .Record56 . . . . . . . . . . . . . . . .External 157 . . . . . . . . . . . . . . . .External 259 . . . . . . . . . . . . . . . .Advance60 . . . . . . . . . . . . . . . .TXT sub-mode/1261 . . . . . . . . . . . . . . . .Sys. Standby62 . . . . . . . . . . . . . . . .Crispener70 . . . . . . . . . . . . . . . .Speech/music79 . . . . . . . . . . . . . . . .Sound scroll104 . . . . . . . . . . . . . . .PIP size105 . . . . . . . . . . . . . . .Pic. Scroll106 . . . . . . . . . . . . . . .Act. On/off107 . . . . . . . . . . . . . . .Red108 . . . . . . . . . . . . . . .Green109 . . . . . . . . . . . . . . .Yellow110 . . . . . . . . . . . . . . .Cyan111 . . . . . . . . . . . . . . .Index/white112 . . . . . . . . . . . . . . .Next113 . . . . . . . . . . . . . . .Previous122 . . . . . . . . . . . . . . .Store open/close126 . . . . . . . . . . . . . . .Movie expand127 . . . . . . . . . . . . . . .Parental access
![Page 4: IR Formats 1](https://reader036.vdocuments.us/reader036/viewer/2022080223/55cf94bf550346f57ba42347/html5/thumbnails/4.jpg)
GENERALINTEREST
533/2001 Elektor Electronics
A message sent using the SIRCS or CNTRL S protocol fromSony consists of twelve to twenty bits. Five to thirteen of thesebits is used for the address field and seven bits for the keycode.
A Start bit (2.4 ms) is sent followed by a 0.6 ms space orpause. Next comes the data. A ’1’ is represented by a 1.2 msON or mark followed by a 0.6 ms OFF or pause. A ’0’ is repre-sented by a 0.6 ms ON and a 0.6 ms OFF. A typical messageis shown in Figure 4. The message is sent a minimum of twice(five times for a camcorder). The message is discarded if an
error is detected. SIRCS message coding is identical to CNTRLS, but SIRCS modulates the code at 40 kHz ready to be sent toan IR diode. CNTRL-S is the baseband (unmodulated) signaland is used between equipment where a communicationscable is fitted. Sony produce the following IC:
Transmitter:KIE RA275 S42
SIRCS/Control S Code
Figure 3. SIRCS code at the output of the TFMS5360 receiverIC.
45ms
start bit
2.4ms 0.6ms
2 command (bit 0 … bit 6) address (bit 0 … bit 4) ext. +3...8 bit
"0" "1"
0.6ms1.2ms
1.2ms 1.8ms010023 - 14
Figure 4. CNTRL-S and SIRCS message format.
The Sonycodes:Equipment address codes (decimal):Address Equipment type1 . . . . . . . . . . . . . . . . .TV2 . . . . . . . . . . . . . . . . .VTR14 . . . . . . . . . . . . . . . . .VTR26 . . . . . . . . . . . . . . . . .Laserdisc7 . . . . . . . . . . . . . . . . .VTR211 . . . . . . . . . . . . . . . .VTR312 . . . . . . . . . . . . . . . .Surround sound
processor16 . . . . . . . . . . . . . . . .Cassette deck, tuner17 . . . . . . . . . . . . . . . .CD Player18 . . . . . . . . . . . . . . . .Equaliser164 . . . . . . . . . . . . . . .TV digital effects
(8 bit device code)
keycodes:code key Function000 . . . . . . . . . . . . . . .1 button001 . . . . . . . . . . . . . . .2 button002 . . . . . . . . . . . . . . .3 button003 . . . . . . . . . . . . . . .4 button004 . . . . . . . . . . . . . . .5 button005 . . . . . . . . . . . . . . .6 button006 . . . . . . . . . . . . . . .7 button007 . . . . . . . . . . . . . . .8 button
008 . . . . . . . . . . . . . . .9 button009 . . . . . . . . . . . . . . .10 button/0 button011 . . . . . . . . . . . . . . .Enter016 . . . . . . . . . . . . . . .Channel up017 . . . . . . . . . . . . . . .Channel down018 . . . . . . . . . . . . . . .Volume up019 . . . . . . . . . . . . . . .Volume down020 . . . . . . . . . . . . . . .Mute021 . . . . . . . . . . . . . . .Power022 . . . . . . . . . . . . . . .Reset TV023 . . . . . . . . . . . . . . .Audio mode:
mono/SAP/stereo024 . . . . . . . . . . . . . . .Picture up025 . . . . . . . . . . . . . . .Picture down026 . . . . . . . . . . . . . . .Colour up027 . . . . . . . . . . . . . . .Colour down030 . . . . . . . . . . . . . . .Brightness up031 . . . . . . . . . . . . . . .Brightness down032 . . . . . . . . . . . . . . .Hue up033 . . . . . . . . . . . . . . .Hue down034 . . . . . . . . . . . . . . .Sharpness up035 . . . . . . . . . . . . . . .Sharpness down036 . . . . . . . . . . . . . . .Select TV tuner038 . . . . . . . . . . . . . . .Balance left039 . . . . . . . . . . . . . . .Balance right041 . . . . . . . . . . . . . . .Surround on/off042 . . . . . . . . . . . . . . .Aux/Ant047 . . . . . . . . . . . . . . .Power off048 . . . . . . . . . . . . . . .Time display054 . . . . . . . . . . . . . . .Sleep timer058 . . . . . . . . . . . . . . .Channel display059 . . . . . . . . . . . . . . .Channel jump
064 . . . . . . . . . . . . . . .Select input video1065 . . . . . . . . . . . . . . .Select input video2066 . . . . . . . . . . . . . . .Select input video3074 . . . . . . . . . . . . . . .Noise reduction on/off078 . . . . . . . . . . . . . . .Cable/broadcast079 . . . . . . . . . . . . . . .Notch filter on/off088 . . . . . . . . . . . . . . .PIP channel up089 . . . . . . . . . . . . . . .PIP channel down091 . . . . . . . . . . . . . . .PIP on092 . . . . . . . . . . . . . . .Freeze screen094 . . . . . . . . . . . . . . .PIP position095 . . . . . . . . . . . . . . .PIP swap096 . . . . . . . . . . . . . . .Guide097 . . . . . . . . . . . . . . .Video setup098 . . . . . . . . . . . . . . .Audio setup099 . . . . . . . . . . . . . . .Exit setup107 . . . . . . . . . . . . . . .Auto program112 . . . . . . . . . . . . . . .Treble up113 . . . . . . . . . . . . . . .Treble down114 . . . . . . . . . . . . . . .Bass up115 . . . . . . . . . . . . . . .Bass down116 . . . . . . . . . . . . . . .+ key117 . . . . . . . . . . . . . . .– key120 . . . . . . . . . . . . . . .Add channel121 . . . . . . . . . . . . . . .Delete channel125 . . . . . . . . . . . . . . .Trinitone on/off127 . . . . . . . . . . . . . . .Displays a red RtestS
on the screen
![Page 5: IR Formats 1](https://reader036.vdocuments.us/reader036/viewer/2022080223/55cf94bf550346f57ba42347/html5/thumbnails/5.jpg)
GENERALINTEREST
54 Elektor Electronics 3/2001
Next month:
– NEC– DENON– MOTOROLA– JAPAN– SAMSUNG– DAEWOO
RECS80 Code
The RECS80 code from Philips a pulse position modulationtechnique. With this system a fixed length pulse of light is fol-lowed by a variable length space. The space timing conveysthe data. There are 1280 possible codes divided into 64 com-mands and 20 subsystems. A subsystem is simply the type ofequipment being controlled i.e. a TV or a VCR. A message iscomposed of 11 bits. The first two bits are the toggle bits fol-lowed by three sub-system address bits and six data bits,these indicate which key was pressed. The toggle bits areincremented if a key is released for a minimum time but willremain unchanged within a multiple key-stroke sequence. Ifthe transmitter is configured to operate in modulated modethe first toggle bit is replaced by a REF bit of fixed duration.
In the lower trace of Figure 15 not all the data is shownbecause of the low sampling rate of the scope some of the bitshave been missed. The RECS80 protocol encodes the data byvariable length spaces between constant width ON pulses(140.8 µs). If the transmitter is configured to modulation mode
this time period will be represented by a burst of carrier fre-quency. If configured to flash mode the IR transmitter will beflashed on at this time. A ‘0’ has a space of 5.06 ms while a‘1’ has a space of 7.60 ms (derived from a 455 kHz resonator inthe remote control transmitter). Although the length of thedata packet is dependent on the commands sent, the timebetween two messages is fixed at 121 ms. The modulation fre-quency is 38 kHz.
Typical ICs for remote control:
Transmitter:SAA3004, SAA3007 and SAA3008 (Philips)M3004, M3005, M3006 (ST Microelectronics)
Receiver:SAA3009, SAA3049 (Philips)
Figure 5. RECS80 code at the output of the TFMS5360 receiverIC.
command stop bitstart bit address (bit 0 … bit 7)
60ms
8ms 4ms 4ms
"0" "1"
0.55ms
1ms 2ms
010023 - 26
Figure 6. RECS80 code message format
Internet LinksNec Format:
http://www.princeton.com.tw/spechtml/remote/2221.htm
Philips semiconductor:http://www.semiconductors.comwww-us.semiconductors.com/pip/SAA3049AP
Motorola Home-Page:http://motorola.com
Motorola-Format:http://holtek.com
Samsung Home-Page:
http://www.intl.samsungsemi.com/System_LSI/Microcontroller/Product_Guide/Microcontroller/product_guide.html