ACA Dock Demo on USB2534 Hub Technical...

28
2017 Microchip Technology Inc. DS90003166A-page 1 INTRODUCTION ACA-Dock implementations require a special sequence of commands from an external SOC in order to properly imple- ment ACA Dock mode. In this demonstration, a PIC16F18313 microcontroller first configures a USB2534 hub for ACA- Dock and then monitors and controls ACA-Dock behavior via run-time registers in the USB2534. This document includes the following topics: ACA Dock Definition and Description on page 2 Elements of the Demonstration on page 4 Details of ACA Dock Demo Implementation on page 7 Performing the Demonstration on page 19 Definitions The following are acronyms used throughout this document. ACA Accessory Charger Adapter FS Full Speed HS High Speed OTG On-The-GO PD Portable Device USB Universal Serial Bus USB-IF USB Implementers Forum VBUS Voltage line of the USB Interface TB3166 ACA Dock Demo on USB2534 Hub Technical Brief Author: Jeffrey Hunt Microchip Technology, Inc.

Transcript of ACA Dock Demo on USB2534 Hub Technical...

Page 1: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166ACA Dock Demo on USB2534 Hub Technical Brief

INTRODUCTION

ACA-Dock implementations require a special sequence of commands from an external SOC in order to properly imple-ment ACA Dock mode. In this demonstration, a PIC16F18313 microcontroller first configures a USB2534 hub for ACA-Dock and then monitors and controls ACA-Dock behavior via run-time registers in the USB2534.

This document includes the following topics:

• ACA Dock Definition and Description on page 2

• Elements of the Demonstration on page 4

• Details of ACA Dock Demo Implementation on page 7

• Performing the Demonstration on page 19

Definitions

The following are acronyms used throughout this document.

• ACA Accessory Charger Adapter

• FS Full Speed

• HS High Speed

• OTG On-The-GO

• PD Portable Device

• USB Universal Serial Bus

• USB-IF USB Implementers Forum

• VBUS Voltage line of the USB Interface

Author: Jeffrey HuntMicrochip Technology, Inc.

2017 Microchip Technology Inc. DS90003166A-page 1

Page 2: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

ACA DOCK DEFINITION AND DESCRIPTION

ACA Dock is defined in Battery Charging Specification (Revision 1.2), Section 1.4.2:

“An ACA-Dock is a docking station that has one upstream port, and zero or more downstream ports. The upstream port can be attached to a PD, and is capable of sourcing ICDP to the PD. An ACA-Dock signals it is an ACA-Dock to the PD by enabling VDM_SRC during USB idle, and by pulling ID to ground through a resistance of RID_A.”

Primary detection of the ACA-Dock by the PD is illustrated in Figure 1:

FIGURE 1: BLOCK DIAGRAM

“When an ACA-Dock is powered, but nothing is attached to its upstream port, it is required to bias the pins on its upstream port as follows:

• VBUS VCHG

• D+ VDP_UP

• D- VDM_SRC

• GND GND

DS90003166A-page 2 2017 Microchip Technology Inc.

Page 3: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

“The VBUS pin is at VCHG because the ACA-Dock is ready to provide power to a PD. The ACA-Dock is required to pull D+ to VDP_UP through RDP_UP because the VBUS pin is greater than VOTG_SESS_VLD.

