IrPHY 1p4
IrPHY 1p4
Serial Infrared
Physical Layer Specification
Version 1.4
Authors
Many people contributed to this physical layer document, primarily from Hewlett-Packard, IBM, Vishay and
Sharp.
Editor of Version 1.4:
Wee-Sin Tan of Agilent Technologies, (65) 215-7200 (65) 278-0791, [email protected]
Editor of the VFIR physical layer
John Petrilla of Agilent Technologies, San Jose, CA, USA
Walter Hirt of IBM Research Division, Zurich Research Laboratory, Ruschlikon, Switzerland
Youichi Yuuki of Sharp Corporation, Optoelectronics Device Division, Electronic Component Group,
Nara, Japan
Editor of version 1.3 and author of appendices (Test Methods and Examples):
John Petrilla of HP, (408)435-6608, (408)435-6286 (fax), [email protected]
Author of low power option extension to 0.576 Mbit/s, 1.152 Mbit/s and 4.0 Mbit/s data rates:
Raymond Quek of HP, (65) 2798871, (65) 2780791 (fax), [email protected]
The primary author and editor of versions 1.0 through 1.2:
Joe Tajnai of HP, (408)435-6331, (408)435-6286 (fax), [email protected].
Contributor
Dr. Jorg Angerstein of Vishay Semiconductor GmbH, Heilbronn, Germany
Document Status
Version 1.0 was approved at the IrDA meeting on April 27, 1994.
Version 1.1 was approved at the IrDA meeting on October 17, 1995.
Version 1.2 was approved at the IrDA meeting on October 16, 1997.
Minor edits were done after the meeting.
Version 1.3 was approved at the IrDA meeting on October 15, 1998.
Minor edits were made after the meeting
Current Changes
(Changes from Version 1.3, approved on Oct 15, 1998)
Merging of the errata (Jan 8 1999) which contains the;
Extension of Physical layer specifications for 16.0 Mbit/s data rates,
proposal for a new modulation code for 16.0 Mbit/s rate, and
addition of new signaling rate and encoding and decoding examples for 16.0 Mbit/s rate.
Inclusion of the Amendment 2 calculations to the eye safety standards
Prior Changes
(Changes from Version 1.2, Errata approved Oct. 15, ‘98, Document edits completed Nov. 20 ‘98)
Low power option extended to 0.576 Mbit/s, 1.152 Mbit/s and 4.0 Mbit/s data rates.
Recommendation added of higher EMI test ambient for operation with or near mobile phone or pager.
Appendix B.4. revised to include examples for standard, low power and mixed operation at 1.152 Mbit/s and
4.0 Mbit/s and tables reformatted for consistency. Noise calculations revised for better match with model.
Various typographical errors corrected.
ii
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
SUMMARY:
Following is the notice of conditions and understandings upon which this document is made available to
members and non-members of the Infrared Data Association.
IrDA publications, including notifications, updates, and revisions, are accessed electronically by IrDA
members in good standing during the course of each year as a benefit of annual IrDA membership.
Electronic copies are available to the public on the IrDA web site located at irda.org. Requests for
publications, membership applications or more information should be addressed to: Infrared Data
Association, P.O. Box 3883, Walnut Creek, California, U.S.A. 94598; or e-mail address: [email protected]; or
by calling (925) 943-6546 or faxing requests to (925) 943-5600.
COPYRIGHT:
1. Prohibitions: IrDA claims copyright in all IrDA publications. Any unauthorized reproduction, distribution,
display or modification, in whole or in part, is strictly prohibited.
2. Authorized Use: Any authorized use of IrDA publications (in whole or in part) is under NONEXCLUSIVE
USE LICENSE ONLY. No rights to sublicense, assign or transfer the license are granted and any attempt to
do so is void.
TRADEMARKS:
1. Prohibitions: IrDA claims exclusive rights in its trade names, trademarks, service marks, collective
membership marks and feature trademark marks (hereinafter collectively "trademarks"), including but not
limited to the following trademarks: INFRARED DATA ASSOCIATION (wordmark alone and with IR logo),
IrDA (acronym mark alone and with IR logo), IR logo and MEMBER IrDA (wordmark alone and with IR
logo). Any unauthorized use of IrDA trademarks is strictly prohibited.
2. Authorized Use: Any authorized use of an IrDA collective membership mark or feature trademark is by
NONEXCLUSIVE USE LICENSE ONLY. No rights to sublicense, assign or transfer the license are granted
and any attempt to do so is void.
IrDA makes no representation or warranty whatsoever with regard to IrDA member or third party
ownership, licensing or infringement/non-infringement of intellectual property rights. Each recipient of IrDA
publications, whether or not an IrDA member, should seek the independent advice of legal counsel with
regard to any possible violation of third party rights arising out of the use, attempted use, reproduction,
distribution or public display of IrDA publications.
iii
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
IrDA assumes no obligation or responsibility whatsoever to advise its members or non-members who
receive or are about to receive IrDA publications of the chance of infringement or violation of any right of
an IrDA member or third party arising out of the use, attempted use, reproduction, distribution or display of
IrDA publications.
LIMITATION of LIABILITY:
DISCLAIMER of WARRANTY:
All IrDA publications are provided "AS IS" and without warranty of any kind. IrDA (and each of its
members, wholly and collectively, hereinafter "IrDA") EXPRESSLY DISCLAIM ALL WARRANTIES,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND WARRANTY OF NON-
INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
IrDA DOES NOT WARRANT THAT ITS PUBLICATIONS WILL MEET YOUR REQUIREMENTS OR THAT
ANY USE OF A PUBLICATION WILL BE UN-INTERRUPTED OR ERROR FREE, OR THAT DEFECTS
WILL BE CORRECTED. FURTHERMORE, IrDA DOES NOT WARRANT OR MAKE ANY
REPRESENTATIONS REGARDING USE OR THE RESULTS OR THE USE OF IrDA PUBLICATIONS IN
TERMS OF THEIR CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE. NO ORAL OR
WRITTEN PUBLICATION OR ADVICE OF A REPRESENTATIVE (OR MEMBER) OF IrDA SHALL CREATE
A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF THIS WARRANTY.
IrDA warrants ONLY the media upon which any publication is recorded to be free from defects in materials
and workmanship under normal use for a period of ninety (90) days from the date of distribution as
evidenced by the distribution records of IrDA. IrDA's entire liability and recipient's exclusive remedy will be
replacement of the media not meeting this limited warranty and which is returned to IrDA. IrDA shall have
no responsibility to replace media damaged by accident, abuse or misapplication. ANY IMPLIED
WARRANTIES ON THE MEDIA, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE, ARE LIMITED IN DURATION TO NINETY (90) DAYS FROM
THE DATE OF DELIVERY. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS, AND YOU MAY
ALSO HAVE OTHER RIGHTS WHICH VARY FROM PLACE TO PLACE.
Membership in IrDA or use of IrDA publications does NOT constitute IrDA compliance. It is the sole
responsibility of each manufacturer, whether or not an IrDA member, to obtain product compliance in
accordance with IrDA Specifications.
All rights, prohibitions of right, agreements and terms and conditions regarding use of IrDA publications
and IrDA rules for compliance of products are governed by the laws and regulations of the United States.
However, each manufacturer is solely responsible for compliance with the import/export laws of the
countries in which they conduct business. The information contained in this document is provided as is and
is subject to change without notice.
iv
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table of Contents
AUTHORS ................................................................................................................................................................................. II
DOCUMENT STATUS ................................................................................................................................................................ II
CURRENT CHANGES ................................................................................................................................................................. II
P RIOR CHANGES ...................................................................................................................................................................... II
INFRARED DATA ASSOCIATION (IRDA) - NOTICE TO THE TRADE -.................................................................... III
TABLE OF CONTENTS ............................................................................................................................................................... V
FIGURES .................................................................................................................................................................................. VI
TABLES ................................................................................................................................................................................. VIII
1. INTRODUCTION...........................................................................................................................................................1
1.1. SCOPE..............................................................................................................................................................................1
1.2. REFERENCES ....................................................................................................................................................................1
1.3. ABBREVIATIONS & ACRONYMS .......................................................................................................................................2
1.4. DEFINITIONS....................................................................................................................................................................3
1.4.1. Link Definitions ..................................................................................................................................................3
1.4.2. Active Output Interface Definitions ...............................................................................................................3
1.4.3. Active Input Interface Definitions ..................................................................................................................4
2. GENERAL DESCRIPTION.........................................................................................................................................5
2.1. P OINT-TO-POINT LINK OVERVIEW ..................................................................................................................................5
2.2. ENVIRONMENT.................................................................................................................................................................5
2.3. MODULATION SCHEMES ..................................................................................................................................................5
2.4. EYE SAFETY STANDARDS ................................................................................................................................................5
3. MEDIA INTERFACE DESCRIPTION........................................................................................................................6
3.1. P HYSICAL REPRESENTATION ...........................................................................................................................................6
3.2. OPTICAL ANGLE DEFINITIONS..........................................................................................................................................6
4. MEDIA INTERFACE SPECIFICATIONS..................................................................................................................7
4.1. OVERALL LINKS ..............................................................................................................................................................7
4.2. ACTIVE OUTPUT INTERFACE ............................................................................................................................................8
4.3. ACTIVE INPUT INTERFACE ................................................................................................................................................9
5. 0.576, 1.152, 4.0 AND 16.0 Mbit/s MODULATION AND DEMODULATION ...............................................10
5.1. SCOPE............................................................................................................................................................................10
5.2. SERIAL INFRARED INTERACTION P ULSES .......................................................................................................................10
5.3. 0.576 AND 1.152 Mbit/s RATES .................................................................................................................................10
5.3.1. Encoding............................................................................................................................................................10
5.3.2. Frame Format ..................................................................................................................................................11
5.4. 4 Mbit/s RATE .............................................................................................................................................................13
5.4.1. 4PPM Data Encoding Definition...................................................................................................................13
5.4.2. PPM Packet Format .......................................................................................................................................15
5.4.3. Aborted Packets..............................................................................................................................................19
5.4.4. Back to Back Packet Transmission ...........................................................................................................19
5.5 16.0 Mbit/s RATE..........................................................................................................................................................19
5.5.1 HHH (1,13) Modulation Code..........................................................................................................................20
5.5.2 Data Encoding Definition..................................................................................................................................20
5.5.3 HHH (1,13) Packet Format .............................................................................................................................22
5.5.4 Scrambling and Descrambling Functions ....................................................................................................24
5.5.5 – State Table of Scrambler/Descrambler Reference Hardware ............................................................25
5.5.5 Aborted Packets ................................................................................................................................................27
5.5.6 Back to Back Packet Transmission..............................................................................................................27
v
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
vi
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
vii
IrDA Serial Infrared Physical Layer Specification,Version 1.4, February 6, 2001
Tables
Table 1. Link Distance Specifications
Table 2. Signaling Rate and Pulse Duration Specifications
Table 3. Active Output Specifications
Table 4. Active Input Specifications
Table 5. Measurement Parameters
Table 5a Accessible emission limits for class 1 (and class 1M) laser products
Table 6. Serial Infrared Specifications
Table 7. Receiver Data and Calculated Performance for Standard Operation at 115.2 kbit/s
Table 8. Receiver Data and Calculated Performance for Low Power Operation at 115.2 kbit/s
Table 9. Receiver Data and Calculated Performance for Standard Receiver & Low Power Transmitter
Operation at 115.2 kbit/s
Table 10. Receiver Data and Calculated Performance for Standard Operation at 1.152 Mbit/s
Table 11. Receiver Data and Calculated Performance for Low Power Operation at 1.152 Mbit/s
Table 12. Receiver Data and Calculated Performance for Standard Receiver & Low Power Transmitter
Operation at 1.152 Mbit/s
Table 13. Receiver Data and Calculated Performance for Standard Operation at 4.0 Mbit/s
Table 14. Receiver Data and Calculated Performance for Low Power Operation at 4.0 Mbit/s
Table 15. Receiver Data and Calculated Performance for Standard Receiver & Low Power Transmitter
Operation at 4.0 Mbit/s
Table 16. State transition/output table for the HHH(1, 13) code
Table 17. Reference Hardware to implement the scrambling/descrambling functions
Table 18. Receiver Data and Calculated Performance for Standard Operation at 16.0 Mbit/s
Table 19. Receiver Data and Calculated Performance for Low Power Operation at 16.0 Mbit/s
Table 20. Receiver Data and Calculated Performance for Standard Receiver & Low Power Transmitter
Operation at 16.0 Mbit/s
Table 21. Table that illustrates the delay of HHH(1, 13) encoding is five encoding cycles or 15 chips.
Table 22. Encoder states for payload sequence of Example 1.
Table 23. Operation of the HHH(1, 13) decoder shown in Fig. 18 for the payload of Example 1.
viii
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
1. Introduction
1.1. Scope
This physical specification is intended to facilitate the point-to-point communication between electronic
devices (e.g., computers and peripherals) using directed half duplex serial infrared communications links
through free space. This document specifies the optical media interfaces for Serial Infrared (SIR) data
transmission up to and including 115.2 kbit/s, 0.576 Mbit/s, 1.152 Mbit/s, 4.0 Mbit/s and 16 Mbit/s. It
contains specifications for the Active Output Interface and the Active Input Interface, and for the overall
link. It also contains Appendices covering test methods and implementation examples.
Over the past several years several optical link specifications have been developed. This activity has
established the advantages of optical interface specifications to define optical link parameters needed to
support the defined link performance. Optical interface specifications are independent of technology,
apply over the life of the link and are readily testable for conformance. The IrDA serial infrared link
specification supports low cost optoelectronic technology and is designed to support a link between two
nodes from 0 to at least 1 meter apart (20 cm for low power parts: please see Section 4.1) as shown in
Figure 1 (the two ports need not be perfectly aligned).
Optical
Interface Ports
Node 1
Link
Length
Node 2
1.2. References
The following standards either contain provisions that, through reference in this text, constitute provisions of
this proposed standard, or provide background information. At the time of publication of this document, the
editions and dates of the referenced documents indicated were valid. However, all standards are subject
to revision, and parties to agreements based on this proposed standard are encouraged to investigate the
possibility of applying the most recent editions of the standards listed below.
IrDA (Infrared Data Association) Serial Infrared Link Access Protocol (IrLAP), Version 1.1, June 16, 1996.
IrDA (Infrared Data Association) Serial Infrared Link Management Protocol, IrLMP), Version 1.1, January
23, 1996.
IrDA (Infrared Data Association) Serial Infrared Physical Layer Measurement Guidelines, Version 1.0,
January 16, 1998.
IrDA (Infrared Data Association) IrMC Specification, Version 1.0.1, January 10, 1998.
IEC Standard Publication 61000-4-3: Electromagnetic Compatibility for Industrial Process Measurement
and Control Equipment, Part 3: Radiated Electromagnetic Field Measurements.
1
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
IEC 60825-1:(1993) Safety of laser products-Part 1: Equipment classification, requirements and user’s
guide, as amended (reported at TC 76 Meeting, Frankfurt, Germany, October 31, 1997) and
Amendment 2 to IEC 60825-1 (dtd 17 Oct 2000).
CENELEC EN 60825-1/A11 (October 1996) (amendment to CENELEC version of IEC 60825-1:(1993)
2
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
3
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Optical Over Shoot, % of Full (or 100%), is the peak optical signal level above the steady state
maximum, less the steady state maximum, expressed as a % of the steady state maximum.
Signaling Rate, (kilobits per second or megabits per second). The rate at which information (data and
protocol information) is sent or received.
Pulse Duration, % of bit period. This is the duration of the optical pulse, measured between 50%
amplitude points (relative to the 100% value, not the overshoot value), divided by the duration of the bit or
symbol period (depending on the modulation scheme), expressed as a percentage. This parameter is used
in the duty factor conversion between average and peak power measurements.
Edge Jitter, %. For rates up to and including 115.2 kbit/s, this is the maximum deviation within a frame
of an actual leading edge time from the expected value. The expected value is an integer number of bit
duration (reciprocal of the signaling rate) after the reference or start pulse leading edge. The jitter is
expressed as a percentage of the bit duration.
For 0.576 Mbit/s and 1.152 Mbit/s rates, the jitter is defined as one half of the worst case deviation
in time delay between any 2 edges within 32 bit durations of one another, from the nearest integer multiple
of the average bit duration. In other words, at 1.151 Mb/s (valid deviation from 1.152 Mb/s), if two pulses
can be found in a transmitted frame whose edges are separated by 25.10 microseconds, this would be out
of spec., since the nearest integer multiple of the bit duration is 25.195 microseconds, so the observed
delay is more than twice 2.9% of a bit period (50.3 nanoseconds) different from the expected delay.
For 4.0 Mbit/s and 16.0 Mbit/s, both leading and trailing edges are considered. From an eye
diagram (see measurements section-Appendix A), the edge jitter is the spread of the 50% leading and
trailing times. The jitter is expressed as a percentage of the symbol duration.
Peak Wavelength (nanometers). Wavelength at which the optical output source intensity is a maximum.
4
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
2. General Description
2.1. Point-to-Point Link Overview
The serial infrared link supports optical link lengths from zero to at least 1 meter with standard power
transceivers (20cm for low power transceivers: see section 4.1) for accurate (within specified bit error
ratio), free space communication between two independent nodes (such as a calculator and a printer, or
two computers).
2.2. Environment
The Optical Interface Specifications apply over the life of the product and over the applicable temperature
range for the product. Background light and electric field test conditions are presented in Appendix A.
5
IrDA Serial Infrared Physical Layer Specification,Version 1.4, February 6, 2001
6
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Half Angle
Optical Port Centerline Optical Axis
7
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Signaling Rate Modulation Rate Tolerance Pulse Duration Pulse Duration Pulse Duration
% of Rate Minimum Nominal Maximum
2.4 kbit/s RZI +/- 0.87 1.41 µs 78.13 µs 88.55 µs
9.6 kbit/s RZI +/- 0.87 1.41 µs 19.53 µs 22.13 µs
19.2 kbit/s RZI +/- 0.87 1.41 µs 9.77 µs 11.07 µs
38.4 kbit/s RZI +/- 0.87 1.41 µs 4.88 µs 5.96 µs
57.6 kbit/s RZI +/- 0.87 1.41 µs 3.26 µs 4.34 µs
115.2 kbit/s RZI +/- 0.87 1.41 µs 1.63 µs 2.23 µs
0.576 Mbit/s RZI +/- 0.1 295.2 ns 434.0 ns 520.8 ns
1.152 Mbit/s RZI +/-0.1 147.6 ns 217.0 ns 260.4 ns
4.0 Mbit/s
(single pulse) 4PPM +/-0.01 115.0 ns 125.0 ns 135.0 ns
(double pulse) 4PPM +/-0.01 240.0 ns 250.0 ns 260.0 ns
16.0 Mbit/s HHH(1,13) +/-0.01 38.3 ns 41.7 ns 45.0 ns
In order to guarantee non-disruptive coexistence with slower (115.2 kbit/s and below) systems, once a
higher speed (above 115.2 kbit/s) connection has been established, the higher speed system must emit a
Serial Infrared Interaction Pulse (SIP) at least once every 500 ms as long as the connection lasts to quiet
slower systems that might interfere with the link. A SIP is defined as a 1.6 µs optical pulse of the
transmitter followed by a 7.1 µs off time of the transmitter. It simulates a start pulse, causing the potentially
interfering system to listen for at least 500 ms. See Section 5.2.
The specified values for Rise Time Tr, Fall Time Tf, and Jitter are listed in Table 3.
Receiver Latency Allowance and Conditioning: The receiver electronics can become biased (or even
saturated) from optical power coupled from the adjacent transmitter LED in the node. If the link is operating
near the minimum optical irradiance condition (see Table 4), there may be a significant period of time
before the receiver relaxes to its specified sensitivity. This duration includes all aspects of a node changing
from transmit to receive. See IrDA (Infrared Data Association) Serial Infrared Link Access Protocol
(IrLAP) for negotiation of shorter latency times.
For latency critical applications, such as voice transmission as specified in (IrDA IrMC Specification
Version 1.0.1), a low power option module will not interoperate at the maximum link distance with a standard
module whose minimum latency is greater than 0.50 milliseconds. For applications where latency is not
critical (where latency may be negotiated to a value greater than 0.50 ms), interoperation is possible within
the appropriate distance specification.
Receivers with gain control or other adaptive circuitry may require conditioning after durations of no optical
input. The protocol allows for additional start flags (STAs) to be used for conditioning.
Link Access and Management Control protocols are covered in separate specification documents (see
Section 1.2., References).
8
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Minimum Intensity In Angular Range, mW/sr 115.2 kbit/s & below Std 40 -
“ “ “ “ “ “ 115.2 kbit/s & below LP 3.6 -
“ “ “ “ “ “ Above 115.2 kbit/s Std 100 -
“ “ “ “ “ “ Above 115.2 kbit/s LowPwr 9 -
Half-Angle, degrees All Both 15 30
Signaling Rate (also called Clock Accuracy) All Both See Table 2 See Table 2
Rise Time Tr, 10-90%, Fall Time Tf, 90-10% , ns 115.2 kbit/s & below Both - 600
Rise Time Tr, 10-90%, Fall Time Tf, 90-10%, ns > 115.2 kbit/s to Std - 40
4.0 Mbit/s
Rise Time Tr, 10-90%, Fall Time Tf, 90-10%, ns 16.0 Mbit/s Both - 19
Pulse Duration All Both See Table 2 See Table 2
Optical Over Shoot, % All Both - 25
Edge Jitter, % of nominal pulse duration 115.2 kbit/s & below Both - +/-6.5
Edge Jitter Relative to Reference Clock, 0.576 & 1.152 Mbit/s Both - +/-2.9
% of nominal bit duration
Edge Jitter, % of nominal Chip duration 4.0 Mbit/s Both - +/-4.0
Edge Jitter, % of nominal Chip duration 16.0 Mbit/s Std - +/-4.0
* For a given transmitter implementation, the IEC 60825-1 AEL Class 1 limit may be less than this. See
section 2.4 above and Appendix A.
Table 3. Active Output Specifications
4.3. Active Input Interface
If a suitable infrared optical signal impinges upon the Active Input Interface, the signal is detected,
conditioned by the receiver circuitry, and output to the IR Receive Decoder. The specified Active Input
Interface parameters appearing in Table 4 are defined in section 1.4. The test methods for determining the
values for a particular serial infrared interface are found in Appendix A.
SPECIFICATION Data Rates Type Minimum Maximum
Maximum Irradiance In Angular Range, mW/cm^2 All Both - 500
Minimum Irradiance In Angular Range, µW/cm^2 115.2 kbit/s & below LP 9.0 -
“ “ “ “ “ “ 115.2 kbit/s & below Std 4.0 -
“ “ “ “ “ “ Above 115.2 kbit/s LP 22.5 -
“ “ “ “ “ “ Above 115.2 kbit/s Std 10.0 -
Half-Angle, degrees All Both 15 -
Receiver Latency Allowance, ms 4.0 Mbit/s & below Std - 10
Receiver Latency Allowance, ms 4.0 Mbit/s & below LP - 0.5
Receiver Latency Allowance, ms 16.0 Mbit/s Both - 0.10
Table 4. Active Input Specifications
There is no Half-Angle maximum value for the Active Input Interface. The link must operate at angles from
0 to at least 15 degrees.
There are no Active Input Interface Jitter specifications, beyond that implied in the Active Output
Requirements. The link must meet the BER specification for all negotiated and allowable combinations of
Active Output Interface specifications, except for non-allowed codes. For rates up to and including 115.2
kbit/s, the allowed codes are described in Infrared Data Association Serial Infrared Link Access Protocol
(IrLAP), and Infrared Data Association Link Management Protocol. See Section 1.2, References. For
0.576 Mbit/s and 1.152 Mbit/s and 4.0 Mbit/s, see Section 5 of this document.
9
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
5. 0.576 Mbit/s, 1.152 Mbit/s, 4.0 Mbit/s and 16.0 Mbit/s Modulation and
Demodulation
5.1. Scope
This section covers data modulation and demodulation above 115.2 kbit/s up to 16.0 Mbit/s data rates. The
0.576 Mbit/s and 1.152 Mbit/s rates use an encoding scheme similar to 115.2 kbit/s; the 4.0 Mbit/s rate
uses a pulse position modulation (PPM) scheme. Both cases specify packet format, data encoding, cyclic
redundancy check, and frame format for use in communications systems based on the optical interface
specification.
The 16.0 Mbit/s rate uses the HHH(1,13) encoding scheme with the CRC check and frame format of 4.0
Mbit/s rate with necessary modfications to the frame format for the new modulation code.
Systems operating at these higher rates are transparent to IrLAP and IrLMP as it is defined for the lower
rates. Architecturally, it appears as an alternate modulation/demodulation (modem) path for data from
IrLAP bound for the IR medium. These higher rates are negotiated during normal IrLAP discovery
processes. For these and specific discovery bit field definitions of the higher rates, see documents
referenced in Section 1.2.
8.7us
1.6us
Serial Infrared
Interaction Pulse
C R C ( x ) = x 16 + x 12 + x 5 + 1
10
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
(For an example refer to the 32 bit CRC calculation in section 5.4.2.5 and adjust the polynomial for the one
indicated above and note the size will be 16 bits (2 bytes) instead of 32 bits (4 bytes) , note preset to all 1’s
and inversion of the outgoing CRC value)
(The address and control field are considered as part of data in this example.) For example, say four
bytes, ‘CC’hex, ’F5’hex, ’F1’hex, and ’A7’hex, are data to be sent out in sequence, then ‘51DF’hex is the
CRC-CCITT.
LSB MSB
Raw Data 00110011 10101111 10001111 11100101
LSB MSB
Data/CRC 00110011 10101111 10001111 11100101 11111011 10001010
2) A ‘Zero’ is inserted after five consecutive ones are transmitted in order to distinguish the flag from data.
Zero insertion is done on every field except the flags. Using the same data as an example;
LSB MSB
Data/CRC 00110011 10101111 10001111 11100101 11111011 10001010
First bit to be transmitted Last bit to be transmitted
Transmit Data 001100111010111110000111110110010111110101110001010
(Note: Underlined zeros are inserted bits.)
3) The beginning and ending flags, ‘7E’hex, are appended at the beginning and end. Using the same
example;
First bit to be transmitted Last bit to be transmitted
4) An additional beginning flag is added at the beginning. Finally the whole frame to be sent out is:
First bit to be transmitted Last bit to be transmitted
Tx Frame 011111100111111000110011101011111000011111011001011111010111000101001111110
5) The transmitter sends out 1/4-bit-cell-length pulse of infrared signal whenever data is zero. For example,
the frame to be sent out is 0100110101 in binary in the order of being transmitted, then the following figure
illustrates the actually transmitted signal for lower data rates and also for 0.576 and 1.152 Mbit/s.
NRZ
1.6 usec
or or or
<1.152 Mb/s
11
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The 0.576 Mbit/s and 1.152 Mbit/s frame format follows the standard HDLC format except that it requires
two beginning flags and consists of two beginning flags, an address field, a control field, an information
field, a frame check sequence field and minimum of one ending flag. ‘7E’hex is used for the beginning flag
as well as for the ending flag. The frame format is the same as for the lower rate IrLAP frame with STA
changed from ‘C0’hex to ‘7E’hex and STO changed from ‘C1’hex to ‘7E’hex.
S S A S
16b
T T D DATA T
FCS
A A D O
R
12
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Back to back, or “brick-walled” frames are allowed with three or more flags, ‘01111110’b, in between. If
two consecutive frames are not back to back, the gap between the last ending flag of the first frame and the
STA of the second frame should be separated by at least seven bit durations (abort sequence).
Ct
Dt
Because there are four unique chip positions within each symbol in 4PPM, four independent symbols exist
in which only one chip is logically a "one" while all other chips are logically a "zero." We define these four
unique symbols to be the only legal data symbols (DD) allowed in 4PPM. Each DD represents two bits of
payload data, or a single "data bit pair (DBP)", so that a byte of payload data can be represented by four
DDs in sequence. The following table defines the chip pattern representation of the four unique DDs
defined for 4PPM.
Logical “1” represents a chip duration when the transmitting LED is emitting light, while logical “0”
represents a chip duration when the LED is off.
Data encoding for transmission is done LSB first. The following examples show how various data bytes
would be represented after encoding for transmission. In these examples transmission time increases from
left to right so that chips and symbols farthest to the left are transmitted first.
13
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
14
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
A C Information CRC32
In this packet format, the payload data is encoded as described in the 4PPM encoding above, and the
encoded symbols reside in the DD field. Maximum packet length is negotiated by the same mechanism as
for the slower rates. The preamble field (PA) is used by the receiver to establish phase lock. During PA,
the receiver begins to search for the start flag (STA) to establish symbol synchronization. If STA is
received correctly, the receiver can begin to interpret the data symbols in the DD field. The receiver
continues to receive and interpret data until the stop flag (STO) is recognized. STO indicates the end of a
frame. The chip patterns and symbols for PA, STA, FCS field, and STO are defined below. Only complete
packets that contain the entire format defined above are guaranteed to be decoded at the receiver (note
that, as for the lower rates, the information field, I, may be of zero length).
The 4PPM data encoding described above defines only the legal encoded payload data symbols. All other
4 chip combinations are by definition illegal symbols for encoded payload data. Some of these illegal
symbols are used in the definition of the preamble, start flag, and stop flag fields because they are
unambiguously not data.
15
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
16
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
C R C ( x ) = x 32 + x 26 + x 23 + x 22 + x 16 + x 12 + x 11 + x 10 + x 8 + x 7 + x 5 + x 4 + x 2 + x + 1
The CRC32 calculated result for each packet is treated as four data bytes, and each byte is encoded in the
same fashion as is payload data. Payload data bytes are input to this calculation in LSB first format.
The 32 bit CRC register is preset to all "1's" prior to calculation of the CRC on the transmit data stream.
When data has ended and the CRC is being shifted for transmission at the end of the packet, a "0" should
be shifted in so that the CRC register becomes a virtual shift register. Note: the inverse of the CRC register
is what is shifted as defined in the polynomial. An example of a verilog implementation follows to describe
the process.
module txcrc32(clrcrc,clk,txdin,nreset,crcndata,txdout,bdcrc);
/* ************************************************************************* */
// compute 802.X CRC x32 x26 x23 x22 x16 x12 x11 x10 x8 x7 x5 x4 x2 x + 1
// on serial bit stream.
/* ************************************************************************* */
/* bdcrc is input signal used to send a bad crc for test purposes */
/* note ^ is exclusive or function */
input clrcrc,clk,txdin,nreset,crcndata,bdcrc;
output txdout;
reg [31:0] nxtxcrc,txcrc;
/* ************************************************************************* */
// XOR data stream with output of CRC register and create input stream
// if crcndata is low, feed a 0 into input to create virtual shift reg
/* ************************************************************************* */
wire crcshin = (txcrc[31] ^ txdin) & ~crcndata;
/* ************************************************************************* */
// combinatorial logic to implement polynomial
/* ************************************************************************* */
always @ (txcrc or clrcrc or crcshin)
begin
if (clrcrc)
nxtxcrc <= 32'hffffffff;
else
begin
nxtxcrc[31:27] <= txcrc[30:26];
nxtxcrc[26] <= txcrc[25] ^ crcshin; // x26
nxtxcrc[25:24] <= txcrc[24:23];
nxtxcrc[23] <= txcrc[22] ^ crcshin; // x23
nxtxcrc[22] <= txcrc[21] ^ crcshin; // x22
nxtxcrc[21:17] <= txcrc[20:16];
nxtxcrc[16] <= txcrc[15] ^ crcshin; // x16
nxtxcrc[15:13] <= txcrc[14:12];
nxtxcrc[12] <= txcrc[11] ^ crcshin; // x12
nxtxcrc[11] <= txcrc[10] ^ crcshin; // x11
nxtxcrc[10] <= txcrc[9] ^ crcshin; // x10
nxtxcrc[9] <= txcrc[8];
17
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The following shows a CRC calculation and how the results would be represented after encoding for
transmission. The results of the CRC calculation (txcrc[31 - 0]) is shown in the next table when the contents
of the DD field is X’1B’ and X’A4’, where X’1B’ is the first byte of the DD field. If the four bytes of CRC are
counted as received data, then the resultant 6 bytes in order would be X’1B’, X’A4’, X’94’, X’BE’, X’54’ and
X’39’.
[31]
[0]
txcrc[31-0] 1101 0110 1000 0010 1101 0101 0110 0011
~txcrc[31-0] 0010 1001 0111 1101 0010 1010 1001 1100
18
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
19
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The HHH(1,13) code is a Run Length Limited (RLL) code that provides both power efficiency and
bandwidth efficiency at the high data rate. The signaling rate of the code is 24 Mchips/s allowing a rise and
fall time of 19 ns. LED on time is further improved by having a 26% average duty cycle for random data.
The lower duty cycle is achieved by scrambling the incoming data stream.The run length constraints (d, k)
= (1, 13) ensure an inactive chip after each active chip, i.e. only single-chip-width pulses occur. This
feature allows a source or a receiver to exhibit a long tail property. To take full advantage of the d = 1
feature of HHH(1, 13) in strong signal conditions, clock and data recovery circuitry should be designed to
ignore the level of the chip following an active chip and assume these chips are inactive. The modulation
code is enhanced with simple frame-synchronized scrambler/descrambler mechanisms as defined and
described in Section 5.5.4. While such a scheme does not eliminate worst-case duty cycle signal patterns
in all specific cases, the probabilities of their occurrence are reduced signifcantly on average. This leads to
a better “eye” opening and reduced jitter in the recovered signal stream for typical payload data.
• Encoder initialization: The state S = (s1, s2, s3) = (1, 0, 0) is also used as the initial state of the
encoder, i.e., denoting with (α, β) the first pair of data bits to be encoded, the state S is forced to take
on the value (1, 0, 0) when the bits (α, β) have advanced into the encoding circuits such that the
internal inputs B1 = (b1, b2) ≡ (α, β).
20
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The State transition table above can be implemented as a set of encoding equations as below:
Define the following encoder signal vectors where increasing indexes mean increasing time in the
equivalent serial signal streams:
Next state: N = (n 1 , n 2 , n 3 )
Internal codeword: C = ( c1 , c 2 , c 3 )
21
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
1 2 3
the components of N and C are computed in terms of the components of S , B , B , and B with the
following Boolean expressions:
n 1 = (s1 s 3 ) + (s 3 b1 ) + (s1 b1 b 2 b 3 ) + (s1 b1 b 2 b 4 b 5 b 6 ) ,
n 2 = (s 3 b 1 ) + (s 1 s 2 b1 b 2 ) ,
n 3 = ( s 3 b 2 ) + ( s 1 b 1 b 2 ) + ( s 1 s 2 b1 b 2 ) ,
c1 = s1 s 2 ,
c 2 = s 1 s 2 c3 ,
c 3 = s1 s 3 (b1 + b 2 ) + (s1 s 3 b 1 b 2 b 3 b 4 ) .
1 2 3
The vectors B , B , B , S , and Y are outputs of latches; in every encoding cycle, they are updated as
follows:
B1 ← B2 ← B3 ← D ,
S ← N , and Y ← C .
5.5.3 HHH (1,13) Packet Format
5.5.3.1 Packet Overview
The packet format for 16.0 Mbit/s HHH(1,13) has the following form
The payload data is encoded as described in the HHH (1,13) encoding above, and the encoded symbols
reside in the IrLAP Frame field. The preamble field (PA) is used by the receiver to establish phase lock.
During PA, the receiver begins to search for the start flag (STA) to establish symbol synchronization. If
STA is received correctly, the receiver can begin to interpret the data symbols in the IrLAP Frame field.
The receiver continues to receive and interpret data until the stop flag (STO) is recognized. STO indicates
the end of a frame. The chip patterns and symbols for PA, STA, CRC field, and STO are defined below.
Only complete packets that contain the entire format defined above are guaranteed to be decoded at the
receiver (note that, as for the lower rates, the information field, I, that is part of the IrLAP field, may be of
zero length).
The 16.0 Mbit/s packet contains several fields for the purposes of clock recovery, synchronization and data
transmission. In concept, the packet format is similar to that used in 4.0 Mbit/s and thus the existing
controller designs can be used at a higher data rate. However, there are specific controller elements like
clock recovery, synchronization and encoding/decoding circuits that need to be implemented specifically
for 16.0 Mbit/s data rate. The packet engines in the existing controllers can be reused and this will mean
gate count and reengineering effort is kept to a minimum.
5.5.3.2 Preamble Field Definition
The transmitted PREAMBLE (PA) is constructed by concatenating ten times (10×) the 24-chip (1 µs)
PREAMBLE PERIOD (PP), where
PP = ’100’010’010’001’001’001’000’100’,
to form the complete 240-chip (10 µs) preamble
PA = ’PP’PP’PP’PP’PP’PP’PP’PP’PP’PP’.
The left-most/right-most chip of PP and PA, respectively, is transmitted first/last and a ’1’ in PP means an
active chip (pulse) and a ’0’ means an empty chip (no pulse).
22
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The Start Flag Delimiter allows for packet synchronization. A delimiter detection circuit should declare a
flag as having been found when there is a perfect match between the receiver chip stream and a particular
delimiter. The Start and Stop delimiters contain a subsequence ‘1001010101001’ that violates the HHH
(1,13) code. This subsequence occurs twice in the Start Flag delimiter and never occurs within the main
HHH code.
5.5.3.5. CRC:
Computation remains unchanged from the 32-bit CRC defined for the 4 Mbit/s data rate. Please refer
Section 5.4.2.5 for this CRC function. The content of the CRC field is first scrambled with the scheme
recommended in Section 5.5.4 and then encoded with HHH(1, 13) as described in Section 5.5.2. Note
that the 32 CRC bits for the IrLAP frame are calculated before the IrLAP frame is scrambled. The
transmitted CRC field is a 48-chip (2 µs) sequence.
23
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The NULL field increases the probability that the packet is terminated close to the STOP flag. The NULL
field also reduces the probability that two back to back packets are interpreted as a single packet, should
the STOP flag delimiter of the first packet be missed.
5.5.4 Scrambling and Descrambling Functions
It is advantageous to enhance the encoder/decoder system with simple scrambler/descrambler functions.
The primitive polynomial
x8 ⊕ x4 ⊕ x3 ⊕ x2 ⊕ 1 ,
where ⊕ indicates a modulo-2 addition or, equivalently, a logic exclusive OR (XOR) operation, is proposed
for implementing these functions. The operations of the proposed scrambling and descrambling functions
are performed according to the principles of frame synchronized scrambling/descrambling (FSS)
mechanisms. Note that FSS does not introduce memory into the signal path, i.e., FSS does not increase
the encoding/decoding delay and it does not aggravate error propagation in the decoded data stream. The
hardware used for scrambling during transmission can mostly be reused during the descrambling process
in reception mode.
The reference hardware implementation of the proposed scrambling/descrambing scheme is shown in the
following figure. The linear feedback shift register (LFSR) produces a maximum-length pseudo-random
sequence with period 255. It is important to note that the proposed scrambling/descrambling functions are
implemented with an LFSR where the feedback taps are configured according to the so-called one-to-many
implementation; for reasons of compatibility, implementations should adhere to this type of LFSR.
Furthermore, it is assumed that the output of register cell x6 shown in the figure is defined to be the
equivalent serial output of the LFSR.
The modulo-2 adders shown in the figure correspond to logic XOR (exclusive OR) gates. During
transmission, each new pair of source bits (d1', d2') is XOR-ed with a new pair of scrambling bits (s1, s2)
to produce the scrambled data bit pair (d1, d2) entering the encoder. Similarly, during reception, each
new pair of decoded bits (u1, u2) is XOR-ed with a new pair of descrambling bits (s1, s2) to produce the
descrambled user bit pair (u1', u2') that is sent to the data sink. A scrambling/descrambling cycle has
duration 3T seconds where T = 41.7 ns is the chip period.
24
IrDA Serial Infrared Physical Layer Specification, Draft Version 1.4, February 6, 2001
x8 x7 x6 x5 + x4 + x3 + x2 x1
s1 s2
d1' d1 Y1
from + HHH(1,13)
DATA
d2 Y2 to Transmitter
d2' ENCODER
source + Y3
u1' u1 r1
to + HHH(1,13)
DATA r2 from Receiver
sink u2' u2 DECODER
+ r3
Fig 14. Reference Hardware to implement the scrambling/descrambling functions. The LFSR is
implemented in the one-to-many form.
Payload sequence: {(d1’, d2’)} = (0, 0) (0, 1) (0, 0) (1, 1) (1, 1) (1, 1) (0, 1) (0, 1)
Scrambling sequence: {(s1, s2)} = (1, 1) (0, 1) (0, 0) (1, 1) (0, 0) (1, 1) (0, 1) (0, 1)
Scrambled sequence: {(d1, d2)} = (1, 1) (0, 0) (0, 0) (0, 0) (1, 1) (0, 0) (0, 0) (0, 0)
Decoded scrambled sequence: {(u1, u2)} = (1, 1) (0, 0) (0, 0) (0, 0) (1, 1) (0, 0) (0, 0) (0, 0)
Descrambling sequence: {(s1, s2)} = (1, 1) (0, 1) (0, 0) (1, 1) (0, 0) (1, 1) (0, 1) (0, 1)
Descrambled payload sequence:{(u1’, u2’)} = (0, 0) (0, 1) (0, 0) (1, 1) (1, 1) (1, 1) (0, 1) (0, 1)
Legend:
a = count index for scrambling/descrambling cycle
bcdefghi = x8, x7, x6, x5, x4, x3, x2, x1 (LFSR contents = state)
jk = s1, s2 (pair of scrambling/descrambling bits)
25
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
26
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 17: The complete state table of the scrambler/descrambler reference hardware shown in Fig.14.
27
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
28
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
This intensity measurement requires means to measure optical power as well as the distance and angle
from a reference point. Power measured in milliwatts (mW) or microwatts (µW) is converted to intensity in
mW/sr (or µW/sr) or irradiance in mW/cm^2 (or µW/cm^2). In addition, if there are any cosmetic
windows or filters that are part of the interface, they must be in place for all intensity and spatial distribution
optical measurements
The primary reference point is the center point of the surface of the IrDA optical port and the port's optical
axis is the line through the reference point and normal to the port surface. Link specifications are based on
the assumption that the maximum intensity at the port surface is 500 mW/cm^2 due to a point source of 500
mW/sr maximum intensity placed one centimeter behind the reference surface. Distance is measured
radially from the reference point to the test head. Half-Angle is the angular deviation from the optical axis
as shown in Figure 4. The plane of the detector at the Test Head is normal to the radial vector from the
center of the optical port to the detector.
Test Head
Half Angle
Optical Port Centerline Optical Axis
The IrDA link specification is based on peak optical power levels. Power measurement can be made on a
single pulse or by averaging a sequence of pulses and converting to peak levels. Averaging methods
require knowledge of the pulse sequence and/or duty factor in order to calculate the peak power from the
reported average. In addition, for short pulse durations, attention must be paid to the effect of the rise and
fall times of the optical signal on the effective optical pulse duration.
The test head is to be calibrated to provide accurate results for signals within the appropriate ranges of
wavelength, pulse and pulse sequence characteristics. The size of the photodetector in the test head must
be known in order to translate the results from power (mW or µW) to irradiance (mW/cm^2 or µW/cm^2)
and intensity (mW/sr or µW/sr). Finally, the test head should be aimed directly at the reference point, i.e.,
the test detector should be normal to the vector from the center of the optical port to the center of the test
detector.
The power measurement should be made at a distance large enough to avoid near field optical effects but
close enough to receive a robust signal. To test for an appropriate distance, make power measurements at
half and double the chosen distance and check that the results are consistent with an inverse square
relationship.
Resolution of spatial intensity variation should be as fine as the smallest detector. Unfortunately, because
the detected signal intensity is averaged over the size of the test head, resolution becomes a tradeoff with
signal strength. However, there is no size constraint in the Active Input Interface specification for the
detector in the IrDA receiver. It is impractical to test with an infinitesimal detector. A suggested test setup
employs a 1 cm^2 area photodiode at a distance of 30 cm from the emitter. For a circular photodiode, the
29
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
diameter is 1.13 mm, which subtends an angle of 1.08°, or 0.00111 steradians. Any measurement setup
should have at least this angular resolution.
Figure 5 contains a graphical representation of the serial infrared Active Output Interface specifications.
The measured intensity must be less than or equal to "Maximum Intensity In Angular Range" in the angular
region less than or equal to 30 degrees and less than or equal to "Minimum Intensity In Angular Range" in
the angular region greater than 30 degrees. The measured intensity must be greater than or equal to
"Minimum Intensity In Angular Range" in the angular region less than or equal to 15 degrees. The minimum
allowable intensity value is indicated by “min” in Figure 5, since the actual specified value is dependent
upon data rate.
Acceptable Range
min
Unacceptable
-30 -15 0 15 30
Angle (Degrees)
30
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
These measurements require means to measure optical power and an oscilloscope (or equivalent) with
sufficient bandwidth to resolve jitter to better than 0.2 µs (for data rates up to and including 115.2 kbit/s).
For the data rates up to 4.0 Mbit/s, jitter down to 10 ns must be resolved. For 16.0 Mbit/s, the jitter is about
3 ns. Thus, the oscilloscope bandwidth should be sufficiently high to observe the jitter.
Definitions of the reference point, etc., are the same as for the Active Output Interface power
measurements and the same considerations for test distance and signal strength apply. The test head
should be positioned within +/-15 degrees of the optical axis and aimed directly at the reference point.
Rise Time, Fall Time, Pulse Duration and Overshoot can be measured for a single optical pulse. Since
overshoot is referenced to the pulse amplitude at the end of the pulse, the maximum duration pulses should
be used in this test. For Rise Time, Fall Time, Pulse Duration and Overshoot, refer to Figure 6. It is critical
to determine the 100% level, since all four of these parameters are dependent upon it. If there is
uncertainty concerning the existence of the flat region that defines the 100% level (is there over shoot, or
does the pulse have a long, rounded top?), measurements at a longer drive pulse duration will resolve this,
and allow easier determination of the 100% level.
Jitter and Signaling Rate require a sequence of pulses for determination. For data rates up to and
including 115.2 kbit/s, the signal is asynchronous at the byte; therefore Jitter and Signal Rate are only
relevant within a byte. For 0.576 Mbit/s, 1.152 Mbit/s and 4.0 Mbit/s, however, the optical bit stream is
synchronous for up to 500 ms, though typically less than 20 ms (window = 7, packet size = 2k). Thus, the
measurement requires the accumulation of data over a longer time interval.
Overshoot
Tr Tf
100%
90% 90%
50% 50%
10% 10%
0%
Pulse Duration
31
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
the maximum departure from predicted arrival time of the actual arrival time. Since jitter may be pattern
dependent, various data should be used in the test signal.
For 0.576 Mbit/s and 1.152 Mbit/s RZI and 4.0 Mbit/s 4PPM and 16.0 Mbit/s HHH(1,13), an entire packet
can be used to determine jitter. The optical signal should be detected using a high speed optical detector
(e.g., a reverse-biased, small silicon p-i-n diode). The detector output signal is displayed using a storage
oscilloscope set to trigger as often as possible during a packet, the stored image displaying an eye
diagram. Care should be taken to use time constants in any ac coupling which are much, much longer
than the symbol times.. The jitter (in time units) is half of the horizontal “smear” of the eye signal at the
50% level, where the leading and trailing edges of the signal cross (see Figure 8). To determine data rate,
a counter may be used at 4.0 Mbit/s and 16.0 Mbit/s if a sufficiently long data transmission is available.
For 0.576 Mbit/s and 1.152 Mbit/s, an oscilloscope and back to back packets are recommended to
determine data rate.
For 0.576 and 1.152 Mbit/s, there may be some implementations which use a digital synthesizer to
generate the transmitter clock. In this case, there may be jitter of up to +/- 25 ns relative to an idealized
reference clock. Typically, with a 40 MHz primary clock, the jitter would be +/- 12.5 ns from the
synthesizer, and another 5 ns or so from the driver and LED.
The jitter may be measured indirectly by using a high speed photodiode and a digitizing oscilloscope to
measure the variance in edge to edge delay. Configure the transmitter to repetitively send large (2kb)
packets of data (approximately 2 ms), and trigger the oscilloscope on any rising optical edge. Capture a
section of the waveform delayed from the reference edge by 1 to 31 times the bit period. Capture several
hundred repetitions at each delay, and measure the spread in the edge locations. It is necessary to
measure at several delays since any one delay might be a multiple of the clock synthesis cycle, and show
artificially small jitter. Measurements at several prime intervals should be sufficient, e.g., at 3, 7, 13 ,19,
and 31 times the bit period. The jitter relative to a "reference" clock is one half of the worst case spread in
the rising edges at each delay.
The jitter may also be measured relative to a reference clock generated with an analog phase locked loop
with a tracking bandwidth of about 10 kHz, locked to the optical signal edges. In this case, the oscilloscope
should be triggered on the reference clock edge, and several hundred optical signal edges should be
collected. Adequate time must be allowed for the PLL to settle before collecting edges, so the oscilloscope
trigger should be gated for several PLL time constants after the beginning of a packet.
Optical Pulse J
Optical Pulse 1 Predicted Actual
(Optical Reference Signal)
50%
32
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
2x Jitter
scanner
emitter image
relay lens
The apparent source size, s, is deemed to be the diameter of the smallest circular aperture containing
approximately 63.2% of the incident light.
Measurements of source output power must be made at the correct distance, r, and with the correct
aperture diameter, d. Under the amendment to IEC 60825-1 (and CENELEC EN60825-1) the
measurement conditions for measuring output power, source to measurement aperture distance, r, and
aperture diameter, d, are functions of apparent source size, s in mm or α (mrad). The eye safety standard
used angles for defining source sizes. When using a fixed distance of 100mm, source size and apparent
angular source size can be calculated simply by s (mm) = α (mrad)/10. The constants αmin and αmax are
given with αmin = 1.5 mrad and αmax = 100mrad.
The measurement distance, r, measurement aperture diameter, d, are derived from apparent source size,
s, as follows:
Aperture Diameter (d) Measurement Distance (r)
33
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
α + 0.46mrad
Fixed 7.0 mm aperture in 14 mm to 100 mm
distance r
r = (100mm ) ×
α max
if α < αmin, r = 14 mm. If α ≥ αmax, r = 100 mm
Variable 7 – 50 mm aperture d in 100 mm
α max
d = (7 mm ) × distance
α + 0.46 mrad
if α < αmin, d = 50 mm. If α ≥ αmax, d = 7 mm
These relationships apply for s between 0.15 mm and 10 mm, which probably includes all IrDA compliant
emitters.
A fixed aperture of 7.0 mm can be easier to implement, and then adjust the measurement distance
according to the calculation. Whether the aperture is fixed at 7.0 mm or the distance is fixed at 100 mm,
only light output power passing through the aperture is measured for comparison to the AEL Class limits.
distance
photo-
diode
emitter
aperture
Source output power can be derived from measured photocurrent resulting from light collected on a
calibrated photodiode detector. Measured photocurrent in amps can be converted to detected power in
watts, using the calibration factor in A/W (amps/watt).
For source wavelength λ = 700-1050 nm, the AEL Class 1 limit is calculated as:
Parameters: IREDs 700 nm to 1050 nm, relevant time base, CW or averaged operation, thermal limits
34
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
C6 C6 = 1, α ≤ αmin
C6 C6 = α/αmin, αmin < α < αmax
C6 C6 = αmax/αmin = 66.7, α > αmax
C7 C7 = 1
T2 (α−αmin )
T2 = 10 × 10 98 . 5
s
αmin αmin = 1.5 mrad
αmax = 100 mrad
Table 5a: Accessible emission limits for class 1 (and class 1M) laser products
The recent modification (effective January 2001) changes the minimum source angular subtense (1.5mrad
as against 11mrad) and adds two break points for the exposure time t(T1 and T2). In case of IrDA
transmission, the break point T2 is 10 s for α <1.5 mrad and 100s for α > 100 mrad.
For other cases, T2 is computed as given with the relation in the table above.
The relation between angular subtense α and apparent source size diameter s is given by
α = 1000 x [2 x tan-1((s/2)/100 mm] (mrad)
s = apparent source size (mm)
The AEL Class 1 limit can be calculated by the formula given in the table above.
It is convenient to express both the AEL Class limit and the measured AEL of the system in terms of W/sr
(watts/steradian). System source radiant intensity is often specified in mW/sr (milliwatts per steradian).
Apparent source angular subtense, α, is the 2-dimensional angle subtended by the source’s radiated light
image at a distance of 100 mm. A 3-dimensional angle (solid angle) subtended by the source’s radiated
light image can be expressed in units of steradians. A hemisphere (1/2 of a sphere) subtends a solid
angle of 2π steradians. The solid angle, Ω, subtended by a cone of full angle, θ, is given by:
Ω = 2π (1 - cos( θ/2 ) )
Given the measurement distance, r, and the aperture diameter, d, the solid angle given by:
Ω = 2π (1 - cos( tan-1( d/2r )) )
The measured AEL and AEL Class limits can now be expressed in watts/steradian:
AEL (watts/steradian) = AEL (watts) / Ω (steradians)
Given the measurement distance, r, and the aperture diameter, d, the AEL is:
AEL (mW/sr) = AEL (mW)/ (2π (1 - cos( tan-1( d/2r )) ) )
Once the source radiant intensity in milliwatts/steradian has been determined, it can be compared with the
AEL Class limits for classification. If the output does not exceed the Class 1 limit, the operation is Class 1.
For more information, refer to IEC 60825-1 or CENELEC EN 60825-1 and their amendments.
35
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
characteristics. BER measurements require some method to determine errors in the received and
decoded signal. The latency test requires exercise of the node's transmitter to condition the receiver.
Definitions of the reference point, etc., are the same as for the Active Output Interface optical power
measurements except that the test head is now an optical power source with the in-band characteristics
(Peak Wavelength, Rise and Fall Times, Pulse Duration, Signaling Rate and Jitter) of the Active Output
Interface. The optical power source also must be able to provide the maximum power levels listed in the
Active Output Specifications. It is expected that the minimum levels can be attained by appropriately
spacing the optical source from the reference point.
Figure 11 illustrates the region over which the Optical High State is defined. The receiver is operated
throughout this region and BER measurements are made to verify the maximum and minimum
requirements. The ambient conditions of A.1 apply during BER tests; BER measurements can be done
with worst case signal patterns. Unless otherwise known, the test signal pattern should include maximum
length sequences of "1"s (no light) to test noise and ambient, and maximum length sequences of "0"s (light)
to test for latency and other overload conditions.
The minimum allowable intensity value is indicated by “minimum” in Figure 11, since the actual specified
value is dependent upon data rate.
2
Irradiance (or Incidance) (mW/cm )
(Vertical axis is not drawn to scale.)
500
Undefined Region
Optical
High
Undefined Region
State
minimum
-30 -15 0 15 30
Angle (Degrees)
36
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
B.1. Definitions
UART - Universal Asynchronous Receiver/Transmitter: an electronic device/module that interfaces with a
serial data channel.
IR Transmit Output
Driver IR Out
Encoder & LED Active
Output
16550 Encoder/ IR
Compatible Decoder Transducer Interface
[0] [1] [2]
UART Module Module [3]
Active
Up To Output
Output Interface
115.2 kb/s Driver
& LED IR Out
1.152 Mb/s IR
Comm. Transducer
Controller Module
4.0 Mb/s
Detector & IR In
16.0 Mb/s Receiver Active
Input
Figure 12 b. Example of One End of Link Interface
For Signaling Rates Up to 16.0 Mb/s
37
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
B.3. Functionality & Electrical Waveforms - Data Rates Up to & Including 115.2 kbit/s
In Figure 12a, the signal to the left of the UART [0] will not be discussed. The signal between the UART and
the Encoder/Decoder [1] is a bit stream of pulses in a frame comprised a Start Bit, 8 Data Bits, no Parity
Bit and ending with a Stop Bit, as shown in Figure 13a.
The signal at [2], between the Encoder/Decoder Module and the IR Transducer Module is shown in Figure
13b. The electrical pulses between the IR Transmit Encoder and the Output Driver & LED are 3/16 of a bit
period in duration (or, for the slower signaling rates, as short as 3/16 of the bit period for 115.2 kbit/s).
Note that the IR Transmit Encoder and the Output Driver and LED pulses begin at the center of the bit
period. The electrical pulses between the Detector & Receiver and the IR Receive Decoder are nominally
of the same duration as those between the IR Transmit Encoder and the Output Driver & LED, but may be
longer in some implementations. Thus, the electrical signals at [2] are analogs of the optical signals at [3];
an example of a nominal waveform is shown in Figure 13b. A "0" is represented by a pulse and a "1" is
represented by no pulse.
UART Frame
Start Stop
Bit Data Bits Bit
0 1 0 1 0 0 1 1 0 1
IR Frame
Start Stop
Bit Data Bits Bit
0 1 0 1 0 0 1 1 0 1
38
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
The three segments of Table 6 appear in specifications in section 4 of the main body of this document and
are repeated here for convenient reference. Tables 7, 8 and 9 present examples of 115.2 kbit/s receiver
implementations for standard, low power and mixed operation. Tables 10, 11 and 12 present similar
examples for 1.152 Mbit/s implementations as do Tables 13, 14 and 15 for 4.0 Mbit/s operation. Tables 7
through 15 also repeat specifications for convenient reference.
TERMS:
Detector Responsivity (µA/(mW/cm2) is a photodiode characteristic combining sensitivity (A/W) and
effective area.
Channel Response Time is the 10% to 90% rise time produced by the rms combination of the Active
Output rise time and step response rise time of the preamplifier.
Receiver Noise Current is the thermal noise associated with the impedance at the input of the
preamplifier and the associated bandwidth.
Sunlight Ambient Noise Current is the shot noise associated with the sunlight induced photodiode
current and the associated bandwidth.
Receiver Noise Current is the rms combination of the receiver and sunlight ambient noise currents.
Comparator Threshold is assumed to be at 50% of the minimum signal condition to yield optimum signal
to noise ratios for both high and low states.
Specified Signal/Noise ratio for BER is the SNR calculated to achieve the required BER for a static
signal level where the threshold is at 50% of the high state and noise is gaussian.
Receiver Margin is the ratio of the actual SNR to the Specified SNR for BER expressed in
dB(optical).
Penalty: Eye Loss for Bandwidth Limits is the additional signal required for the minimum pulse
width to reach 100% of the eye opening height expressed in dB(optical).
Margin for Edge Jitter, EMI, other is the signal margin above the Specified SNR for BER remaining after
accounting for Eye Loss for Bandwidth Limits expressed in dB(optical).
39
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
40
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 7. Receiver Data and Calculated Performance for Standard Operation at 115.2 kbit/s
41
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 8. Receiver Data and Calculated Performance for Low Power Operation at 115.2 kbit/s
42
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 9. Receiver Data and Calculated Performance for Standard Receiver &
Low Power Transmitter Operation at 115.2 kbit/s
43
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 10. Receiver Data and Calculated Performance for Standard Operation at 1.152 Mbit/s
44
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 11. Receiver Data and Calculated Performance for Low Power Operation at 1.152 Mbit/s
45
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 12. Receiver Data and Calculated Performance for Standard Receiver &
Low Power Transmitter Operation at 1.152 Mbit/s
46
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 13. Receiver Data and Calculated Performance for Standard Operation at 4.0 MBIT/S
47
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 14. Receiver Data and Calculated Performance for Low Power Operation at 4.0 Mbit/s
48
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 15. Receiver Data and Calculated Performance for Standard Receiver &
Low Power Transmitter Operation at 4.0 Mbit/s
49
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 18. Receiver Data and Calculated Performance for Standard Operation at 16.0 Mbit/s
50
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 19. Receiver Data and Calculated Performance for Low Power Operation at 16.0 Mbit/s
51
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Table 20. Receiver Data and Calculated Performance for Standard Receiver &
Low Power Transmitter Operation at 16.0 Mbit/s
Example in this section are provided to show the VFIR decoder and encoder implemetation.
Figure 15 shows the reference implementation of the HHH(1, 13) encoder specified by the equations in
Section 5.5.2. The purpose of this figure and Table 21 is to illustrate how on the time scale the
encoder’s data inputs (d1, d2) are related to the encoder’s output triplets (Y1, Y2, Y3); each of these
output triplets, also called codewords, carries the information of a specific pair of input bits. Note that,
throughout this document, increasing indexes in the signal vectors mean increasing time in the
respective serial signal streams. Correct interpretation and implementation of the HHH(1, 13) code
requires that a pair of specific input bits D = (d1, d2) ≡ (δ1, δ2) arriving at the encoder’s input in the
time interval nT (1/T = 24 MHz is the chip frequency) must first be “absorbed” into the next state N ≡
52
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
(η1, η2, η3) and then into the state S ≡ (σ1, σ2, σ3) before the internal codeword C ≡ (γ1, γ2, γ3)
associated with (δ1, δ2) can be computed. In Fig. 15, the next state N ≡ (η1, η2, η3) associated with
the data bits (δ1, δ2) occurs in the time interval (n+9)T, i.e, three encoding cycles (one encoding cycle
has duration 3T) after the data bits (δ1, δ2) have arrived at the encoder input. In the next cycle,
(n+12)T, S ≡ (σ1, σ2, σ3) takes on the value of N and the inner codeword C ≡ (γ1, γ2, γ3) now
associated with (δ1, δ2) is being computed; it takes one further encoding cycle before this codeword C
becomes available as the encoder’s output codeword Y ≡ (δ1, δ2, δ3) associated with (δ1, δ2). The
encoding process yields therefore a delay of five encoding cycles or, equivalently, of 5×3T = 15T
seconds.
d1 b1 c1 Y1
L L L
b3 c2 L Y2
b5 c3 Y3
d2 b2
L L L
b4 Random
b6 Logic
s1 n1
s2 n2 L
s3 n3
Fig. 15: The reference implementation of the HHH(1, 13) encoder indicating the inherent pipelining
of codeword generation. The equations for the random logic that computes the next state N = (n1, n2,
n3) and the inner codeword C = (c1, c2, c3), respectively, are defined in Section 5.5.2. Note that the
delay of HHH(1, 13) encoding is five encoding cycles or, equivalently, 15 chips each of length T = 41.7
ns (see also Table 21).
Table 21: Table that illustrates the delay of HHH(1, 13) encoding is five encoding cycles, or 15
chips. Referring to Fig. 15, a specific data pair D ≡ (δ1, δ2) arriving at the encoder input in the
interval nT is first associated with the next state N ≡ (η1, η2, η3) during time interval (n+9)T, when (b1,
b2) ≡ (δ1, δ2). During the next time interval, (n+12)T, the state S takes on the value of N and − based
on this state − the inner codeword C ≡ (γ1, γ2, γ3) is computed which now carries the information of
(δ1, δ2). In the time interval (n+15)T, the encoder output associated with the data pair (δ1, δ2), Y ≡
53
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
(Ψ1, Ψ2, Ψ3), leaves the encoder (Note: 1/T = 24 MHz is the chip frequency and ’x’ signifies don’t
care).
54
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Figure 16 shows the basic recommended gate-level implementation of the HHH(1, 13) encoder as
specified by the equations in Section 5.5.2. The required initialization circuits for the state S = (s1, s2,
s3) are not shown.
d2 d1 D n1 n2 n3 N C Y
LL L L
L L L s1 c1
A L Y1
L L L s2
b6 b4 b2 b5 b3 b1 s1 s 2 s 3 S
s1
c2
s1 b1 s2 A L Y2
A s1 A
s3 c3
s3 O c3
O n1 L Y3
s3
A
b1
b2 s3
s1 s1 A A
b1 O n2
b1 s3
A
b2 s1
b3 s1 s2
A
s1 s3 b1
b1 b1 b2
A
b2 b2
A s3
b4 b3 A O n3
b5 b2
b4
b6
s1
L = Latch 1
f CLOCK = f CHIP b1 A
A = AND Gate 3
O = OR Gate b2
55
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Define the following decoder signal vectors where increasing indexes mean increasing time in the
equivalent serial signal streams:
Internal variables: Z B = y4 + y5 + y6
ZC = y7 + y8 + y9
Z D = y10 + y11 + y12
X1 = (X11 , X12 ) = (x 1 , x 2 )
X 2 = (X 21 , X 2 2 ) = ( x 3 , x 4 )
X 3 = (X 31 , X 3 2 ) = ( x 5 , x 6 )
W = ( w1 , w 2 )
V = ( v1 , v 2 )
Decoder output: U = (u 1 , u 2 )
1 2 3
The components of X , X , and X are computed with the following Boolean expressions (for the
definition of the Boolean operator notation see Section 5.5.2 of this appendix):
x 1 = v1
x 2 = ( y 6 Z C ) + (Z B Z C Z D ) + v 2
x 3 = ( Z B Z C Z D ) + (Z B Z C ) + w 1 + w 2
x 4 = ( Z B Z C Z D y 3 ) + [Z B Z C (Z D + y 6 )] + w 2
x 5 = y10
x 6 = Z BZCZ D
1 2 3 4
The vectors Y , Y , Y , Y , U , V , and W are outputs of latches; in every decoding cycle, they
are updated as follows:
56
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Y1 ← Y2 ← Y3 ← Y4 ← R ,
W ← X3 , V ← X2 , U ← X1 ,
where U represents the decoded data bit pair. Note that both Z B and Z C can be directly obtained
from delayed versions of Z D (see also Figs. A3 and A4):
ZB ← ZC ← ZD .
Figure 17 shows the reference implementation of the HHH(1, 13) decoder specified by the equations in
Section B.5.3. The decoding delay of this decoder is four decoding cycles or 12T seconds where T
= 41.7 ns.
r1 L L L L
r2 L L L
Random
Logic
r3 L ZD ZC ZB y6 y3
ZC ZB
y10
x5 w1 x3 v1 x1
L L L u1
Random
Logic ZD ZC ZB y6
ZB x6 w2
Random x4
ZC Logic
Random v2 Random x2
ZD L Logic L Logic L u2
ZD ZC ZB y6 y3
Fig. 17: The reference implementation of the HHH(1, 13) decoder. The equations for the random
logic circuits that compute ZD , x6, x4, x3, and x2, respectively, are listed in Section B.5.3 of this
appendix. This form of implementation makes use of the fact that ZB and ZC are delayed versions of ZD.
The delay of HHH(1, 13) decoding is four decoding cycles or, equivalently, 12 chips each of length T =
41.7 ns.
Figure 18. shows the basic recommended gate-level implementation of the HHH(1, 13) decoder as
specified by the equations in Section B5.3. This implementation makes use of the fact that ZB and ZC
are delayed versions of ZD.
57
r3 LL LL LL LL
1
fCLOCK = f CHIP
3
R y10 ZD ZC ZB y6 y3
ZB ZB ZC
A A
ZC ZC y6
A
ZD
y3 ZD A
O
y6
ZB ZB
ZC A ZC A
ZD ZD
x3 v1 x1
x5 w1 O LL LL u1
y10 L
x6 w2 x4 v2 x2
LL O LL O LL u2
X3 W X2 V X1 U
Fig. 18. Basic recommended gate-level implementation of the HHH(1, 13) decoder.
EXAMPLE 1:
Scrambled payload: {(d1, d2)} = (1, 1) (0, 0) (0, 0) (0, 0) (1, 1) (0, 0) (0, 0) (0, 0)
Encoder output: {(Y1, Y2, Y3)} = (1, 0, 1) (0, 1, 0) (0, 1, 0) (0, 1, 0) (0, 0, 0) (0, 0, 0) (0, 1, 0) (0, 1,
0)
Decoded payload:{(u1, u2)} = (1, 1) (0, 0) (0, 0) (0, 0) (1, 1) (0, 0) (0, 0) (0, 0)
58
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Legend:
a = time index nT, n = 0, 1, … (a = *: reset latches to logic 0)
bc = data input, D = (d1, d2)
d = control signal: d = 1 enforces N = (n1, n2, n3) = (1, 0, 0)
efghij = internal data, (b1, b2, b3, b4, b5, b6)
klm = state, S = (s1, s2, s3)
nop = next state, N = (n1, n2, n3)
qrs = internal codeword, C = (c1, c2, c3)
tuv = encoder output, Y = (Y1, Y2, Y3)
wx = data bits carried by Y
y = control signal: y = 1 signals valid encoder output Y
z = count of encoding cycles
0 11 1 000000 100 100 000 010 00 0 0 – First data at input, (d1, d2) ≡ (α, β) = (1,
1)
3 00 1 000011 100 100 000 000 00 0 1
6 00 1 001100 100 100 000 000 00 0 2
9 00 0 110000 100 011 000 000 00 0 3 – S = (1, 0, 0) when (b1, b2) ≡ (α
α , β ) = (1,
1)
12 11 0 000000 011 000 101 000 00 0 4
15 00 0 000011 000 000 010 101 11 1 5 - First valid output Y / carries (α, β) = (1, 1)
18 00 0 001100 000 000 010 010 00 1 6
21 00 0 110000 000 111 010 010 00 1 7 - Last data at input, (d1, d2) = (0, 0)
24 00 0 000000 111 100 000 010 00 1 8 – First flush bits at input
27 00 0 000000 100 000 000 000 11 1 9
30 00 0 000000 000 000 010 000 00 1 10
33 00 0 000000 000 000 010 010 00 1 11 - Last flush bits at input
36[00] 0 000000 000 000 010 010 00 1 12 – Last output Y carrying data
39[00] 0 000000 000 000 010 010 00 1 13 – First output Y carrying flush bits
42[00] 0 000000 000 000 010 010 00 1 14
45[00] 0 000000 000 000 010 010 00 1 15
48[00] 0 000000 000 000 010 010 00 1 16 – Last output Y carrying flush bits
Table 22: Encoder states for payload sequence of Example 1. After the last flush bits have appeared at
the encoder’s input (time index 33), all-0 dummy data [00] is fed to the encoder during the last five
encoding cycles, until the output Y carrying the last pair of flush bits becomes available (time index 48).
59
IrDA Serial Infrared Physical Layer Specification, Version 1.4, February 6, 2001
Legend:
a = time index nT, n = 0, 1, … (a = *: reset latches to logic 0)
bcd = received codeword, R = (r1, r2, r3)
4
efg = internal codeword, Y = (y10, y11, y12)
hij = internal variables, (ZD, ZC, ZB), where ZC and ZB are outputs of latches as shown in Fig. 18
kl = internal variables, W =(w1, w2)
mn = internal variables, V = (v1, v2)
op = decoder output, U = (u1, u2)
q = control signal: q = 1 signals valid decoder output
r = count of decoding cycles
Table 23: Operation of the HHH(1, 13) decoder shown in Fig. 18 for the payload of Example 1.
EXAMPLE 2:
Scrambled payload: {(d1, d2)} = (1, 1) (0, 1) (0, 0) (0, 0) (1, 1) (0, 1) (0, 0) (0, 0)
Encoder output: {(Y1, Y2, Y3)} = (1, 0, 1) (0, 0, 1) (0, 1, 0) (0, 0, 1) (0, 0, 0) (0, 0, 0) (0, 1, 0) (0, 1, 0)
Decoded payload: {(u1, u2)} = (1, 1) (0, 1) (0, 0) (0, 0) (1, 1) (0, 1) (0, 0) (0, 0)
EXAMPLE 3:
Scrambled payload: {(d1, d2)} = (0, 1) (0, 0) (1, 1) (0, 0) (0, 0) (1, 1) (0, 1) (1, 0)
Encoder output: {(Y1, Y2, Y3)} = (0, 0, 1) (0, 1, 0) (0, 0, 0) (0, 0, 0) (0, 0, 1) (0, 0, 0) (0, 0, 0) (1, 0, 0)
Decoded payload: {(u1, u2)} = (0, 1) (0, 0) (1, 1) (0, 0) (0, 0) (1, 1) (0, 1) (1, 0)
60