STM32 USB Type-C™ Port
Manager
Certified Software Pack eases Migration to USB-PD 3.0 Power Delivery
STM32 USB Type-C™ Port Manager
Certified Software Pack eases Migration to USB-PD 3.0 Power Delivery
Why to use USB-C 3
and Power Delivery Technology ?
USB Type-C connector enhances user experience
• It’s a 24-pin miniature and reversible connector . USB-C cable has same plug as both ends
• Some pins can be repurposed to support proprietary protocols (Alternate Modes)
• 15W of power can transit natively without USB PD protocol
To exchange more data faster with various protocols
• 2 separates USB data paths are available simultaneously : USB 2.0 + USB 3.1 (up to 10Gbit/s)
• Display Port, HDMI, MHL, Thunderbolt are supported to carry video/audio signals
• Conventional I²C/SPI/UART/Ethernet interfaces can be “bridge” to USB-C
To get more power with a comprehensive and robust protocol
• USB Power Delivery protocol enables power negotiation (up to 100W)
• It allows to discover power capabilities and needs between two USB-C connected devices
•.It enables advanced voltage and current negotiation to support fast charging
• USB PD is used to activate Alternate Modes or to carry Authentication messages
To protect your application and extend its functionalities
• Identification of genuine chargers or accessories using USB PD authentication messages
• USB PD Alternate Modes and Vendor Defined Messages enable product differentiation.
• Secure firmware upgrade capability
USB Type-C™ Pin Outs Functions 4
Purpose of CC1/CC2 wires
(Configuration & Communication channels)
A1 GND GND B12 Ground
•
A2 TX1+ B11
Attach/detach and role management RX1+
A3 TX1+ B10 SuperSpeed
(SNK,SRC,DRP) between two USB- A4
RX1+
B9
USB serial
Vbus Vbus
C devices Power Path
data
Auxiliary signals interface
•
A5 CC1 SBU2 B8
Discover and configure Vbus Up to 15W (3A)
USB 3.2
A6 D+ B7
w/o USB PD
•
D-
Discover and configure Vconn USB 2.0
or or
A7 D- D+ B6
Serial interface
• Resolve cable orientation and twist SBU1 CC2
B5
up to 100W
(5A)
reconfigured
or
in Alternate
connections to establish USB data
A8
B4
Conf Channels with USB PD
reconfigured in
ModesMode
A9 Vbus Vbus Alternate
bus routing A10 RX2- TX2-
B3
• Discover and configure optional A11 RX2+ TX2+
B2
Alternate and Accessory modes GND GND
B1
A12
(USB PD) Ground
24-pin
USB-C receptacle
USB Power Delivery is a Protocol ! 5
To enhance user experience safety thru innovation
To get more power in a robust and safe way !
• Enables advanced and higher voltage and current negotiation
(up to 100W) Mode of operation Nominal Maximum Maximum
• Source and Sink establish power contracts that match with voltage current power
their power capabilities and needs (ex : technology of battery USB PD Configurable 5A 100 W
used, power budget allocation, number of ports etc)
• Supply voltage (Vbus) is fixed (5V,9V,15V,20V) or configurable USB Type-C Current @ 3.0 A 5V 3.0 A 15 W
(Programming Power Supply)
USB Type-C Current @ 1.5 A 5V 1.5 A 7.5 W
• Dual Role Power devices can swapped power direction
(ex : tablet charging a Notebook !) USB BC 1.2 5V Up to 1.5 A 7.5 W
Default 900 mA (x1) 4.5 W
To extend devices functionalities and create an unique USB 3.2 5V
USB 1,500 mA (x2) 7.5 W
differentiation ! Power USB 2.0 5V 500mA 2.5 W
• Use of USB PD Structured Vendor Defined Messages (VDMs)
to extend the functionality a device exposes
TV/Monitor
Sink / device
USB-C
USB PD AM
Typical Use-cases 6
USB3.1
USB-C
USB PD
AC power adapter or power hub
Source only
Chromebook / Notebook / MacBook /
Laptop / DRP / Host
USB hub / Docking Terminology
Mouse
Sink / UFP USB-C PROV/HUB Power roles
USB-C
USB2.0 • Source/Provider: Provide Power
USB-C • Sink/Consumer: Consume power
USB PD AM • DRP: Dual Role Power (can be either Sink or Source)
USB2.0
SSD / Pen Drive USB-C DP USB PD AM USB3.1 Data roles
Sink / device • DFP: Downstream Facing Port (usually a Host / HUB ports)
Type-A RJ485 USB2.0
• UFP: Upstream Facing Port (usually a device)
USB-C HDM/I VGA USB3.1 • DRD : Dual-Role Data - typical of “on-the-go” ports
USB2.0
USB3.1 Power role and Data role can swap !
Roles can be dynamically swapped using USB PD
High-end smartphone
DRP/ HOST
Low-end smartphone USB-C
USB-C
AM Alternate Mode capabilities enabled via USB PD
Sink / device
USB PD USB PD AM
USB2.0
USB-C
USB3.1
USB2.0
Power Bank
DRP or 1 SRC / 1 SNK
Value Proposition 6
Adding USB-C to your design has never been so easy !
Rx/Tx pairs USB 3.1
Video X
Protections
source SBUx
USB2.0
• Add-on USB IF certified software pack
Dp/Dn
USB X-CUBE-USB-PD for implementing a Type-C Port
ST-SAFE Secure Type-C
element receptacle Manager (TCPM) on any Arm® Cortex®-based
(Authentication)
TCPM
STM32 Microcontroller
Host TCPC
USB
3.1 • Optimized hardware/software partitioning involving
CTRL,
AP, etc
CC lines
standard Type-C port Controller (TCPC) or
Protections
STUSB1602
Power Load Vbus
• Lowest design and validation effort
management switch
X-CUBE-USB-PD Software Pack 87
Enables any STM32 to handle USB-C and Power Delivery
• X-CUBE-USB-PD complies with :
• USB-C 1.3 and USB PD 3.0 specifications
Standardized TCPC
• Type-C Port Controller Interface specification (TCPCi)
• Hardware architecture supported
or • Any STM32 as TCPM with standardized TCPC from 3rd parties
(Our stack has been tested with ON Semiconductor® FUSB307B, a
USB-PD 3.0 v1.1-certified TCPC)
Type-C Port Manager • Or STM32F0 with STUSB1602 Type-C interface
(TCPM) STUSB1602
• Single-or multi-port supported (Sink, Source, Dual Role Power )
TCPM stands for Type-C Port Manager
TCPC stands for Type-C Port Controller
• Optional features such as Programming Power Supply (PPS),
Authentication messages and Fast Role Swap (FRS) are
supported
Benefits of TCPM / TCPC Split 9
Optimized HW/SW partitioning for single- or multi-port
Type-C Port Manager
Policy Engine
Protocol Layer
• The STM32 provides a high customization and flexibility to
I²C Master
manage power policy, application layers, and to support
TCPC Interface (TCPCI)
evolution of the standard faster.
TCPC port n°3 TCPC port n°2 TCPC port n°1 • TCPCI interface provides a low pin count interconnect
I²C Slave I²C Slave I²C Slave using Fast-Mode Plus I²C (1 MHz) bus, plus one alert
line, and a comprehensive set of TCPC registers making
Tx/Rx Buffer Tx/Rx Buffer Tx/Rx Buffer
stack porting across STM32 platform easier.
GoodCRC - Retry GoodCRC - Retry GoodCRC - Retry
Physical Layer Physical Layer Physical Layer
Type-C CC Logic Type-C CC Logic Type-C CC Logic • TCPC provides the “Power Path” and integrate
Type-C Port Controller Type-C Port Controller Type-C Port Controller components with fast latency requirements as well as
USB-C/PD PHY, Vconn, dead battery and protection.
Docking Station 10
Typical Block Diagram
USB-C port n°2 :
DRP + Alt Mode USB-C port n°1 : Sink
Load Load
switch switch
TCPC TCPC
I2C
Vbus
Vbus
CC lines CC lines
Example :
Super Speed signals
gaming console or
Smartphone D+/D-
I2C/SPI HDMI
(USB2.0) connector
DP signals HDMI signals
Video
Converter
Mux
X
USB3.x
Rx/Tx
USB3.0 RX/TX
USB
HUB
CTRL
• Port 1 negotiates power contracts with external USB-C power adapter.
• Port 2 supplies plugged accessory and handle HDMI signals request when TV
detected, or USB devices inserted into legacy USB connectors.
Power Bank 11
Typical Block Diagram
Vbus source
Vbus source Load
switch
Vbus
Vbus
Vbus sink
Vbus sink Load
switch
CC lines
CC
PMIC lines
PMIC
Battery I²C
Battery I²C
etc etc
CC
I2C/SPI/ lines
CC lines
GPIOs
etc
Vbus
Vbus
Vbus source
Vbus source Load
switch
Vbus
Vbussink
sink
Load
switch
Features and Memory Footprint 12
Compliant with USB Type-CTM 1.3 and USB PD 3.0 specifications
• X-CUBE-USB-PD Expansion Software package includes :
Device Policy Manager • USB PD “core” library for CortexTM-M0/M4 based devices
ST Core stack (STM32F0/F4/L4/F3)
Policy Engine
Power
• Open-source drivers to support TCPC devices and STUSB1602
Cable Source(s) / • Firmware examples (Provider, Consumer, Dual Role Power) for MDK-ARM,
Detection Sink (s)
IAR-EWARM and SW4STM32 IDEs
Protocol Layer (*)
Device
• Key features :
Physical Layer • Device Policy Manager, Policy Engine and Protocol Layer
• Cable detection and orientation
HAL/LL • Supports Vendor-Defined Messages (Alternate Modes)
• Billboard driver
Hardware Vbus
• SOP’ and SOP’’ for communication with cables
Type C connector
Typical TCPM Memory Footprint Source or Sink only Dual Role Power
(no VDM, no Vconn)
1 port (w/o RTOS) 32 Kbytes in Flash 40 Kbytes in Flash
3.6 Kbytes in RAM 3.6 Kbytes in RAM
2 port (w/RTOS) 32 Kbytes in Flash 43 Kbytes in Flash
7.8 Kbytes in RAM 8.1 Kbytes in RAM
ON-FUSB3-STM32 13
TCPM/TCPC evaluation board
Main features
• 1 USB Type-C port
• SINK,SOURCE, DRP capability
• STM32F072CBT6, 32-bit Arm® Cortex®-M0 MCU as
TCPM
• ON Semiconductor® FUSB307B Type-C port
controller
• On board power management and dedicated power
connector to interface with an external power supply
• Link to order one kit (149$ range)
Learn more 14
/STM32 @ST_World community.st.com
www.st.com/x-cube-usb-pd