“An ACA-Dock is required to enable VDM_SRC whenever D+/- have been inactive (at idle J state_ for a time of TCP_VD-

M_EN. An ACA-Dock is required to disable VDM_SRC within TCP_VDM_DIS of any activity on D+/-.

“An ACA-Dock is required to present an impedance to ground on ID of RID_A whenever it is powered. It is required to present an impedance to ground on ID of RID_FLOAT when it is not powered.

“When a PD that supports ACA detects the following conditions, it shall determine that it is attached to an ACA-Dock:

• VBUS > VOTG_SESS_VLD

• D+ at VLGC_HI

• VDAT_REF < D- < VLGC

• ID at RID_A

“Note that a PD attached to an ACA-Dock is required to compare D- with VLGC. If a PD were attached to an ACA that had a LS peripheral on its Accessory Port, then the ID pin of the PD would be pulled to ground through RID_A, and the D- pin would be at VLGC_HI instead of VDM_SRC. In order to distinguish between an ACA with a LS device and an ACA-Dock, the PD is required to detect if D- is above or below VLGC.”

2017 Microchip Technology Inc. DS90003166A-page 3

Page 4: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

ELEMENTS OF THE DEMONSTRATION

• Microchip USB2534 Hub

• A Mobile Device which is known to support ACA dock mode and HS hosting.

• The Mobile Device's required R_ID value

- The USB spec defines R_ID as 124k, but many manufacturers use different, vendor-specific values. In this demo, a Samsung S4 smart phone was used, which requires a non-standard R-ID between 70k and 74k.

• An SOC with I2C control connected to hub's I2C slave interface. In this demo, a PIC16F18313 is the SOC.

• A 5V regulator to safely interface an external power supply to VBUS

FIGURE 2: ACA IMPLEMENTATION PLAN (BACKGROUND)

Mobile Device ACA dock recognition

An ACA compatible mobile device will recognize an ACA dock upon connection if:

• VBUS = VCHG (4.75V - 5.25V)

• DP = VDP_UP (3.0-3.6V)

• DM = VM_SRC (0.5V-0.7V)

• ID = Correct R_ID is sensed+ (124k by spec, but many manufacturers don't often follow this)

• GND = GND

SOC Configuration Requirements:

During initial hub configuration after power-on, the SOC must write to 2 registers. Note that pull-up resistors must be present on SDA/SCL pins of the hub to force the hub to enter the configuration stage during power on.

Write to 0x30E3 = 0x8C

• To Enable/Disable VDAT_SRC.

- Enabled: Bit2 = 1

- Disabled: Bit 2 = 0

DS90003166A-page 4 2017 Microchip Technology Inc.

Page 5: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

• To route VDAT_SRC to DM

- Route VDAT to DM: Bit3 = 1

- Route VDAT to DP: Bit 3 = 0

• To Enable/Disable I2C control of the custom upstream battery charging detection registers

- Enabled: Bit7= 1

- Disabled: Bit7 = 0

Write to 0x30EE =0x80

• This turns off the Suspend shut-down clock. Since the VBUS pin will be high even when no data connection is made, the hub may enter suspend automatically and shut down its clock. Setting bit 7 of this register prevents that.

After completing these two register write cycles, the SOC should send the Attach command (AA 55 00) to instruct the hub to exit the configuration stage.

SOC Runtime Requirements

After the hub is configured, the hub must attempt to detect when the dock is attached to the Mobile Device.

FIGURE 3: SOC RUNTIME REQUIREMENTS

STATE: “ACA_DOCK_WAIT”

UPON STATE ENTRY, WRITE 0XE3 = 0X8C

When the hub is ready to be enumerated, it will enable a 1.5k pull-up to 3.3V on DP.

When a USB host is present and recognizes that DP is 3.3V, it will then pull DP low for at least 10ms, and enumeration will begin.

If the High-Speed (HS) chirp is successful, the hub will remove the 1.5k pull-up on DP and apply 45 Ohm pull downs on both DP/DM. The host will also apply 45 Ohm pull-downs on DP/DM. HS communication can begin.

If the HS chirp is not successful, then the host is only Full-Speed capable. The hub will keep its 1.5k pull-up on DP. A Full-Speed host has 15k pull-downs on both DP/DM.

2017 Microchip Technology Inc. DS90003166A-page 5

Page 6: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

Poll and Decide: ATTACH DETECTION

The SOC must poll the hub's register upstream battery charging registers to determine if a connection is made to a host.

The SOC should constantly poll Register 0xE4.

• When not attached, 0xE4 = 0x04 >> Stay in “ACA_DOCK_WAIT”

• When attached, 0xE4 = 0x00 >> Move to “ACA_DOCK_ATTACH”

• Other result >> Stay in “ACA_DOCK_WAIT”

State: “ACA_DOCK_ATTACH”

UPON STATE ENTRY, WRITE 0XE3 = 0X80

Now that the dock has detected a Mobile Device, it can disable the VDAT_SRC. To do this write 0xE3 = 0x80

Poll and Decide: DETACH DETECTION STEP 1

The SOC must poll the hub's register upstream battery charging registers to determine if a connection has been lost.

The SOC should constantly poll register 0xE4 to check the state of DP and DM.

• When detached or in SUSPEND, 0xE4 = 0x04 >> Move to “ACA_DOCK_DETACH_DETECT”

• When attached and active, 0xE4 = 0x00 >> Stay in “ACA_DOCK_ATTACH”

Note: To reject noise, the SOC should look for several consecutive samples of 0xE4 =0x02 before moving to “ACA_DOCK_DETACT_DETECT” state.

State: “ACA_DOCK_DETACH_DETECT”

UPON STATE ENTRY, WRITE 0XE3 = 0X8A

When DP is high, the hub could either be detached from the host, or in SUSPEND. To determine between SUSPEND and detach, the SOC should write 0xE3 = 0x8A. This enables a contact detect current source on DM.

Poll and Decide: DETACH DETECTION STEP 2

To determine between SUSPEND and detach, the SOC should then poll 0xE4.

• When not attached, 0xE4 = 0x06 >> Move to “ACA_DOCK_WAIT” state

• When attached and in SUSPEND, 0xE4 = 0x04 >> Move to “ACA_DOCK_ATTACH” state

DS90003166A-page 6 2017 Microchip Technology Inc.

Page 7: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

DETAILS OF ACA DOCK DEMO IMPLEMENTATION

The ACA Dock Demo contains hardware and software elements. The hardware consists of a USB interface between the PD and the USB2534, and a microcontroller with I2C interface to the USB2534.

Hardware

The ACA Dock Demo hardware consists of a single board with two major functions:

• USB, with these features

- 5V regulator (from external power supply) to VBUS (charging)

- Selectable R_ID resistors

- Micro-B USB Plug

- USB A Socket

• Sense and Control

- PIC16F18313 microcontroller

- I2C connector (to EVB-USB2534)

- Reset pushbutton switch

- Slide switch (not used in this demo)

Physically, these are contained on a single PCB. The two functions are laid out on the board so that it can be separated if desired:

FIGURE 4: ACA DEMO TOP VIEW

2017 Microchip Technology Inc. DS90003166A-page 7

Page 8: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 5: ACA DEMO TOP VIEW, SEPARATED

DS90003166A-page 8 2017 Microchip Technology Inc.

Page 9: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 6: ACA DEMO BOTTOM

2017 Microchip Technology Inc. DS90003166A-page 9

Page 10: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

SCHEMATICS AND LAYOUT OF HARDWARE

FIGURE 7: BLOCK DIAGRAM

FIGURE 8: SCHEMATICS 1

Voltage Limit Setting: ~15V

13006031%

R6

Current Limit Setting: 3.0A

IN 2GND 3OUT 4

INGNDOUTADJ 5

EN 1

MIC29302/1.25V-25V

U1

13906031%

R714806031%

R8130 Ohms -> 4.75V VBUS

139 Ohms -> 5.00V VBUS

148 Ohms ->5.25V VBUS

VBUS 1

GND 4

D- 2

D+ 3

VBUS

GND

D-D+

0 USB2.0 STD-A FEMALE

J2

124k06031%

R5

68k06031%

R9

36.5k06031%

R10

1

HDR-2.54 Male 1x1J5

RID_A -> OTG A Device

RID_B -> OTG B Device (Can't Connect)

RID_C -> OTG B Device (Can Connect)

see BC 1.2, Sect 6.2.4

1

HDR-2.54 Male 1x1J1

1

HDR-2.54 Male 1x1J6

330RR4

330RR3

USBD_PUSBD_N

5VA

PowerIn

UNG_8081

Part "A", ID Resistors and VBUS

PowerIn

5VA

GroundA

112

34

56HDR-2.54 Male 2x3

J4 112

34

56

HDR-2.54 Male 2x3J3

GroundA

GroundA

GroundA

GroundA

GroundA

GroundA

GroundA

RID_A

RID_B

GroundA

GroundA

10μF35V

C4

47μF16V

C1

Note: Place close to U1

Br Grn

D1

GroundA

Note: PowerIn to be manually connected to external supply

2.2kR1

RID_C

42206031%

R2

0.1uF

35V

C2

0.1uF

35V

C3

ID4

VBUS1

GND5

D-2

D+3

0

MICRO_B_PLUG

P1

FID1Fiducials

FID2 FID3

FID4 FID5 FID6

DS90003166A-page 10 2017 Microchip Technology Inc.

Page 11: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 9: SCHEMATICS 2

10k0603

R11

UNG_8081

Vdd1

RA5 2

RA4 3

RA3/MCLR/VPP4

RA2 5

RA1/ICSPCLK 6RA0/ICSPDAT 7

Vss8

EP9

PIC12F1571

U3

4 5

123

76

8

DIP-8

J12

For UDFN Package

For DIP Package

0.1uF35V0402

C5

123456

HDR-2.54 Male 1X6 STAGGERD

J7

1 23 45 67 89 10

J8

HDR 2x5 Fem

1 23 45 67 89 10

J11

1

HDR-2.54 Male 1x1J10

ICSP

_RESET

FUNCTION SELECT (IF USED)

Part "M", Microcontroller

3.3V

5VM

3.3V

5VM

GroundM

10k0603

R13

10k0603

R12

1.0μF50V

C7

1.0μF50V

C6

1J13 GroundM

Note: 5VM to be manually onnected by jumper to 5VA

GroundM GroundM

GroundM

GroundM

GroundM

GroundM

Note: Through-hole ground pins use thermal relief

ICSPCLKICSPDAT

SMBCLKSMBDAT

MCLR

SELECT

VIN1

SHDN3

GND 2PWRGD4

VOUT 5

MCP1755/3.3V

U2

31

2SPDT

SW2

421

3TACT SPST-NO

SW1

1 2J9

GroundM

3.3V

3.3V

3.3V

2017 Microchip Technology Inc. DS90003166A-page 11

Page 12: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 10: SILK SCREEN

DS90003166A-page 12 2017 Microchip Technology Inc.

Page 13: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 11: TOP ART

2017 Microchip Technology Inc. DS90003166A-page 13

Page 14: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 12: BOTTOM ART

DS90003166A-page 14 2017 Microchip Technology Inc.

Page 15: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 13: PART PLACEMENT

BILL OF MATERIALS

Table 1 contains the Bill of Materials (BOM).

TABLE 1: BILL OF MATERIALS

Designator Description Manufacturer 1Manufacturer Part Number 1

Supplier 1

Supplier Part Number 1

C1 CAP CER 47UF 16V X5R 1206 TDK Corporation C3216X5R1C476M160AB

Digi-Key 445-6003-1-ND

C1C2, C3, C5 CAP CER 0.1uF 35V 10% X7R SMD 0402 TDK Corporation CGA2B3X7R1V104K050BB

Digi-Key 445-6901-1-ND

C4 CAP CER 10UF 35V 20% X5R 1206 Taiyo Yuden GMK316AB7106KL-TR

Digi-Key 587-3007-1-ND

C6, C7 CAP CER 1UF 50V 10% X7R 0603 Taiyo Yuden UMK107AB7105KA-T

Digi-Key 587-3247-1-ND

D1 LED, Bright Green, 0603 Lite-On LTST-C191KGKT Digi-Key 160-1446-6-ND

J1, J5, J6, J10, J13 CON HDR-2.54 Male 1x1 Gold 5.84MH TH VERT TE Connectivity 5-146280-1 Digi-Key A107006-ND

J2 CON USB2.0 STD-A FEMALE TH R/A TE Connectivity AMP Connectors

292303-1 Digi-Key A31726-ND

J3, J4 CON HDR-2.54 Male 2x3 Gold 5.84MH TH VERT Samtec TSW-103-07-S-D Samtec TSW-103-07-S-D

J7 CON HDR-2.54 Male 1X6 Staggerd DNP Sullins Connec-tor Solutions

PBC06SAAN Digi-Key S1011E-06-ND

J8 CON HDR-2.54 Female 2x5 GOLD TH VERT Samtec Inc. SSQ-105-02-G-D Digi-Key SAM1185-05-ND

J9 CON HDR-2.54 Male 1x2 Gold 5.84MH TH VERT FCI 77311-118-02LF Digi-Key 609-4434-ND

2017 Microchip Technology Inc. DS90003166A-page 15

Page 16: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

Software

Code for the PIC16V18313 was written in C, compiled with Microchip XC8(v1.38). The complete code and software proj-ect are archived and can be made available by contacting your sales representative.

CONFIGURATION

USB2534 Configuration is done with these steps. In code, these are handled differently from the run-time register accesses because the configuration addresses are 16 bits and require the “Memory Access” command:

1. Write 0x30E3 = 0x83; //"Configuration 1" enables Vdat_SRC, routes Vdat_src to DM, disables I2C control of cus-tomer upstream battery charging detection.

2. Write 0x30EE = 0x80; //"Configuration 2" turns off Suspend shutdown clock.

3. Send Attach command

J11 CON HDR-2.5 Male 2x5 Gold 5.84MH TH VERT Samtec TSW-105-07-G-D Digi-Key 5-146257-5-ND

J12 CONN IC DIP SOCKET 8POS GOLD Mill-Max 110-43-308-41-001000

Mill-Max 110-43-308-41-001000

P1 MICRO_USB_B_PLUG PACONN TECH CORP

22NA-051T-2-015 PACONN TECH CORP

22NA-051T-2-015

R1, R3, R4 RES TKF 330R 5% 1/10W SMD 0603 Loading... Loading... Digi-Key P330GDKR-ND

R2 RES TKF 422R 1% 1/10W SMD 0603 Panasonic Elec-tronic Compo-

nents

ERJ-3EKF4220V Digi-Key P422HCT-ND

R5, R6, R7, R8, R9, R10

RES TKF 220k 1% 1/10W SMD 0603 Panasonic ERJ-3EKF2203V Digi-Key P220KHCT-ND

R11, R12, R13 RES TKF 10k 1% 1/10W SMD 0603 Vishay CRCW060310K0FKEA

Digi-Key 541-10.0KHCT-ND

SW1 SWITCH TACT SPST-NO 16V 0.05A PTS810 SMD C&K Components PTS810 SJM 250 SMTR LFS

Digi-Key CKN10502CT-ND

SW2 SWITCH SLIDE SPDT 120V 6A 1101M2S3CQE2 TH

C&K Components 1101M2S3CQE2 Digi-Key CKN5001-ND

U1 MCHP ANALOG LDO 1.25V-25V MIC29302BU TO-263-5

Microchip Tech-nology Inc

MIC29302BU Microchip Technol-ogy Inc

MIC29302BU

U2 MCHP ANALOG LDO 3.3V MCP1755T-3302E/OT SOT-23-5

Microchip Tech-nology

MCP1755T-3302E/OT

Digi-Key MCP1755T-3302E/OTCT-ND

U3 MCHP MCU 8-BIT 32MHz 1.75kB 128B PIC16F18313-I/RF UDFN-8

Microchip PIC16F18313-I/RF

Microchip PIC16F18313-I/RF

TABLE 1: BILL OF MATERIALS (CONTINUED)

Designator Description Manufacturer 1Manufacturer Part Number 1

Supplier 1

Supplier Part Number 1

DS90003166A-page 16 2017 Microchip Technology Inc.

Page 17: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

This is a list of the bytes that are sent for each configuration command and the Memory Access command and the Attach command:

FIGURE 14: CONFIGURATION CODE

RUN-TIME

This is the code that comprises the main run-time loop. The code enters this loop after USB2534 configuration has com-pleted. Once it has entered, code execution never leaves this loop.

2017 Microchip Technology Inc. DS90003166A-page 17

Page 18: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 15: RUN TIME LOOP CODE

DS90003166A-page 18 2017 Microchip Technology Inc.

Page 19: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

PERFORMING THE DEMONSTRATION

FIGURE 16: DEMO SETUP

2017 Microchip Technology Inc. DS90003166A-page 19

Page 20: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

FIGURE 17: CONNECTOR

Materials Required

1. ACA Dock Demo Kit

2. EVB-USB2534 evaluation board (plus 12V supply for the EVB)

3. External power supply for the ACA Dock Demo "A" board (VBUS)

4. USB A to B cable

5. USB mouse

6. USB MSD (thumb drive)

7. Samsung S4 smart phone with at least a startup charge. This is the “PD.”

8. 2 jumpers

DS90003166A-page 20 2017 Microchip Technology Inc.

Page 21: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

Steps to Demonstrate ACA Dock Behavior

1. Connect all pieces as shown in the images above. The ACA Demo “M” board connects to the EVB-USB2534 board through the SMBus/I2C connector (compatible with Total Phase Aardvark™ I2C/SPI Interface) which is J8 on the Demo “M” board and J13 on the EVB.

2. Set the external power supply (red and black in the image above) to 6.00 VDC with 2A or greater current limiting. Connect the external power supply to J5 (and ground to J6).

3. With a jumper, connect EVB-USB2534 board J7 pin 1 (Ext RESET) to ACA Demo “M” board J9 pin 1 (RESET).

4. With a jumper, connect EVB-USB2534 board U8 pin 4 to ACA Demo “M” board J10. This is 3.3V. Using this jumper avoids the need for another external power supply. Because the PIC16F18313 is tolerant of 5V supply, it is also possible to use VBUS (J1) on the ACA Demo “A” board as the power supply, but that is not shown in this procedure.

5. Set R_id to between 70kOhm and 74kOhm. This value is not standard in accordance with the BC 1.2 specifica-tion, but it is what Samsung has chosen for their S4 phone. In this demo, the value of resistor R5 on the ACA Demo “A” board was changed so that the R_id value was 73kOhm when two shunts were applied at J3.

6. With all power supplies on, depress the RESET pushbutton (SW1 on the EVB) for about 1 second. Observe that the 4 Port Power LEDs on the EVB illuminate after about 1 second of delay. This indicates that USB2534 Con-figuration is complete and the Attach command has been executed. The ACA Demo software is now in the Run-time loop.

7. Observe the current that is drawn from the 6V external power supply. This is normal leakage and should measure 15-20 mA.

FIGURE 18: VI DISCONNECTED

8. Turn the PD on.

9. Connect the PD to the ACA Dock Demo “A” board (P1).

Observe:

a) “The dock is connected” displayed on the PD. The PD is now acting as a host and will enumerate the hub and devices downstream of the hub.

FIGURE 19: DOCK IS CONNECTED

2017 Microchip Technology Inc. DS90003166A-page 21

Page 22: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

b) “Mouse connected” displayed on the PD. The phone is enumerating devices.

FIGURE 20: MOUSE CONNECTED

c) The PD app for file management starts. This indicates that the thumb drive has been detected and enumer-ated.

