Professional Documents
Culture Documents
Data FormData Formats For IR Remote Control
Data FormData Formats For IR Remote Control
www.vishay.com
Vishay Semiconductors
"1"
"1"
"0"
"0"
"0"
"0"
"1"
"1"
17049
Fig. 1 - BI Phase Coding (a rising edge within a time window is equivalent to a 1, a falling edge represents a 0)
"0"
"1"
"0"
"1"
"0"
17050
17051
"1"
" 0"
"1"
"1"
" 0"
Two common data formats, the RC5 code and the NEC
code, are described in more detail here.
Almost all codes have address bits and data bits. For
reliability reasons, some codes send the data twice, once
inverted and once non-inverted. Usually the data command
is repeatedly sent as long as the key is being pressed. There
Rev. 2.1, 13-Aug-13
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000
Data Formats
www.vishay.com
Vishay Semiconductors
THE RC 5 CODE
Each bit in the data word consists of half a bit period with no
transmission and half a bit period with a burst of 32 pulses
at 36 kHz. The timing is shown in the pulse diagrams.
Data
24.9 ms
Bit length 1.78 ms
Example
of a data word
2
start bit
1
toggle bit
5
address bit
6
data bit
27.8 s
Burst
(half bit)
00110111'11001000'00011010'11100101
In a special version of the NEC code, the pre-burst,
including all of the address and data bits, is repeated in each
108 ms time slot for as long as the key is pressed.
After transmitting the data word, only the leader code and a
single bit are transmitted repeatedly for as long as a key is
pressed. A special property of this code is a constant word
length in combination with pulse distance modulation. Both
the address and the data bits are transmitted twice, first as
a normal byte followed by an inverted byte. This is shown in
figure 5. The half period burst portion of each bit contains
22 pulses, each with a width of 8.77 s and a period of
26.3 s. A 0 is represented by a pulse distance of
1.125 ms and a 1 by a pulse distance of 2.25 ms.
Rev. 2.1, 13-Aug-13
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000
Data Formats
www.vishay.com
Leader code
Vishay Semiconductors
Data word
67.5 ms
108 ms
108 ms
Address code
4.5
ms
9 ms
Address code
8 bit
Data code
8 bit
13.5 ms
Data code
8 bit
8 bit
27 ms
27 ms
17053
Start
"1"
"0"
"0"
"1"
"0"
"1"
"1"
"0"
Stop
One Byte in RS-232
9600 bps
Start
"1"
"0"
"0"
"1"
"0"
"1"
"1"
"0"
Stop
One Byte in RS-232
2400 bps
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000
Data Formats
www.vishay.com
Vishay Semiconductors
107 s (6 cycles at 56 kHz)
321 s = 01
464 s = 11
393 s = 10
321 s = 01
250 s = 00
AGC2
AGC3
AGC4
AGC5
BEST CHOISE
yes
yes
yes
yes
yes
AGC4
RC5 code
yes
yes
yes
yes
yes
AGC4
RC6 code
yes
yes
yes
yes
yes
AGC4
RCMM
yes
no
yes
no
yes
AGC5
yes
yes
yes
no
yes
AGC5
yes
yes
no
no
no
AGC2
yes
yes
no
no
no
AGC2
yes
yes
no
no
no
AGC2
yes
no
yes
no
yes
AGC5
yes
yes
yes
yes
yes
AGC4
yes
yes
yes
yes
yes
AGC4
XMP-1
yes
no
yes
no
yes
AGC5
XMP-2
yes
no
yes
no
yes
AGC3
yes
yes
yes
no
no
AGC3
AGC2
yes
yes
no
no
no
yes
yes
yes
no
yes
AGC5
yes
yes
yes
no
yes
AGC5
yes
yes
yes
yes
yes
AGC5
yes
yes
yes
yes
yes
AGC4
Panasonic/Matsushita command
yes
yes
yes
yes
yes
AGC4
yes
yes
yes
yes
yes
AGC4
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000