Mfi Accessory Hardware Specification: Release R9
Mfi Accessory Hardware Specification: Release R9
Release R9
2012-02-21
Even though Apple has reviewed this document,
APPLE MAKES NO WARRANTY OR REPRESENTATION,
Apple Inc. EITHER EXPRESS OR IMPLIED, WITH RESPECT TO
© 2012 Apple Inc. THIS DOCUMENT, ITS QUALITY, ACCURACY,
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR
All rights reserved. PURPOSE. AS A RESULT, THIS DOCUMENT IS
PROVIDED “AS IS,” AND YOU, THE READER, ARE
ASSUMING THE ENTIRE RISK AS TO ITS QUALITY
No part of this publication may be reproduced, AND ACCURACY.
stored in a retrieval system, or transmitted, in IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT,
any form or by any means, mechanical, INDIRECT, SPECIAL, INCIDENTAL, OR
electronic, photocopying, recording, or CONSEQUENTIAL DAMAGES RESULTING FROM ANY
DEFECT OR INACCURACY IN THIS DOCUMENT, even
otherwise, without prior written permission of if advised of the possibility of such damages.
Apple Inc., with the following exceptions: Any THE WARRANTY AND REMEDIES SET FORTH ABOVE
person is hereby authorized to store ARE EXCLUSIVE AND IN LIEU OF ALL OTHERS, ORAL
documentation on a single computer for OR WRITTEN, EXPRESS OR IMPLIED. No Apple
dealer, agent, or employee is authorized to make
personal use only and to print copies of any modification, extension, or addition to this
documentation for personal use provided that warranty.
the documentation contains Apple’s copyright Some states do not allow the exclusion or limitation
of implied warranties or liability for incidental or
notice. consequential damages, so the above limitation or
exclusion may not apply to you. This warranty gives
The Apple logo is a trademark of Apple Inc. you specific legal rights, and you may also have
other rights which vary from state to state.
Use of the “keyboard” Apple logo
(Option-‐Shift-‐K) for commercial purposes
without the prior written consent of Apple may
constitute trademark infringement and unfair
competition in violation of federal and state
laws.
No licenses, express or implied, are granted
with respect to any of the technology described
in this document. Apple retains all intellectual
property rights associated with the technology
described in this document. This document is
intended to assist application developers to
develop applications only for Apple-‐labeled
computers.
Every effort has been made to ensure that the
information in this document is accurate. Apple
is not responsible for typographical errors.
Apple Inc.
1 Infinite Loop
Cupertino, CA 95014
408-‐996-‐1010
Introduction Introduction 11
30-‐Pin Connector 19
Headphone/Microphone Jack 21
Wireless Standards 23
iPhone Protocols 23
iPod touch Protocols 23
iPad Protocols 23
3
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CONTENTS
UART 51
USB 52
USB Device Mode 52
USB Host Mode 58
Bluetooth 61
General Requirements 61
Setting Up Bluetooth Communication for iAP 62
Using Bluetooth Transport for iAP 62
General Requirements 65
Audio Output From Accessories 65
Video Output From Accessories 65
Power Requirements 65
Car Charger Design Requirements 66
Battery Pack Design Requirements 66
Magnetic Fields From Accessories 66
USB Cables 66
Cases for Apple Devices 66
iPhone-‐Specific Requirements 66
Certification of iPhone Accessories 67
RF Transmission and Reception Factors 67
TDMA Noise Factors 67
Speaker System Design Requirements 67
iPod Out Accessory Requirements 68
AssistiveTouch Accessory Requirements 68
Wi-‐Fi Network Login Sharing Requirements for Accessories 69
Transmitter Chip 71
Overview 71
Part Numbers 72
Pin Assignments 72
Maximum Voltage and Current Ratings 74
Thermal Impedance 74
Moisture Sensitivity 74
Electrical Characteristics 74
Theory of Operation 76
Button Detection Circuitry 80
Circuit Adjustments 83
4
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CONTENTS
Converter Requirements 99
Switching Frequency Issues 99
Other Design Issues 100
Typical Design 100
Glossary 121
5
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CONTENTS
6
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
Figures and Tables
Introduction Introduction 11
7
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
FIGURES AND TABLES
Figure 3-‐1 Configuration and interface descriptors for Apple devices without USB audio 54
Figure 3-‐2 Configuration and interface descriptors for Apple devices with USB audio 54
Figure 3-‐3 Apple device vendor-‐specific HID report 55
Figure 3-‐4 Possible report packing scenarios 57
Figure 3-‐5 Transferring IdentifyDeviceLingoes and ACK commands over USB 57
Table 3-‐1 Apple device mark and space levels 51
Table 3-‐2 Link control byte usage 56
Table 3-‐3 USB Device Enumeration for Apple devices 59
Table 3-‐4 Lingoes accessible through Bluetooth 63
8
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
FIGURES AND TABLES
Figure F-‐1 Pinout for the headphone jack on the 4G iPod color display and 5G iPod 113
Figure F-‐2 30-‐pin to FireWire cable 114
Table F-‐1 Firmware versions introducing 38400/57600 bps serial baud rates 113
Table F-‐2 Deprecated RID values 115
9
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
FIGURES AND TABLES
10
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
INTRODUCTION
Introduction
NOTICE OF PROPRIETARY PROPERTY: THE INFORMATION CONTAINED HEREIN IS THE PROPRIETARY PROPERTY
OF APPLE INC. THE POSSESSOR AGREES TO THE FOLLOWING: (I) TO MAINTAIN THIS DOCUMENT IN CONFIDENCE,
(II) NOT TO REPRODUCE OR COPY IT, (III) NOT TO REVEAL OR PUBLISH IT IN WHOLE OR IN PART, (IV) ALL
RIGHTS RESERVED.
ACCESS TO THIS DOCUMENT AND THE INFORMATION CONTAINED THEREIN IS GOVERNED BY THE TERMS OF
THE MFI LICENSE AGREEMENT AND/OR THE IPOD-‐IPHONE AIS EVALUATION AGREEMENT. ALL OTHER USE
SHALL BE AT APPLE’S SOLE DISCRETION.
This specification covers the hardware requirements for third-‐party accessories that are designed to work
with Apple iPods, iPhones, and iPads.
IMPORTANT: This document uses the term “Apple devices” to refer generically to iPods, iPhones, and iPads,
all of which support the iPod Accessory Protocol (iAP) interface. Among these products, those that also run
iOS (Apple’s mobile operating system) are referred to as “iOS devices.” Specifications in this document that
are designated for iOS devices apply only to those products. Specifications designated for iPods apply only
to Apple devices that are not iOS devices.
The specifications in this document are arranged in the following chapters and appendixes:
■ “Hardware Interfaces” (page 19) specifies the electrical and mechanical interfaces between accessories
and Apple devices.
■ “Functional Hardware Description” (page 25) describes the functional characteristics of Apple devices,
plus their hardware interfaces.
■ “Command and Data Transports” (page 51) describes the UART, USB, and Bluetooth transports for
communication between accessories and Apple devices.
■ “Accessory Design Requirements” (page 65) summarizes certain hardware design requirements that
accessories must meet.
■ “Headphone Remote and Mic System” (page 71) describes Apple’s technology for sending button press
information from a headset accessory to an Apple device through the headphone connector.
■ “iOS Device Power Supply Requirements” (page 85) contains design guidelines for third-‐party developers
of DC and AC adapter accessories for iOS devices.
■ “Sample Accessory Circuits” (page 87) presents sample schematics for handling audio and video in
accessories for Apple devices.
■ “FireWire to USB Reference Design” (page 99) provides reference information for FireWire-‐to-‐USB
DC-‐to-‐DC converter designs.
■ “Interfacing With the 3G iPod” (page 105) summarizes some of the model-‐specific design requirements
for 3G iPod support.
■ “DisplayPort Digital Video Connectivity” (page 107) describes the DisplayPort output planned for future
Apple devices.
■ “Historical Information” (page 113) provides specifications for past Apple devices.
At the end of this document are a glossary of terms and a document revision history.
Table I-‐1 (page 12) lists the Apple devices covered by this specification.
iPod mini
Compatibility icon:
4G iPod
Product names: iPod (4th generation), iPod photo, iPod Shipped: 07/2004, 10/2004,
photo (2nd generation), iPod 4th generation (color display) 02/2005, 06/2005
Compatibility icons:
iPod nano
Compatibility icon:
5G iPod
Compatibility icons:
2G nano
Compatibility icon:
iPod classic
Compatibility icons:
Product names: iPod classic (120GB), iPod classic (160GB) Shipped: 09/2008, 9/2009
Compatibility icon:
3G nano
Compatibility icon:
4G nano
Compatibility icon:
iPhone
Compatibility icon:
iPod touch
Compatibility icon:
iPhone 3G
Compatibility icon:
2G touch
Compatibility icon:
iPhone 3GS
Compatibility icon:
5G nano
Compatibility icon:
3G touch
Compatibility icon:
iPad
Compatibility icon:
Connectivity: GSM (iPad 3G), Wi-‐Fi, Bluetooth, multi-‐touch display, dock connector,
microphone/headphone jack. Sensors: Assisted GPS, digital compass, accelerometer,
ambient light sensor.
iPhone 4
Product names: iPhone 4 (GSM model), iPhone 4 (CDMA Shipped: 06/2010, 02/2011,
model), iPhone 4S 10/2011
Compatibility icons:
Connectivity: CDMA or GSM (both in iPhone 4S), Wi-‐Fi, Bluetooth, multi-‐touch display,
dock connector, microphone/headphone jack. Sensors: Two still/video cameras, assisted
GPS, digital compass, 3-‐axis gyroscope.
6G nano
Compatibility icon:
4G touch
Compatibility icon:
iPad 2
Compatibility icon:
Connectivity: CDMA or GSM (iPad 2 (Wi-‐Fi + 3G)), Wi-‐Fi, Bluetooth, multi-‐touch display,
dock connector, microphone/headphone jack. Sensors: Still camera, still/video camera,
assisted GPS, digital compass, accelerometer, 3-‐axis gyroscope, ambient light sensor.
Product names: iPad with Wi-‐Fi (3rd generation), iPad with Shipped: 03/2012
Wi-‐Fi + 4G (3rd generation)
Compatibility icon:
Connectivity: CDMA or GSM (iPad with Wi-‐Fi + 4G (3rd generation)), Wi-‐Fi, Bluetooth,
multi-‐touch display, dock connector, microphone/headphone jack. Sensors: Still camera,
still/video camera, assisted GPS, digital compass, accelerometer, 3-‐axis gyroscope, ambient
light sensor.
Parts of this document contain specification requirements that are incorporated by reference into legal
agreements between Apple Inc. and its licensees. The use of the words “must,” “should,” and “may” in these
specifications have the following meanings:
Special Terminology
■ When a data field is marked “Reserved,” accessories writing to it must set it to 0 (unless otherwise noted)
and accessories reading it must ignore its value.
■ “Deprecated” marks an earlier technology that is no longer permitted in new accessory designs.
■ “USB Host Mode” is an operating mode in which an Apple device is a USB host and its attached accessory
acts as a USB device.
■ “USB device mode” is an operating mode in which an accessory is a USB host and its attached Apple
device acts as a USB device.
See Also
For further information, refer to the latest revisions of these additional documents:
Hardware Interfaces
This chapter describes the connector signals, pin assignments, and wireless standards for the primary hardware
interfaces to Apple devices.
30-‐Pin Connector
The 30-‐pin connector on the bottom end of the Apple device is the product’s primary hardware interface.
Table 1-‐1 (page 19) lists its pin assignments. Signal and ground connections to the pins must follow these
rules:
■ All four digital grounds (pins 1, 2, 15, and 16) must be connected together in the accessory if they are
conducted by its cable. Cables that plug into the 30-‐pin connector should not latch, because latching
can result in cable strain and damage to the Apple device.
■ Some of these pins are reassigned in Apple products that support DisplayPort; see Table E-‐1 (page 107).
■ Accessories must leave reserved pins unconnected (NC) unless otherwise specified.
1 DGND GND Digital ground in the Apple device and in the accessory.
2 DGND GND Digital ground in the Apple device and in the accessory.
10 Accessory Identify I See “Accessory Detect and Identify” (page 36) for details.
30-‐Pin Connector 19
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 1
Hardware Interfaces
13 Accessory Power O 3.3 V is the nominal output from the Apple device. Nominal current
is 5 mA or less (low power mode), with current limited to 100 mA
in high power mode. This output must not be used to detect the
presence of an Apple device.
15 DGND GND Digital ground in the Apple device and in the accessory.
16 DGND GND Digital ground in the Apple device and in the accessory.
18 Apple Device RX I iPod Accessory Protocol (Data to the Apple device from the
accessory)
19 Apple Device TX O iPod Accessory Protocol (Data from the Apple device to the
accessory)
20 Accessory Detect I See “Accessory Detect and Identify” (page 36) for details.
21 S Video Y / Component O Either the luminance signal of S Video or the (Pr) signal of
Video Pr component video. Only on Apple devices that support the
appropriate video signal.
22 S Video C / Component O Either the chrominance signal of S Video or the luma signal of
Video Y component video. Only on Apple devices that support the
appropriate video signal.
23 Composite Video / O Either the Composite Video signal or the (Pb) signal of Component
Component Video Pb Video. Only on Apple devices that support the appropriate video
signal.
24 Remote Sense I See “Minimizing Crosstalk and Noise” (page 42). Remote Sense is
supported only on Apple devices that support video output;
however, it is okay to connect this pin on other Apple devices.
25 LINE-‐IN L I Left channel audio line level input to the Apple devices listed in
Table 2-‐2 (page 26); deprecated.
26 LINE-‐IN R I Right channel audio line level input to the Apple devices listed in
Table 2-‐2 (page 26); deprecated.
27 LINE-‐OUT L O Line level output from the Apple device for the left channel.
28 LINE-‐OUT R O Line level output from the Apple device for the right channel.
29 A/V Return — Audio/Video return. This is a signal and must not be grounded
inside the accessory.
30 Apple Device Detect O Ground signal for Apple device detection. The accessory must
ground this pin if it is not monitoring it to detect Apple device
attachment.
20 30-‐Pin Connector
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 1
Hardware Interfaces
Headphone/Microphone Jack
Each Apple device contains a standard stereo headphone jack, but the headphone jack on some models may
also be used as a microphone input, with or without a control button. Figure 1-‐1 (page 21) shows an example
of circuitry in a headphone/microphone accessory for the iPhone.
Headphones
1 2.7 V
Right channel
Microphone 2 R1
FET impedance 3
converter
Output
L01 4
C1
10 pF 33 pF VAR1 4-pin
SW 3.5mm plug
R2
Ground
shield case L02
Component Value
Capacitor C1 1 µμF
VAR1 12 V varistor
Headphone/Microphone Jack 21
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 1
Hardware Interfaces
Note: The value given for L01 and L02 is typical. These ferrite chokes reduce time division multiple access
(TDMA) noise; their exact values depend on the specific accessory design.
Switch SW shorts the microphone signal to ground. The iPhone treats its closure as a headset button press
and initiates a context-‐specific action (for example, answering a phone call). The microphone bias current
must be between 210 and 500 µμA, measured into a circuit pulled up to 2.7 V through 2.21 kΩ, to ensure
button press detection. The recommended microphone sensitivity is –44 dBV with a maximum impedance
of 2.2 kΩ at the output of the equivalent circuit shown in Figure 1-‐1 (page 21), measured under test conditions
of Vs = 2.0 V, RL = 2.2 kΩ, Ta = 20° C, and relative humidity = 65%.
Figure 1-‐2 (page 22) shows the configuration and critical dimensions of the headphone plug that fits the
Apple device’s headphone/microphone jack.
Plug Diameter
3.50 +0.03/-0.05 mm
Plug length
14.00 ± 0.10 mm
Pin 4
Pin 1
Pin 2 Pin 3
Other dimensions of the Apple device’s headphone/microphone jack conform to the JEITA standard RC
5325A, “4-‐Pole Miniature Concentric Plugs and Jacks.” Table 1-‐2 (page 22) lists its electrical connections.
IMPORTANT: Every accessory cable and every connector that can be inserted into an Apple device’s
headphone/microphone jack must meet the foregoing requirements.
Pin Description
3 Signal return
4 Microphone input
22 Headphone/Microphone Jack
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 1
Hardware Interfaces
Any accessory that passes signals between the jack on an Apple device and another jack on the accessory
capable of accepting an Apple device headphone/microphone plug must support the button press technology
described in “Headphone Remote and Mic System” (page 71).
Wireless Standards
iPhone Protocols
■ GSM/EDGE (850, 900, 1800, 1900 MHz)
■ Wi-‐Fi (802.11 b/g)
■ Bluetooth 2.1 + EDR; see Web site iPhone, iPad, iPod touch: Supported Bluetooth profiles for a list of
supported profiles.
■ (iPhone 3G and 3GS only) UMTS/HSPDA (850, 1900, 2100 MHz)
■ (iPhone 3G, 3GS, and 4 (all models)) Assisted GPS
■ (iPhone, all models) Wi-‐Fi (802.11 b/g/n)
■ (iPhone 4, all models) UMTS/HSDPA (850, 900, 1900, 2100 MHz)
iPad Protocols
■ Wi-‐Fi (802.11 a/b/g/n)
■ Bluetooth 2.1 + EDR
■ (iPad 3rd generation only) Bluetooth 4.0
■ (iPad 3G only) UMTS/HSPDA (850, 1900, 2100 MHz) Data Only
■ (iPad 3G only) GSM (850, 900, 1800, 1900 MHz) Data Only
■ (iPad 3G + 4G only) Assisted GPS
■ (iPad 4G only) UMTS/HSPA/HSPA+/DC-‐HSDPA (850, 900, 1900, 2100 MHz) Data Only
■ (iPad 4G only) LTE (700, 2100 MHz) Data Only
Wireless Standards 23
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 1
Hardware Interfaces
24 Wireless Standards
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 2
This chapter describes the functional characteristics of Apple devices and their interfaces to accessories,
assuming that current firmware is installed.
The following tables mark the high-‐level capabilities of each of the Apple devices that support the iPod
Accessory Protocol (iAP):
■ Table 2-‐1 (page 25) shows the hardware transport protocols by which different models of Apple devices
communicate with accessories.
■ Table 2-‐2 (page 26) shows the hardware features available through each model’s 30-‐pin connector.
■ Table 2-‐3 (page 27) shows each model’s compatibility with external systems.
■ Table 2-‐4 (page 28) shows the USB device classes that each Apple device model supports when it is in
USB Host Mode.
Apple device UART USB Device Mode USB Host Mode Bluetooth
iPod mini ×
4G iPod ×
iPod nano × ×
5G iPod × ×
2G nano × ×
iPod classic × ×
3G nano × ×
iPhone × ×
iPod touch × ×
4G nano × ×
120 GB classic × ×
Apple device UART USB Device Mode USB Host Mode Bluetooth
2G touch × × ×
iPhone 3G × × ×
iPhone 3GS × × × ×
3G touch × × × ×
5G nano × ×
160 GB classic × ×
6G nano × × ×
4G touch × × × ×
Apple device Analog Analog Analog Analog video Para USB USB
audio audio in video out out Device Host
out (S-video/ (component) Mode Mode
composite)
4G iPod × × Para ×
5G iPod × × × Para ×
2G nano × × Para ×
3G nano × × × × Para ×
iPhone × × × × Para ×
4G nano × × × × Para ×
Apple device Analog Analog Analog Analog video Para USB USB
audio audio in video out out Device Host
out (S-video/ (component) Mode Mode
composite)
2G touch × × × × Para ×
iPhone 3G × × × × Para ×
3G touch × × × × Para × ×
5G nano × × × × Para ×
6G nano × × Para × ×1
4G touch × × × × × ×
1 The 6G nano can enter USB Host mode only if the accessory provides USB power to it.
iPod mini
4G iPod
iPod nano ×
5G iPod ×
2G nano ×
iPod classic ×
3G nano × ×
iPhone ×
iPod touch ×
4G nano × × ×
120 GB classic × ×
2G touch × × ×
iPhone 3G ×
iPhone 3GS × × ×
3G touch × × ×
5G nano × × ×
160 GB classic × ×
6G nano × × ×
4G touch × × ×
iPod mini
4G iPod
iPod nano
5G iPod
2G nano
iPod classic
3G nano
iPhone
iPod touch
4G nano
120 GB classic
2G touch
iPhone 3G
iPhone 3GS × ×
3G touch × ×
5G nano
160 GB classic
6G nano ×1
4G touch × × ×
This section describes certain functional characteristics of power and signals through the Apple device’s
30-‐pin connector.
USB 2.0
The 30-‐pin connector includes a USB interface designed to the USB 2.0 High Speed Specification. For full
specifications of the Universal Serial Bus, see http://www.usb.org/developers/docs.
Apple devices are USB-‐compliant devices that can be connected to a USB-‐compliant host or to a USB power
supply. When connected to an accessory, the Apple device follows the rules in the USB 2.0 Specification,
Section 7.1.7.3, to determine whether the accessory is signaling on the USB D+/D– lines or providing charging
current. A USB accessory should wait at least 2 seconds after it is disconnected before reconnecting, to give
the Apple device time to clear its USB stack and apply the USB rules at connection time.
Note: Accessories must comply with all published USB specifications. In particular, the connection between
the accessory and the Apple device must not show signs of consistent USB data corruption or packet loss.
Most Apple devices provide a USB Interface (iUI) for accessories. The iUI allows the Apple device to be
controlled through iAP, using a USB Human Interface Device (HID) interface as a transport mechanism. See
“USB” (page 52) for more information.
Note: Accessories must not use Apple devices as mass storage devices.
Accessories may contain internal or external power supplies, but their design must follow the guidelines in
“iOS Device Power Supply Requirements” (page 85) to avoid interfering with the sensor operation of touch
screens. In addition, accessory power supplies must meet the electrical certification requirements described
in “Electrical Testing and Certification” in MFi Accessory Testing Specification.
The requirements for accessory power supplies depend on whether they provide only power over USB or
both power and data over USB. The differences are specified in the following sections.
USB Power
Note: Accessories that have a 30-‐pin connector and do not implement iAP must provide power to the Apple
device.
To be compatible with iPods and iPhones, an accessory must provide a minimum of 4.70 V and 1.0 A; to be
compatible with iPads as well, it must provide a minimum of 4.55 V and 2.1 A. These voltages and currents
must be measured at the USB Vbus input of the Apple device (pin 8 on its 30-‐pin connector). If possible,
accessories should provide 5.0 V to decrease the Apple device’s charging time.
An accessory that powers an Apple device and does not communicate with the Apple device using iAP, nor
permit a USB host to connect to the Apple device through the accessory, must connect the USB D+ and D–
pins as shown in Figure 2-‐1 (page 30). These resistors must be present on the D+ and D-‐ pins at the time
the Apple device is connected without requiring user action such as moving a switch or pressing a button.
Some Apple devices will not charge if an attached power source lacks the necessary resistors.
USB Vbus
R1
D+ Pin 4
USB Vbus
R2
R3
D– Pin 6
R4
Product applicability Required for the iPad and Required for the iPod Deprecated
iPad-‐compatible accessories; and iPhone (do not use)
OK for the iPod and iPhone
Notes: The 4G iPod, iPod Classic, and 5G iPod are not compatible with the 10.5 W charger specification. 500
mA power supplies are allowed only for certain battery pack accessories and require explicit approval from
Apple.
For safety reasons, an accessory providing power to an Apple device must detect any non-‐transient current
drain of more than 2.5 A. The accessory must immediately cut off its power supply, after which it may perform
a power-‐up reinitialization. This over-‐current detection and shut-‐off circuitry must reset itself without
mechanical intervention.
Every Apple device-‐compatible connector on an accessory that uses D+/D-‐ resistors, as shown in Figure
2-‐1 (page 30), must have its own set of resistors. The accessory must be capable of supplying the total current
required when all ports are in use, regardless of whether the ports are Apple device-‐compatible or not. If the
accessory has standard USB type-‐A connectors supplying 500 mA that could be used to provide power to
an Apple device in addition to Apple device-‐compatible USB type-‐A connectors, then (a) the standard USB
type-‐A connectors supplying 500 mA must be labeled using the USB icon, and (b) the Apple device-‐compatible
USB type-‐A connectors must be labeled, either singly or in groups, with the text “iPod/iPhone” or “iPad”
depending on their device compatibility. Additionally, if the accessory has multiple 30-‐pin connectors with
different device compatibilities, then the iPad-‐compatible connectors must be labeled with the text “iPad”
unless it is physically impossible to connect an iPad to the iPod/iPhone compatible connectors.
To be compatible with iOS devices, accessories that supply power must be designed to minimize electrical
interference with the touch screen; see “iOS Device Power Supply Requirements” (page 85).
Note: Accessories that charge Apple devices must not wait for Accessory Power (pin 13 of the 30-‐pin
connector) to go high before supplying power on USB Vbus (pin 8).
An accessory that powers an Apple device and communicates with it using iAP, or permits a USB host to
connect to it through the accessory, must comply with the requirements in this section in addition to the
requirements specified in “USB Power” (page 30).
All accessory connectors designed for use with a separate cable that terminates in an Apple 30-‐pin dock
connector must meet the following requirements, regardless of whether the cable is included with the
accessory or provided by the end user:
■ The connectors must provide at least 4.90 V and 1.0 A power to be compatible with iPods and iPhones.
■ They must provide at least 4.97 V and 2.1 A power to be also compatible with iPads.
■ They must meet or exceed all applicable USB-‐IF specifications, both mechanical and electrical (or only
electrical if the connector is not a standard USB connector).
All accessory cables that terminate in an Apple 30-‐pin dock connector must meet the following requirements:
External Hosts
An accessory connected to an Apple device that either passes Vbus power from a USB host (such as a personal
computer), or passes the host’s D+ and D– signals, must pass both Vbus and D+/D–. The accessory must
ensure that the external USB data signals and Vbus power are passed through to the Apple device without
interference, and without violating the USB Specification in such areas as voltage tolerance on the Vbus line
and rise time, eye diagrams, and monotonicity requirements on the D+/D– data lines.
The resistors that must be present on the USB D+ and D– lines when passing Vbus power to an Apple device
(as specified in “USB Power” (page 30)) may interfere with USB communications on the those lines. An
accessory with an external port that can be connected to a personal computer (for Apple device
synchronization, for example) must detect the presence of the computer and disable or remove the resistors
from the D+/D– lines electronically.
When an accessory disables or removes resistors from the USB D+ and D– lines, it must use a switch with an
open capacitance of less than 10 pF; the design goal is 6 pF. This is critical to avoid degrading the signal
characteristics of high-‐speed USB data traffic. In addition, the USB D+/D– lines must maintain a differential
impedance of less than 90 Ω with minimal DC resistance.
When an accessory attached to an Apple device is also connected to a personal computer, it must pass USB
Vbus power to the Apple device via pin 8 of the 30-‐pin connector. Some personal computers can supply
more than 500 mA through their USB ports; this ensures that if the Apple device needs more power than is
available from the accessory, it will be able to get extra power from the computer. Hence the Apple device
must be able to draw power from the computer’s USB port whenever the accessory is plugged into it. Failure
to pass Vbus power through may result in the Apple device not communicating with the computer.
Note: The traces and circuits used to pass USB Vbus power must be capable of handling at least 2.5 A. This
is the minimum current necessary to guarantee synchronization of an Apple device with iTunes on any
computer.
An accessory that provides power to an Apple device must tell the Apple device how much power is available
at all times. The way that the accessory must do this depends on its iAP transport, as shown in Table 2-‐7 (page
33).
UART Send the iAP command SetAvailableCurrent or use D+/D-‐ resistors as shown in
Figure 2-‐1 (page 30). SetAvailableCurrent is recommended.
USB Device mode If the accessory grounds Accessory Detect, send the iAP command
SetAvailableCurrent. If the accessory does not ground Accessory Detect (such as
one that uses a USB-‐to-‐30-‐pin dock connector cable), send USB Vendor Requests as
specified in “USB Device Mode Vendor Requests” (page 33).
The USB device request shown in Table 2-‐8 (page 34) tells an Apple device in USB Device mode how much
power is available. The device request may be sent after the first 8 bytes of the Apple device’s USB device
descriptor are received; this lets the maximum packet size of EP0 be determined. For details of this and other
parts of the USB interface, see http://www.usb.org/developers/docs.
Note: When an Apple device is connected or powered on, it can momentarily draw more than 1 A from the
accessory. Accessories must comply with the USB specification for voltage and inrush current.
Table 2-8 USB Device Vendor Request to set available current from accessory (USB Device Mode only)
wValue Typical values: 0, 100, or 500 Extra current (in mA) the Apple device may draw in
suspend state
wIndex Recommended value for Apple Extra current (in mA) the Apple device may draw when
devices: +500 not in suspend state. Recommended value of +500
Recommended value for iPads: allows 1 A configured; +1600 allows 2.1 A configured;
+1600 –500 allows nothing configured.
Note: The combined value of the extra current and the specification current is rounded down to the next
lower useful value (0, 0.5, 2.5, 100, 500, 1000).
The time at which the USB device request specified in Table 2-‐8 (page 34) takes effect varies by the USB
Product ID of the Apple device, as shown in Table 2-‐9 (page 34). USB Product IDs are discussed in “Choosing
an Apple Device USB Configuration” (page 53).
0x1200–0x1260 Older Apple devices All requests take effect at configuration time and are
cancelled by sleep.
0x1261–0x128F iPod 3G nano, Classic, and Requests for extra current take effect as soon as they
newer Apple devices are sent; requests for extra suspend current take effect
at suspend time. Neither request is cancelled by the
iPod sleeping or waking up.
0x1290–up iPhone, iPod touch, iPhone 3G, Currently, all requests take effect at configuration time
2G touch, iPhone 3GS and are cancelled by sleep. This behavior may change
to that of newer Apple devices in the future.
Accessory Power
By default, the Accessory Power pin (pin 13 of an Apple device’s 30-‐pin connector) supplies 5 mA (low power
mode) at 3.0 V to 3.3 V ±5% (2.85 V to 3.465 V). Accessories requesting more power must meet all the
requirements specified in “Accessory Power Policy” (page 47). When accessories are inactive, they must
consume 5 mA or less (low power mode).
Note: Accessories must not use the Accessory Power output to detect the presence of an Apple device.
Current that the Apple device supplies on the Accessory Power line of the 30-‐pin connector is switched off
for at least 2 seconds during the Apple device’s bootstrap process. This is done to reset Apple device-‐powered
accessories and make them identify themselves to the Apple device 80 ms after power resumes. Self-‐powered
accessories must stop sending iAP packets when their power turns off and identify themselves to the Apple
device 80 ms after their power turns back on.
Accessory power is returned through pins 1, 2, 15, and 16 of the 30-‐pin connector. The internal resistance of
the Accessory Power supply in a typical Apple device is shown in Figure 2-‐2 (page 35).
1.7
30-pin connector (pin 13)
3.3V
Avoiding RX Back-‐Powering
When the current that the Apple device supplies on the Accessory Power line of the 30-‐pin connector is off,
the Serial Receive block in the Apple device’s UART may also be off. To avoid back-‐powering the Apple device,
the accessory must put line RX (pin 18) of the Apple device’s 30-‐pin connector into a Hi-‐Z state, using tri-‐state
logic, when the Accessory Power line goes low. Any attempt by the accessory to drive the UART serial line
high when the Apple device’s Serial Receive block is off turns on protection diodes in the Apple device. This
condition wastes power in the accessory and can cause adverse behavior in the Apple device. For a similar
warning about the accessory, see “Avoiding TX Back-‐Powering” (page 96).
Note: Some of the material in this section does not apply to accessories that need to support the 3G iPod.
See “Interfacing With the 3G iPod” (page 105).
Apple devices are notified when an accessory is physically attached and the Accessory Detect pin is grounded.
Many accessories must also present a valid Accessory Identify resistor (RID) between pin 10 and ground, to
invoke specific Apple device behavior and/or use iAP commands over certain iAP transport protocols. These
pins and their connections inside the accessory are shown in Figure 2-‐3 (page 36). Table 2-‐10 (page 37)
specifies which resistor values are required for specific combinations of iAP transports and Apple device
behavior. Accessories must not try to invoke other combinations.
100 k
Accessory identify
Pin 10
RID resistor
Accessory detect
Pin 20
Self-‐powered accessories must simulate a physical disconnect by floating both Accessory Detect and Accessory
Identify pins if the accessory is turned off but not physically detached from the Apple device. However,
accessories must not simulate a disconnect in response to the current that the Apple device supplies on the
Accessory Power line of the 30-‐pin connector going low, or other changes in the state of the Apple device.
If an accessory is self-‐powered and can enter an Off state while still remaining physically attached to the
Apple device, it must comply with these three requirements:
■ Upon entering the Off state, the accessory must immediately float both Accessory Detect and Accessory
Identify pins.
■ Upon entering the On state, the accessory must immediately ground Accessory Detect and present a
valid Accessory Identify resistor.
■ The accessory must not enter the Off state in response to Accessory Power going low or any other
changes in the state of the Apple device.
Notes: Unless otherwise specified in Table 2-‐10 (page 37), accessories must perform the Identify Device
Preferences and Settings (IDPS) process specified in the latest release of MFi Accessory Firmware Specification.
This process must begin within 2 seconds after the accessory grounds Accessory Detect and presents a valid
RID resistor.
The tolerance of RID resistors must be 1% or less. Accessories must not use resistor values other than those
shown in the table. The resistor value must not change when the accessory is connected to an Apple device.
All accessories must use iAP commands to receive analog audio from an Apple device.
No iAP transport None All charger accessories. Do not ground Accessory Detect (pin 20).
No IDPS process is required.
No iAP transport; power 255 kΩ The Apple device draws power from the accessory but does not
only charge its internal battery. Its user interface displays the battery
level as full, instead of charging. The iPhone requires firmware
version 1.1.3 or later. The accessory must ground Accessory Detect
(pin 20). No IDPS process is required.
iAP over UART 549 kΩ The accessory must ground Accessory Detect (pin 20).
iAP over Bluetooth None Do not ground Accessory Detect (pin 20).
iAP over USB; USB Host 28 kΩ The accessory must ground Accessory Detect (pin 20). It may use
mode UART transport only long enough to detect support for USB Host
mode and enter that mode as specified in MFi Accessory Firmware
Specification.
iAP over USB; USB None The accessory must use a standard USB Set_Configuration
Device mode request to select the iAP HID Interface. It should also ground
Accessory Detect (pin 20); see “Informing Apple Devices of
Available Power” (page 33) for the consequences of not
grounding Accessory Detect.
Note: The accessory must obtain digital ground by connecting pins 1, 2, 15 and 16 together, or as many of
these pins as are available to it.
Supply voltage
Resistor
Sense point
iPod Pin 30
Accessory Pin 30
Note: The elapsed time it takes an Apple device to bootstrap and be fully operational varies by model type,
media types present, storage capacity, and the starting boot state (for example, Hibernate or Reset). An Apple
device does not receive or respond to any iAP commands while the current that the Apple device supplies
on the Accessory Power line of the 30-‐pin connector is switched off. To use iAP, accessories that communicate
via UART must always monitor the Accessory Power line and wait until 80 ms after it has gone high before
trying to communicate with the attached Apple device. See “Accessory Signaling and Initialization” in MFi
Accessory Firmware Specification. Accessories that do not communicate via UART, such as USB hosts or USB
or Bluetooth devices, need not monitor the Accessory Power line.
Attaching a UART serial accessory to the 30-‐pin connector of a 3G iPod makes any accessories attached to
the 9-‐pin Audio/Remote connector inactive, because the 3G iPod shares the UART serial port between these
two connectors. The iPod mini, 4G iPod, iPod photo, and 4G iPod (color display) models have two UART serial
ports; in these models, plugging a UART serial accessory to the 30-‐pin connector does not deactivate the
UART serial port on the 9-‐pin Audio/Remote connector.
By default, an Apple device sends only a Composite Video signal. Some Apple devices also send S-‐Video
signals by default. Use the General lingo command SetiPodPreferences to select the appropriate signal
for your accessory.
To receive video signals from most Apple devices, an accessory must be authenticated. The iPod photo, 4G
iPod (color display) and 5G iPod are exempt from this requirement.
Note: All accessories that output video from the 30-‐pin connector must play the associated audio stream
in sync with the video.
Note: iPhones with firmware version 1.1.1 or greater support composite or component video output on
pins 21, 22, and 23. iPhones with firmware versions 1.0 through 1.0.2 do not support video outputs.
Mono audio input is through the left channel. Figure 2-‐5 (page 40) shows a reference schematic for Apple
device line-‐in impedance on the iPod classic, 4G nano, and 2G touch. The corresponding reference schematic
for other Apple devices is shown in Figure 2-‐6 (page 40).
Note: The A/V Return pin is not a ground and must not be tied directly to the digital ground (DGND); treat
it as a signal. Left and right audio are referenced to A/V Return.
Figure 2-5 Equivalent input circuits for the iPod classic, 4G nano, 2G touch, and 5G nano
Audio Codec
R3 C1
LINE-IN L
R1 R5
R7 C3
A/V Return
R2 R6
R4 C2
LINE-IN R
C1 C2 C3 R1 R2 R3 R4 R5 R6 R7
4.7 µμF 4.7 µμF 4.7 µμF 100 kΩ 100 kΩ 100 Ω 100 Ω 40 kΩ 40 kΩ 100 Ω
Audio Codec
R1 C1
LINE-IN L
R2 C2
LINE-IN R
R3 R4 R5 R6
A/V Return
Other Apple device models 10 µμF 10 µμF 100 Ω 100 Ω 100 kΩ 100 kΩ 22 kΩ 22 kΩ
3G iPod, 4G iPod, iPod mini, iPod photo, 4G iPod (color display), 5G iPod, 1G iPod touch, 0.900 Vrms
iPhone, iPhone 3G, iPhone 3GS, iPad (all models), iPhone 4 (all models), iPad 2 (all models),
iPad (3rd generation)
Figure 2-‐7 (page 41) shows a reference schematic for line-‐out and headphone-‐out impedance on the iPod
classic, 2G touch, 4G and 5G nanos, and all future Apple device models. The corresponding reference schematic
for other Apple device models is shown in Figure 2-‐8 (page 42). These values are approximate and may
change in the future without notice.
Note: Accessories that need line-‐out enabled from an Apple device must request it using iAP commands.
For details of setting line-‐out and other preferences using the Identify Device Preferences and Settings
process, see “Accessory Identification and Authentication” in MFi Accessory Firmware Specification.
Figure 2-7 Equivalent output circuits for the iPod classic, 2G touch, 4G nano, 5G nano, and future models
Audio DAC
3.3
DAC_HPout_L HEADPHONE L
3.3
DAC_HPout_R HEADPHONE R
3.9 k 3.9 k
DAC_LINEout_R LINE-OUT R
110
DAC_LINEout_L LINE-OUT L
110
Audio DAC
* 220 F 3.3
DAC_HPout_L HEADPHONE L
* 220 F 3.3
DAC_HPout_R HEADPHONE R
3.9 k 3.9 k
** 100 k * * 100 k
DAC_LINEout_R LINE-OUT R
10 F 100
DAC_LINEout_L LINE-OUT L
10 F 100
** 10 k on some models
Note: Under some circumstances, the 2G iPod nano, the 2G touch, and the iPod classic disable their line-‐out
circuits to save power. Line-‐out is disabled only if a headphone is detected in the headphone jack, no accessory
identify resistor is detected, and power is not attached to the Apple device.
Apple devices with video output capability use single-‐ended analog audio and video signals. To conserve
pins on connectors and conductors in cables, the audio and video signals share a common return path. To
mitigate video-‐to-‐audio crosstalk, active differential amplifiers are used in the audio path. The differential
amplifier stage is configured to sense a low side return voltage representing the video-‐to-‐audio crosstalk.
This signal is then applied to the load in such a way that minimum noise current flows through the load. For
sample schematics and advice on circuit layout, see “Sample Accessory Circuits” (page 87).
In Apple devices without video capability, pins 21, 22, and 23 are not connected internally. See Table 1-‐1 (page
19) for descriptions of these pins.
To optimize music playback time and best utilize the internal battery and external power sources (such as a
powered dock, power brick, computer, or other powered accessory), Apple devices support several different
power states. These power states affect accessories, particularly those that are powered by the Apple device.
The Apple device can transition between power states as a result of the inactivity of its UI, its internal
battery-‐conservation actions, or accessory actions.
The iPod power states are Power On, Sleep, and Hibernate. The power states of iOS devices are Power On,
Hibernate, and Power Off. iOS devices enter the Hibernate state directly from the Power On state; however,
they generate a Sleep state notification immediately prior to the Hibernate notification. This Sleep state
notification ensures compatibility with accessories that always expect to receive one before a Hibernate
notification.
The Power On state consumes the most power. Sleep consumes less power, although parts of the iPod are
still powered in order to respond to iAP commands. Hibernate is the lowest powered state and is used to
preserve internal battery power for extended periods of inactivity, such as days or weeks. Off is a completely
unpowered state. Table 2-‐13 (page 43) describes the power states for all Apple devices.
Attributes The Apple device UI may be The iPod UI is inactive—no The Apple device The iOS
active, allowing users to track is playing—and the is inactive (no device is
interface with the menus, UI state is preserved. The track is playing). It completely
listen to music, view images, iPod can respond does not respond powered
and so forth. If the UI is immediately to front panel to iAP packets down. It
inactive—that is, if no track is buttons or to iAP simple over any iAP does not
playing and there is no user remote buttons. Attaching transports. respond to
input for 2 minutes—the some accessories may also iAP packets
Apple device displays a large wake the device. over any
battery icon (either "Charged" iAP
or "Charging"). transports.
iAP All iAP transports are usable. The iPod will not transition None. None.
transports into this state if attached
to an active USB host
accessory or to a USB
accessory supplying VBUS
power to the iPod.
Transitions To the Sleep state, when any To the Power On state, To the Power On To the
of the following occurs: when any of the following state, when any of Power On
■ The simple remote “Off” occurs: the following state, when
button is pressed or ■ An external power occurs: external
released. source is connected. ■ An external power is
power source provided to
■ The play/pause button is ■ The user presses a an iOS
is connected.
pressed and held for 2 button on the front device.
seconds. panel of the iPod. ■ The Menu or
Select button
■ The Apple device is idle ■ A Simple Remote lingo
on the front
(no track is playing) for 2 command other than
panel of the
minutes. “Off” is sent.
Apple device
■ The Apple device is To the Hibernate state is pressed.
displaying the battery when the appropriate ■ The Accessory
icon and the external amount of time expires. Detect pin
power source is removed. See Table 2-‐14 (page 45) goes from
for the duration of the floating to
The Apple device will not
Sleep state before grounded; see
transition out of the Power On
transitioning to the “Accessory
state when an external power
Hibernate state. Detect and
source is connected or a track
is playing. Identify” (page
36).
■ The Accessory
sends
Bluetooth
data to the
Apple device.
At each transition the Apple device sends a notification to the accessory, specifying the transition type. See
General lingo command 0x23, NotifyiPodStateChange, in MFi Accessory Firmware Specification. No
notifications are sent over Bluetooth.
The current that the Apple device supplies on the Accessory Power line of the 30-‐pin connector is completely
shut off when an Apple device enters the Hibernate state. When waking from Sleep state the iPod requires
the accessory to identify itself. See General lingo command 0x00, RequestIdentify, in MFi Accessory
Firmware Specification. On reset or power up, the accessory must not consume more than 5 mA (low power
mode). The minimum time between an Apple device notification of entering a power-‐off mode (such as
Hibernate), and entry into that state is 100 ms. The minimum time between an Apple device notification of
ending recording or playback mode and the associated reduction in the current that the Apple device supplies
on the Accessory Power line of the 30-‐pin connector is also 100 ms.
Note: When waking from Sleep state the iPod requires the accessory to identify itself. See General lingo
command 0x00, RequestIdentify, in MFi Accessory Firmware Specification. Accessories that communicate
via UART, including self-‐powered ones such as automotive head units or docks, must always monitor the
Accessory Power line to detect sleeping/waking transitions, and they must wait until 80 ms after it has gone
high before trying to communicate with the attached Apple device. See “Accessory Signaling and Initialization”
in MFi Accessory Firmware Specification.
USB and Bluetooth accessories need not monitor the Accessory Power line. USB host accessories must wait
for the USB enumeration process to finish and retry communicating with the Apple device until communication
is established. After that, retries are need only after command timeouts. USB accessories that place an Apple
device in Host mode can initiate communication after the Apple device has started polling the interrupt IN
pipe; see “USB Host Mode” (page 58).
Sleep State
Some Apple devices remain in the Sleep state for various periods, as shown in Table 2-‐14 (page 45).
3G iPod 36 hours
4G iPod 36 hours
5G iPod 14 hours
2G nano 30 minutes
3G nano 30 minutes
4G nano 10 minutes
5G nano 10 minutes
The trend in Apple device design is for shorter sleep times before the device hibernates. In the 2G iPod nano,
iPod classic, and 3G nano, the time is 30 minutes. Accessories must not be designed to draw power from
iPods in Sleep state, because such power will be shut off when the Apple device hibernates. With the iPhone,
device power may be shut off at any time.
Hibernate State
In Hibernate mode, the Apple device turns off the current that the Apple device supplies on the Accessory
Power line of the 30-‐pin connector and only responds to iAP commands over Bluetooth.
iOS devices enter the Hibernate state directly from the Power On state. With USB and UART accessories they
generate a Sleep state notification immediately before the Hibernate notification, to be compatible with
accessories that expect such behavior. See General lingo command 0x23, NotifyiPodStateChange, in MFi
Accessory Firmware Specification. With wireless iAP accessories, iOS devices do not generate a sleep notification.
Every Apple device from the iPod nano onward preserves menu selections and playback context during
hibernation.
Note: For accessories that identify themselves as supporting the Simple Remote or Remote UI lingoes, the
time until Hibernate mode is extended. If the simple remote accessory sends button status commands to an
Apple device every hour or so, the Apple device will never hibernate.
The transition to Hibernate state behaves differently in the 3G iPod, iPod mini, and 4G iPod than in iPhones
and later Apple devices. In hibernation, these four early products lose their menu selection and playback
environment information; when they transition to the Power On state, their UIs display only the topmost
menu. iPhones and later Apple devices save menu selection and playback environment information. When
they transition back to the Power On state, the previous menu and track selection are restored, so users can
resume their currently playing playlist and track position exactly where they left off.
Self-‐powered accessories can wake a hibernating Apple device by providing USB power, and it will stay awake
as long as USB power is applied. The only other way to wake a hibernating Apple device remotely is to create
a transition on the Accessory Detect pin (pin 20 of the 30-‐pin connector) from floating to ground. The
Accessory Detect pin must remain floating for at least 200 ms before transitioning to ground. Accessories
must not toggle the Accessory Detect line during normal, powered operation.
Any accessory that is connected to an Apple device’s 30-‐pin connector and draws power from the Apple
device must comply with the requirements in this section.
All accessories must operate in either Low Power mode or Intermittent High Power mode. These power
modes are specified in the next sections.
None 0 mA
UART 5 mA
USB Host mode 10 mA Some Apple devices support a maximum current draw of
only 5 mA. Accessories that need to draw more than 5 mA
must verify that the Apple device supports 10 mA. See
General lingo command 0x4B, GetiPodOptionsForLingo,
in MFi Accessory Firmware Specification.
Bluetooth 0 mA
All accessories must start the authentication process in Low Power mode. During the Authentication process,
an accessory may draw the current required to power the Apple Authentication Coprocessor in addition to
the Low Power mode limit specified in Table 2-‐15 (page 47). The authentication process begins at the rising
edge of the Apple device’s Accessory Power output and ends 500 ms after the Apple device acknowledges
successful authentication. See “Accessory Signaling and Initialization” in MFi Accessory Firmware Specification.
Note: The iAP commands and events cited in this and the next section are described in MFi Accessory
Firmware Specification.
Table 2-16 iAP commands that permit Intermittent High Power mode
When an Apple device is in USB Host mode, an attached accessory in Low Power mode may also enter
Intermittent High Power mode upon receipt of any of the USB events listed in Table 2-‐17 (page 48).
Table 2-17 USB events that permit Intermittent High Power mode
Table 2-18 iAP commands that cancel Intermittent High Power mode
When an Apple device is in USB Host mode, accessories in Intermittent High Power mode must also enter
Low Power mode within 1 second after all of the USB commands that permitted Intermittent High Power
mode are negated by one or more of the USB events listed in Table 2-‐19 (page 49).
Table 2-19 USB events that cancel Intermittent High Power mode
An accessory may exchange iAP commands and data of specific types with an Apple device using UART, USB
Device Mode, USB Host Mode, or Bluetooth transports. This chapter specifies the accessory hardware required
to support these transport layers.
Note: To determine which transports are supported by specific Apple devices, see Table 2-‐1 (page 25).
Every accessory must restrict its iAP traffic to one transport at a time. If an accessory needs to move its iAP
connection from one transport to another, it must cease all iAP traffic on the first transport and then re-‐identify
on the second before resuming iAP communication. Except for the General and Simple Remote lingoes,
lingoes can be used by only one connected accessory at a time. Attempting to use a lingo that is already in
use by another accessory will cause a “Maximum number of accessory connections already reached” error
during identification. For further information, see General lingo command 0x02 (iPodAck) in MFi Accessory
Firmware Specification.
UART
The iPod Accessory Protocol builds on the RS-‐232 serial specification; however, the Apple device’s signaling
levels are not standard. The RS-‐232 standard specifies that a mark is –7 V and a space is +7 V. In the Apple
device protocol, a mark is 2.500 through 3.465 V and a space is 0 through 0.8 V. Voltages and currents are
shown in Table 3-‐1 (page 51), where positive output currents flow out of the Apple device.
The accessory must not rely on the Apple device to hold the accessory RX level to the mark state when the
UART transport is idle. When idle, the accessory’s RX line should be pulled up to the Accessory Power level
(pin 13 of the 30-‐pin connector) through a minimum value of 10 kΩ; 100 kΩ is recommended.
UART 51
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
Accessories that use an open-‐collector or open-‐drain UART driver on their TX line should include a pull-‐up
resistor to the Apple device’s Accessory Power (pin 13 of the 30-‐pin connector). The resistor value should be
chosen to meet the UART timing requirements described below. The maximum mark voltage shown in Table
3-‐1 (page 51) must be measured with the Apple device not connected, and mark signals must be sent only
after the current that the Apple device supplies on the Accessory Power line of the 30-‐pin connector is
present.
Accessories must communicate with all Apple devices at a nominal baud rate of either 19200 bps or 57600
bps and maintain their baud rates within ±2% of the chosen rate over the entire temperature range of the
accessory. The temperature range of the accessory must be greater than or equal to the temperature range
of the Apple device (0–35° C). Once an accessory has started communicating with an Apple device, it cannot
change its baud rate.
Note: Current Apple devices are capable of automatic baud rate detection (autobauding) between 9600
bps and 24000 bps, as shown in “General Apple Device Features” in MFi Accessory Firmware Specification.
However, this feature may not be available in future Apple devices; newly designed accessories must
communicate only at either 19200 bps or 57600 bps.
When using UART transport, every packet must begin with a sync byte (0xFF) to ensure that the automatic
baud rate detection is accurate. If the Apple device may be sleeping, another sync byte must also be sent 5
ms before the packet to wake it.
All serial communications use 8 data bits, no parity bits, and one stop bit (8-‐N-‐1). Serial hardware flow controls
(RTS/CTS and DTR/DSR) are not used and will be ignored by the Apple device. In addition, the accessory must
not use software flow control (XON/XOFF). The accessory must not use bit averaging to produce a mean bit
rate not directly achievable from its system clock. All bits transmitted by the accessory must have the same
nominal duration.
USB
Apple devices are USB 2.0–compliant devices that can interact with third-‐party accessories in either of two
mutually exclusive modes:
Note: The firmware requirements for using USB Host Mode and USB Device Mode are set forth in MFi
Accessory Firmware Specification.
■ Mass storage device. This is the default configuration when attached to a typical USB host such as a PC
or Macintosh. This mode is used for syncing music and other content, transferring files, and so forth.
52 USB
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
■ An iAP-‐enabled USB device that uses the iPod USB Interface (iUI). The accessory must select this mode
before it can be used.
Note: Newly-‐designed accessories must not use an Apple device as a mass storage device. Accessories should
always use the iUI to interact with an Apple device.
The two USB Device modes of operation (mass storage and iUI) are each represented by a USB Configuration.
When an Apple device is attached to USB, the USB host (the accessory) must select one of the configurations
and set it as the active configuration during the bus initialization. Alternatively, an accessory can use a resistor
to make the iUI the default configuration, as shown in “Accessory Detect and Identify” (page 36).
Although Apple devices support Full-‐Speed as well as High-‐Speed bus operation, High-‐Speed hosts should
be used for better data throughput.
The initialization and configuration of an attached USB device is documented in the USB 2.0 specification.
This document does not cover this topic in detail, but instead provides information specific to Apple devices.
To distinguish an Apple device, a USB host can check the device descriptor of attached USB devices for the
following fields:
Note that product IDs vary, depending on the type of Apple device. There will be an expanding list of Apple
devices that support iUI. Although an Apple device may make string descriptors available that identify its
manufacturer, product name, serial number, configuration, and so on, the accessory must not use these
strings to determine whether the connected USB device is an Apple device. The strings may change in future
Apple devices. For iPod shuffle identification, see Apple’s iPod shuffle Interface Specification.
IMPORTANT: A USB Device mode accessory must use the Vendor ID and only the most significant byte of
the Product ID to detect the presence of an Apple device. It can complete the identification by checking for
the presence of an iUI configuration on the detected Apple device.
Figure 3-‐1 (page 54) shows the USB configuration and interface descriptors in Apple devices that do not
support USB audio. Figure 3-‐2 (page 54) shows the USB Configuration and interface descriptors in Apple
devices that do support USB audio.
USB 53
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
Figure 3-1 Configuration and interface descriptors for Apple devices without USB audio
Device Descriptor
bNumConfigurations = 2
OR
Figure 3-2 Configuration and interface descriptors for Apple devices with USB audio
Device Descriptor
bNumConfigurations = 2
OR
Interface Descriptor
bNumEndpoints = 2
bInterfaceClass = Mass Storage Device Class
54 USB
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
The iUI configuration allows an Apple device to communicate via iAP over USB and enables USB digital audio
on supported models. The USB Human Interface Device (HID) interface is the transport and uses two endpoints
for communication: the control endpoint (endpoint number 0) is used for OUT data, while the HID interrupt
endpoint is used for IN data.
Note: The Apple device USB isochronous audio data endpoint descriptor bmAttributes field erroneously
returns the Synchronization Type field (D3:2) as b00 (no synchronization) instead of the correct value, b11
(synchronous). Apple devices support synchronous data transfers, so USB host devices must override these
attribute bits. The erroneous b00 value is retained for backwards compatibility with older Apple device
accessories.
The Apple device HID interface utilizes several vendor-‐specific HID reports, some of which are used to transport
data from the host (output reports) and some of which are used to transport data to the host (input reports).
In order to send data to an Apple device, a host chooses one or more appropriately sized HID reports in which
to embed the iAP packet and sends this to the Apple device HID interface with USB Set_Report commands.
The Apple device reassembles the iAP packet and processes it. The process is repeated in reverse when the
Apple device sends responses or iAP packets to the host. In this case, the data is sent on an interrupt pipe
associated with the HID interface.
The different HID report sizes, endpoint requirements, and particulars are all described in the USB descriptors
that accompany the interface.
IMPORTANT: Accessories must always request and parse the HID report descriptor each time an Apple
device is connected or the accessory resets USB, because the HID Report ID and size descriptions may change.
HID as a Transport
As mentioned earlier, the HID interface breaks iAP packets up into a stream of vendor-‐specific HID reports
and transports them across USB in either direction. To help manage this, it breaks this stream up into logical
sets of reports, where a set of reports encompasses one or more complete iAP packets. For instance, a set
could be a single HID report containing one iAP packet or a set of seven HID reports containing a total of
three iAP packets.
A vendor-‐specific HID report, as defined by the USB specification, consists of a Report ID followed by a payload
of data that is specific to the vendor and its usage. The payload of an Apple device’s vendor-‐specific HID
report is a link control byte (LCB), followed by iAP packet data. An example is shown in Figure 3-‐3 (page 55).
USB 55
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
The HID Report ID indicates the type of report and implies the size of the report. Every report of a given type
is the same size. The Apple device specifies several different report types. The USB host should analyze the
HID report descriptor of the Apple device at runtime to determine which Report ID corresponds to the most
appropriate report type for each transfer. Note that the HID report descriptor may change in future Apple
devices.
Usage of a HID Report ID is defined by the USB specification and is not specific to Apple devices, in contrast
to the LCB and the rest of the payload.
The link control byte provides a mechanism for grouping sets of reports and is used by the HID interface to
manage the data flow, as described in Table 3-‐2 (page 56).
Bit 0 Continuation 0 indicates that this HID report is the first in a set of one or more reports. This
also implies that any previous sets are completed. Any incomplete iAP packets
received prior to the arrival of this report are flushed and lost.
1 indicates that this report is not the start of a set, but is a continuing part of a
set.
Bit 1 More to Follow 0 indicates that this report is the last in a set. Any following reports must be
part of another set.
1 indicates that the current report set is not yet complete and there is at least
one more report expected.
In general, iAP packets can be packed into HID reports in any manner, given the following limitations:
■ All unused space within any HID report must be set to 0x00.
■ If there is more than one iAP packet in the same HID report, there must be no unused space between
them.
■ If an iAP packet is split across multiple HID reports, all component reports must be in the same logical
set of reports.
Figure 3-‐4 (page 57) shows the different report packing scenarios that are possible, including one packet
per report and multiple reports per packet.
56 USB
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
Zero-filled space within HID report that is not part of an iAP packet
Figure 3-‐5 (page 57) illustrates a sample USB transport interchange that uses iAP to send an
IdentifyDeviceLingoes command and receive back an ACK command. IdentifyDeviceLingoes is
described in “Command 0x13: IdentifyDeviceLingoes” in MFi Accessory Firmware Specification, Lingo 0x00;
the corresponding ACK command is described in “Command 0x2: ACK” in MFi Accessory Firmware Specification,
Lingo 0x00. For clarity, the diagram omits SOF and NAK messages.
USB 57
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
An Apple device will not transition to Sleep mode while it is attached to an active USB host or is itself in USB
Host Mode. To ensure that a physically attached Apple device goes to sleep, a host system must pause media
playback before powering down its host controller. Attaching USB power to a sleeping Apple device wakes
it up.
To put a connected Apple device into USB Host mode using hardware, the accessory must provide a 28 kΩ
±1% RID resistor between pin 10 (Accessory Identify) of the 30-‐pin connector and ground (pins 1, 2, 15, and
16). For information about RID resistors, see Table 2-‐10 (page 37). This resistor to ground must replace any
other connection to pin 10.
Alternatively, the accessory can put an Apple device into USB Host mode using iAP commands, as described
in MFi Accessory Firmware Specification, Release R40 or later.
Note: Once the Apple device is in USB Host mode it will remain in that mode regardless of whether the USB
VBUS supply is turned on or off.
The accessory can determine that the Apple device has successfully entered USB Host mode by detecting
that it has begun to poll the USB interrupt IN pipe. This means that the Apple device is ready to accept iAP
commands over USB.
General Requirements
Accessory designs must observe these general requirements for using USB Host mode with an Apple device:
■ If the Apple device is an iOS device, it must be running iOS 3.2 or later.
■ Only certain Apple devices can use the USB Host Mode lingo (Lingo 0x06).
■ The accessory must connect to the Apple device through its 30-‐pin connector.
■ The Apple device does not provide the accessory with +5 V nominal VBUS power. Instead, the 3.3 V power
that the Apple device supplies on its Accessory Power line (pin 13 of the 30-‐pin connector) is available
as specified in “Accessory Power” (page 35).
■ The accessory must comply with the general USB specification, version 2.0 or later, plus any applicable
device-‐specific USB specifications that are available at www.usb.org/developers/docs/.
■ The Apple device requirements stated in “Accessory Power Policy” (page 47) override any conflicting
power requirements in the USB specifications.
■ All USB descriptors (particularly the Endpoint descriptors and the bMaxPower field of the Configuration
descriptors) must accurately represent the accessory’s capabilities.
58 USB
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
■ Every different accessory’s device descriptors must include a unique vendor ID (VID) assigned by USB-‐IF
and a unique product ID (PID) assigned by the vendor. The USB-‐IF vendor ID must be assigned to the
MFi licensee responsible for the accessory.
■ All USB Device, Configuration, and Interface descriptors must be accompanied by human-‐readable String
descriptors. Among these String descriptors, the following must match AccInfoToken string values
that the accessory passes to the Apple device during the IDPS process (see table “Accessory Info Type
values” in section “Command 0x39: SetFIDTokenValues“ of MFi Accessory Firmware Specification):
❏ USB Manufacturer String Descriptor must match IDPS Accessory manufacturer
❏ USB Product String Descriptor must match IDPS Accessory name
❏ USB Serial Number String Descriptor must match IDPS Accessory serial number
■ Upon receiving a USB Suspend command the accessory must immediately enter Low Power Mode, as
defined in “Accessory Power Policy” (page 47), and remain in that mode until it receives a USB Resume
command.
For further information about using USB Host mode, including packet formats, data transfers using the USB
IN and OUT pipes, and exchanging iAP commands over USB, see MFi Accessory Firmware Specification, Release
R42 or later. For USB accessory cable specifications, see “Power and Data” (page 31).
Using iAP
Accessories must observe these requirements when exchanging iAP commands with an Apple device in USB
Host mode:
■ Accessories that use iAP over USB must implement USB high-‐speed or full-‐speed bulk IN/OUT pipe
endpoints and the USB interrupt IN pipe endpoint. The interrupt IN pipe endpoint must specify a polling
interval between 4 and 32 ms.
■ The accessory cannot use the Digital Audio lingo in USB Host Mode.
When an accessory places an Apple device in USB Host mode, the Apple device enumerates USB devices
with the properties shown in Table 3-‐3 (page 59).
Interface 0x00
USB 59
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
USB Audio
After authentication, an Apple device in USB Host Mode can configure USB audio OUT and audio IN stream
endpoints present on the USB device. The Apple device can then interact with accessories that are compliant
with either the USB Audio 1.0 or 2.0 specification. Version 2.0 is recommended.
Note: Any accessory that outputs digital audio obtained from an Apple device must implement copy
protection in its output stream; for example, by setting the output’s Serial Copy Management System (SCMS)
bits to 10.
Note: Not all Apple devices that support USB Host Mode also support USB audio input/output. Before trying
to use USB audio the accessory must verify that the Apple device supports it. See General lingo command
0x4B, GetiPodOptionsForLingo, in MFi Accessory Firmware Specification.
An accessory using USB audio must support the following USB features:
The following USB features are recommended for accessories using USB audio, but not required:
Apple devices running iOS 5.0 or later support more than two channels of audio input in USB Host mode.
Accessories that use this feature must bundle all audio input channels into a single audio streaming interface.
Developers should test their accessory designs against the latest Mac OS X Audio driver; the application
Audio MIDI Setup, in the Mac OS X Applications/Utilities folder, can be used to verify accessory
compatibility.
60 USB
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
USB MIDI
Starting with iOS 4.2.1, some Apple devices provide support for USB MIDI. To access this support, accessories
must follow the requirements in “Universal Serial Bus Definition for MIDI Devices,” Release 1.0, available at
www.usb.org. Developers should test their accessory designs against the latest Mac OS X MIDI driver; the
application Audio MIDI Setup, in the Mac OS X Applications/Utilities folder, can be used to verify
accessory compatibility.
IMPORTANT: Every accessory that provides or receives any kind of MIDI data to or from an Apple device
must do so using only USB MIDI transport in compliance with the USB MIDI specification.
Every accessory that supports USB MIDI must implement a MIDI Streaming IN endpoint if it needs to enter
Intermittent High Power Mode, as defined in “Accessory Power Policy” (page 47).
USB HID
The iOS devices marked in Table 2-‐4 (page 28) support USB Human Interface Device (HID) class 1.11 keyboards.
The USB HID Consumer Page controls that iOS devices support are listed in the “USB Human Interface Device
Reports” section of the Simple Remote lingo documentation in MFi Accessory Firmware Specification. Accessories
that use USB HID must conform to the USB Device Class Definition for HID specification and also to the following
MFi requirements:
■ The accessory must be a keyboard; no other USB HID device types are allowed.
■ If the accessory is localized, its HID descriptor must declare one of the country codes listed in the section
“Command 0x0F: RegisterDescriptor” of the Simple Remote lingo documentation in MFi Accessory Firmware
Specification.
Bluetooth
The iOS devices listed in Table 2-‐1 (page 25) as supporting iAP over BT can send and receive iAP commands
over their Bluetooth transports. This feature is in addition to their support of the existing UART and USB
transports. Accessories may use Bluetooth to communicate wirelessly with these devices, instead of using
the 30-‐pin hardware connectors. Starting with iOS 5.0, multiple iAP over Bluetooth accessories can also be
connected simultaneously.
General Requirements
Accessories that communicate with iOS devices using Bluetooth must meet the requirements specified in
the Apple document Bluetooth Accessory Design Guidelines for Apple Products. That document covers the
Bluetooth profiles for various iOS devices and other aspects of accessory design that are not specifically
related to iAP. The information presented there is crucial for obtaining satisfactory Bluetooth communication
between accessories and Bluetooth-‐capable iOS devices. When incorporating that document in this
specification, substitute “must” for “should” throughout.
Bluetooth 61
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
Accessories that receive iAP commands using Bluetooth must set the Device Name in their Bluetooth Extended
Inquiry Response (EIR) packet to the Accessory Name string value that they previously passed to the Apple
device in an AccessoryInfoToken during the IDPS process; see “Identification” in MFi Accessory Firmware
Specification.
Specification Update: Most accessories no longer need to declare any specific Bluetooth Class of Device
or Major Service to exchange iAP commands with Apple devices. The sole exception is accessories that use
the Bluetooth autopairing feature, which must set the Audio/Video bit in the Class of Device field. See
“Bluetooth Autopairing and Connection Status Notifications” in MFi Accessory Firmware Specification.
■ Implement Bluetooth Sniff Mode, or Sniff Subrating if Bluetooth 2.1 is being used.
■ Let the iOS device be the master device.
■ For large packet transfers, stay within a Maximum Transmission Unit (MTU) size of 1000 bytes and a
minimum of 658 bytes at the iAP layer.
The iOS device may refuse a Bluetooth connection under these circumstances:
■ There are too many Bluetooth connections made to the iOS device. In this case, the accessory receives
an error indicating that a resource is unavailable.
■ There are too many RFCOMM protocol connections to the iOS device. In this case, the accessory receives
a Resource Denied error when trying to connect to the Wireless iAP service.
To re-‐establish a connection to the iOS device, the accessory must make a Bluetooth SDP query to find the
RFCOMM channel associated with the UUID 0x00000000DECAFADEDECADEAFDECACAFE, then connect to
that channel. The accessory must not assume that the channel will remain the same between connections.
The connection will require new authentication if no link key is present.
The accessory must not expect that the iOS device will try to re-‐establish a broken Bluetooth connection.
62 Bluetooth
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
To begin the identification and authentication process, new accessory designs must use the Identify Device
Preferences and Settings (IDPS) process described in the “Accessory Identification” appendix of MFi Accessory
Firmware Specification. This will maximize their compatibility with future firmware. Existing accessory designs
may continue to use the process described in General lingo command 0x13, IdentifyDeviceLingoes, in
MFi Accessory Firmware Specification.
Once connected and authenticated, an accessory can use the lingoes listed in Table 3-‐4 (page 63) to
communicate with the iOS device with which it is paired. For descriptions of these lingoes, see MFi Accessory
Firmware Specification.
Lingo ID Notes
Simple Remote 0x02 Bluetooth accessories that support these lingoes must have their own volume
controls and not use iAP volume control commands. They must also implement
Display Remote 0x03 Extended Interface lingo playback status notifications, as specified in Release
R41 of MFi Accessory Firmware Specification.
Extended Interface 0x04
Sports 0x09
Storage 0x0C
Location 0x0E
Bluetooth 63
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 3
Command and Data Transports
64 Bluetooth
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 4
In addition to the requirements set forth elsewhere in this document, this chapter summarizes some of the
hardware requirements that accessories must meet under the MFi licensing program. For details of accessory
firmware requirements, see Apple’s MFi Accessory Firmware Specification.
General Requirements
Certain testing and design requirements apply to all accessories that are connected to, or communicate with,
Apple devices.
Power Requirements
Accessories may contain internal or external power supplies for iOS devices, but their design must follow the
specifications in “iOS Device Power Supply Requirements” (page 85) to avoid interfering with the sensor
operation of the touch screen.
In addition, accessory power supplies must meet the electrical certification requirements described in “Electrical
Testing and Certification” in MFi Accessory Testing Specification and must also pass the RF certification tests
described in “Measuring TRP” in MFi Accessory Testing Specification with power off, and “Measuring EIS” in
MFi Accessory Testing Specification with power on, using the setup specified in “Typical Test Setup for
Cable-‐Connected Accessories” in MFi Accessory Testing Specification.
A speaker system designed to work with an Apple device should charge the device’s battery while it plays
its sound.
General Requirements 65
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 4
Accessory Design Requirements
Battery pack accessories for the iPhone must supply power via USB.
USB Cables
All cables that are included with an accessory, that terminate in at least one USB connector, and that do not
terminate in an Apple 30-‐pin connector, must meet or exceed all applicable USB-‐IF specifications.
iPhone-‐Specific Requirements
Accessories for the iPhone must meet all the general requirements of accessories for Apple devices. This
section provides additional specifications for accessories designed to meet the specific requirements of
Apple’s iPhone licensing program.
66 iPhone-‐Specific Requirements
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 4
Accessory Design Requirements
■ The tests and certification procedures described in “Electrical Testing and Certification” in MFi Accessory
Testing Specification must be performed.
■ The testing and certification procedures described in “RF Testing and Certification” in MFi Accessory
Testing Specification and “TDMA Noise Testing and Certification” in MFi Accessory Testing Specification
must be conducted by an independent laboratory and their certification sent to Apple. The laboratory
must be certified by Apple. Contact Apple Licensing for information about Apple-‐certified laboratories.
Accessories for the iPhone are evaluated on two general criteria to determine their RF compatibility with it:
■ Reduction of the iPhone’s RF/antenna efficiency. Accessories should minimize decreases in the iPhone’s
total radiated power (TRP). This can be quantified by measuring TRP across all of the iPhone’s operating
bands and some frequencies. For accessory testing and certification requirements, see “Measuring TRP”
in MFi Accessory Testing Specification.
■ Desense of the iPhone’s RF reception. Accessories should minimize decreases in the iPhone’s effective
isotropic sensitivity (EIS). This can be quantified by measuring EIS across all of the iPhone’s operating
bands. For accessory testing and certification requirements, see “Measuring EIS” in MFi Accessory Testing
Specification.
To obtain Apple certification, a speaker accessory for the iPhone must also pass the following tests with the
variations noted:
iPhone-‐Specific Requirements 67
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 4
Accessory Design Requirements
■ The RF testing configuration shall be freestanding, as shown in “RF Certification Setup” in MFi Accessory
Testing Specification.
■ In addition to the other iPhone configuration requirements for RF testing, described in “RF Certification
Setup” in MFi Accessory Testing Specification , the iPhone display must be switched off.
■ Total radiated power (TRP) of the iPhone while connected to the accessory must be tested and certified,
as described in “Measuring TRP” in MFi Accessory Testing Specification , with no AC power applied to the
accessory.
■ The antenna sensitivity (EIS) of the iPhone while connected to the accessory must be tested and certified,
as described in “Measuring EIS” in MFi Accessory Testing Specification, with AC power to the accessory
tuned on.
Accessories that use the iPod Out feature of Apple devices must have only captive video displays; they must
not be able to pass the video output to an external display. In addition, every display used for iPod Out must
render the entire iPod Out signal, without underscanning, overscanning, or other modifications. If absolutely
necessary, iPodOut can be used in an action-‐safe mode that allows accessories to drive displays that would
not otherwise render the entire iPod Out signal. This action-‐safe mode can be invoked through the iAP
SetUIMode command, as described in MFi Accessory Firmware Specification. Accessories must meet the
foregoing requirements by default, without requiring configuration by the user.
Accessories designed to work with multiple displays, whether used sequentially or in parallel, must meet the
foregoing requirements for each display. Samples of all displays must be submitted to Apple as part of each
accessory’s certification.
Examples of iPod Out display configurations that are not acceptable include (but are not limited to) the
following:
For information about setting and using iPod Out mode, see the General lingo command 0x37 (SetUIMode)
and the Accessory lingo 0x0D (iPod Out Lingo) in MFi Accessory Firmware Specification.
An accessory designed to use the Apple AssistiveTouch feature must declare that fact, using an
AccessoryCapsToken, during the IDPS process described in MFi Accessory Firmware Specification. It must
also confirm that the attached Apple device supports the AssistiveTouch feature by sending a
GetiPodOptionsForLingo command.
Once the Apple device confirms that it supports AssistiveTouch, the accessory must register with it as a USB
HID (Human Interface Device) mouse. If the accessory uses Bluetooth as an iAP transport, it must send HID
reports to the Apple device using iAP, as specified in “USB Human Interface Device Reports” in MFi Accessory
Firmware Specification. If the accessory uses USB Host mode as an iAP transport, it may implement a native
USB HID mouse device component. See “Appendix E.10: Report Descriptor (Mouse)” in Device Class Definition
for Human Interface Devices 1.11, (available from USB-‐IF) for a sample HID descriptor.
■ All x and y movements must be reported in increments of 1, proportionally scaled to the physical
movement of the user. If the accessory is a joystick, for example, then a small movement of the joystick
must report a movement delta of 1, but a large movement of the joystick must report a larger movement
delta.
■ The accessory must send repeated HID pointer movement reports at a constant rate appropriate for the
accessory. The accessory must not perform its own scaling of the report rate; the AssistiveTouch feature
uses its own speed scaler setting for this purpose. If no movement has taken place, the accessory must
send a movement report of 0 in both x and y directions.
■ The accessory must have two user-‐accessible buttons, one for a touch event and the other for a contextual
menu trigger. Both button down and button up reports must be sent individually and must match actual
user actions on the accessory. When the user presses on the first button, a button1 “down” report must
be sent, and button1 events must not be sent until the user releases the button, after which a button1
“up” report must be sent.
■ The accessory must start sending HID reports to the Apple device as soon as the Apple device sends a
notification to the accessory indicating that the AssistiveTouch cursor has been enabled.
■ The accessory must cease sending HID reports to the Apple device as soon as the Apple device sends a
notification to the accessory indicating that the AssistiveTouch cursor has been disabled.
■ The accessory must be capable of interleaving pointer movement reports with button up and down
reports. The accessory must let the user hold a button down and move the pointer at the same time.
An accessory designed to use the Wi-‐Fi Network Login Sharing feature documented in Apple’s MFi Accessory
Firmware Specification must implement the following hardware specifications:
■ It must let the user select Wi-‐Fi Network Login Sharing, through either a physical button or an onscreen
option.
■ It must not be able to initiate Wi-‐Fi Network Login Sharing without an explicit user selection, as described
above.
■ It must notify the user, visibly and/or audibly, when it has received Wi-‐Fi connection information.
■ It must notify the user, visibly and/or audibly, when it has successfully established a Wi-‐Fi connection.
The technology defined in this appendix supports sending button press information from a headset accessory
to an Apple device through the headphone connector (see “Headphone/Microphone Jack” (page 21)).
Remote button detection requires a transmitter chip, provided by Apple, that communicates over the
accessory’s microphone bias line. When implemented with a MEMS microphone as specified in this document,
the transmitter chip currently supports three remote buttons in the accessory: volume up, volume down,
and push-‐to-‐talk.
Note: Headset accessories that use Apple’s headphone remote and mic system must be tested and certified.
The required process is specified in “About Accessory Certification” in MFi Accessory Testing and Certification
Specification.
This specification covers the transmitter chip that must be included in the headphone accessory and its
required external circuitry. The corresponding receiver functionality is implemented by a controller in the
iPod nano (4th generation), iPod classic (120 and 160 GB), iPod touch (2nd generation), and the iPod 3G
shuffle. It is implemented in the iPhone 3GS, but not in the original iPhone or iPhone 3G.
Transmitter Chip
This section describes the transmitter chip that must be included in the headset accessory. The external
circuitry required to implement the transmitter is described in “Button Detection Circuitry” (page 80).
Overview
The transmitter chip operates together with a controller in the Apple device to enable remote button press
detection via their common microphone bias line. The transmitter chip is a MEMS microphone interface and
button decoder device located at the microphone and button end of the line, in the headset accessory. The
controller in the Apple device provides regulated downstream power (nominally 2.7 V or 2.0 V) to the
transmitter chip and MEMS microphone through the microphone bias line and decodes the button information
from the transmitter chip.
The transmitter sends button-‐press information over the microphone bias line in either of two modes: button
mode or tone mode. If the voltage on the microphone bias line is less than 2.35 V, indicating that the
microphone is not in use, the transmitter enters button mode and sends button-‐press information as discrete
voltage levels. If the microphone bias voltage is greater than 2.35 V, indicating that the microphone is in use,
the transmitter enters tone mode and sends the same button-‐press information as ultrasonic tone sequences
in the range of 99 to 300 kHZ.
Transmitter Chip 71
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
Part Numbers
Table 5-‐1 (page 72) shows the part numbers of different versions of the transmitter chip that are available.
MFI353S2429 MFi noise-‐occluding headphones. These are headphones that block or cancel outside sound.
Note: The accessory designer should perform subjective listening tests to determine which chip produces
the best user experience with the accessory configuration. These tests must be performed while the accessory
is connected to an iPhone 4.
Pin Assignments
Table 5-‐2 (page 72) lists the transmitter chip’s pin assignments. Figure 5-‐1 (page 73) illustrates the transmitter
chip package, showing physical pin locations, with physical dimensions shown in Table 5-‐3 (page 73).
72 Transmitter Chip
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
e
A W B e1
D B g
g1
1 2 6X s
Ball A1 y M C A B
index area Bottom View
H z C
Seating plane
H1 C
Dimension Value in mm
W 0.95/0.85
D 1.45/1.35
H 0.50 max
H1 0.19/0.15
e 0.50
e1 0.25
g 1.00
g1 0.50
s 0.25/0.21
y 0.015
z 0.05
Transmitter Chip 73
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
Thermal Impedance
The transmitter chip’s package thermal impedance, calculated in accordance with Specification JESD51-‐7, is
123° C/W.
Moisture Sensitivity
The transmitter chip has a Moisture Sensitivity Level (MSL) of 1, as defined by industry standard JEDEC
specifications.
Electrical Characteristics
Table 5-‐5 (page 75) lists the transmitter chip’s electrical and timing characteristics under the following
conditions:
74 Transmitter Chip
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
■ Tone mode, VMICBIAS = 2.56 to 2.84 V; MIC is connected to VMICBIAS through a 2.21 kΩ ±1% resistor.
The values in the “Typical” column of the table are measured at 25° C.
GENERAL
Button Mode,
VMICBIAS = 1.5 V
IVSHUNT-‐TA Active Current into Tone Mode (see Note 1, 104 118
VSHUNT below)
VTR Tone Mode Threshold MIC Rising (Microphone 2.20 2.35 2.50 V
Voltage enable), VMICPWR = 1.0 V
TONE MODE
Transmitter Chip 75
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
BUTTON MODE
Note 1: This current is pulled through RVSHUNT between MIC and VSHUNT and is the minimum current to
keep VSHUNT regulated at 1.56 V. Excess current through RVSHUNT is available to the load at MICPWR. Excess
current not used by the load at MICPWR is internally shunted to GND.
Theory of Operation
The transmitter chip has three primary functions:
The controller in the Apple device provides regulated downstream power (nominally 2.7 or 2.0 V) to the
transmitter chip and microphone through the microphone bias line. Figure 5-‐2 (page 77) illustrates the
functional components of the transmitter chip. In this diagram, a latch drives the configuration of switches
A and B. The power-‐on reset monitors voltage on the MIC pin to ensure that there is a enough power before
initiating the turn-‐on sequence; it shuts the chip down if there is insufficient voltage.
76 Transmitter Chip
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
Switch A
VSHUNT MICPWR
1.56V
MIC
Latch
2.3V
Power-on
Reset REM
Switch B
TONE Tone Impedance
Generator Detector
GND
Button events are sent from the transmitter to the controller in one of two modes, button mode or tone
mode. When a microphone is not present or is not in use, the transmitter is put in button mode by the
controller in the Apple device, and button events are detected using discrete voltage levels. These discrete
voltage levels are a percentage of a regulated output voltage on the microphone bias line. When a microphone
is in use, the controller puts the transmitter into tone mode by placing more than 2.35 V on the microphone
bias line, and the transmitter then sends button events using tone sequences of discrete frequencies in the
range 99 kHz to 300 kHz.
Button Mode
In button mode, the transmitter chip operates as a pass-‐through element switching a button switch-‐resistor
network onto the bias line. Each switch represents a unique button. When a button is pressed, the DC level
on the bias line is changed and detected by the controller. Table 5-‐6 (page 77) shows the DETECT pin voltages
with VMICBIAS = 2.0 V.
S0 0.000 V ±1%
S1 1.510 V ±1%
S2 1.603 V ±1%
When the transmitter chip is in button mode (VMIC has never reached 2.35 V), it shorts the MIC and REM pins
together and disables all other inputs and outputs. When a button event occurs, the DC voltage on the
microphone bias line changes. Table 5-‐6 (page 77) shows the DC voltage corresponding to a given button
press when using the R1 and R4 resistor values listed in Table 5-‐7 (page 82). This DC level is then detected
Transmitter Chip 77
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
the microphone bias line by the controller in the Apple device. Switch S0 is a unique switch that shorts the
VMIC line to ground. When the VMIC line is shorted to ground, power is removed from the transmitter chip.
When power recovers, the transmitter chip enters button mode or tone mode, depending on the voltage
detected at the MIC pin.
Tone Mode
When the transmitter chip detects a voltage greater than 2.35 V at the MIC pin, it enters tone mode. With a
microphone biased and in use, the switch-‐resistor network used for button mode would cause large DC level
shifts in the bias voltage. Such shifts would result in unwanted audible clicks or pops or would cause de-‐biasing
of the microphone. To prevent this problem, when the transmitter chip enters tone mode it disconnects the
switch-‐resistor network from the microphone bias line, enables the microphone via the FET switch, and
engages the tone generation circuit shown in Figure 5-‐2 (page 77).
In tone mode the transmitter chip has two functions. First, it turns on the MEMS microphone by forcing a
FET switch to ground. Second, it detects button events and places a discrete tone sequence onto the
microphone bias line. The tone frequencies in each sequence are unique to each button press. The controller
detects the tones on the bias line and determines the corresponding button event.
The transmitter chip’s startup timing when it enters tone mode is shown in Figure 5-‐3 (page 78). Values for
the timing parameters are given in Table 5-‐5 (page 75).
2.5V
2.35V
VMIC
0V
2.5V
VREM
0V
2.5V
VMICPWR
0V
2.5V
VSHUNT
0V
2.5V
VTONE
0V
t OFFB
tCAL tACK
tONA
tREG
TM2T
78 Transmitter Chip
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
1. Upon detecting VMIC > 2.35 V, the switch connecting the MIC and REM pins together is opened after
time tOFFB (see Figure 5-‐3 (page 78) and Table 5-‐5 (page 75)).
2. After a delay of tREG after VMIC > 2.35 V, the SHUNT pin and the MICPWR pins are shorted. The microphone
is enabled by turning on the FET switch through the MICPWR pin.
3. Once the noise prevention process has settled, the transmitter chip sends a preset acknowledge (ACK)
tone sequence.
4. The controller detects the ACK sequence (see Figure 5-‐4 (page 79)) and authenticates the presence of
the transmitter chip.
VMIC
tCAL tACK
The tone generation circuit of the transmitter chip internally detects each button press and sends a high
frequency tone sequence between 99 kHz and 300 kHz. The high frequency tone sequence is unique to each
button. The controller detects the frequency of each tone and translates it into a predetermined button
event. (A button release has a different frequency than a button press.)
For accuracy, the transmitter chip sends two tones for each button press as shown in Figure 5-‐5 (page 80).
The first tone, lasting 1 ms, is a calibration frequency and the second, lasting 2 ms, is the unique frequency
for the selected button. The ratio of these two frequencies is calculated and translated into button press
information. This provides a very accurate result that is independent of clock frequency variation.
Transmitter Chip 79
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
CHAPTER 5
Headphone Remote and Mic System
De-bounced TX
button press or
TX power-up
RX Tone
pulses
1.67ms 2.89 ms
tCAL tCAL
Tone pulse
counter
Count Tone Count ‘n’
Tone frequency Tone activity sampled here.
pulses to Tone pulses
decoded here If still active, TX ACK Tone
set tCAL over tCAL
from ‘n’ value received. If not, Button Tone
received.
INT output
The transmitter chip remains in tone mode until the MIC pin is pulled below 0.8 V. When power recovers,
the transmitter chip enters button mode or tone mode depending on the voltage detected at the MIC pin.
To implement remote button detection, the accessory manufacturer must install the following specific
components in the Apple device-‐compatible headphone:
Note: Button detection must not be implemented in accessories without microphones, except for 3G shuffle
remote controls.
The circuits in the accessory that support these components must be those shown in Figure 5-‐6 (page 81)
and Figure 5-‐7 (page 82). The nominal values of the components shown in these schematics are given in
Table 5-‐7 (page 82).
These circuits are designed to produce a tone amplitude between the microphone bias line and the
microphone return, at the end of a cable 1 meter long, of at least 30 mV peak-‐to-‐peak into a 2000-‐ohm load.
If necessary, the value of R3 in Figure 1-‐6 must be adjusted to achieve this result. Figure 5-‐7 (page 82) shows
how a voltage on the Microphone Power line from the transmitter chip enables the MEMS microphone chip
through Q1. It also shows components R7, C4, and R8, which control the microphone’s frequency response.
The equation that determines the values of these components is given in “Circuit Adjustments” (page 83).
Figure 5-‐6 (page 81) and Figure 5-‐7 (page 82) are two parts of one circuit. The two Microphone Return lines
shown in these sub-‐circuits must be connected at the component locations. Their common return line and
the return lines for each of the two earbud speakers must then be routed separately through the cable that
goes to the Apple device, being tied together only at the headphone connector. This configuration is required
to minimize crosstalk between the separate earbud channels and the microphone.
Note: With the exception of the MEMS digital microphone listed in Table 5-‐7 (page 82), symbol U2,
components of equal or better specifications may be substituted for the components called out below.
R6
B1
MIC Microphone Bias
R2 C2
C1
VSHUNT
C1 R3
A1
TONE
U1
C2
MICPWR Microphone Power
R1
B2
REM
R4 D1
GND
A2
S1 S2 S0
Microphone Return
Microphone Bias
1
VDD C4
4
MICOUT
U2
R7 R8
GND
2, 3
Microphone Power
3
Q1
D
1 G
S
R5
2
Microphone Return
D1 ESD protection diode, 5 pF, 6.1 V ST Micro ESDALC6V1-‐1BU2; install as close to chip pin B1
as possible
Circuit Adjustments
The values of some of the components listed in Table 5-‐7 (page 82) may be adjusted to optimize the
performance of the headphone accessory, using these formulas:
■ High-pass filter corner frequency in Hertz ~= 1/ (2π ·∙ R8 ·∙ C4), where R8 is the value of resistor R8 in
ohms and C4 is the value of capacitor C4 in Farads. This formula assumes that the value of R7 is greater
than the value of R8.
■ System sensitivity at 1 Pascal in Volts = (M0/R8) ·∙ R2, where M0 is the microphone sensitivity in Volts
per Pascal, R8 is the value of resistor R8 in ohms, and R2 is the value of resistor R2 in ohms in parallel
with 1.05 kΩ.
■ Maximum excursion of the microphone in Volts = (1/R7) ·∙ R2, where R7 is the value of resistor R7 in
ohms, and R2 is the value of resistor R2 in ohms in parallel with 1.05 kΩ.
WARNING: If the microphone bias voltage drops below 1.6 V, the transmitter chip will begin to fail and the
microphone chip may produce indeterminate outputs.
Accessory developers may design external power sources for iOS devices, but such designs must follow the
guidelines in this appendix to avoid interfering with the touch-‐sensing operation of the keyboard.
To be compatible with the frequency-‐hopping touch sensors in iOS devices, every AC or DC power adapter
design must conform to the following guidelines for its converter switching frequencies:
■ To avoid interference with audio output, the switching frequency must always be greater than the audio
band (that is, more than 22 kHz) for all loads greater than 5 mA.
■ The switching frequency must always be above 60 kHz, and preferably above 450 kHz, for all loads greater
than 20 mA.
AC adapter control switching frequencies are much higher than power line frequencies. They or their harmonics
can easily interfere with the touch sensor modulation frequencies in an iOS device. It is strongly suggested
that any AC adapter design for an iOS device include a YCAP AC capacitor (up to 1000 pF) between the
primary and secondary sections of the adapter’s transformer to reduce common-‐mode noise at these higher
switching frequencies.
The diodes used in its full-‐wave bridge rectifier can be a major source of abrupt changes in an AC adapter’s
series impedance. To reduce unwanted touch sensor output oscillations, the AC adapter circuit should be
designed such that its series impedance does not change abruptly.
If the AC adapter bridge diodes have large inherent reverse capacitance (greater than 100 pF, as many large
power diodes do), then the net impedance change due to diode switching may be acceptably small; it will
not adversely affect the touch sensor output. In more compact IC designs, however, the chip area of each
diode may be reduced in size and its reverse capacitance may become correspondingly smaller.
To stabilize the impedance of bridge diodes with unacceptably low reverse capacitance, follow the example
shown in Figure A-‐1 (page 86). In this example, capacitors C1, C2, C3, and C4 have been placed in parallel
with diodes D1, D2, D3, and D4 to stabilize the bridge impedance. Their values are larger than the inherent
reverse capacitances of the diodes.
Resistors R1, R2, R3, and R4 are optional; if included, they can block noise at very high frequencies, which
can help with EMI compatibility. The suggested values of R1, R2, R3, R4 shown were chosen to have trivial
levels of impedance relative to the impedances of C1, C2, C3, and C4 at power line frequencies.
Hot
Accessory
C3
R1
R3
C1
D3 D1
D2 D4
C4
R2
R4
C2
Neutral
Component Value
To assist developers with their accessory designs, this appendix includes sample schematics for handling
audio and video in three kinds of accessories, as well as partial schematics of the internal audio and video
circuitry of Apple devices. The schematics should help developers avoid crosstalk and extraneous noise that
may affect the quality of audio and video playing from the devices.
Figure B-‐1 (page 87) shows schematically some of the audio circuitry inside a typical Apple device.
Note: The audio circuitry shown in Figure B-‐1 (page 87) inverts the polarity of the signals in both the left
and right analog audio channels. This normally has no audible consequences. If an accessory needs to recover
the exact analog polarity represented by the digital source, it must invert the LINE-‐OUT signals.
C1 R4
27 LINE-OUT L
V Left
R3
R1
1
R2 C2
1.5 V 24 Remote Sense
1
R5
V Right
C3 R6
28 LINE-OUT R
R7
1
29 A/V Return
Component Value
C1, C3 10 µμF
C2 4.7 µμF
R1, R2 10 kΩ
R3, R7 100 kΩ
R4, R6 100 Ω
R5 47 Ω
Note: Unless otherwise specified, all component tolerances in this appendix are ±5%.
27 LINE-‐OUT L O Line level output to the Apple device for the left channel.
28 LINE-‐OUT R O Line level output to the Apple device for the right channel.
29 Audio Return — Audio return. This is a signal and must not be grounded inside
the accessory.
The Apple device’s analog audio circuits, as well as the video subsystems in devices with video output
1
capability, share a common star point as their internal ground reference. This point is shown as in
Figure B-‐1 (page 87). It is very important to maintain the integrity of the dock connector analog signals with
respect to this ground; otherwise, the analog signal handling of the entire device/accessory system may
exhibit unwanted behavior. This behavior causes no harm to the Apple device, but it can easily ruin the
quality of its audio and video output.
The analog output signal paths are best thought of as loops. The video signals S Video Y (pin 21), S Video C
(pin 22), and Composite Video (pin 23), leave the dock connector and must be terminated in a 75.0 Ω ±1%
load if they are in use. The load return current flows to Audio Return (pin 29). These input/output connections
are listed in Table 1-‐1 (page 19).
Similarly, analog audio flows from LINE-‐OUT L (pin 27) and LINE-‐OUT R (pin 28) to an external load. The load
return current flows to Audio Return (pin 29). The external load may be any value in the range 1 kΩ to 100
kΩ.
To make the audio signal as free of video crosstalk as possible requires careful routing of the low side
differential sense signal, which is connected to Remote Sense (pin 24). The Remote Sense line should be
routed directly from the Apple device’s 30-‐pin connector to the point in the accessory where audio and video
share a ground connection (for example, at the ground sleeve of an A/V connector). This trace should be
routed to minimize coupling with other signals, because any outside signals coupled into the Remote Sense
circuit will appear as extraneous noise in the system’s audio outputs. Accessories that do not use the Apple
device’s video output should terminate Remote Sense to Audio Return at the device’s 30-‐pin connector.
An accessory’s audio/video connections to the Apple device’s dock are most easily verified by making
measurements with an audio spectrum analyzer, as well as by careful listening and viewing. In an
device/accessory system, video-‐to-‐audio crosstalk appears in the audio band spectrum as a cluster of noise
lines between 25 Hz and 1 kHz and another cluster of lines around 15.6 kHz.
The most bothersome audible artifact is a buzzing sound that may occur when the vertical video raster
component appears in the audio. This component will duplicate the field rate (50 or 59.94 Hz) with an
amplitude around –106 dBV. The frequency component at the horizontal rate (15625 or 15734 Hz) will be
around –90 dBV. When measuring broadband noise density using 20 kHz bandwidth and 512 bins, the
broadband density noise will be –122 dBV/bin ±3 dBV.
Correct accessory system designs should exhibit insignificant video-‐to-‐audio crosstalk and audio-‐to-‐video
crosstalk when playing Apple device outputs.
WARNING: The circuits illustrated in the rest of this appendix are samples, not reference designs. They are
shown here only for general guidance; using them as-‐is will not guarantee the successful operation of any
specific accessory.
Figure B-‐2 (page 90) shows sample circuitry of an accessory that serves as a passive dock for Apple devices.
LEFT
27 OUTPUT
JACK
R8
24
RIGHT
28 OUTPUT
JACK
R9
29
R10
S-Video
21 Luminance
(Y) Output
R11
S-Video
22 Chrominance
(C) Output
R12
Composite
23 Video
Output
Component Value
R8, R9 47 kΩ
27 LINE-‐OUT L O Line level output to the Apple device for the left channel.
28 LINE-‐OUT R O Line level output to the Apple device for the right channel.
29 Audio Return — Audio return. This is a signal and must not be grounded inside
the accessory.
The following notes apply to the sample design in Figure B-‐2 (page 90) if the accessory supports audio:
■ Connect the left and right connector shields together, using a short trace, to make sure they are at the
same potential.
■ Connect the midpoint of the foregoing connection to pin 29. This completes the audio return circuit
back to the Apple device.
■ Connect pin 24 to the mid-‐point of the first connection.
■ Any external noise coupled to pin 24 appears at the output; therefore, make sure pin 24 is not routed
near noisy traces.
■ Resistors R8 and R9 prevent the left and right audio signals from floating when the Apple device is
unplugged.
■ Connect the S video Y, S video C, and composite output connector shields together, using a short trace.
■ Connect the audio return and the video return together at pin 29.
Figure B-‐3 (page 92) shows an example of an accessory that draws its power from an attached Apple device.
Circuitry of the type shown is useful when connecting the Apple device’s ground to a different ground in a
high common-‐mode noise environment. This example shows an arrangement that uses only one power
supply, that in the Apple device.
V R20 R23
C4
LEFT
27 OUT
U1
R13 R17 2 V
U4
2 3
2
V R21 R24
C5 R16
24
U2
3
R14 R18 2 V
U5
2 3
2
V R22 R25
C6 RIGHT
28 OUT
U3
R15 R19 2
2 3
29
R10
S-Video
21 Luminance
(Y) Output
R11
S-Video
22 Chrominance
(C) Output
R12
Composite
23 Video
Output
Component Value
Component Value
R14 1 kΩ
R16 100 Ω
27 LINE-‐OUT L O Line level output to the Apple device for the left channel.
28 LINE-‐OUT R O Line level output to the Apple device for the right channel.
29 Audio Return — Audio return. This is a signal and must not be grounded inside
the accessory.
The following notes apply to the sample design in Figure B-‐3 (page 92) if the accessory supports audio:
■ Connect the S Video Y, S Video C, and Composite output connector shields together, using a short trace.
■ Connect the audio return and the video return together at pin 29.
Figure B-‐4 (page 94) shows an example of an accessory that provides its own power. Circuitry of the type
shown is useful when connecting the Apple device’s ground to a different ground in a high common-‐mode
noise environment.
R27 R30
LEFT
27
OUT
U6
V
V V
R26 R28 R31
24
U7
V 3
V
R29 R32
RIGHT
28 OUT
29
R10
S-Video
21 Luminance
(Y) Output
R11
S-Video
22 Chrominance
(C) Output
R12
Composite
23 Video
Output
Component Value
Component Value
R26 100 Ω
27 LINE-‐OUT L O Line level output to the Apple device for the left channel.
28 LINE-‐OUT R O Line level output to the Apple device for the right channel.
29 Audio Return — Audio return. This is a signal and must not be grounded inside
the accessory.
The following notes apply to the sample design in Figure B-‐4 (page 94) if the accessory supports audio:
■ Common mode rejection is set by resistors R30 through R35, which must have tolerances of ±1% or
better.
■ R29 is needed for maximum common mode rejection.
■ Using a split power supply for U6 and U7, as shown in the diagram, is the easiest way to avoid poor
common mode rejection at low frequencies.
■ The accessory reference circuit must have a low source impedance.
■ The connection to pin 24 must be direct and must not run near external noise sources.
■ LEFT OUT and RIGHT OUT lead to the accessory’s audio circuits. To minimize popping and clicking sounds
that occur at power-‐up and power-‐down, add circuitry to the accessory.
■ Connect the S Video Y, S Video C, and Composite output connector shields together, using a short trace.
■ Connect the audio return and the video return together at pin 29.
If a self-‐powered accessory does not use these or similar circuits, the iPhone will display an incompatibility
message whenever it is connected and the accessory is unpowered.
Note: After powering the accessory, observe the 3-‐second time limit for completing the iPhone’s Identify
Device Preferences and Settings process. See “Using IDPS” in MFi Accessory Firmware Specification.
Connect the gates of both FETs shown in Figure B-‐5 (page 96) to a GPIO pin of the accessory microcontroller.
Ensure that the FETs transition from fully off to fully on (or vice versa) in no more than 10 ms. Do not connect
the FET gates directly to accessory Vcc unless this timing requirement can be met at all times, including
immediately after external power to the accessory is switched off or otherwise removed.
Note: These circuits are not required for iPhone-‐powered accessories, or for self-‐powered accessories that
do not claim iPhone capability.
549 k
Accessory Accessory
microcontroller microcontroller
GPIO GPIO
100 k 100 k
Avoiding TX Back-‐Powering
The circuit shown in Figure B-‐6 (page 97) can be used to prevent logic-‐high states on the Apple device’s
serial TX line from inadvertently back-‐powering the accessory. The resistor values in this example are for
illustration only, and the resulting waveform at the accessory’s serial RX input in normal operation should
be verified with an oscilloscope.
96 Avoiding TX Back-‐Powering
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
APPENDIX B
Sample Accessory Circuits
Accessory VCC
100 k 47 k
Accessory RX
1k
iPhone TX (pin 19)
Avoiding TX Back-‐Powering 97
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
APPENDIX B
Sample Accessory Circuits
98 Avoiding TX Back-‐Powering
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
APPENDIX C
This appendix provides a reference design for FireWire to USB DC-‐to-‐DC power converters to be used with
Apple devices. Charging an Apple device through the FireWire pins on the 30-‐pin connector is deprecated;
instead, accessory designers must provide 5 VDC power to the USB pins.
Note: FireWire to USB DC-‐to-‐DC power converters for use with Apple devices must be tested and certified.
The required process is specified in “About Accessory Certification” in MFi Accessory Testing Specification.
If an accessory has only FireWire power available (or its equivalent), a DC-‐to-‐DC converter and resistor divider
network must be added to furnish USB power and conform to the D+/D– configuration defined in “USB
2.0” (page 29).
Note: The design presented in this appendix is for general reference only. Actual converters must be designed
to meet the specific needs of the accessory.
Converter Requirements
The FireWire power input to the converter may vary from 8 to 30 VDC. The USB power output from the
converter should furnish 5 VDC ±5% at current draws up to 1 A. Other requirements include:
■ If the converter is built into the cable to the Apple device’s 30-‐pin connector, it must pass through all
the other connections, including the proper handling of pins 10 and 20 as described in “Accessory Detect
and Identify” (page 36).
■ To conserve power, the converter should turn itself off when no Apple device is connected.
■ If USB power is present, the converter should turn itself off and pass all USB connections through. It must
pass USB signals without endangering their compliance with requirements such as eye diagram tests.
■ If the converter is working to convert FireWire power to USB power, it must furnish the proper resistor
divider network, as described in “USB 2.0” (page 29).
The RF and touchscreen operations of iOS devices are sensitive to noise in several frequency bands. (See “iOS
Device Power Supply Requirements” (page 85) for details.) Some accessories, such as automotive accessories,
also tend to be sensitive to noise in areas such as the AM and FM radio bands. Hence DC-‐to-‐DC converter
designs must take care to avoid switching frequencies that fall into these bands (or whose harmonics fall
into these bands). The frequencies that most often cause trouble are listed in Table F-‐1.
Converter Requirements 99
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
APPENDIX C
FireWire to USB Reference Design
Band Frequencies
Unwanted frequencies can be avoided by selecting a suitable inductor in the USB power out circuit (such as
L1 in Figure C-‐1 (page 101)), and by using a bleeder resistor such as R5 in Figure F-‐1. (A bleeder resistor can
be used only where its power dissipation does not cause efficiency or thermal problems.)
The converter design must also minimize radiated emissions which may cause desense of RF circuits in iOS
devices. This can be accomplished through careful PCB layout in combination with proper circuit design.
Here are some tips:
The design of a FireWire-‐to-‐USB converter should take into account these other issues:
■ Efficiency is important in converter designs, and is often a trade-‐off with switching frequency control.
Modern DC-‐to-‐DC buck regulators often have efficiencies in the mid-‐90 percent range.
■ Small converter enclosures need to be tested adequately to ensure that they can dissipate the heat
created by the converter.
■ Hot-‐plugging the converter to a live supply via highly inductive cabling can produce significant voltage
overshoot, which may damage the converter. In addition to bulk capacitance on the BUCK_PWR_IN line,
such as C1 in Figure C-‐1 (page 101), placing a high energy rated zener diode (such as Vishay SMF33A)
between BUCK_PWR_IN and ground can help protect the converter from dangerous voltage peaks.
Typical Design
A typical design for a FireWire to USB converter uses a buck DC-‐to-‐DC converter to step the FireWire voltage
down to the USB voltage with minimum power loss. Figure C-‐1 (page 101) shows a Linear Technology LT3493
1.2 A 750 kHz switching regulator in this role. In Figure F-‐1, R2 and C3 form a snubber to suppress voltage
transients.
If USB power is present from another source, it is switched in by the circuit shown in Figure C-‐2 (page 101).
This circuit also supplies a 2 V turn-‐on signal (USB_PWR_SIG) to the switch shown in Figure C-‐4 (page 102).
If either the Apple device is disconnected or USB power is present, the disabling circuit shown in Figure
C-‐3 (page 102) shuts down the converter. The resistor divider network shown in Figure C-‐4 (page 102) delivers
power to the Apple device.
Values of the components show in the Figures F-‐1 through F-‐4 are given in Table C-‐2 (page 102).
D2
BUCK_POWER_IN
C2 L1 XW1
1 2 BUCK_PWR_OUT USB_PWR_OUT
5
VIN
BOOST 3 4 SW_NODE
BOOST SW C4 C5
Keep R2 R4 R5
LT3493 6
SHDN SW_NODE
IC1
very tight
1 to 3493 BUCK_FB
THERMAL FB
Keep close PAD GND
to pin 5 7 2 R1 R3
C1
D1 C3
SHUT_DOWN
USB_PWR_IN 3 2
R9 USB_PWR_SIG
D5 R15 Q2
1
1
Q3
G
R16 3 D S 2
USB_PWR_OUT
BUCK_PWR_IN
R7 R8 SHUT_DOWN
D3
APPLE_DEVICE 1
R6 3
3 1 C6
USB_PWR_IN 2 Q1
2
D4
USB_PWR_OUT
SW1
3
R11 R13 R14 OE
8 4
A B
5 6 USB D –
1 2 USB D +
A B
8 4
R10 R12
OE
7
USB_PWR_SIG 1
Q4 2
IC1 Step-‐down switching regulator, 1.2 A, 750 kHz Linear Technology LT3493
The 3G iPod is the oldest model of Apple device with a 30-‐pin connector. Because later models also have
30-‐pin connectors, users may assume that an accessory designed for later Apple devices will work in the
same way when a 3G iPod is plugged into it. However, there are functional differences. This appendix
summarizes some of the model-‐specific design issues that must be addressed if an accessory for current
Apple device models is to provide 3G iPod support.
Accessory Detection
Serial accessories designed to work with the 3G iPod must use a 549 kΩ RID resistor for accessory detection
(see “Accessory Detect and Identify” (page 36)). With any other resistor value, the 3G iPod will not correctly
detect when the accessory has been detached. If the accessory uses Extended Interface Mode, this can cause
the 3G iPod to remain locked in Extended mode until a new serial accessory is attached to it.
Note the following cautions about accessories that charge or provide power to the 3G iPod:
■ The 3G iPod may be charge only through FireWire power; the presence of the D+ and D– resistors
required for USB power can disable it.
■ An accessory that can successfully charge or power a 3G iPod will not pass self-‐certification testing.
Connector Usage
The 3G iPod serial port is shared between the 30-‐pin connector and the 9-‐pin Audio/Remote connector.
Attaching a serial accessory to the 30-‐pin connector of a 3G iPod makes any accessories attached to the 9-‐pin
Audio/Remote connector inactive, because the 3G iPod shares the serial port between these two connectors.
The iPod mini, and 4G iPod models have two serial ports, so plugging in a 30-‐pin connector port serial
accessory does not deactivate the 9-‐pin Audio/Remote connector.
Connecting both FireWire power and USB power simultaneously will put the 3G iPod into an invalid state.
The 3G iPod’s serial communication rate is limited to 19200 baud, and it does not support autobaud on
framing errors (see “UART” (page 51)).
The 3G iPod does not automatically awake from Sleep state when it receives a packet over UART transport
(see “Apple Device Power States” (page 43)).
Future Apple products may support two-‐lane DisplayPort output connectivity to digital video accessories
through their 30-‐pin connectors. The connection to an external video accessory is typically done through an
accessory dock or cable, which must perform the IDPS and Authentication 2.0 processes specified in MFi
Accessory Firmware Specification.
Some Apple devices may use seven signal pins and four ground pins of their 30-‐pin connector to provide
DisplayPort connectivity to digital video accessories. They repurpose the signal pins in all operating modes
from their previous usage, as shown in Table E-‐1. For other signals on all Apple device 30-‐pin connectors,
see Table 1-‐1 (page 19).
13 Accessory Power 3.3 V is the nominal output from the Apple Same
device. Nominal current is 5 mA or less (low
power mode), with current limited to 100
mA in high power mode.
30 Apple Device Detect Ground signal for Apple device detection. Same
The accessory must ground this pin if it is
not monitoring it to detect Apple device
attachment.
DisplayPort Output
The Apple device’s DisplayPort output generally conforms to the VESA DisplayPort Specification, Version 1.2,
with the following differences and added specifications:
■ The supported DisplayPort connection configurations are those shown in Figure E-‐1 (page 110).
■ The main link comprises two signaling lanes, as shown in Table E-‐1 (page 107).
■ Only Manchester Mode transactions are supported on the AUX channel.
■ The VESA HBR2 signaling rate and FAUX signaling specifications are not supported.
■ The VESA DisplayPort Interoperability Specification (for connecting to DVI and HDMI displays using
level-‐shifting adaptors) is not supported.
■ The Apple device provides power on the Accessory Power line of the 30-‐pin connector; it does not
support the VESA DisplayPort power standard.
2
R Non-DP video
X connector
3 Plug
DP
R DisplayPort
X display
Note: The Apple dock shown in Figure E-‐1 (page 110) is optional; it may be included or not in any of the
three cable configurations.
Figure E-‐1 (page 110) shows the following devices and cables that may be used to connect an Apple device
to a digital video accessory:
■ The Apple dock passes the DisplayPort signals from a 30-‐pin plug that accepts an Apple device to a
30-‐pin receptacle.
■ A DisplayPort receiver implemented within a 30-‐pin connector that plugs into the Apple dock is labeled
(1) in Figure E-‐1 (page 110). This receiver typically converts the DisplayPort signaling standard and protocol
to a different audio/video signaling standard and protocol.
■ A DisplayPort receiver implemented at the far end of a cable assembly is labeled (2) in Figure E-‐1 (page
110). This receiver was to convert the DisplayPort signaling standard and protocol to a different audio/video
signaling standard and protocol. The receiver was to compensate for signal losses in the cable.
■ A cable assembly that allows connection to a DisplayPort receiver is labeled (3) in Figure E-‐1 (page 110).
This cable was to be be implemented as a passive connection with a worst case loss and with no active
components. Alternatively, it could have contained an active repeater.
Cable Connections
Two tables in this section specify the wiring of the cables shown in Figure E-‐1 (page 110).
Table E-‐2 specifies the wiring of the cable labeled (3) when the far end has a DisplayPort connector. Table
E-‐3 (page 111) specifies the wiring of the cable labeled (3) when the far end has a Mini DisplayPort connector.
Historical Information
This appendix memorializes the hardware specifications of past Apple devices. It is included in this specification
to provide guidance for developers who need to design accessories compatible with these past technologies.
For legacy purposes only, the 4G iPod (color display) and 5G iPod can provide composite video signals
through their headphone jack, as shown in Figure F-‐1 (page 113). These signals have the same electrical
characteristics as the composite video signals available from the 30-‐pin connector; see Table 2-‐11 (page 39).
This use of the composite video signal on the headphone jack is deprecated.
Figure F-1 Pinout for the headphone jack on the 4G iPod color display and 5G iPod
Composite video
Audio return
Audio right
Audio left
Table F-‐1 (page 113) shows the Apple device firmware versions in which 38400 and 57600 bps serial baud
rates were introduced. The rate of 38400 bps has since been deprecated. The current baud rates for all Apple
devices are described in “UART” (page 51).
Table F-1 Firmware versions introducing 38400/57600 bps serial baud rates
Serial baud rates: — 1.2.0 3.0.2 1.0.0 1.0.0 1.0.0 1.0.0 1.0.0 1.0
38400/57600 bps
FireWire
For legacy purposes, the 30-‐pin connector FireWire interface is designed to the IEEE standard 1394a,
supporting transfer rates up to 400 Mbps. Per the IEEE 1394a specification, digital twisted pairs of wires need
to be reversed as shown in Figure F-‐2 (page 114).
The FireWire power pins on the 30-‐pin connector support 8-‐volt to 15-‐volt DC power input (8-‐volt to 30-‐volt
power is allowed for legacy accessories). FireWire pins require an 8 watt power supply. Developers of new
accessories that charge Apple devices are required to design accessories that use the USB power pins
for charging instead of the FireWire pins. Existing products that supply FireWire power must be updated
to supply USB power instead. See “FireWire to USB Reference Design” (page 99).
Deprecated ID Resistors
The RID resistor values shown in Table F-‐2 (page 115) are deprecated. Acceptable RID values are listed in
“Accessory Detect and Identify” (page 36).
114 FireWire
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
APPENDIX F
Historical Information
iAP over UART; 255 kΩ The Apple device draws power from the accessory but does not charge
power only its internal battery. Its user interface displays the battery level as full,
instead of charging. The accessory must use the D+ and D-‐ resistors
specified in Figure 2-‐1 (page 30). The iPhone requires firmware version
1.1.3 or later. The accessory must ground Accessory Detect (pin 20).
This function is deprecated; use the iAP General lingo
SetInternalBatteryChargingState command instead.
iAP over UART; 1 MΩ The Apple device pauses music playback when USB power is removed.
pause on power With iOS devices, the iOS application enters Pause mode. The iPhone
removal requires firmware version 1.0.1 or later. The accessory must ground
Accessory Detect (pin 20). This function is deprecated; use the iAP
General lingo SetiPodPreferences command instead.
iAP over USB; 191 kΩ A 191 kΩ ID resistor may be used only in systems where there is no
alternate USB Device doubt about which USB device is connected. In particular, it must never
mode be used in an accessory or cable that might be connected directly to
a standard USB port. The accessory must ground Accessory Detect (pin
20). This function is deprecated; do not use.
N/A 3.01 kΩ The 3G, 4G, and mini iPods will beep when connected. This function
is deprecated; do not use.
No iAP transport 360 kΩ The Apple device charges its own battery from the accessory’s power
supply. The LINE-‐OUT signals are disabled. The iAP interface must not
be used. This function is deprecated; do not use.
Date Notes
Changed last cell of Table 2-‐10 (page 37) per Update to MFi Accessory Hardware
Specification R8 dated 11-‐10-‐21.
Modified section “Accessory Power Policy” (page 47) to remove IDPS registration
of power modes and eliminate Constant High Power mode.
Added sensor information to Apple device model descriptions in Table I-‐1 (page
12).
Deprecated RID resistors previously listed in Table 2-‐10 (page 37) and listed
them in Table F-‐2 (page 115) for historical reference.
Removed references to deprecated Accessory Power lingo from Table 2-‐16 (page
48) and Table 2-‐18 (page 49).
117
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
REVISION HISTORY
Document Revision History
Date Notes
2011-‐04-‐04 Revision R7: Updated for iPad 2, iPhone 4 (CDMA model), and iOS 4.3.1.
In “Cases for Apple Devices” (page 66), referenced compliance with Apple’s
Case Design Guidelines for Apple Devices as a requirement for MFi certification.
Deprecated analog audio line level inputs; see Table 1-‐1 (page 19).
Corrected generic references to Apple devices, iOS devices, and iPods throughout
the document; see “IMPORTANT” (page 11).
Consolidated appendix “Apple Device Power States and Accessory Power” into
Chapter 2; see “Accessory Power” (page 35), “Apple Device Power States” (page
43), and “Accessory Power Policy” (page 47).
Added new section “Informing Apple Devices of Available Power” (page 33).
Revised the Apple device feature tables; see Table 2-‐1 (page 25), Table 2-‐2 (page
26), Table 2-‐3 (page 27), and Table 2-‐4 (page 28).
Renamed pin 30 of the 30-‐pin connector from “iPod Detect” to “Apple Device
Detect”; see Table 1-‐1 (page 19).
118
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
REVISION HISTORY
Document Revision History
Date Notes
Clarified resistor usage and removed 549 kΩ resistor in Table 2-‐10 (page 37).
Clarified generic references to iPods and iOS devices; see “IMPORTANT” (page
11).
Updated Figure 5-‐6 (page 81) and Figure 5-‐7 (page 82).
2009-‐10-‐22 Revision R2: Added information for the 5G nano and iPod classic 160 GB.
119
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
REVISION HISTORY
Document Revision History
Date Notes
Imported most of the content from iPod Accessory Protocol Interface Specification,
Release R36.
120
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
Glossary
accessory A third-‐party device licensed under the iUI (iPod USB Interface) A configuration of an Apple
Made for iPod program. device when attached as a device over USB. This
configuration allows the Apple device to be controlled
authentication A mechanism used by an Apple using iAP, using a USB HID class interface as a
device to verify whether an attached accessory is an transport mechanism.
authorized accessory and by an accessory to
authenticate the Apple device, if desired. LCB (Link Control Byte) A byte used by the iUI to
indicate report sets and manage data flow.
checksum The byte sum of packet bytes from the
payload length through the last packet byte. This is lingo The command category used by an accessory.
used to validate the contents of a command packet. There is a General lingo that must be supported by
For a valid packet, the sum of the bytes, including the all accessories. Other lingoes are designed for use by
checksum byte, must be 0x00. The packet checksum specific accessories, such as simple remote controls
byte—the last byte in a packet—must be the 2’s and microphones.
complement (the negative) of the sum of the payload
length byte up to, but not including, the packet low power mode An operating mode of an accessory
checksum byte. in which it draws 5 mA or less from an attached Apple
device.
deprecated Used to describe a technology or feature
that is supported but whose use is discouraged and packet The logical set of bytes that compose a valid
not recommended. Such a technology or feature has command sequence. This set includes the packet start
typically been replaced by a newer one and is likely byte, packet payload length, payload, and payload
to become unsupported in the future. checksum. Note that a sync byte is appended to the
beginning of the packet when using UART transport.
HID (Human Interface Device) HID is a standard USB There are two different packet types: small format
class. A USB host such as a PC or Macintosh will and large format.
recognize any attached USB device that supports a
HID interface and makes it available to the application payload The sequence of bytes consisting of the
layers of the operating system via a set of lingo, command, and data that are contained within
programming interfaces. A common application of a a packet.
HID interface is a USB mouse or joystick.
podcasting A way to publish multimedia files on the
HID report A single unit of data that is used to send Internet that lets users receive new files automatically
information to the HID interface of an Apple device by subscription. Podcast files are typically downloaded
or from an Apple device to the host. iAP packets are to Apple devices through Apple’s iTunes application.
broken into HID reports before being sent across the
USB transport and are reassembled on the receiving RDS/RBDS (Radio [Broadcast] Display System) A
side. technology for broadcasting and displaying artist,
album, track titles, and similar information on FM
iPod photo Alternative product name for the 4G iPod radio receivers.
with color display.
121
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.
GLOSSARY
resistor-based accessory An accessory that uses an public-‐key cryptography. In the iAP, X.509 certificates
Accessory Identify resistor to access only limited contain the public keys used in the authentication
functions in an Apple device. Compare Serial process.
accessory.
122
2012-02-21 | © 2012 Apple Inc. All Rights Reserved.