FIGURE 21: MOUSE NAVIGATION

d) Use the mouse to navigate to the thumb drive and examine its contents.

10. Observe the current that is drawn from the external power supply. The PD is now charging at its maximum capa-bility. This current will vary depending on the resident charge in the PD battery.

FIGURE 22: VI CHARGING

11. The PD may be repeatedly disconnected and reconnected to the ACA Dock.

DS90003166A-page 22 2017 Microchip Technology Inc.

Page 23: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

Additional observations:

1. As the PD is connected to the ACA Demo “A” board (Step 8 above) one can observe that the PD senses the value of the 74kOhm R_id resistor on the ID pin and the high value on DP. Observe that the PD drives DP low, then the phone does some additional non-standard activity for about 2ms, and then drives PD low for about 8ms.

FIGURE 23: SCOPE INSERTION

2017 Microchip Technology Inc. DS90003166A-page 23

Page 24: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

2. Some time after the connection handshake above, the phone attempts a HS chirp, which shows that the phone is HS host capable). The HS chirp is successful.

FIGURE 24: SCOPE CHIRP

DS90003166A-page 24 2017 Microchip Technology Inc.

Page 25: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

APPENDIX A: APPLICATION NOTE REVISION HISTORY

TABLE A-1: REVISION HISTORY

Revision Level & Date Section/Figure/Entry Correction

DS90003166A (04-17-17) Initial release.

2017 Microchip Technology Inc. DS90003166A-page 25

Page 26: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

TB3166

DS90003166A-page 26 2017 Microchip Technology Inc.

THE MICROCHIP WEB SITE

Microchip provides online support via our WWW site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information:

• Product Support – Data sheets and errata, application notes and sample programs, design resources, user’s guides and hardware support documents, latest software releases and archived software

• General Technical Support – Frequently Asked Questions (FAQ), technical support requests, online discussion groups, Microchip consultant program member listing

• Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives

CUSTOMER CHANGE NOTIFICATION SERVICE

Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest.

To register, access the Microchip web site at www.microchip.com. Under “Support”, click on “Customer Change Notifi-cation” and follow the registration instructions.

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 web site at: http://microchip.com/support

Page 27: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

2017 Microchip Technology Inc. DS90003166A-page 27

TB3166

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, BeaconThings, BitCloud, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANCheck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, RightTouch, 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, chipKIT, chipKIT logo, CodeGuard, CryptoAuthentication, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, Mindi, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PureSilicon, QMatrix, RightTouch logo, 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.

© 2017, Microchip Technology Incorporated, All Rights Reserved.

ISBN: 978-1-5224-1623-4

