Dialog DA9318 User manual

User Manual
DA9318 Direct Charging
Reference Board
UM-PM-022
Abstract
This document describes the hardware and software used to evaluate the DA9318 direct charging
reference board.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
2of 27
© 2017 Dialog Semiconductor
Contents
Abstract................................................................................................................................................ 1
Contents............................................................................................................................................... 2
1Terms and Definitions................................................................................................................... 3
2References..................................................................................................................................... 3
3Introduction.................................................................................................................................... 4
4Functional Description ................................................................................................................. 6
4.1 Master Charger ..................................................................................................................... 6
4.2 Power Monitor....................................................................................................................... 7
4.3 Direct Charging ..................................................................................................................... 7
4.4 Over-Voltage Protection........................................................................................................ 7
4.5 Direct Charging Sequence.................................................................................................... 8
5DA9318 Direct Charging Reference Board Hardware................................................................ 9
5.1 Default Link Positions and Connector Definitions............................................................... 10
5.2 USB Interface...................................................................................................................... 14
5.2.1 USB Power and GUI Reset ................................................................................. 14
5.3 Power Supplies ................................................................................................................... 14
6DA9318 Direct Charging Reference Board Software............................................................... 15
6.1 GUI Installation.................................................................................................................... 15
6.1.1 GUI Installation Step By Step Guide ................................................................... 16
6.2 Initial USB Connection........................................................................................................ 19
7GUI Software................................................................................................................................ 20
7.1 Controls............................................................................................................................... 20
7.2 Control Widgets................................................................................................................... 21
7.2.1 Enable/Disable Polling......................................................................................... 21
7.2.2 Charging Status Indicators .................................................................................. 21
7.2.3 Raw I/O................................................................................................................ 22
7.2.4 Interface Control Information............................................................................... 22
7.2.5 I2C Bus Scan........................................................................................................ 22
7.2.6 Settings................................................................................................................ 23
7.3 Quick Start Guide................................................................................................................ 24
7.3.1 Operational Steps................................................................................................ 25
Revision History ................................................................................................................................ 26

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
3of 27
© 2017 Dialog Semiconductor
1 Terms and Definitions
GND Ground
GUI Graphical User Interface
IC Integrated Circuit
JTAG Joint Test Action Group
LED Light Emitting Diode
LS Level Shifter
OTG On-The-Go
PC Personal Computer
PD Power Delivery
RCP Reverse Current Protection
SAM3U USB I2C Interface
SCL Serial CLock
SDA Serial DAta
TA Travel Adaptor
USB Universal Serial Bus
2 References
[1] DA9318 Datasheet, Dialog Semiconductor
[2] 329-03-A_ SCH.pdf, Dialog Semiconductor

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
4of 27
© 2017 Dialog Semiconductor
3 Introduction
The purpose of the reference board is to demonstrate DA9318 in a direct charging application.
The document covers a normal charging cycle, using an off-the-shelf charger IC and a charging cycle
with the direct charging enabled. Direct charging means connecting the travel adaptor (TA) directly to
the battery in the constant current charging phase. A block diagram of the DA9318 direct charging
reference board is shown in Figure 1.
DA9318 Direct Charging Reference Board
DA9318
Type-C Receptacle
VBUS
Master Charger
SYS
Atmel
SAM3U
D+
D-
VBUS
GND
SYS
BAT
Mini-B
Receptacle
SW
BAT
IN
IN OUT
D+ PORT
D- PORT
SCL
SDA
IN
D+ SAM3U
D- SAM3U
GPIO
LP3871 3V3
Travel
Adaptor
Battery
Emulator
Load
nCE
nCE
nPG
STAT
nCPEN
nCPEN
SYS
ILIM
IUSB[2:0]
ILIM GND
INA219
IN+ IN-
VS SCL
SDA
SYS
GND
GND
Hammer board
nPG
nCHG
Power
Supply
PGND
PMID
SCL
SDA
BOOT
3V3
MPC4725
VDD
SCL
SDA
4V9
VSS
VOUT D+ PORT
D- PORT
D+ DAC
MPC4725
VDD
SCL
SDA
4V9
VSS
VOUT D- DAC
nCS
SCLK
MOSI
MISO
I2C
SPI
D+ SAM3U
D- SAM3U
FAN25
58 1V8
1V8
+5V_USB
+5V_USB
OTG nQON
GND
VBUS
CON VBUS
SYS
TPD1S514
J37
RS
10 mΩ
INA219
IN+ IN-
VS SCL
SDA
SYS
RS
10 mΩ
DLINK
DLINK
LP3878 4V9
HV LS I2C_HV
SDA_HV
SCL_HV
SDA_HV
SCL_HV
SDA_HV
SCL_HV
4V91V8
CC1
CC2
FUSB302B SCL
SDA
CC1
CC2
VDD
4V9
J64
Figure 1: DA9318 Direct Charging Block Diagram
The DA9318 direct charging reference board, see Figure 2, facilitates the measurement, evaluation,
and configuration of a battery charging cycle when connected to a TA that includes the iW1780H
primary side controller and iW676 secondary side controller chip set.
Dialog’s software package SmartCanvas™ uses a simple graphical user interface which enables
DA9318 to be controlled via the USB port of a PC. The mini USB connection is visible on the left side
of the board. When the cable is connected to the USB port of the PC the green LED (D1) is on.
The board contains jumper links, see Figure 6, to provide access to alternative configurations and
measurement test points. Most standard operating modes are evaluated with minimal link changes.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
5of 27
© 2017 Dialog Semiconductor
Figure 2: DA9318 Direct Charging Reference Board (329-03-A)

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
6of 27
© 2017 Dialog Semiconductor
4 Functional Description
During direct charging the master charger of the battery operated device is bypassed and the TA is
directly connected to the battery.
The difference between normal charging and direct charging is illustrated in Figure 3.
In order for the direct charging to work, the TA has to have a configurable output voltage and current
limit.
DA9318
Master Charger SYS
SW
BAT
IN
IN OUT
nCPEN
nCE
+
-
SYSVBUS
'0'
’1'
DA9318
Master Charger SYS
SW
BAT
IN
IN OUT
nCPEN
nCE
+
-
SYSVBUS
'1'
’0'
Figure 3: Normal Charging (Top) and Direct Charging (Bottom)
4.1 Master Charger
The master charger is capable of handling a complete charging cycle without host interaction.
The input current limit is set via GPIOs and the charging current and dynamic power management
thresholds are set with external pull-down resistors.
The charging statuses are communicated via LEDs. The master charger can be enabled with the
nCE signal driven from the microcontroller. During direct charging the master charger is disabled.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
7of 27
© 2017 Dialog Semiconductor
4.2 Power Monitor
Two power monitor ICs (INA226), fitted on the DA9318 direct charging reference board, allow for
measurement of the master charger input voltage and input current, and for monitoring the battery
current and voltage.
That information is read out via the I2C interface and used in the control GUI software running on the
PC.
When direct charging is enabled, the DA9318 internal ADC is monitoring the input/output current and
input/output voltage.
Power monitoring is a safety feature associated with direct charging. The input power of the mobile
device has to be compared to the output power of the TA. A mismatch indicates a fault condition and
the charging has to be terminated.
4.3 Direct Charging
Reverse current protection (RCP) is enabled whenever DA9318 is not in the ACTIVE mode.
DA9318 is capable of starting up when VIN is within the accepted range defined by VIN2OUT_MIN and
VIN2OUT_MAX. If VIN is not within the accepted range during start-up, the start-up is aborted.
When the above conditions are satisfied the DA9318 can be enabled by writing CP_EN to allow for
direct charging. The TA voltage is set accordingly to allow an initial 6 A charge current into the
battery.
During direct charging the master charger is disabled.
4.4 Over-Voltage Protection
Over-voltage protection (OVP) is needed for general protection of devices connected to VBUS.
TI TPD1S514, Fairchild FPF2280, and Kinetic KTS1682 can be used as they all are pinout
compatible parts with very similar feature sets.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
8of 27
© 2017 Dialog Semiconductor
4.5 Direct Charging Sequence
A sequence diagram for direct charging is depicted in Figure 4.
NOTE
The DA9318 direct charging reference board communication to the TA is achieved using a Dialog proprietary
secondary-side to primary-side digital link communication protocol. The sequence diagram in Figure 4 is
DA9318TA Main
Charger
Read (VBAT)
loop
PC
Power
Monitor
TA
Control
nPG=’0'
Read VBAT
Configure target VBUS
based on BATT
Write (TARG_VBUS)
TA Control implements first BCS
signaling and then attempts setting
VBUS via QC or AFC signalling
Set (VBUS)
Done
Read (VBUS)
If VBUS rises to the
target value, direct
charging is continued
nCE=’1'
CP_EN=’1'
loop Read (IIN)
Direct charging begins
Read (VBUS)
Write (TARG_VBUS)
Write (TARG_ILIM)
As VBAT rises the output voltage of the
TA is increased. After the target VBAT
is hit the current limit of the TA is step-
wise reduced
Set (VBUS)
loop
Direct charging ends
CP_EN=’0'
nCE=’0'
Set (ILIM)
The TA ramps up
the voltage
Write (TARG_ILIM)
Set (ILIM)
The main charger
starts charging
automatically
The main charger
handles the rest of the
charging cycle
Read (VBAT)
Battery connected
Mini USB connected
TA connected
Figure 4: Sequence Diagram for Direct Charging

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
9of 27
© 2017 Dialog Semiconductor
5 DA9318 Direct Charging Reference Board Hardware
The DA9318 direct charging reference board functionality can be broken down into sections, see
Figure 5:
●USB Type-C™cable input, OVP switch, input connector.
●Master charger / ADCs.
●DA9318 direct charging.
●USB interface (I2C communication) and USB reset.
●Voltage monitoring connectors and IOs.
●Battery and system connectors.
Figure 5: Functional Sections
Master Charger /
ADCs
DA9318 Direct Charging
USB Interface (I2C
Communication) and USB
Reset
USB Type-C Cable Input, OVP
Switch, Input Connector
Voltage Monitoring Connectors and IOs
Battery and
System
Connectors

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
10 of 27
© 2017 Dialog Semiconductor
5.1 Default Link Positions and Connector Definitions
Figure 6: Default Link Positions
Table 1: Default Link Positions and Connector Definitions
Reference Designator
Position
Function
J1
1
IN sense point
2
GND sense point
J2
NA
IN connector
J3
NA
IN connector
J4
1-2
I2C pull-up to VDD_IO
J5
NA
OUT connector
J6
NA
OUT connector
J8
NA
Line transient connector
J9
NA
OUT load transient connector
J10
NA
GND connector (IN side of board)
J11
NA
GND connector (IN side of board)
J12
NA
GND connector (OUT side of board)
J13
NA
GND connector (OUT side of board)
J14
NA
NA
J15
NA
JTAG: reserved
J16
NA
Measurement header

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
11 of 27
© 2017 Dialog Semiconductor
Reference Designator
Position
Function
J17
1-2 (Open)
Important: This erases the USB IC firmware. DO NOT SHORT
J18
1-2 (Close)
I2C bypass: SAM3U SCL connected to LS input
2-3
I2C bypass: SAM3U SCL connected to LS output (bypass)
J19
1-2 (Close)
I2C bypass: SAM3U SDA connected to LS input
2-3
I2C bypass: SAM3U SDA connected to LS output (bypass)
J20
1-2 (Open)
PWREN shorted to SYS, DA9318 will immediately go from NO-
POWER mode to SHUTDOWN mode when SYS power is supplied.
J21
1-2 (Close)
I2C level shifter IC enabled
J22
1-2 (Close)
SCL from SAM3U connected to DA9318
3-4 (Close)
SDA from SAM3U connected to DA9318
J23
1-2 (Close)
I2C LS power selection: connected to VDD_IO
2-3
I2C LS power selection: connected to AVDD
J24
NA
VBATN connector for cell sensing
J25
1-2 (Close)
nIRQ PU selection: VDD_IO
2-3
nIRQ PU selection: AVDD
J26
1-2 (Close)
Sets VDD_IO to 1.8 V (if J27 open)
J27
1-2 (Open)
Sets VDD_IO to 2.8 V (if J26 open)
J28
NA
VBATP connector for cell sensing
J29
1-2 (Close)
nFAULT PU selection: VDD_IO
2-3
nFAULT PU selection: AVDD
J30
NA
USB inlet
J31
1-2 (Close)
Both sides of level shifter set to VDD_IO
2-3
Level shift from AVDD to VDD_IO
J32
1-2 (Close)
nIRQ connected to level shifter and SAM3U
3-4 (Close)
nFAULT connected to level shifter and SAM3U
5-6 (Close)
CC1 connected to level shifter and SAM3U
7-8 (Close)
CC2 connected to level shifter and SAM3U
9-10 (Close)
PWREN connected to level shifter and SAM3U
11-12 (Close)
nCPEN connected to level shifter and SAM3U
J33
Close (Default)
Short GND to VBATN for a local pack sensing
Open
GND and VBATN disconnected to allow cell sensing
J34
1
SYS sense point
2
GND sense point
J35
NA
SMA connector for measuring SYS
J36
Close (Default)
Short VOUT_DA9318 to VBATP for a local pack sensing
Open
VOUT_DA9318 and VBATP disconnected to allow cell sensing
J37
1-2, 3-4, 5-6
(Close)
IN connector shunt to IN of DA9318
J38
1-2
CC2 (labeled as TP7) pulled up to rail selected by J41
2-3 (Close)
CC2 (labeled as TP7) pulled to ground

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
12 of 27
© 2017 Dialog Semiconductor
Reference Designator
Position
Function
J39
1-2
CC1 (labeled as TP6) pulled up to rail selected by J40
2-3 (Close)
CC1 (labeled as TP6) pulled to ground
J40
1-2 (Close)
CC1 (labeled as TP6) PU selection: VDD_IO
2-3
CC1 (labeled as TP6) PU selection: AVDD
J41
1-2 (Close)
CC2 (labeled as TP7) PU selection: VDD_IO
2-3
CC2 (labeled as TP2) PU selection: AVDD
J42
1-2 (Close)
nIRQ pulled up to rail selected by J25
2-3
nIRQ pulled to ground
J43
1-2 (Close)
nFAULT pulled up to rail selected by J29
2-3
nFAULT pulled to ground
J44
1-2 (Open)
Important: DO NOT SHORT
2-3 (Open)
Connect PWREN to GND to enter NO-POWER mode. Make sure
J20 is open before installing a jumper in this position.
Note: J44 pin 2 is connected to AVDD by default
J45
1-2 (Close)
nCPEN shorted to AVDD
2-3
nCPEN shorted to GND
J47
NA
NA
J48
NA
SYS connector
J50
NA
SMA connector for measuring C2N (labeled as C2M)
J51
NA
SMA connector for measuring C2P
J52
NA
SMA connector for measuring IN
J53
NA
SMA connector for measuring OUT
J54
NA
SMA connector for measuring C1N (labeled as C1M)
J55
NA
SMA connector for measuring C1P
J56
1-2 (Open)
Master Charger thermistor sensor short to ground
J57
1-2 (Close)
Master Charger Status read connection to Atmel
J58
1-2 (Close)
Master Charger Current Limit settings
J59
1-2 (Close)
OTG to Ground
J60
1-2 (Close)
INTB GPIO connection to SAM3U
J61
1-2 (Close)
Master charger enable through GPIO
J62
1-2 (Close)
Master charger enable
J63
1-2 (Open)
PGB GPIO connection to SAM3U
J64
1-2 (Close)
DA9318 input disconnect
J65
1-2 (Open)
DA9156 input disconnect
J66
1-2 (Open)
DA9156 IRQ pull-up
J67
1-2 (Open)
DA9156 ISET pull-up
J68
1-2 (Open)
DA9156 GPIO0 pull-up
J69
1-2 (Open)
DA9156 GPIO1 pull-up
J70
NA
NA
J71
NA
NA

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
13 of 27
© 2017 Dialog Semiconductor
Reference Designator
Position
Function
J72
1-2 (Close)
I2C high voltage level shifter enable
J73
1-2 (Close)
Master charger thermistor connection
2-3
J74
1-2 (Open)
Master charger DSEL settings
J75
1-2
Master charger PSEL settings
2-3 (Close)
J76
1-2
DA9156 battery ID connected to variable impedance
2-3 (Default)
DA9156 battery ID connected to fixed impedance
J77
1-2 (Open)
Dplus connected to SAM3U PB11 port
2-3 (Open)
Dplus connected to SAM3U PC15 port
J78
1-2 (Open)
Dplus connected to SAM3U PB12 port
2-3 (Open)
Dplus connected to SAM3U PC16 port
J79
1-2 (Close)
Both sides of level shifter set to VDD_IO
2-3
Level shift from AVDD to VDD_IO
J80
NA
Load transient connector
J81
NA
USB-C inlet
S3
NA
Push button to reset the USB IC

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
14 of 27
© 2017 Dialog Semiconductor
5.2 USB Interface
The DA9318 direct charging board uses an ATMEL®SAM3U®microcontroller as the USB
transceiver, programmed to deliver the following functionalities:
●I2C control interfaces.
●Discrete digital IO control (General Purpose Input Output (GPIO) and dedicated functions).
5.2.1 USB Power and GUI Reset
The USB is powered by an on-board regulator (VR2), see Figure 7. Pressing the USB RESET switch
S3 shuts down the on-board regulator VR2, powering down the supply for the SAM3U (USB I2C
interface). This resets the GUI communication with the reference board.
Figure 7: USB Interface Connector and Reset Switch
Table 2: Power Configuration Switch
Switch Name
Reference
Designator
Type
Function
USB RESET
S3
Push
button
Shuts down the on-board regulator that generates the
interface supply
5.3 Power Supplies
The DA9318 direct charging board is powered up when a power source is connected to IN (J48). IN
operating voltage range is +5.5 V to +10.5 V.
The VDD_IO voltage is generated by an on-board regulator (VR1) supplied from the +5 V USB. By
default, the on-board generated VDD_IO is +1.8 V (J26 jumper is POP, J27 jumper is UNPOP):
●To change the on-board VDD_IO to +2.8 V, J27 must be fitted while J26 is UNPOP.
●To change the on-board VDD_IO to +3.3 V, J26 and J27 must be UNPOP.
NOTE
For correct operation, connect the reference board to a USB port capable of supplying 500 mA.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
15 of 27
© 2017 Dialog Semiconductor
6 DA9318 Direct Charging Reference Board Software
The board is controlled using a graphical user interface (GUI), which requires a PC operating
Windows®2000/XP/Vista/Windows 7 with a USB1.1 or USB2 interface. The GUI allows the user to:
●Perform raw write and read operations to all control registers on Dialog and non-Dialog ICs.
●Monitor the charging status.
●Plot the DA9318 efficiency over time with saving and zoom feature.
●Plot the master charger efficiency over time with saving and zoom feature.
●Plot the DA9318 temperature over time with saving and zoom feature.
●Poll the DA9318 registers.
●Read ADC data from DA9318 (VIN, VBAT, IIN, IOUT and TJUNC) when the DA9318 is enabled.
●Read ADC data from external ADC ICs (VIN, VBAT, IIN and IOUT) when the master charger is
enabled.
●Control the TA voltage and current limit; and master charger voltage termination, charge current
and current limit.
●Send default settings.
●Read all registers displayed.
●Clear faults.
6.1 GUI Installation
The files required to install the software are available on the supplied USB drive. To install the
DA9318 reference board software:
1. Run setup_DA9318_Reference_GUI.x.x.x.xx.exe.
2. On completion, insert the USB cable and apply VSYS and VIN.
a. For first time users Windows should detect the attached USB device. If this is not the case, it
may be necessary to install the driver by navigating to the required driver file in the USB
driver directory, see section 6.2. After installing the driver, reboot the PC to ensure correct
operation.
3. Start the software by running DA9318 Reference GUI.exe.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
16 of 27
© 2017 Dialog Semiconductor
6.1.1 GUI Installation Step By Step Guide
Figure 8: GUI Setup License Agreement
1. Select I accept the agreement then click Next.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
17 of 27
© 2017 Dialog Semiconductor
Figure 9: GUI Setup Destination Location
2. Click Next.
Figure 10: GUI Setup Start Menu Location
3. Click Next.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
18 of 27
© 2017 Dialog Semiconductor
Figure 11: GUI Setup Additional Tasks
4. Select the Create a desktop shortcut check box (if required) and click Next.
Figure 12: GUI Setup Start Installation
5. Click Install.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
19 of 27
© 2017 Dialog Semiconductor
Figure 13: GUI Setup Finish and Launch
6. Click Finish.
Once the installation is completed, you may need to restart your computer.
When the software is installed, insert the USB cable before applying VSYS and VIN. The DA9318
SmartCanvas software can be started after power up.
6.2 Initial USB Connection
On connecting the USB to the PC for the first time, the SAM3U USB driver will request driver
updating/installation from the Windows operating system. On Windows 7 (32-bit) operating systems
(OS) the driver usually installs automatically. On Windows 7 (64-bit) machines it is common for the
complete driver installation to fail. If this happens, install the driver manually by following these steps:
1. Control Panel → Devices and Printers (double-click device with yellow exclamation sign).
2. Update Driver.
3. Browse my computer for driver software.
4. Select the Driver folder location: C:\Dialog Semiconductor\Power Management\DA9318
Reference GUI\Driver.
5. If Windows warns about the driver, select Install anyway.
6. Remove the USB cable and then re-insert it into the reference board.

UM-PM-022
DA9318 Direct Charging Reference Board
User Manual
Revision 1.0
1-Mar-2017
CFR0012
20 of 27
© 2017 Dialog Semiconductor
7 GUI Software
Run the DA9318 Reference Board GUI software by clicking the shortcut on the appropriate item in
the Start menu (All Programs →Dialog Semiconductor →Power Management →DA9318
Reference GUI). The screen shown in Figure 14 is displayed.
The minimum recommended setting for the PC display size is 1024x768 pixels. Font size on the PC
display should be Normal (95 dpi).
NOTE
A display size other than the recommended setting will affect the way in which the panels appear.
7.1 Controls
Figure 14 shows the main GUI interface.
Figure 14: Main GUI Interface
Table of contents
Other Dialog Control Unit manuals
Popular Control Unit manuals by other brands

Genebre
Genebre 5985 Installation, operation and maintenance manual

StepperOnline
StepperOnline DM480AI user manual

Hirschmann
Hirschmann Dragon PTN Series user manual

Festo
Festo CDSV5.0 Series operating instructions

Yoshitake
Yoshitake AL-150T Series product manual

SMC Networks
SMC Networks JSXFA Series manual