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 unless otherwise stated.
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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
QUALITY MANAGEMENT S
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate,
dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KeeLoq,
KeeLoq logo, Kleer, LANCheck, LINK MD, MediaLB, MOST,
MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC32 logo,
RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O
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.
Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut,
BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, Dynamic Average Matching, DAM, ECAN,
EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip
Connectivity, JitterBlocker, KleerNet, KleerNet logo, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB,
MPLINK, MultiTRAK, NetDetach, Omniscient Code
Generation, PICDEM, PICDEM.net, PICkit, PICtail,
PureSilicon, RightTouch logo, REAL ICE, Ripple Blocker,
Serial Quad I/O, 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 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.
DS50002510A-page 6 2016 Microchip Technology Inc.
Page 7
UCS1003-1
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 website
(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
UCS1003-1 Evaluation Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Website
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the UCS1003-1 Evaluation Board. The manual
layout is as follows:
• Chapter 1. “Product Overview” – Important information about the UCS1003-1
Evaluation Board.
• Chapter 2. “Installation and Operation” – Includes instructions on how to
configure the UCS1003-1 Evaluation Board.
• Chapter 3. “Hardwa re Desc ript ion ” – Describes the UCS1003-1 Evaluation
Board features and functionalities.
• Chapter 4. “Software Description” – Describes the PC Graphical User Interface
that operates the UCS1003-1 Evaluation Board.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the UCS1003-1 Evaluation Board.
• Appendix B. “Bill of Materials (BOM)” – Lists the parts used to build the
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
DS50002510A-page 8 2016 Microchip Technology Inc.
Page 9
RECOMMENDED READING
This user's guide describes how to use UCS1003-1 Evaluation Board. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources.
• UCS1003-1/2/3 Data Sheet - “USB Port Power Controller with Charger
Emulation” (DS200005346)
• MCP2221 Data Sheet - “USB 2.0 to I
(DS200005292)
• AN24.14 - “UCS1002 Fundamentals of Custom Charger Emulation”
(DS200005234)
THE MICROCHIP WEBSITE
Microchip provides online support via our website at www.microchip.com. This website
is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the website 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 GPIO”
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 at the back of this document.
Technical support is available through the website at:
1.3WHAT THE UCS1003-1 EVALUATION BOARD KIT CONTAINS
The UCS1003-1 Evaluation Board kit includes:
• UCS1003-1 Evaluation Board (ADM00668)
• Important Information Sheet
• 5V AC-DC Wall Adapter
• Standard-A plug to mini-B plug USB Cable
DS50002510A-page 12 2016 Microchip Technology Inc.
Page 13
EVALUATION BOARD
USB standard-A plug to
USB host/USB power
J3
J10
USB standard-A
receptacle to
portable device
J1
Auxiliary power connector to
external power supply
J2
USB mini-B receptacle to PC
Chapter 2. Installation and Operation
2.1INTRODUCTION
This chapter identifies the main connectors, LEDs, jumpers and test points that can be
found on the UCS1003-1 Evaluation Board. It also explains the steps necessary for the
installation of 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.
UCS1003-1
USER’S GUIDE
FIGURE 2-1:UCS1003-1 Evaluation Board Top View – Connectors.
J4VDD source selectionThe jumper populated on this header selects the VDD supply
J5VS source selectionThe jumper populated on this header selects the voltage input
J6LATCH, S0
Logic Inputs settings
J7SMBus data and clock
lines
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
Note 1: The following headers must be populated with one jumper for the UCS1003-1 Evaluation Board to be
functional:
• J4, J5, J8
• J16 or J18
• J17 or J19
• If the UCS1003-1 is configured in SMBus mode (as selected by using J16 instead of J18, two
jumpers must be populated on J7; J6 must be left unpopulated. If the UCS1003-1 is configured in
Stand-Alone mode, the jumpers on J7 must be left off.)
Jumper
Position
Description
source for the digital circuits on the board.
1-2V
is connected to V
DD
pin of the J2 USB connector
BUS
2-3VDD is connected to VS. This is the recommended configuration
when evaluating the Attach Detection feature of the UCS1003-1.
If the board is evaluated with a PC running the GUI, then the VS
must be supplied after the USB cable is plugged into the J2
connector.
source for the power switch inside the UCS1003-1.
1-2V
2-3VS is connected to V
source is the J1 power connector (external 5V power supply).
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 UCS1003-1 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
enabled
No jumper LATCH = Logic High – “Latch” fault handler enabled
If the UCS1003-1 is in SMBus mode (as selected by using 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 UCS1003-1 is in Stand-Alone
mode.
UCS1003-1 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 UCS1003-1 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 UCS1003-1 in SMBus mode. In this case, no jumper
must be populated on J18 header.
DS50002510A-page 16 2016 Microchip Technology Inc.
Page 17
Installation and Operation
TP1
DP_IN
TP2
DM_IN
TP4
DP_OUT
TP3
DM_OUT
TABLE 2-3:JUMPER DESCRIPTION (CONTINUED) (Note 1)
DesignatorFunction
J18Current Limit
Stand-Alone mode
J17SMBus Address
PWR_EN active low
J19SMBus Address
PWR_EN active high
Note 1: The following headers must be populated with one jumper for the UCS1003-1 Evaluation Board to be
functional:
• J4, J5, J8
• J16 or J18
• J17 or J19
• If the UCS1003-1 is configured in SMBus mode (as selected by using J16 instead of J18, two
jumpers must be populated on J7; J6 must be left unpopulated. If the UCS1003-1 is configured in
Stand-Alone mode, the jumpers on J7 must be left off.)
Jumper
Position
Description
Placing one jumper on this header selects the current limit and
sets the UCS1003-1 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.
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.
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.
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.
data line through a 1 M series resistor.
PIN
data line through a 1 M series resistor.
MIN
data line through a 1 M series resistor.
MOUT
data line through a 1 M series resistor.
POUT
FIGURE 2-5:Evaluation Board Top View – Ground Test Points.
TABLE 2-5:GROUND TEST POINTS DESCRIPTION
DesignatorTest Point TypeDescription
J11, J12Signal GroundThese test points connect to the signal ground of the board.
These are the ground reference for the UCS1003-1.
J13, J14, J15Earth GroundThese test points connect to the earth ground of the board (the
shield of the USB connectors).
DS50002510A-page 18 2016 Microchip Technology Inc.
Page 19
2.7SOFTWARE INSTALLATION
To begin using the UCS1003-1 Evaluation Board, software must be installed on a
Microsoft
the UCS81003 Evaluation Board GUI, with some actions that need to be done by the
user, as explained in step 6.
1. Download the software archive for UCS81003 Evaluation Board from the board’s
®
Windows®-based computer with a USB port. The software is the same as
web page, unzip it and double-click the Setup.exe, to start the installation.
Figure 2-6 shows the initial installation screen, which displays briefly as the setup
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.
5. On the following screens, select Next and follow the on-screen instructions to
complete the installation. When installation is complete, the program will run
automatically. If a screen appears requiring a restart for the changes to take
effect, reboot the computer.
DS50002510A-page 20 2016 Microchip Technology Inc.
Page 21
Installation and Operation
6. Download the archive called “UCS1003-1 Configurations.zip” from the
UCS1003-1 board’s web page and unzip it. The archive contains a folder called
“Configurations”. Go to the location of the installation directory of the UCS81003
software (
Files(x86)\Microchip\UCS81003\
Configurations
done once only, at installation. If the UCS81003 Evaluation Board software must
be used on the same computer, then that software needs to be reinstalled in a
different location.
the default location for the software files is
) and over-write the existing
folder with the one from the archive. This step needs to be
DS50002510A-page 22 2016 Microchip Technology Inc.
Page 23
Chapter 3. Hardware Description
3.1UCS1003-1 DEVICE
The UCS1003-1 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 UCS1003-1 to ensure compliance
to multiple standards. In addition to power switching and USB Charging Port profiling,
the UCS1003-1 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 UCS1003-1 provides a device attachment detection output, as well as a dedicated
alert output, with current monitoring and charge rationing for controlled delivery of
current regardless of a host’s power state. When the limit is reached, the UCS1003-1
will perform the user-programmed behavior (report and disconnect is the default).
UCS1003-1
EVALUATION BOARD
USER’S GUIDE
®
Inc., RIM® and many
3.2EVALUATION BOARD POWER SOURCE
The UCS1003-1 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 UCS1003-1 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 UCS1003-1
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/I
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
UCS1003-1.
The I/O pins used in this application are configured as inputs. They are used to read
the logic state of the following UCS1003-1 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 UCS1003-1 Evaluation
Board. Remove the jumpers on J7 and connect the SMBus master to the header pins
that are linked directly to UCS1003-1 pins SMDATA/LATCH and SMCLK/S0. Note that
ground must be connected to one of the test point grounds or header pins on the
evaluation board. See Figure 3-1 for header pins description.
2
C bus. It is used to read and write the registers of the two devices
2
C interface: UCS1003-1 and MCP23018 I/O expander.
DS50002510A-page 24 2016 Microchip Technology Inc.
FIGURE 3-1:UCS1003-1-to-SMBus Bridge Jumpers.
Page 25
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/UCS1003-1 GUI software: from the Windows Start menu,
2. Connect the USB mini connector end of the cable to the board and the standard
The UCS81003/UCS1003-1 Evaluation Board interface (Figure 4-1), consists of five
tabs (Main, Configuration & General Status, Custom Charging, Register Set and
Demo) and the right-side sections that are always visible (Panel Controls, Pin State
& Attach Status and Active Mode Selection).
UCS1003-1
EVALUATION BOARD
USER’S GUIDE
Chapter 4. Software Description
select Programs >
USB connector of the cable to any available USB port on the PC. If the V
supply is connected to V
then connect the V
the MCP2221 USB bridge is connected to the PC.
Microchip > UCS81003.
(the jumper on J4 header is populated on position 2-3),
S
supply. The USB Activity LED should light, indicating that
• 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 UCS1003-1 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.
DS50002510A-page 26 2016 Microchip Technology Inc.
Page 27
4.2INTERFACE DESCRIPTION AND OPERATION
Register Read Delay
button and field
COM Status
indicator
Stop
button
Single/Continuous
Read Mode switch
Single Read 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
the 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 St atus 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. This affects the
speed at which 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 UCS1003-1.
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, see the product data sheet for more information (DS20005346).
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 UCS1003-1 device.
DS50002510A-page 28 2016 Microchip Technology Inc.
Page 29
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 St ate & Attach St atus 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 UCS1003-1 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 UCS1003-1 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 UCS1003-1 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.
4.3TAB DESCRIPTIONS
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 the 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.
FIGURE 4-6:Main Tab Window Overview.
DS50002510A-page 30 2016 Microchip Technology Inc.
Page 31
Software Description
Charger
emulation
profile
indicator
Power state
indicator
VS_LOW
indicator
A_DET# pin
status is asserted
4.3.1.1DEDICATED CHARGER EMULATION (DCE) CYCLE
As shipped, the UCS1003-1 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 at 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 UCS1003-1 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
FIGURE 4-7:Main Tab - Charging Started.
4. Disconnect the portable device from the board.
The UCS1003-1 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.
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 UCS1003-1 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 be all 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
on the Evaluation Board”
“Pin Override”).
) or by using the pin override in the GUI (see Section 4.2.3.3
Section 2.4 “Jumpers
FIGURE 4-9:Data Pass-Through Selection Options.
DS50002510A-page 32 2016 Microchip Technology Inc.
Page 33
Software Description
Ration
Enable
Ration Limit
setting
Rationing
Behavior
Power state indicator
changed
Rationing
Complete
indicator
ALERT#
pin is
asserted
Measured
current status
Instantaneous
current (mA)
Delivered charge
current (mAh)
VS_LOW
indicator
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).
Note: As shown in Figure 4-10, the green trace is the instantaneous current, while
to the evaluation board (see Section 2.4 “Jumpers on the
S
the red diagonal line is the charge being delivered in mAh. Both are also
presented in numeric format inside the bottom left boxes. Trace color and
characteristics can be changed by clicking on the waveform boxes to the
left of these numerical values.
Comm.
Fault
Handler,
General,
and
Thermal
Controls
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 “Disable ALL”, all profile check boxes will toggle.
4.3.2.6ATTACH/REMOVE ENABLE
Click the S0_SET box to remove the check mark and disable the function.
DS50002510A-page 34 2016 Microchip Technology Inc.
Page 35
Software Description
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.
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 determining what method of current limiting to employ
(constant current or trip). For more information, refer to the UCS1003-1 Data Sheet -
“USB Port Power with Charger Emulation” (DS200005346) and Application Note AN
24.14 - “UCS1002 Fundamentals of Custom Charge r Em ula tio n” (DS200005234).
FIGURE 4-12:Custom Charging Tab.
DS50002510A-page 36 2016 Microchip Technology Inc.
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).
Page 37
Software Description
Region 2
drop-down list
Click the arrow
to reveal the options
in the VBus_Min
drop-down list
current limit
4.3.3.2CUSTOM CURRENT LIMITING BEHAVIOR
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 Selection.
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.
The Legacy 1 to 7 profiles listed in the Custom Emulation Quick Load drop-down menu
correspond to the UCS81003 settings. The profile order is different in UCS1003-1, as
shown in Ta b le 4 -2 .
TABLE 4-2:DCE LEGACY PROFILES CORRESPONDENCE BETWEEN
UCS81003 AND UCS1003-1
UCS81003UCS1003-1
Legacy 1Legacy 5
Legacy 2Legacy 1
Legacy 3Legacy 2
Legacy 4Legacy 3
Legacy 5Legacy 4
Legacy 6Legacy 7
Legacy 7Legacy 6
4.3.3.4SAVE CUSTOM EMULATION CONFIGURATION
Customs Emulation Configuration allows for a quick way to save the necessary
registers to configure the UCS1003-1 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
The Register Set tab (Figure 4-14), allows viewing and updating of the UCS1003-1
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 UCS1003-1 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.
DS50002510A-page 38 2016 Microchip Technology Inc.
Page 39
Software Description
Browse-for-location
buttons
Path fields
Load/Save All Register
Values switches
4.3.4.3CONFIGURATION SAVE AND LOAD
The Register Set tab contains controls (Figure 4-15) which save the settings currently
configured in the UCS1003-1 to allow quick reconfiguration at any time.
FIGURE 4-15:Save/Load Section.
To save configuration settings, configure the UCS1003-1 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 on 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.
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 UCS1003-1.
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 is toggled
(in the Panel Control section), the Setup.txt file will be loaded.
4.3.5.2STEP 2: DEFINE CUSTOM EMULATION CONFIGURATIONS
At installation, a set of files are preloaded on the users system (profile1.txt –
profile7.txt) with the default profiles of the UCS1003-1. 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.
DS50002510A-page 40 2016 Microchip Technology Inc.
Page 41
Software Description
4.3.5.2.3Current Reading
This column displays the current being drawn from the attached device. If “End Value”
is selected (in 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 a profile is applied (from PWR_EN set
to PWR_EN unset). Each profile can have a different dwell time value.
4.3.5.3DEMO OPTIONS
TABLE 4-3: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 repeat the cycle with the specified Dead Batt.
Delay time. This is useful when the battery is completely
discharged and the device OS is unable to handshake with
UCS1003-1.
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 UCS1003-1 interface, the file paths are reset to a default path. If
desired, the user may save the files to 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 fields. 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.
Ta bl e 4 - 4 identifies possible problems and their solutions to troubleshoot the
UCS1003-1 software.
TABLE 4-4: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.
.
S
DS50002510A-page 42 2016 Microchip Technology Inc.
Page 43
Appendix A. Schematic and Layouts
A.1INTRODUCTION
This appendix contains the following schematics and layouts for the UCS1003-1
Evaluation Board: