Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•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.
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 Microchip
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.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, flexPWR, JukeBlox, K
LANCheck, MediaLB, MOST, MOST logo, MPLAB,
OptoLyzer, PIC, PICSTART, PIC
SST, SST Logo, SuperFlash and UNI/O are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
The Embedded Control Solutions Company and mTouch are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo,
CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit
Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet,
KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo,
MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code
Generation, PICDEM, PICDEM.net, PICkit, PICtail,
RightTouch logo, REAL ICE, SQI, Serial Quad I/O, 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 trademarks 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.
DS50002300A-page 2 2014 Microchip Technology Inc.
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
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.
Worldwide Sales and Service .....................................................................................51
DS50002300A-page 6 2014 Microchip Technology Inc.
Page 7
UCS81003 EVALUATION BOARD
USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the p age number. The numbering convention for the DS number is
“DSXXXXXXXXA”, where “XXXXXXXX” is the document number and “A” is the revision level
of the document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
®
IDE online help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
UCS81003 Evaluation Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the UCS81003 Evaluation Board. The manual
layout is as follows:
• Chapter 1. “Product Overview” – Important information about the UCS81003
Evaluation Board.
• Chapter 2. “Installation and Operation” – Includes instructions on how to
configure the board.
• Chapter 3. “Hardwa re Desc ript ion ” – Describes the UCS81003 Evaluation
Board features and functionalities.
• Chapter 4. “Software Description” – Describes the PC Graphical User Interface
that operates the UCS81003 Evaluation Board.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the UCS81003 Evaluation Board.
• Appendix B. “Bill of Materials” – Lists the parts used to build the UCS81003
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
DS50002300A-page 8 2014 Microchip Technology Inc.
Page 9
RECOMMENDED READING
This user's guide describes how to use UCS81003 Evaluation Board. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources.
• UCS81003 Data Sheet - “Automotive USB Port Power Controller with
Charger Emulation” (DS20005334)
• MCP2221 Data Sheet - “USB 2.0 to I
GPIO” (DS200005292)
• AN24.14 - “UCS1002 Fundamentals of Custom Charger Emulation”
(DS200005234)
THE MICROCHIP WEB SITE
Microchip provides online support via our web 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 (FAQs), 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
Preface
2
C™/UART Protocol Converter with
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:
1.3WHAT THE UCS81003 EVALUATION BOARD KIT CONTAINS
This UCS81003 Evaluation Board kit includes:
• UCS81003 Evaluation Board (ADM00561)
• Important Information Sheet
• 5V AC-DC Wall Adapter
• Standard-A plug to mini-B plug USB Cable
DS50002300A-page 12 2014 Microchip Technology Inc.
Page 13
UCS81003 EVALUATION
J2
USB Mini-B
receptacle
to PC
J10
USB Standard-A receptacle
to portable device
J3
USB Stanadrd-A plug to
USB host / USB Power
J1
Auxiliary power connector
to external power supply
BOARD USER’S GUIDE
Chapter 2. Installation and Operation
2.1INTRODUCTION
This chapter identifies the main connectors, LEDs, jumpers and test points that can be
found on the UCS81003 Evaluation Board. It also explains the steps to install the
board’s graphical user interface.
2.2CONNECTORS ON THE EVALUATION BOARD
Figure 2-1 shows the top of the evaluation board and highlights the connectors.
FIGURE 2-1:UCS81003 Evaluation Board Top View – Connectors.
TABLE 2-1:CONNECTOR DESCRIPTIONS
DesignatorConnector TypeDescription
J1 Power jackExternal 5V power supply
J2USB Mini-B receptacleThis connects the board to the PC with the GUI software
J3USB Standard-A plugThis connects the evaluation board to the USB host
Figure 2-2 shows the top of the Evaluation Board and highlights the LEDs.
FIGURE 2-2:Evaluation Board Top View – LEDs.
TABLE 2-2:LED DESCRIPTIONS
DesignatorFunctionDescription
LD1USB OKWhen lit, this green LED means the MCP2221 USB
LD2SMBus ActivityWhen flashing, this green LED indicates SMBus
LD3ALERT#When lit, this red LED indicates an alert signal is active.
LD4A_DET#When lit, this green LED indicates a device is attached
bridge is connected to the PC.
communication activity.
for the UCS81003.
DS50002300A-page 14 2014 Microchip Technology Inc.
Page 15
Installation and Operation
J16
Current Limit,
SMBus mode
J18
Current Limit,
Stand-Alone mode
J8
Connects
UCS81003 V
BUS
output to J10
J9
PWR_EN,
EM_EN,
M1, M2
J17
Address Selection,
PWR_EN Active Low
J19
Address Selection,
PWR_EN Active High
J6
LATCH,
S0
J7
SMBus
data,
clock
J5
V
S
source
selection:
5V from J1 or
from J3 V
BUS
J4
VDD source
selection:
Vs or
V
BUS
from J2
J1
J2
J3J10
2.4JUMPERS ON THE EVALUATION BOARD
Figure 2-3 shows the top of the Evaluation Board and highlights the jumpers.
FIGURE 2-3:Evaluation Board Top View – Jumpers.
TABLE 2-3:JUMPER DESCRIPTIONS
DesignatorFunction
J4V
source selectionThe jumper populated on this header selects the VDD
DD
Jumper
Position
1-2V
2-3V
supply source for the digital circuits on the board.
is connected to V
DD
is connected to VS. This is the recommended
DD
configuration when evaluating the Attach Detection feature
of the UCS81003. If the board is evaluated with a PC
running the GUI, then the V
USB cable is plugged into the J2 connector.
J5VS source selectionThe jumper populated on this header selects the voltage
J6LATCH, S0
Logic Inputs settings
J7SMBus data and clock linesIf the UCS81003 is in SMBus mode (as selected by using
J8V
output connection This jumper connects the 5V pin of connector J10 to the
BUS
J9PWR_EN, EM_EN, M1, M2
Logic Inputs settings
J16Current Limit
SMBus mode
J18Current Limit
Stand-alone mode
J17SMBus Address
PWR_EN active low
Jumper
Position
Description
input source for the power switch inside the UCS81003.
1-2V
source is the J1 power connector (external 5V power
S
supply).
2-3V
is connected to V
S
of the J3 USB connector. Use this
BUS
configuration only if the USB host can deliver the necessary
current for charging.
The jumpers must be left off for SMBus communication to
be enabled.
If the UCS81003 is in Stand-Alone mode (as selected by
using J18 instead of J16), then the header pins have the
following functions:
1-2Jumper placed S0=Logic Low - Detect Power state disabled
No jumper S0=Logic High - Detect Power state enabled
handler enabled
No jumper LATCH=Logic High - “Latch” fault handler
enabled
J16 instead of J18), then two jumpers must be populated in
1-2 and 3-4 positions to connect the clock and data lines to
the MCP2221 USB bridge.
The jumpers must be left off if UCS81003 is in Stand-alone
mode.
UCS81003 V
power output pins. A current probe or a
BUS
multimeter can be connected to this header for measuring
the charging current and the voltage, close to the USB
connector.
When a jumper is installed, the corresponding UCS81003
input pin will be in Logic Low state. Otherwise, the
corresponding pin will be in Logic High state.
1-2PWR_EN
3-4EM_EN
5-6M1
7-8M2
Placing one jumper on this header selects the current limit
and sets the UCS81003 in SMBus mode. In this case, no
jumper must be populated on J18 header.
Placing one jumper on this header selects the current limit
and sets the UCS81003 in Stand-alone mode. In this case,
no jumper must be populated on J16 header.
Placing one jumper on this header selects the SMBus
address and sets the PWR_EN control to be active low. In
this case, no jumper must be populated on J19 header.
DS50002300A-page 16 2014 Microchip Technology Inc.
Page 17
Installation and Operation
TP1
DP_IN
TP3
DM_OUT
TP2
DM_IN
TP4
DP_OUT
TABLE 2-3:JUMPER DESCRIPTIONS (CONTINUED)
DesignatorFunction
J19SMBus Address
PWR_EN active high
Note:The following headers must be populated with one jumper for the UCS81003
Evaluation Board to be functional:
• J4, J5, J8
• J16 or J18
• J17 or J19
• If
UCS81003 is configured in SMBus mode (as selected by using J16 instead of J18), two
jumpers must be populated on J7 and J6 must be left unpopulated.
configured in Stand-Alone mode, the jumpers on J7 must be left off.
2.5DATA TEST PO INTS ON THE EVALUATION BOARD
Figure 2-4 shows the top of the board and highlights the USB data line test points.
Jumper
Position
Placing one jumper on this header selects the SMBus
address and sets the PWR_EN control to be active high. In
this case, no jumper must be populated on J17 header.
Description
If UCS81003 is
FIGURE 2-4:Evaluation Board Top View – Data Test Points.
Figure 2-5 shows the top of the board and highlights the ground test points.
FIGURE 2-5:Evaluation Board Top View – Ground Test Points.
TABLE 2-5:
DesignatorTest Point TypeDescription
J11, J12Signal GroundThese test points connect to the signal ground of the board.
J13, J14, J15Earth GroundThese test points connect to the earth ground of the board (the
These are the ground reference for the UCS81003.
shield of the USB connectors).
DS50002300A-page 18 2014 Microchip Technology Inc.
Page 19
2.7SOFTWARE INSTALLATION
To begin using the UCS81003 Evaluation Board, software must be installed on a
Windows
1. Download the software archive from the board’s web page, unzip it and
®
-based computer with a USB port.
double-click the Setup.exe, to start the installation. Figure 2-6 shows the initial
installation screen, which displays briefly as the setup program loads.
in the Destination Directory window, as shown in
operation, the files must be installed in the default locations. The default location
for the software files is
while for the LabVIEW software is
Instruments
.
C:\Program Files(x86)\Microchip\UCS81003\
C:\Program Files(x86)\National
Figure 2-7
. For proper
,
FIGURE 2-7:Software Installation – Setting the Destination Directory.
On the following screens, select Next and follow the on-screen instructions to complete
the installation. When installation is complete, the program will automatically run. If a
screen appears requiring a restart for the changes to take effect, reboot the computer.
The UCS81003 interface will start with the SMBus communications.
DS50002300A-page 20 2014 Microchip Technology Inc.
Page 21
Chapter 3. Hardware Description
3.1UCS81003 DEVICE
The UCS81003 provides a single USB port power switch for precise control of up to
3.0A continuous current (2.85A typical) with overcurrent limiting, dynamic thermal
management, latch/auto-recovery upon fault, selectable active low or high enable,
under and overvoltage lockout, and back-drive protection.
USB Charging Port profiles are integrated into the UCS81003 to assure compliance to
multiple standards. In addition to power switching and USB Charging Port profiling, the
UCS81003 provides automatic and configurable USB data line handshaking to enable
charging of USB-IF Battery Charging 1.2 (CDP or DCP modes), Chinese
Telecommunications Industry Standard YD/T 1591-2009, Apple
other mobile devices.
The UCS81003 provides a device attachment detection output, as well as a dedicated
alert output, with current monitoring, charge rationing for controlled delivery of current
regardless of a host’s power state. When the limit is reached, the UCS81003 will
perform the user-programmed behavior (report and disconnect is the default).
UCS81003 EVALUATION
BOARD USER’S GUIDE
®
Inc., RIM® and many
3.2EVALUATION BOARD POWER SOURCE
The UCS81003 has split power supply support:
is the voltage input to Power Switch. This supply rail is required to charge the
•V
S
portable device. V
follows:
Jumper
Position
1-2VS is supplied from the external 5V power supply connected to J1 power jack.
2-3V
is the power supply for chip functionality. The UCS81003 Evaluation Board
•V
DD
contains two additional ICs, MCP2221 USB bridge and MCP23018 I/O expander,
which are also powered from the V
populating a jumper on the J4 header, as follows:
Jumper
Position
1-2V
2-3V
source is selected by populating a jumper on J5 header, as
S
is supplied from the V
S
only if the USB host port can supply the charging current for the portable
device.
DD
is supplied from V
DD
board in this configuration and the Attach Detection feature of the UCS81003
is used, the V
data sheet.
is connected to VS. This configuration is recommended when using the
DD
Attach Detection feature. If the board is evaluated with a PC running the GUI,
then the V
connector.
voltage must not exceed VDD + 150 mV, as specified in the
S
must be supplied after the USB cable is plugged into the J2
The MCP2221 is a USB-to-UART/I2C bridge that supports SMBus communication. It is
controlled through USB interface by the GUI running on the PC. It is the master device
on the SMBus/I2C bus. It is used to read and write the registers of the two devices
connected to the SMBus/I
3.4MCP23018 I/O EXPANDER
MCP23018 is a 16-bit I/O Expander with open-drain outputs and I2C interface. Its I2C
address is configured to 0100_000(R/W), different than all possible addresses of the
UCS81003.
The I/O pins used in this application are configured as inputs. They are used to read
the logic state of the following UCS81003 pins: ALERT#, ADET#, PWR_EN, EM_EN,
M1, M2.
3.5DIRECT SMBUS CONNECT OPTION
It is also possible to connect an external SMBus master to the UCS81003 Evaluation
Board. Remove the jumpers on J7 and connect the SMBus master to the header pins
that are linked directly to UCS81003 pins SMDATA/LATCH and SMCLK/S0. Note that
ground must be connected to one of the test point grounds or header pins on the EVB.
See Figure 3-1 for header pins description.
2
C interface: UCS81003 and MCP23018 I/O expander.
DS50002300A-page 22 2014 Microchip Technology Inc.
FIGURE 3-1:UCS81003-to-SMBus Bridge Jumpers.
Page 23
4.1OVERVIEW
Ta bs
Fixed Panel
with Controls
To get the graphical interface and the evaluation board running, follow these
instructions:
1. Start the UCS81003 GUI software: from the Windows Start menu, select
2. Connect the USB mini connector end of the cable to the board and the standard
The UCS81003 Evaluation Board interface (Figure 4-1), consists of five tabs (Main, Configuration & General Status , Custom Charging, Register Set and Demo) as
well as the right side sections that are always visible (Panel Controls, Pi n State &
Attach Status and Active Mode Selection).
UCS81003 EVALUATION
BOARD USER’S GUIDE
Chapter 4. Software Description
Programs >
USB connector of the cable to any available USB port on the PC. If the V
supply is connected to VS (the jumper on J4 header is populated on position 2-3),
then connect the VS supply. The USB Activity LED should light, indicating that
the MCP2221 USB bridge is connected to the PC.
• For many controls on the GUI panel, placing the mouse cursor over a control will
pop up context help that indicates the register address or provides a description.
• After a power up of the evaluation board, the default settings are loaded. Users
can save setting configurations to user-named files which can be reloaded at any
time for quick reconfiguration (see Section 4.3.4.3 “Configuration Save and
Load”).
• The GUI cannot be used to demonstrate UCS81003 behavior in Stand-Alone
mode since SMBus communication is required.
4.1.2GUI Abbreviations
AbbreviationDescription
BCBattery charging
CDPCharging downstream port
DCEDedicated charger emulation
DCPDedicated charging port
EMEmulation
EM_ENEmulation enable
M1Mode control pin number one
M2Mode control pin number two
4.1.3Keyboard Shortcuts
Some GUI controls have keyboard shortcuts, as shown in Table 4-1.
DS50002300A-page 24 2014 Microchip Technology Inc.
Page 25
4.2INTERFACE DESCRIPTION AND OPERATION
Register Read
Single Read
Stop
Button
COM Status
Single/
Continuous Read
Mode Switch
Delay Button and Field
Indicator
Enable Check Box
Default
Button
Step
Button
Demo
Button
Run Button
Abort Execution
Button
Extended Menu
4.2.1Panel Controls
The Panel Controls section on the right side of the GUI, shown in Figure 4-2, affects
GUI operation. This section is always displayed.
Software Description
FIGURE 4-2:Panel Controls.
4.2.1.1STOP AND RUN BUTTONS
Pressing the Stop button, shown in Figure 4-2, interrupts GUI software communication
with the evaluation board. When this button is clicked, the Run button appears under
To restart communication between the software and the evaluation board, click the Run
button. This button disappears when communication resumes.
Note:Stopping and restarting the GUI does not affect register settings. To restore
default register settings, disconnect power from the board, then reconnect
power.
To close the program, press the Close (X) button on the upper right corner of the
window.
4.2.1.3COM STATUS INDICATOR
The COM Status indicator shows the status of communications over the SMBus.
During normal operation, COM Status is green. If SMBus communications fails, COM
Status turns red (or alternates red and green).
4.2.1.4REGISTER READ DELAY
The Register Read Delay sets the GUI control panel update speed. It affects the
speed that the software reads the registers, but will not affect the device’s sampling
time. The default is 25 ms. This number can range from 0 to 5000 ms in increments of
25 ms.
4.2.1.5SINGLE/CONTINUOUS READ
The panel defaults to continuous register reads (toggle switch in down position, as
shown in Figure 4-2). To stop continuous register reads, check the “Single Read
Enable” box. In order to capture the register values at a given time, click the switch,
which will briefly flip to Single Read.
4.2.1.6DEFAULT
When this button is pressed, it loads the defaults to all registers of the UCS81003.
4.2.1.7STEP
When selected, Step will go through the Emulation Profiles in sequence, from Legacy 1
through 7, then BC1.2 DCP, and finally Custom. The actual DCE cycle is slightly
different, please see product’s data sheet for more information.
4.2.1.8DEMO
The Demo button enables an automated routine to cycle through a user-defined set of
profiles and selects the highest current profile. This feature emulates an external
controller and is not part of the UCS81003 device.
DS50002300A-page 26 2014 Microchip Technology Inc.
Page 27
Software Description
ALERT#
Pin
Indicators
A_DET#
Pin Override
Check Boxes
and
Indicators
4.2.2Pin State and Attach Status Panel
The Pin State & Attach Status section on the right side of the GUI, shown in Figure 4-4,
provides a quick graphical status reference and allows physical control pin override.
This section is always displayed.
FIGURE 4-4:Pin State and Attach Status.
4.2.3Pin State & Attach Status Panel
4.2.3.1ALERT# AND A_DET# INDICATORS
When the ALERT# and A_DET# indicators are green, the signals at the device’s
respective pin are low and the corresponding condition has occurred (alert or device
attached, respectively). When the indicators are dark, the pin states are high.
4.2.3.2PIN INDICATORS
The pin indicators (SEL, PWR_EN, M1, M2 and EM_EN) shown in Figure 4-4 are
green if the signal on the corresponding pin on the UCS81003 device is high, and dark
if the signal is low. If the “Pin Ignore” box is checked (see Section 4.2.3.3 “Pin
Override”), these indicators will reflect the GUI overrides for these pins.
4.2.3.3PIN OVERRIDE
For evaluation convenience, the GUI can override the setting of the following pins on
the UCS81003 device: PWR_EN, M1, M2 and EM_EN. Check the “Pin Ignore” box
(see Figure 4-4) to enable pin override. Then, check in the corresponding pin box to set
the value high.
Note 1:Pin override does not affect the actual signal on the pin. It only affects the
register values.
2:The SEL pin is only read once by the UCS81003 at power up, so there is
no pin override for it. To close the port power switch, the PWR_EN state
must match the SEL state (e.g., SEL = high and PWR_EN = high).
The Active Mode Selection section on the right side of the GUI, shown in Figure 4-5,
provides a quick reference regarding operating state based on the values of M1, M2
and EM_EN. This section is always displayed.
FIGURE 4-5:Charger Emulation Selection.
DS50002300A-page 28 2014 Microchip Technology Inc.
Page 29
4.3TAB DESCRIPTIONS
Ta b
Status Panel
Measured
Current
Status
Right-click Wave Box
for Plot Appearance Settings
Current Status
Instantaneous
Current
Measurement
Screen
Selection
4.3.1Main Tab
The Main tab (Figure 4-6) shows key parameters related to the port power switch,
including the maximum current limit, the present current limit (always equal to or less
than maximum current limit), and power state (e.g. detect, active, error, etc.). When a
portable device has been successfully attached, the screen shows the power state
change from Detect to Active and shows the various handshakes applied. Once it is
determined that the device is charging, the screen shows which emulation profile was
successful, and the graph shows the charging current. Optionally, the user may monitor
the charge delivered or ration the charge delivered to the attached device.
Software Description
FIGURE 4-6:Main Tab Window Overview.
4.3.1.1DEDICATED CHARGER EMULATION (DCE) CYCLE
As shipped, the UCS81003 is ready to function as a dedicated charger, which will be
applied when there is an attach detection. To view this behavior, perform the following:
1. Connect V
Evaluation Board”). The VS_LOW indicator on the bottom of the Main Tab must
be dark. If the color is red, the voltage is not high enough to charge a portable
device.
2. Connect a portable device to the board. Use the OEM USB charging cable that
comes with the portable device.
3. The UCS81003 should detect an attachment, switch to the Active Power state,
apply an emulation profile and deliver a charge. Figure 4-7 shows the interface
after charging has started.
to the evaluation board (see Section 2.4 “Jumpers on the
S
Page 30
UCS81003 Evaluation Board User’s Guide
VS_LOW
Indicator
Power State
Indicator
Charger
Emulation
Profile
Indicator
A_DET#
is asserted
Pin Status
Power State
Indicator Changed
A_DET#
is deasserted
Disconnect
showing
Point
in Plot
Pin Status
FIGURE 4-7:Main Tab - Charging Started.
4. Disconnect the portable device from the board.
The UCS81003 should detect a removal, switch to the Detect power state, and stop
delivering a charge. Figure 4-8 shows the interface after a removal was detected.
FIGURE 4-8:Main Tab - Removal Detected.
DS50002300A-page 30 2014 Microchip Technology Inc.
Page 31
Software Description
Data
Pass-Through
Options
4.3.1.2CHARGING DOWNSTREAM PORT (CDP)
The CDP charging profile is based on the “USB Battery Charging Specification v1.x”.
When a BC1.x-compliant portable device attachment is detected, the UCS81003 and
the portable device do handshaking based on the standard. If handshaking is
successful, charging occurs up to the set current limit.
To select the CDP port power profile, M1, M2 and EM_EN must all be high. This can
be done by removing the jumpers for these pins (from J9 header) or by using the pin
override in the GUI (see Section 4.2.3.3 “Pin Override”).
4.3.1.3PASS-THROUGH
Data Pass-Through does not apply any type of charger emulation. When selected, it
closes the USB high-speed data switch and supplies current up to the current limit.
To select Data Pass-Through, M1, M2 and EM_EN can be set to any one of the two
DATA PASS-THRU combinations (010 and 110), as shown in Figure 4-9. This can be
done by setting the jumpers for these pins (from J9 header –
see Section 2.4 “Jumpers on the Evaluation Board”) or by using the pin override in
the GUI (see Section 4.2.3.3 “Pin Override”).
FIGURE 4-9:Data Pass-Through Selection Options.
4.3.1.4CURRENT MONITORING AND CHARGE RATIONING
To view current monitoring and current rationing, perform the following on the Main tab:
1. Set a Ration Limit. The ration limit is expressed in mAh (electric charge).
2. Set rationing behavior. The Ration Completion Behavior defaults to “Report &
Disconnect”. Once the ration limit is reached, portable device charging will
cease, the ALERT# pin will assert, and the Ration Complete bit will be set. If
you do not want the system to behave in this fashion, select one of the other
three options from the Ration Completion Behavior drop-down list: Report,
Report & Sleep or Take No Action.
3. Connect V
Evaluation Board”). The VS_LOW indicator on the bottom of the Main Tab must
be dark. If the VS_LOW indicator is red, the voltage is not high enough to charge
a portable device.
4. Connect a portable device to the evaluation board. Use the OEM USB charging
cable that comes with the portable device.
5. Enable rationing by checking the Ration Enable check box on the Main Tab.
6. Watch the GUI as the device starts charging. Figure 4-10 shows the interface
after the ration limit was reached (for “Report & Disconnect” behavior setting).
to the evaluation board (see Section 2.4 “Jumpers on the
Note:As shown in Figure 4-10, the green trace is the instantaneous current, while
the red diagonal line is the charge being delivered in mAh. Both are also
presented in numeric format in the bottom left boxes. Trace color and
characteristics can be changed by clicking on the waveform boxes to the
left of these numerical values.
FIGURE 4-10:Main Tab - Ration Limit Reached.
DS50002300A-page 32 2014 Microchip Technology Inc.
Page 33
Software Description
Configuration Tab
Selected
Interrupt and General
Status
Emulation Profile
Disable
Emulation
Behavior Option
Comm.,
Fault
Handler,
Controls
General
and
Thermal
Emulation
Settings
4.3.2Configuration and General Status Tab
The Configuration & General Status tab (Figure 4-11), includes various status
indicators and configuration controls. Items are grouped by function, detailed in the
following sections.
FIGURE 4-11:Configuration & General Status Tab.
4.3.2.1INTERRUPT STATUS
The indicators in the Interrupt Status section turn green when the corresponding bit is
high, and are dark when the bit is low.
4.3.2.2GENERAL STATUS
Indicators in the General Status section turn green when the corresponding bit is high
and are dark when the bit is low.
4.3.2.3EMULATION BEHAVIOR
Check the necessary check box to enable the corresponding emulation behavior.
4.3.2.4COMMUNICATIONS
SMBus address is displayed. SMBus timeout can be disabled.
4.3.2.5EMULATION PROFILE DISABLE
Check the Profiles boxes to disable them. They will not be used during emulation. By
selecting the “Disable ALL” will toggle all profile check boxes.
Click the S0_SET box to remove the check mark and disable the function.
4.3.2.7FAULT HANDLER
These are controls related to fault handling.
4.3.2.8GENERAL CONTROL
Controls for general parameters.
4.3.2.9THERMAL REGULATION
Controls for thermal and detection delay parameters.
4.3.2.10 PORT POWER KEEP-OUT
Displays values for the port power parameters.
4.3.2.11GENERAL EMULATION/CHARGING SETTINGS
Controls for emulation and charging.
4.3.2.12EMULATION TIMEOUTS
Sets the emulation timeout period for each profile. These timeout periods are not used
if the EM_TIMEOUT_DIS control in the Emulation Behavior section is checked.
4.3.2.13CHARGING THRESHOLD CURRENT
Controls charging threshold current setting.
4.3.2.14HIGH SPEED SWITCH CONFIGURATION
Controls the high-speed switch parameters.
DS50002300A-page 34 2014 Microchip Technology Inc.
Page 35
Software Description
Custom Charging Tab
Selected
Custom Emulation
Configuration Setting
Custom Current
Limiting Behavior
Custom Emulation
Quick Load Selection
Custom Emulation
Save Option
Custom Emulation
Timeout Custom Setting
Selection
4.3.3Custom Charging Tab
The Custom Charging tab (Figure 4-12), provides the means for users to create
custom charger emulator configurations. These configurations include signaling on the
USB data lines, as well as what method of current limiting to employ (Constant Current
or Trip). For more information, refer to the UCS81003 Data Sheet and AN24.14 -
“UCS1002 Fundamentals of Custom Charger Emulation” (DS200005234).
FIGURE 4-12:Custom Charging Tab.
4.3.3.1CUSTOM EMULATION CONFIGURATION
Creating a custom emulation profile is a two-part process of entering the appropriate
stimulus-response pairs in the provided fields, as well as the desired current limiting
behavior (after emulation is applied, and the portable device starts to draw current).
4.3.3.1.1Example
Settings shown in Figure 4-12 will apply the Legacy 2 stimulus pair. This includes a
voltage divider on DP and on DM with the values shown under STEP 5 column.
If the portable device draws bus current greater than the charging threshold being
used, it will always operate in Current Limiting Trip mode(with trip point based on the
current limit setting).
The second part of creating custom profiles is to specify the behavior of current limiting
and minimum voltage output. This is accomplished using the Ibus_r2min and
VBus_Min drop-down lists, as shown in Figure 4-13.
FIGURE 4-13:Current -Voltage Behavior Selectio n.
4.3.3.3CUSTOM EMULATION QUICK LOAD
The Custom Emulation Quick Load drop-down menu allows single-click loading of the
Custom Emulation Configuration registers. Simply select the profile to load from the
menu and registers 41h – 4Ch will be loaded with that profile.
4.3.3.4SAVE CUSTOM EMULATION CONFIGURATION
Customs Emulation Configuration allows for a quick way to save the necessary registers to configure the UCS81003 for a custom profile to a file. Enter the path and press
the SAVE button. Files will be overwritten if duplicate file names are used.
Registers 40h – 4Ch (Custom Emulation Configuration - Custom Charging tab),
16h (Emulation Behavior - Configuration tab), 19h (ILIM - Main tab), 25h (High Speed
Switch Configuration – Configuration tab) and 51h (Custom Current Limiting Behavior
– Custom Charging tab) will be saved in a two-column format. Comments can be
added at the end of the file for documentation.
DS50002300A-page 36 2014 Microchip Technology Inc.
Page 37
Software Description
Register Set Tab
Selected
Load/Save Register
Register Content List
Product
Section
Information
4.3.4Register Set Tab
The Register Set tab (Figure 4-14), allows viewing and updating of the UCS81003
registers, identifies the device on the evaluation board and manages configuration files.
FIGURE 4-14:Register Set Tab.
4.3.4.1REGISTER CONTENT
Register Content shown in Figure 4-14 is a scrollable list of the UCS81003 registers
and the current value. It is important to note that not all addresses are physical memory
locations on the device; these registers will read ‘0’. Likewise, some registers shown,
that are undocumented in the data sheet, may contain data. Editing these registers can
cause unexpected results.
To update a register value, locate the register address in the left column, type the new
value in the corresponding cell in the right column, and press Enter on the keyboard or
click outside the editable field to complete the action.
4.3.4.2PRODUCT INFORMATION
Product Information panel shows the values of three registers (FDh, FEh and FFh)
which identify the device on the evaluation board.
4.3.4.3CONFIGURATION SAVE AND LOAD
The Register Set tab contains controls (Figure 4-15) which save the settings currently
configured in the UCS81003 to allow quick reconfiguration at any time.
To save configuration settings, configure the UCS81003 as desired, then display the
Register Set tab. Type a path in the “File Stored Path” field or press the Browse button
to select the folder where the configuration file will be saved. The file should be named
with the .txt extension or with a similar text file format. Once a file name and location
has been chosen, click the Save All Register V alues switch, and the file is saved.
Note:If a file with the same name already exists, it will be overwritten and the old
data will be lost.
The data is saved in two columns separated by tabs. The first column is the register
address and the second column is the register data.
Once a file is saved, it can be recalled at any time by selecting the file in the “File Load
Path” field and clicking the Load All Register Values switch.
DS50002300A-page 38 2014 Microchip Technology Inc.
Page 39
Software Description
Demo Tab
Selected
Demo Options
Quick
Step 2
Load
Custom
Panel
Option
Demo
Button
Step 1
Configure Device
Emulation
Config
Options
Demo
Results
4.3.5Demo Tab
The Demo tab (Figure 4-16) demonstrates external controller logic to apply custom
emulation profiles and optimize charging current. This feature uses the LabView engine
to step through the selected files and store the current drawn by the device. Several
options are available to customize the operation of the demo and explore the potential
of the UCS81003.
FIGURE 4-16:Demo Tab.
4.3.5.1STEP 1: CONFIGURE DEVICE FOR DEMO ROUTINE
The first step in preparing to run the Demo feature is to configure the device to the
desired starting configuration. A file has been preloaded at installation and is ready to
be used, or a new configuration can be created. Each time the Demo button (in the
Panel Control section) is toggled, the Setup.txt file will be loaded.
At installation, a set of files are preloaded on the users system (profile1.txt –
profile7.txt) with the default profiles of the UCS81003. These files can be
changed easily by using the Custom Charging tab.
4.3.5.2.1Active Files
Check the corresponding check box to activate the desired profile in the demo routine.
4.3.5.2.2Custom Emulation Files
This column contains the full path to the profile file to be loaded. This file should contain
registers 40h – 4Ch, 16h and 25h. This file can be created with the GUI on the Custom Charging tab.
This column displays the current being drawn from the attached device. If End Value is
selected (from the Demo Options section, Current Reading features), this will update
continuously. If MAX Value is selected, this will store the highest value of current during
the dwell time.
4.3.5.2.4Dwell Time
Dwell Time column defines the amount of time from PWR_EN set to PWR_EN unset.
Each profile can have a different Dwell Time.
4.3.5.3DEMO OPTIONS
TABLE 4-2:DEMO OPTIONS DESCRIPTION
OptionsDescription
Repeat if 0 mA When this option is set, it will repeat if all of the profiles read 0 mA,
i.e. no device connected
Repeat Forever When set, it will repeat the set of files until unchecked
Dead Batt. Repeat When set, it will start the demo after the initial cycle after the
specified Dead Batt. Delay time. This is useful when the battery is
completely discharged and the device OS is unable to handshake
with UCS81003.
Dead Batt. Delay This option is defined in minutes. Minimum is 0 minutes, maximum
is 10 minutes.
Current Reading Displays either the End Value (last value before PWR_EN set low)
or MAX Value (highest value during Dwell Time)
4.3.5.4CUSTOM FILE PATH QUICK LOAD
When starting the UCS81003 interface, the file paths are reset to a default path. If
desired, the user may save the files in an alternate location. This quick load feature
saves the paths of the Setup.txt and all seven profile locations to quickly return or
change files with one click.
4.3.5.5RUNNING THE DEMO
Once the files and settings are configured as desired, enable the Demo routine by
pressing the Demo switch within the Panel Controls area. The routine begins and the
results are displayed in Profile MAX and Current MAX. By default, the Demo routine
will enable the profile that is indicated by Profile MAX.
• Profile MAX: Stores the profile of the highest value of current draw.
• Current MAX: Stores the highest current associated with the Profile MAX #.
Note:The Demo tab does not need to be visible to activate the Demo routine.
DS50002300A-page 40 2014 Microchip Technology Inc.
Page 41
Software Description
4.4TROUBLESHOOTING
Ta bl e 4 - 3 identifies possible problems and their solutions to troubleshoot the
UCS81003 software.
TABLE 4-3:TROUBLESHOOTING THE INTERFACE - COMMON PROBLEMS
ProblemSolution
GUI Controls Unresponsive
After Installation
GUI FreezesIf the GUI freezes for unknown reasons, communications cannot be stopped, and
Random Panel DisplayWhen a board is not connected to the PC running the GUI, the panel will be in an
Device Is Not Charging or Not
Charging Optimally
Restart the computer. In some cases, a restart is required after installation.
the program cannot be closed, disconnect the USB cable from the evaluation
board, then close the program. Reconnect the board, then restart the GUI.
all-zero register displayed state. This also occurs when SMBus communications
are disconnected. The panel display is not meaningful. Connect the board and
establish SMBus communications. If this still does not work, there is a problem
with the connection. The cable or the USB port may be defective.
• Check if the current limit jumper is set appropriately.
• The current source may not have high enough capacity from V
• Run the Demo routine to determine highest current profile.