USB-to-I C Bridging With USB47xx/USB49xx Hubs
USB-to-I C Bridging With USB47xx/USB49xx Hubs
USB-to-I C Bridging With USB47xx/USB49xx Hubs
INTRODUCTION
The USB-to-I2C Bridging feature gives system designers using Microchip hubs expanded system control and potential
BOM reduction. The use of a separate USB-to-I2C device is no longer required and a downstream USB port is not lost
as occurs when a standalone USB-to-I2C device is implemented. This feature is available on the Microchip USB47xx/
USB49xx Automotive Hubs.
Commands may be sent from the USB host to the internal Hub Feature Controller device in the Microchip hub to perform
the following functions:
• Configure I2C Pass-Through Interface
• I2C Write
• I2C Read
SECTIONS
General Information
Part Number-Specific Information
Microchip Software Solutions
Manual Implementation
Examples
Clock Configuration
REFERENCES
Consult the following documents for details on the specific parts referred to in this application note:
• Microchip USB4712 Data Sheet
• Microchip USB4715 Data Sheet
• Microchip USB4912 Data Sheet
• Microchip USB4914 Data Sheet
• Microchip USB4916 Data Sheet
• Microchip USB4925 Data Sheet
• Microchip USB4927 Data Sheet
• Microchip Configuration Options for USB491x/492x/4715 Application Note
USB Host
Upstream
Microchip Port
prt(x+1)
Hub Hub Feature GPIO
Controller I2C
VID = 0x0424 SPI
PID = (see Table 1)
UART
prt1 prt2 prt(x)
Downstream Downstream Downstream
Port Port Port
USB Devices
I2C WRITE
The I2C interface works as a complete pass-through. This means that the host must properly arrange data payloads in
the appropriate I2C-compatible format and bit order, including the I2C slave device address. Up to 255 bytes of data
payload may be sent per I2C write command sequence.
I2C READ
The I2C interface works as a complete pass-through. This means that the host must properly arrange data payloads in
the appropriate I2C-compatible format and bit order, including the I2C slave device address. Up to 255 bytes of data
payload may be sent per I2C read command sequence.
Part Summary
Table 2 and Table 3 display the I2C interface pins by part number.
Note: Visit the product page on www.microchip.com for any of the hubs listed in this document to download the
software solution for the desired operating system.
2. Data Phase (OUT Transaction): The host sends an OUT packet followed by the data bytes of length wLength
starting from the specified address after receiving an IN packet. In this instance, Register 0x12 is being written
to Register 0x15 (Data = 0x15, 0x12). The Hub Feature Controller responds with a NYET after receiving the data.
(See Figure 3).
3. Status Phase (IN Transaction): The host sends an IN packet to complete the USB Transfer. The Hub Feature
Controller responds with a zero-length data packet. The host ACKs to complete the bridging command. (See
Figure 4).
2. Data Phase 1 (OUT Transaction 1): The host sends an OUT packet followed by the data. The data in this
instance is 0x15. The Hub Feature Controller responds with a NYET. (See Figure 6.)
4. Command Phase 2 (SETUP Transaction 2): Send the following SETUP Register Read command to Endpoint
0 of the Hub Feature Controller to retrieve the requested data. (See Table 9 and Figure 8.)
TABLE 9: I2C READ SETUP COMMAND 2 EXAMPLE
SETUP Parameter Value Note
bmRequestType 0xC1 —
bRequest 0x71 —
wValue 0x0763 Control Flag = 0x07, I2C address = 0x63 (01100011b)
wIndex 0x0000 —
wLength 0x0001 —
5. Data Phase 2 (IN Transaction 2): The host sends an IN packet, and the Hub Feature Controller responds with
the register contents (0x12). The host responds with an ACK. (See Figure 9.)
6. Status Phase 2 (OUT Transaction 2): The host sends an OUT packet followed by a zero-data length packet.
The Hub Feature Controller responds with an ACK to complete the bridging command. (See Figure 10.)
TABLE 10: BUS FREQUENCY CONTROL AND B12CINTER128DELAY REGISTER VALUES FOR
COMMON 12C CLOCK FREQUENCIES
Bus Frequency Register bI2CInter128Delay Value
Frequency (kHz)
Value (Hex) Decimal Hexadecimal
400 0A00 5 05
250 081B 8 08
200 1818 10 0A
100 (default) 3131 20 14
80 3D3E 25 19
50 6363 40 28
40 7C7C 50 32
25 C7C7 80 50
20 F9F9 100 64
3. Write the start address from which data needs to be read. (See Table 13.)
TABLE 13: CLOCK CONFIGURATION COMMAND 3 EXAMPLE
SETUP Parameter Value Note
bmRequestType 0x41 Host-to-device data transfer
bRequest 0x71 CMD_I2C_WRITE
wValue 0x03A0 03: I2C Control Flags (START, STOP)
A0: Slave address
wIndex 0x0000 —
wLength 0x0001 1 byte of data
Data to be written: 0x00
Section/Figure/
Revision Level & Date Correction
Entry
DS00002438C (10-11-18) Title Changed the document title from “USB to I2C Bridging with
USB491x/USB492x/USB4715” to “USB-to-I2C Bridging with
USB47xx/USB49xx Hubs”
Microchip Soft- This section replaced the MPLAB Connect Configuration sec-
ware Solutions tion.
I2C Interface Added sentence: “Refer to Clock Configuration for other sup-
Setup Require- ported speeds.”
ments
Sending an I2C Added “I2C Address 0x61: Write a value of 0x12 to Register
Write to an 0x15.” to Command Phase step.
attached Device
Clock Configura- Moved section to end of document, added new clock configura-
tion tion example and updated Table 10 with frequency configura-
tion register values.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or Field Application Engineer (FAE) for support. Local sales
offices are also available to help customers. A listing of sales offices and locations is included in the back of this
document.
Technical support is available through the website at: http://microchip.com/support
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be
superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO
REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,
MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Micro-
chip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold
harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or
otherwise, under any Microchip intellectual property rights unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate, AVR, AVR logo, AVR Freaks, BitCloud, chipKIT, chipKIT logo, CryptoMemory,
CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KeeLoq, Kleer, LANCheck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR,
MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, SAM-BA, SpyNIC, SST, SST
Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other
countries.
ClockWorks, The Embedded Control Solutions Company, EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS, mTouch, Precision
Edge, and Quiet-Wire are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom, CodeGuard, CryptoAuthentication,
CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN,
In-Circuit Serial Programming, ICSP, INICnet, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM,
PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI,
SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other
countries.
All other trademarks mentioned herein are property of their respective companies.
© 2018, Microchip Technology Incorporated, All Rights Reserved.
ISBN: 978-1-5224-3643-0
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
CERTIFIED BY DNV and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
== ISO/TS 16949 ==
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.