Note the following details of the code protection feature on Microchip devices:

• Microchip products meet the specification contained in their particular Microchip Data Sheet.

• 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.

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 and India. The Company’s quality system processes and procedures are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping 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.

QUALITYMANAGEMENTSYSTEMCERTIFIEDBYDNV

== ISO/TS16949==

Page 28: ACA Dock Demo on USB2534 Hub Technical Briefww1.microchip.com/downloads/en/DeviceDoc/90003166A.pdf · 2017. 4. 17. · ACA Dock is defined in Battery Charging Specification (Revision

DS90003166A-page 28 2017 Microchip Technology Inc.

AMERICASCorporate Office2355 West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7200 Fax: 480-792-7277Technical Support: http://www.microchip.com/supportWeb Address: www.microchip.com

AtlantaDuluth, GA Tel: 678-957-9614 Fax: 678-957-1455

Austin, TXTel: 512-257-3370

BostonWestborough, MA Tel: 774-760-0087 Fax: 774-760-0088

ChicagoItasca, IL Tel: 630-285-0071 Fax: 630-285-0075

DallasAddison, TX Tel: 972-818-7423 Fax: 972-818-2924

DetroitNovi, MI Tel: 248-848-4000

Houston, TX Tel: 281-894-5983

IndianapolisNoblesville, IN Tel: 317-773-8323Fax: 317-773-5453Tel: 317-536-2380

Los AngelesMission Viejo, CA Tel: 949-462-9523Fax: 949-462-9608Tel: 951-273-7800

Raleigh, NC Tel: 919-844-7510

New York, NY Tel: 631-435-6000

San Jose, CA Tel: 408-735-9110Tel: 408-436-4270

Canada - TorontoTel: 905-695-1980 Fax: 905-695-2078

ASIA/PACIFICAsia Pacific OfficeSuites 3707-14, 37th FloorTower 6, The GatewayHarbour City, Kowloon

Hong KongTel: 852-2943-5100Fax: 852-2401-3431

Australia - SydneyTel: 61-2-9868-6733Fax: 61-2-9868-6755

China - BeijingTel: 86-10-8569-7000 Fax: 86-10-8528-2104

China - ChengduTel: 86-28-8665-5511Fax: 86-28-8665-7889

China - ChongqingTel: 86-23-8980-9588Fax: 86-23-8980-9500

China - DongguanTel: 86-769-8702-9880

China - GuangzhouTel: 86-20-8755-8029

China - HangzhouTel: 86-571-8792-8115 Fax: 86-571-8792-8116

China - Hong Kong SARTel: 852-2943-5100 Fax: 852-2401-3431

China - NanjingTel: 86-25-8473-2460Fax: 86-25-8473-2470

China - QingdaoTel: 86-532-8502-7355Fax: 86-532-8502-7205

China - ShanghaiTel: 86-21-3326-8000 Fax: 86-21-3326-8021

China - ShenyangTel: 86-24-2334-2829Fax: 86-24-2334-2393

China - ShenzhenTel: 86-755-8864-2200 Fax: 86-755-8203-1760

China - WuhanTel: 86-27-5980-5300Fax: 86-27-5980-5118

China - XianTel: 86-29-8833-7252Fax: 86-29-8833-7256

ASIA/PACIFICChina - XiamenTel: 86-592-2388138 Fax: 86-592-2388130

China - ZhuhaiTel: 86-756-3210040 Fax: 86-756-3210049

India - BangaloreTel: 91-80-3090-4444 Fax: 91-80-3090-4123

India - New DelhiTel: 91-11-4160-8631Fax: 91-11-4160-8632

India - PuneTel: 91-20-3019-1500

Japan - OsakaTel: 81-6-6152-7160 Fax: 81-6-6152-9310

Japan - TokyoTel: 81-3-6880- 3770 Fax: 81-3-6880-3771

Korea - DaeguTel: 82-53-744-4301Fax: 82-53-744-4302

Korea - SeoulTel: 82-2-554-7200Fax: 82-2-558-5932 or 82-2-558-5934

Malaysia - Kuala LumpurTel: 60-3-6201-9857Fax: 60-3-6201-9859

Malaysia - PenangTel: 60-4-227-8870Fax: 60-4-227-4068

Philippines - ManilaTel: 63-2-634-9065Fax: 63-2-634-9069

SingaporeTel: 65-6334-8870Fax: 65-6334-8850

Taiwan - Hsin ChuTel: 886-3-5778-366Fax: 886-3-5770-955

Taiwan - KaohsiungTel: 886-7-213-7830

Taiwan - TaipeiTel: 886-2-2508-8600 Fax: 886-2-2508-0102

Thailand - BangkokTel: 66-2-694-1351Fax: 66-2-694-1350

EUROPEAustria - WelsTel: 43-7242-2244-39Fax: 43-7242-2244-393

Denmark - CopenhagenTel: 45-4450-2828 Fax: 45-4485-2829

Finland - EspooTel: 358-9-4520-820

France - ParisTel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79

France - Saint CloudTel: 33-1-30-60-70-00

Germany - GarchingTel: 49-8931-9700Germany - HaanTel: 49-2129-3766400

Germany - HeilbronnTel: 49-7131-67-3636

Germany - KarlsruheTel: 49-721-625370

Germany - MunichTel: 49-89-627-144-0 Fax: 49-89-627-144-44

Germany - RosenheimTel: 49-8031-354-560

Israel - Ra’anana Tel: 972-9-744-7705

Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781

Italy - PadovaTel: 39-049-7625286

Netherlands - DrunenTel: 31-416-690399 Fax: 31-416-690340

Norway - TrondheimTel: 47-7289-7561

Poland - WarsawTel: 48-22-3325737

Romania - BucharestTel: 40-21-407-87-50

Spain - MadridTel: 34-91-708-08-90Fax: 34-91-708-08-91

Sweden - GothenbergTel: 46-31-704-60-40

Sweden - StockholmTel: 46-8-5090-4654

UK - WokinghamTel: 44-118-921-5800Fax: 44-118-921-5820

Worldwide Sales and Service

11/07/16