⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sb-projects ir remote control philips rc-5.mht

📁 遥控器遥控电风扇的制作例程(M8 RC5).rar
💻 MHT
📖 第 1 页 / 共 3 页
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: SB-Projects: IR remote control: Philips RC-5
Date: Sun, 13 Aug 2006 18:07:40 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0000_01C6BF03.5D9523A0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C6BF03.5D9523A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.xs4all.nl/~sbp/knowledge/ir/rc5.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>SB-Projects: IR remote control: Philips RC-5</TITLE>
<META content=3D"San Bergmans" name=3DAuthor>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3Dtext/css name=3DContent-Style-Type>
<META=20
content=3D"infra red protocol, infra red control, IR, RC5, RC6, RCMM, =
RECS80, NEC, Sony, sirc, JVC, ITT, Sharp, X-Sat"=20
name=3Dkeywords>
<META http-equiv=3Dimagetoolbar content=3Dno>
<SCRIPT language=3DJavaScript type=3Dtext/javascript>=0A=
	<!--=0A=
	MonthName =3D new Array =
("January","February","March","April","May","June","July","August","Septe=
mber","October","November","December")=0A=
	Updated =3D new Date(document.lastModified);=0A=
    UpdateMonth =3D MonthName[Updated.getMonth()];=0A=
	UpdateDate  =3D Updated.getDate();=0A=
	UpdateYear  =3D Updated.getFullYear();=0A=
	-->=0A=
</SCRIPT>
<LINK href=3D"http://www.xs4all.nl/~sbp/sbprojects.css" =
rel=3Dstylesheet>
<META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR></HEAD>
<BODY><A name=3Dtop></A>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"98%" align=3Dcenter =
border=3D0>
  <TBODY>
  <TR>
    <TD class=3Dseparator width=3D130>&nbsp; </TD>
    <TD class=3Dseparator width=3D1>&nbsp;</TD>
    <TD class=3Dseparator><A =
href=3D"http://www.xs4all.nl/~sbp/index.htm"><IMG=20
      height=3D59 alt=3D"Back Home"=20
      src=3D"http://www.xs4all.nl/~sbp/knowledge/knowledge.gif" =
width=3D415=20
      border=3D0></A></TD></TR>
  <TR>
    <TD vAlign=3Dtop width=3D150><BR>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dseparator>Navigation </TD></TR></TBODY></TABLE>
      <P class=3Dnomargin><A=20
      href=3D"http://www.xs4all.nl/~sbp/index.htm">Home</A><BR><A=20
      =
href=3D"http://www.xs4all.nl/~sbp/knowledge/knowledge.htm">Knowledge=20
      Base</A><BR><BR><A =
href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/ir.htm">IR=20
      RC Theory</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/itt.htm">ITT=20
      Protocol</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/jvc.htm">JVC=20
      Protocol</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/nec.htm">NEC=20
      Protocol</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/nrc17.htm">Nokia=20
      NRC17</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/sharp.htm">Sharp=20
      Protocol</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/sirc.htm">Sony=20
      SIRC</A><BR>Philips RC-5<BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/rc6.htm">Philips=20
      RC-6</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/rcmm.htm">Philips=20
      RC-MM</A><BR><A=20
      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/recs80.htm">Philips =

      RECS80</A><BR><A=20
      =
href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/xsat.htm">X-Sat</A><BR><A =

      href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/others.htm">Other=20
      Protocols</A><BR><BR><A=20
      =
href=3D"http://www.xs4all.nl/~sbp/knowledge/ir/universal.htm">Universal=20
      Controllers</A><BR><BR><A=20
      =
href=3D"http://www.xs4all.nl/~sbp/projects/ircontrol/ircontrol.htm">IR=20
      Control</A><BR></P></TD>
    <TD></TD>
    <TD vAlign=3Dtop><BR>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dseparator>Philips RC-5 Protocol =
</TD></TR></TBODY></TABLE>
      <P>The RC-5 code from Philips is possibly the most used protocol =
by=20
      hobbyists, probably because of the wide availability of cheap =
remote=20
      controls. <BR>The protocol is well defined for different device =
types=20
      ensuring compatibility with your whole entertainment system. =
Lately=20
      Philips started using a new protocol called RC-6 which has more =
features.=20
      </P>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dseparator>Features </TD></TR></TBODY></TABLE>
      <UL>
        <LI>5 bit address and 6 bit command length (7 command bits for =
RC5X)=20
        <LI>Bi-phase coding (aka Manchester coding)=20
        <LI>Carrier frequency of 36kHz=20
        <LI>Constant bit time of 1.778ms (64 cycles of 36 kHz)=20
        <LI>Manufacturer Philips </LI></UL>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dseparator>Modulation </TD></TR></TBODY></TABLE>
      <P><IMG style=3D"MARGIN-RIGHT: 20px" height=3D105 alt=3D"RC5 =
Modulation"=20
      src=3D"http://www.xs4all.nl/~sbp/knowledge/ir/rc5modulation.gif" =
width=3D400=20
      align=3Dleft border=3D0> The protocol uses bi-phase modulation (or =
so-called=20
      Manchester coding) of a 36kHz IR carrier frequency. All bits are =
of equal=20
      length of 1.778ms in this protocol, with half of the bit time =
filled with=20
      a burst of the 36kHz carrier and the other half being idle. A =
logical zero=20
      is represented by a burst in the first half of the bit time. A =
logical one=20
      is represented by a burst in the second half of the bit time. The=20
      pulse/pause ratio of the 36kHz carrier frequency is 1/3 or 1/4 =
which=20
      reduces power consumption. <BR clear=3Dall></P>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dseparator>Protocol </TD></TR></TBODY></TABLE>
      <P>The drawing below shows a typical pulse train of an RC-5 =
message. This=20
      example transmits command $35 to address $05. </P>
      <P><IMG height=3D125 alt=3D"RC-5 Pulse Train"=20
      src=3D"http://www.xs4all.nl/~sbp/knowledge/ir/rc5train.gif" =
width=3D420=20
      border=3D0><BR clear=3Dall></P>
      <P>The first two pulses are the start pulses, and are both logical =
"1".=20
      Please note that half a bit time is elapsed before the receiver =
will=20
      notice the real start of the message. <BR>Extended RC-5 uses only =
one=20
      start bit. Bit S2 is transformed to command bit 6, providing for a =
total=20
      of 7 command bits. The value of S2 must be inverted to get the 7th =
command=20
      bit though! </P>
      <P>The 3rd bit is a toggle bit. This bit is inverted every time a =
key is=20
      released and pressed again. This way the receiver can distinguish =
between=20
      a key that remains down, or is pressed repeatedly. <BR>The next 5 =
bits=20
      represent the IR device address, which is sent with MSB first. The =
address=20
      is followed by a 6 bit command, again sent with MSB first. <BR>A =
message=20
      consists of a total of 14 bits, which adds up to a total duration =
of 25=20
      ms. Sometimes a message may appear to be shorter because the first =
half of=20
      the start bit S1 remains idle. And if the last bit of the message =
is a=20
      logic "0" the last half bit of the message is idle too. </P>
      <P>As long as a key remains down the message will be repeated =
every 114ms.=20
      The toggle bit will retain the same logical level during all of =
these=20
      repeated messages. It is up to the receiver software to interpret =
this=20
      auto repeat feature. </P>
      <P style=3D"COLOR: gray">PS: I had rather a big error on this page =
for quite=20
      some time. For some mysterious reason the LSB and MSB of the =
address and=20
      command were reversed. I can recall correcting this error before, =
but=20
      somehow an old version of the description must have sneaked its =
way up to=20
      the internet again. </P>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD class=3Dseparator>Pre-defined Commands =
</TD></TR></TBODY></TABLE>
      <P>Philips has created a beautiful list of "standardized" =
commands. This=20
      ensures the compatibility between devices from the same brand. =
<BR>A very=20
      nice feature, often to be missed with other brands, is the fact =
that most=20
      devices are available twice in the table allowing you to have 2 =
VCRs=20
      stacked on top of each other without having trouble addressing =
only one of=20
      them with your remote control. <BR>I can only show a limited list =
of=20
      standard commands, for this list is about all I know right now. =
</P>
      <TABLE class=3Dparagraph>
        <TBODY>
        <TR>
          <TD vAlign=3Dtop>
            <TABLE cellSpacing=3D0 cellPadding=3D1 border=3D1>
              <TBODY>
              <TR>
                <TD align=3Dmiddle =
width=3D70><STRONG>RC-5<BR>Address</STRONG></TD>
                <TD align=3Dmiddle =
width=3D120><STRONG>Device</STRONG></TD></TR>
              <TR>
                <TD align=3Dmiddle>$00 - 0</TD>
                <TD align=3Dmiddle>TV1</TD></TR>
              <TR>
                <TD align=3Dmiddle>$01 - 1</TD>
                <TD align=3Dmiddle>TV2</TD></TR>
              <TR>
                <TD align=3Dmiddle>$02 - 2</TD>
                <TD align=3Dmiddle>Teletext</TD></TR>
              <TR>
                <TD align=3Dmiddle>$03 - 3</TD>
                <TD align=3Dmiddle>Video</TD></TR>
              <TR>
                <TD align=3Dmiddle>$04 - 4</TD>
                <TD align=3Dmiddle>LV1</TD></TR>
              <TR>
                <TD align=3Dmiddle>$05 - 5</TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -