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.
DS50002376A-page 2 2015 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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
Object of Declaration: PAC1921 High-Side Current/Power Sensor Evaluation Board
Appendix B. Bill of Materials (BOM) ...........................................................................53
Worldwide Sales and Service .....................................................................................56
DS50002376A-page 6 2015 Microchip Technology Inc.
PAC1921
HIGH-SIDE CURRENT/POWER SENSOR
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 page 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 on-line help files.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
PAC1921 High-Side Current/Power Sensor Evaluation Board. Items discussed in this
chapter include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the PAC1921 High-Side Current/Power Sensor
Evaluation Board as a development tool to emulate and debug firmware on a target
board. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the PAC1921
High-Side Current/Power Sensor Evaluation Board.
• Chapter 2. “Installation and Operation” – Includes instructions on installing and
starting the application.
• Chapter 3. “Hardware Description” – Shows hardware details of the PAC1921
High-Side Current/Power Sensor Evaluation Board.
• Chapter 4. “Software Description” – Describes the main operations in the software.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the PAC1921 High-Side Current/Power Sensor 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
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles users to receive new product
updates. Interim software releases are available at the Microchip web site.
DS50002376A-page 8 2015 Microchip Technology Inc.
RECOMMENDED READING
This user’s guide describes how to use PAC1921 High-Side Current/Power Sensor
Evaluation Board. Other useful documents are listed below. The following Microchip
documents are available and recommended as supplemental reference resources.
PAC1921 Data Sheet (DS20005293)
This data sheet describes the operation and features of the PAC1921 high-side
power/current monitor device with a configurable analog output.
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
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:
DS50002376A-page 10 2015 Microchip Technology Inc.
HIGH-SIDE CURRENT/POWER SENSOR
USB Cable
PC with 3$& GUI and
Microchip USB Bridge Driver
Microchip
3$&
Device
3$&(YDOXDWLRQ%RDUG
EVALUATION BOARD USER’S GUIDE
Chapter 1. Product Overview
1.1INTRODUCTION
The PAC1921 is a dedicated power monitoring device with a configurable output. The
PAC1921 High-Side Current/Power Sensor Evaluation Board package provides users
with the means to exercise device functionality while connected either to target
systems (Sys mode) or while utilizing on-board sources (Demo mode).
1.2PAC1921 EVALUATION SYSTEM
The evaluation system has three major parts, as shown in Figure 1-1:
• Customer-provided Windows
• Microchip PAC1921 Graphical User Interface (GUI) (based on
National Instruments™ LabVIEW™ software)
DS50002376A-page 14 2015 Microchip Technology Inc.
HIGH-SIDE CURRENT/POWER SENSOR
EVALUATION BOARD USER’S GUIDE
Chapter 2. Installation and Operation
2.1GETTING STARTED
2.1.1System Requirements
To use the PAC1921 High-Side Current/Power Sensor Evaluation Board, the following
are required:
•APC running the Microsoft
• A display resolution of 800x600 or larger, for viewing several windows
simultaneously
• An available USB port
2.2INSTALLING THE EVALUATION BOARD SOFTWARE
Follow these steps in order to install the board’s Graphical User Interface (GUI):
1. Download the software archive from the board’s web page, unzip it and
double-click the Setup.exe to start the installation. Figure 2-1 shows the initial
installation screen, which displays briefly as the setup program loads.
2. Click Next in the Destination Directory window, shown in Figure 2-2. For proper
operation, the files must be installed in the default locations. The default location
for the software files is C:\Program Files (x86)\Microchip\PAC1921
and for the LabVIEW™ software is C:\Program Files\National Instruments.
FIGURE 2-2:Software Installation – Setting the Destination Directory.
DS50002376A-page 16 2015 Microchip Technology Inc.
Installation and Operation
3. Read and accept the license agreement, then click Next.
5. Follow the on-screen instructions to complete the installation. During installation,
shortcuts will be created on the Windows Start Menu under Programs>
and on the desktop.
DS50002376A-page 18 2015 Microchip Technology Inc.
Installation and Operation
When the installation is complete, the program will automatically run (see Figure 2-7).
FIGURE 2-7:PAC1921 GUI Start-up Screen.
2.3MICROCHIP USB BRIDGE INSTALLATION
Connect the USB mini connector to the evaluation board and the standard USB connector to any available USB port on the PC. If the Microchip USB bridge driver has not
previously been installed on the selected USB port, download the MCP2221 Windows
driver and installer from www.microchip.com at:
DS50002376A-page 20 2015 Microchip Technology Inc.
Chapter 3. Hardware Description
3.1INTRODUCTION
The PAC1921 High-Side Current/Power Sensor Evaluation Board provides the means
to evaluate features, and to view and modify registers. There are two modes for using
the evaluation board:
• Demo mode: Monitors an on-board power source
• Sys mode: Monitors an external power source
LEDs indicate status information and test points are included to monitor system
voltages with a user-provided voltmeter or oscilloscope.
The PAC1921 device is an SMBus-compliant, high-side current/power monitor in a
10-pin, 3 mm x 3 mm DFN package. For details regarding the PAC1921 device, refer
to the “PAC1921 Data Sheet” (DS20005293).
3.1.1Power Source
The board requires only one Universal Serial Bus (USB) connection to power the
board. USB bus voltage is provided to the on-board test power sources and the
USB-to-SMBus bridge. The evaluation board circuitry uses the on-board regulator to
regulate the +5V USB power to +3.3V.
PAC1921
HIGH-SIDE CURRENT/POWER SENSOR
EVALUATION BOARD USER’S GUIDE
3.2USB-TO-SMBus BRIDGE
The USB-to-SMBus is based on the MCP2221 USB-to-I2C™ protocol converter, which
provides the interface between the USB and the SMBus. Power is sourced to the
microcontroller from the USB interface for device power and communication.
3.2.1Direct SMBus Connect Option
It is also possible to connect an external SMBus master to the PAC1921 High-Side
Current/Power Sensor Evaluation Board. A few modifications to the board are
required, as explained below:
• Remove the jumpers on J13 and connect the SMBus master to the
SMBus_DATA, SMBus_CLK and #READ/INT pins, as well as an external supply
for +3.3V. Note that a return is also provided on this header for convenience
(GND).
• The +3.3V can be supplied by the SMBus bridge by leaving the +3.3V jumper in
By default, the evaluation board is configured so that the PAC1921 operates in SMBus
mode with an SMBus address of, 1001_100xb (98h). The address can be changed to
1001_101xb (9Ah) by moving jumper J8 to position 2-3. Cycle power to the evaluation
board in order for the change to take effect.
3.4LED INDICATORS
LED locations are indicated in Figure 3-1.
FIGURE 3-1:LED Indicator Locations.
LEDs indicate the status of the signals, as described in Ta bl e 3- 1:
TABLE 3-1:LED STATUS INDICATORS
LEDSignalOFFGreenRed
LD1V
LD2+5V USB PowerUSB power is not presentN/A+5V USB power is
LD6READ/INTPin is not asserted
DS50002376A-page 22 2015 Microchip Technology Inc.
PowerVDD is not presentN/AVDD is present
DD
(Read State)
Pin is asserted
(Integrate State)
present
N/A
3.5JUMPER SETTINGS
J11
GND
J2
V
SOURCE-
J1
V
SOURCE+
J3
Demo Sys
J4
Demo Sys
J13
Connections
J5
Reserved
J6
Reserved
J7
Reserved
J8
ADDR/SEL
Note:Refer to Appendix A. “Schematic and Layouts” to see the
connections of each jumper position.
This evaluation board has pin headers and jumper configurations to evaluate the
features of the PAC1921. Jumper locations are indicated in Figure 3-2.
Hardware Description
FIGURE 3-2:Jumper and External Connection Locations.
J1, J2Vsource+, Vsource-External power source terminals. (See Section 3.8.2 “Load Connection”.)
J3, J4Demo SysSelect Demo mode R
J5, J6, J7ReservedReserved for future use
LabelDefault PositionAlternate Position(s)
Positions 3-2 are jumpered on both
SENSE+/-
jumpers. (See Section 3.7 “Demo
Mode Setup and Operation”.)
.
Select Sys mode R
Positions 1-2 are jumpered on both
jumpers. (See Section 3.8 “Sys Mode
Setup and Operation”.)
SENSE+/-
.
J8J8 (ADDR_SEL)
(See
Section 3.3.1 “SMBus
Mode”)
J11GNDConnect ground from external source for
J13GND, #READ/INT,
SMBus_DATA,
SMBus_CLK, VDD
In SMBus mode, sets SMBus address to
1001_100b at power-up.
Positions 1-2 are jumpered.
USB bridge generates on-board 3.3V
and provides SMBus host.
Positions 1-2, 3-4, 5-6, 7-8, 9-10 are all
jumpered.
In SMBus mode, sets SMBus address to
1001_101b at power-up.
Positions 2-3 are jumpered.
Sys mode.
(See Section 3.2.1 “Direct SMBus
Connect Option”.)
3.6TEST POINTS
The PAC1921 High-Side Current/Power Sensor Evaluation Board provides test points
for ground reference and signal access. Table 3-3 summarizes these test points.
TABLE 3-3:TEST POINTS
Test PointMarkingSignal Function Monitored
1Vsense+ (orange)SENSE+
2Vsense- (yellow)SENSE-
3OUT (white)OUT Pin
4ADDR_SELSMBus Address Select
5Vdd (red)V
6GND (black)Ground
7#READ/INT (yellow)READ
DD
/INT Pin
DS50002376A-page 24 2015 Microchip Technology Inc.
3.7DEMO MODE SETUP AND OPERATION
J11 GND
Connect to
System Ground
J2 V
SOURCE-
Connect to
System DC
Load or Supply
J1 V
SOURCE+
Connect to
System DC
Load or Supply
Demo mode uses an on-board current source to exercise and demonstrate the features
of the PAC1921 power monitor. The 100 mV constant-current source is provided using
a +5V USB as the supply. Parallel sense resistors are provided to convert the current
to a corresponding voltage for the PAC1921 to read at the SENSE+ and SENSEinputs. The evaluation board is assembled with jumpers J3 and J4 positioned for Demo
mode (see Section 3.5 “Jumper Settings”). Current is controlled by the evaluation
board Demo Configuration section of the evaluation board GUI (see
Section 4.2.6 “EVB Demo Configuration Panel”).
3.8SYS MODE SETUP AND OPERATION
Sys mode uses external current sources to exercise and demonstrate the features of
the PAC1921 power monitor.
3.8.1Jumper Positions
To use Sys mode, reposition jumpers J3 and J4 (see Table 3-2) to disconnect the
on-board demonstration current sources.
3.8.2Load Connection
Hardware Description
A 5 milliohm (1% tolerance) sense resistor, connected between J1 and J2, is provided
on-board the PAC1921 evaluation board to measure system current.
Load connections to the system can be established, as shown in Figure 3-3.
DS50002376A-page 26 2015 Microchip Technology Inc.
4.1OVERVIEW
Panel Control
Main Configuration Panel
Panel and Integration Control
Rsense Option Panel
EVB Demo Configuration Panel
Configuration/View Tabs
Overflow Status Panel
To get the Graphical User Interface (GUI) and the Evaluation Board (EVB) running,
follow these instructions:
1. Start the PAC1921 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 PAC1921 High-Side Current/Power Sensor Evaluation Board Graphical User
Interface (GUI) is shown in Figure 4-1.
PAC1921
HIGH-SIDE CURRENT/POWER SENSOR
EVALUATION BOARD USER’S GUIDE
Chapter 4. Software Description
Programs
USB connector of the cable to any available USB port on the PC. The V
USB power LEDs (LD1 and LD2, respectively) will illuminate RED, indicating that
the PAC1921 is powered up and the MCP2221 USB bridge is connected to the PC.
When the evaluation board is connected or disconnected, a message displays as
shown in Figure 4-2. With the evaluation board connected, click Auto-detect Address
to restart communications.
FIGURE 4-2:Communications Failure Message.
4.1.1Tips for Using the Evaluation Board GUI
• After a power-up of the evaluation board, the default settings are loaded. Users
can save the setting configurations to user-named files, which can be reloaded at
any time for quick reconfiguration (see Section 4.3.3.1 “Configuration Save and
Load”).
• To configure the GUI and PAC1921 for free-run integration power measurement,
press the <F2> function key on the keyboard.
• To reload the PAC1921 register defaults, press the <F6> function key on the
keyboard.
• When using the GUI, the PAC1921 can enter a Sleep state; however, it wakes to
service the GUI SMBus communications, then returns to Sleep. For this reason,
the current consumption will be slightly higher than expected in Sleep state when
using the GUI.
• When the PAC1921 enters Sleep state, the PAC1921 clears the measurement
registers, and consequently, the GUI Calculations/File IO tab is cleared. To
prevent the PAC1921 from entering Sleep, check the “SLEEP OVR” box in the
Main Configuration section.
DS50002376A-page 28 2015 Microchip Technology Inc.
4.2INTERFACE DESCRIPTION AND OPERATION
COM Status
Indicator
SMBus
Address
Indicator
Stop Button
Enable Single
Read Option
Register Content
Run Button
4.2.1Panel Control Section
The Panel Control section on the right side of the GUI, shown in Figure 4-3, affects the
GUI operation.
Software Description
FIGURE 4-3:Panel Control Section.
4.2.1.1STOP AND RUN BUTTONS
Pressing the Stop button, as shown in Figure 4-3, interrupts the GUI software communications with the evaluation board. When the Stop button is clicked, the Run button is
displayed on the menu bar (see Figure 4-4).
To restart the communication between the software and the evaluation board, click the
Run button. The arrow button disappears when the communications resume.
Note 1:Stopping and restarting the GUI does not affect register settings. To
restore default register settings, disconnect power from the evaluation
board, then reconnect power.
2:Stopping the GUI clears the “Enable DC Vsense- Stimulus” box (see
Section 4.2.6 “EVB Demo Configuration Panel”).
To close the program, use the Close (X) button in the upper right corner of the window.
4.2.1.2SMBus ADDRESS
The “SMBus Address” box, shown in Figure 4-5, indicates the selected SMBus
address. The SMBus address can be changed by moving a jumper (see
Section 3.3.1 “SMBus Mode”).
FIGURE 4-5:SMBus Address Indicator.
4.2.1.3COM STATUS INDICATOR
The “COM” status indicator, on the right side of the panel as shown in Figure 4-5,
indicates the status of communications over the SMBus. During normal operation, the
“COM” indicator is black. If the SMBus communications fail, the “COM” indicator turns
red.
4.2.1.4SINGLE READ/CONTINUOUS READ
The panel defaults to continuous register reads (toggle switch in down position, as
shown in Figure 4-5). To stop continuous register reads, check the “Enable Single
Read” 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.5REGISTER CONTENT
“Reg Content”, shown in Figure 4-3, is a scrollable list of the PAC1921 registers and
the last read 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
(undocumented in the data sheet) may have 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 on another part of the GUI.
DS50002376A-page 30 2015 Microchip Technology Inc.
Software Description
4.2.1.5.1Numbering Systems Views
The “Reg Content” section allows values to be displayed using different numbering
systems: Decimal, Hex, Octal, Binary or SI Notation.
To view a value using a different numbering system, click the indicator to the left of the
value in the cell, shown circled in Figure 4-6.
FIGURE 4-6:Numbering System Indicators.
4.2.2Main Configuration Panel
The Main Configuration section, shown in Figure 4-7, contains the PAC1921 configuration controls in registers 00h, 01h and 02h. Refer to the data sheet for register bit
descriptions.
FIGURE 4-7:Main Configuration Panel.
4.2.2.1ENABLE AUTO INT_EN
The “Enable Auto INT_EN” control is a GUI control convenience. Under normal
operation, for most of the integration parameter settings, changes do not take effect
until the PAC1921 is placed in the Read state. When the “Enable Auto INT_EN” control
is activated (light green – shown as “Enabled” in Figure 4-8), it automatically places the
PAC1921 into the Read state and back to Integrate state whenever a Main Configuration control is changed. It also updates the GUI calculations. When the
“Enable Auto INT_EN” control is disabled (dark green), the user must place the device
in the Read state before the “I_RES”, “V_RES”, “SAMPLES”, “VSENSE FILT_EN” and
“VBUS FILT_EN” changes take effect, and to update the GUI calculations.
It is recommended that the “Enable Auto INT_EN” control be activated when using
the GUI.
The Overflow Status section, shown in Figure 4-9, represents the three bits in the
Overflow Status Register 1Ch. When an indicator turns red, it indicates an overflow.
FIGURE 4-9:Overflow Status.
4.2.4Rsense Panel
The Rsense section, shown in Figure 4-10, needs to reflect the value of the R
resistor in use on the evaluation board. This value is used in calculations done by the
GUI. In Demo mode, select the 1 Ohm - Demo button. In Sys mode, select the
0.005 Ohm - System button. If another resistor is used, check the Custom option
button and fill the corresponding value in the spin box underneath the option.
FIGURE 4-10:Rsense Configuration Panel.
SENSE
4.2.5Panel and Integration Control Panel
The Panel and Integration Control section, shown in Figure 4-11, contains GUI controls
which set and clear the INT_EN bit. When using these controls, check the “READ/INT
OVR” box in the Main Configuration section to allow the INT_EN bit to override the
READ
/INT pin state.
Note:Read Period (ms) is always enabled.
DS50002376A-page 32 2015 Microchip Technology Inc.
FIGURE 4-11:Panel and Integration Control.
Software Description
4.2.6EVB Demo Configuration Panel
The EVB Demo Configuration panel, shown in Figure 4-12, contains GUI controls
which affect the Demo mode. To inject current onto V
Vsense- Stimulus” box. To set the current level, rotate the “DC Vsense- Stimulus” dial
or type a value between 0 and 100 in the (mV) spin box below the dial.
The Vbus & Vsense tab, shown in Figure 4-13, displays plots for calculated V
volts and calculated V
in volts. The plots are not self-scaling. If the value in the
SENSE
BUS
in
box at the right of the plot (indicated with arrows) falls outside the Y-axis range on the
plot, click the top and/or bottom value on the axis and type in a new value.
FIGURE 4-13:Vbus & Vsense Tab.
DS50002376A-page 34 2015 Microchip Technology Inc.
Software Description
To change the look of the plot lines, click the applicable graphic in the legend on the
right of the tab to display a menu of options, as shown in Figure 4-14.
FIGURE 4-14:Plot Legend Context Menu.
4.3.2Vbus, Vsense and Vpower Tabs
There are separate tabs to show individual plots for Vbus, Vsense and Vpower. They
operate similarly to the Vbus & Vsense tab described above.
=Adjustment for 6 unused register bits when read as a 16-bit number
4.3.3Calculations/File IO Tab
The Calculations/File IO tab, shown in Figure 4-15, displays register data (in decimal
by default). It also shows calculated results which were obtained by applying the data
sheet equations to the register data.
DS50002376A-page 36 2015 Microchip Technology Inc.
FIGURE 4-15:Calculations/File IO Tab.
An example of using the equations to calculate power is as follows.
The Calculations/File IO tab contains controls, as shown in Figure 4-16, which save the
settings currently configured in the PAC1921 to allow quick reconfiguration at any time.
To save configuration settings, configure the PAC1921 as desired, then display the
Calculations/File IO tab. The “FF Reg File Path” box defaults to where the GUI software is installed. To change the location, type in a path, or click the folder icon to use
a Windows
file will be saved. The file should be named with the.txt extension or similar text file
format. Once a file name and location have been chosen, click the Save switch, and
the file is saved.
Note:If a file with the same name already exists, the file will be overwritten
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 “FF Reg
File Path” box and clicking the Load switch.
Click the Chip Defaults switch or press the <F6> function key on the keyboard to
reload register defaults on the PAC1921.
®
system-based navigation aid to select the folder where the configuration
Click the Quick Setup switch or press the <F2> function key on the keyboard to set up
the GUI and PAC1921 for free-run integration power measurement. The Quick Setup
switch does the following:
- Enables the “Enable Auto INT_EN” option.
- Enables the “READ/INT OVR” option.
- Enables the “INT_EN” option.
- Sets “MUX_SEL” to VPOWER free-run.
- Enables the “Enable DC Vsense- Stimulus” option.
4.3.4Integration Table Tab
The Integration Table tab, shown in Figure 4-17, shows the maximum integration
periods for a selected number of samples with various settings.
FIGURE 4-17:Integration Table Tab.
DS50002376A-page 38 2015 Microchip Technology Inc.
4.4EVALUATION BOARD EXAMPLES
Check the “READ/INT OVR” Box
Check the “Enable Auto INT_EN” Control
4.4.1Power Pin-Controlled Integration Example
This example provides steps to experiment with pin-controlled integration in SMBus
mode and see the effects of gain.
1. In the Main Configuration section, check the “READ/INT OVR” box. This allows
the INT_EN bit to override the READ
INT_EN” control to set automatic GUI updates.
2. In the Panel and Integration Control section, check the “Integration Time GUI
Controlled” box, and set the “Read Period (ms)” to 500 ms. This causes the
INT_EN bit to toggle between high for 500 ms (putting the PAC1921 in the
Integrate state) and low for 500 ms (putting the device in the Read state).
3. In the EVB Demo Configuration section, check the “Enable DC Vsense-
Stimulus” box and type 40 mV in the “DC Vsense- Stimulus (mV)” box.
4. Observe the plots on the Vbus & Vsense tab, as shown in Figure 4-18. The
This section provides steps to experiment with free-run integration in SMBus mode and
see the effects of filtering, resolution and sampling. It starts by showing the fastest
integration period and progressively shows higher accuracy.
1. Press the <F2> function key on the keyboard. This performs Quick Setup, which
checks the “READ/INT OVR” box, the “INT_EN” bit box and the “Enable DC
Vsense- Stimulus” box, enables the “Enable Auto INT_EN” control and sets
“MUX_SEL” to VPOWER free-run. Integration begins using the 1 sample default.
2. In the Main Configuration section, click the “I_RES” and “V_RES” boxes so 11-bit
shows; this lowers the resolution from 14 bits to 11 bits.
3. In the Main Configuration section, uncheck the “VSENSE FILT_EN” and “VBUS
FILT_EN” boxes to disable the ADC post filters.
4. In the EVB Demo Configuration section, type 40 mV in the “DC VsenseStimulus” spin box.
5. Observe the plots on the Vbus & Vsense tab, as shown in Figure 4-22, adjusting
the Y-axis values as desired. These settings result in the shortest integration
period.
7. Uncheck the “I_RES” and “V_RES” boxes to enable 14-bit resolution, and
observe the improvement in the plots on the Vbus & Vsense tab, as shown in
Figure 4-24.
FIGURE 4-24:Free-Run Integration with 14-Bit Resolution.
DS50002376A-page 44 2015 Microchip Technology Inc.
Software Description
8. Change the number of “SAMPLES” to 8 and observe the improvement in the
plots on the Vbus & Vsense tab, as shown in Figure 4-25.
FIGURE 4-25:Increased Sample Effect.
4.5TROUBLESHOOTING
4.5.1GUI Controls Unresponsive After Installation
Restart the computer. In some cases, a restart is required after installation.
4.5.2GUI Freezes
If the GUI freezes for unknown reasons, communications cannot be stopped and the
program cannot be closed. Disconnect the USB cable from the evaluation board, then
close the program. Reconnect the evaluation board, then restart the GUI.
DS50002376A-page 48 2015 Microchip Technology Inc.
V
SENSE+
V
SENSE-
V
SOURCE-
V
SOURCE+
+5V_USB
V
DD
V
DD
V
DD
V
DD
Demo
Sys
Sys
V
SENSE+
V
SENSE-
Demo
Out
#READ/INT
#READ/INT
GND
J8, 1-2 C lose (default) = 1001_100xb -> 98h
J8, 2-3 Close (alternative) = 1001_101x b -> 9Ah
J8, Open (alternative) = Apply external resistor
for GAIN_SEL function in Stand- Alone mode.
Read the data sheet for more information