Professional Documents
Culture Documents
Stm32 Usb C PD Solutions Presentation
Stm32 Usb C PD Solutions Presentation
ST offers two solutions to help developers find the best solution for their
applications:
• STM32 UCPD controllers and development ecosystem
• X-CUBE-USB-PD expansion software pack for any STM32
2
Why use USB-C™
and Power Delivery technology ?
USB Type-C™ connectors enhance the user experience
• It’s a 24-pin miniature and reversible connector. USB-C plug is the same on both sides
• Some pins can be repurposed to support proprietary protocols (Alternate Modes)
• Able to transmit 15W of power natively without USB PD protocol
3
USB Type-C™ pinout functions
Purpose of CC1/CC2 wires
(Configuration & Communication channels)
5
TV/Monitor
Sink / device
USB-C
AM
USB PD
Many combinations
USB3.1
USB-C
USB PD
USB3.1
Power role and Data role can swap !
High-end smartphone Roles can be dynamically swapped using USB PD
DRP/ HOST
USB-C USB-C AM Alternate Mode capabilities enabled via USB PD
USB PD
Low-end smartphone USB PD
AM
Sink / device USB-C
USB2.0
Authentication
USB3.1
USB2.0
SW : USB PD Middleware in
STM32Cube
• Device Policy Manager STM32L5 X-CUBE-USB-PD
• Policy Engine • Device Policy Manager TCPM
• Protocol Layer STM32G0 • Policy Engine (Type-C
• Protocol Layer Port Manager)
HW : UCPD Hardware STM32G4
• GoodCRC / retry
• Physical Layer
CC
• Type-C Logic lines I²C
• Dead Battery
Type-C TCPC
TCPP Type-C
Port Protection • GoodCRC / retry
• Dead Battery Port Controller
TCPP • Physical Layer
• ESD protection TCPC
(TCPP01-M12) • Type-C Logic
• 22V CC lines protection • Dead Battery
• Vbus gate Driver • Protection
USB Type-C
USB Type-C • Vbus gate driver
8
STM32 with built-in USB PD interface
(UCPD)
Direct connection to USB Type-C
A3 B10
(the CC lines) for: TX1+ RX1+
A4 B9
Vbus Vbus
2. USB PD communication
A6 D+ D- B7
STM32G4 A7 D- D+ B6
STM32L5 A8
SBU1 CC2
B5
B4
A9 Vbus Vbus
B3
A10 RX2- TX2-
B2
A11 RX2+ TX2+
B1
24-pin
USB-C™ receptacle
10
UCPD built-in features
Type-C control
₊ Built-in Rp/Rd resistors ✓ Attach/detach and role management (SNK,
Enabling
₊ CC logic control (CC PHY) SRC, and DRP)
₊ CC lines voltage monitoring 15W max ✓ Resolve cable orientation and twist connections
(5V/3A)
₊ Dead battery resistors to establish USB 2.0 /USB 3.x data bus routing
₊ Fast Role Swap signaling ✓ Discover and configure VBUS or VCONN
11
Optimized SW/HW architecture
STM32L5 STM32L5
STM32G0 STM32G0
STM32G4 STM32G4
12
STM32G0
2 x UCPD
STM32 carrying UCPD HW IP
Sink-Source-DRP STM32L5
Flash memory: up to 128 Kbytes 1 x UCPD
RAM: 36 Kbytes
Sink-Source-DRP
1 x USB 2.0 Data Full Speed STM32MP1
4158 CoreMark
MPU Flash memory: up to 512 Kbytes
650 MHz Cortex -A7
RAM: 32 Kbytes
209 MHz Cortex -M4
Wireless STM32WL
161 CoreMark
STM32WB
216 CoreMark
MCUs 48 MHz 64 MHz
Arm® Cortex® core -M0 -M0+ -M3 -M33 -M4 -M7 dual -A7& -M4
STM32G0
STM32G0
15
More on: www.st.com/STM32L5 STM32L5 MCUs
ULP excellence with more security
First STM32 MCU based on Arm ® Cortex®-M33 and TrustZone®
16
Typical block diagram
Example: multi-port docking station
USB-C port n°2:
DRP + Alt Mode USB-C port n°1: Sink
Power management
TCPC TCPC
I2C
Vbus
Vbus
CC lines CC lines
Example:
gaming console or
Super Speed signals STM32G0
Smartphone D+/D-
I2C/SPI HDMI
(USB2.0) connector
USB3.x
Rx/Tx
USB3.0 RX/TX
USB HUB
CTRL
18
Typical sink application example
STM32G0
STM32G4
STM32L5
19
Typical sink application example
20
Typical sink application example
STM32CubeMonitor
STM32G0
UCPD configuration
STM32G081B-EVAL
STM32G071B-DISCO • 1 Port DRP (45W)
• USB-C analyzer (Sink) • 1 port Sink (AM)
STM32G4
B-G474E-DPOW1
• 1 port Sink + USB data
STM32G474E-EVAL
• 1 Port DRP (15W) + USB data
STM32CubeMonitor-UCPD
STM32L5
Debug tool
STM32L552E-EVAL
NUCLEO-L552ZE-Q • 1 Port Sink + USB data 22
• 1 Port Sink + USB data
USB-C sniffer
STM32G071B-DISCO
23
Easy configuration
STM32CubeMX
Device selection
and peripherals configuration
(port 1 or 2 and role of each port: SNK,
SRC, DRP)
USB-PD middleware
parameters settings
Code generation
24
Easy debug with stm32cubemonucpd
PC Software GUI to display and configure parameters of USB PD Middleware
FREE
TOOL!
STM32CubeMonitor-UCPD
https://www.st.com/STM32CubeMonUCPD 25
USB-C authentication ready
Verify that the device is genuine & embeds the expected profile
26
Certified software pack eases migration
to USB-PD 3.0 Power Delivery
• TCPCI interface provides a low pin count interconnect TCPC Interface (TCPCI)
using Fast-Mode Plus I²C (1 MHz) bus, plus one alert line,
and a comprehensive set of TCPC registers making stack
TCPC port n°3 TCPC port n°2 TCPC port n°1
porting across STM32 platform easier.
I²C Slave I²C Slave I²C Slave
• TCPC provides the “Power Path” and integrate Tx/Rx Buffer Tx/Rx Buffer Tx/Rx Buffer
components with fast latency requirements as well as
GoodCRC - Retry GoodCRC - Retry GoodCRC - Retry
USB-C/PD PHY, Vconn, dead battery and protection.
Physical Layer Physical Layer Physical Layer
29
Features and memory footprint
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
Main features
STM32F0
• 1 USB Type-C port
• Sink, Source, and 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)
31
Documentation
• Getting started video with USB type-C and STM32G0 ecosystem: [YouTube]
• STM32G0 Entry-level Arm® Cortex®-M0+ MCUs webpage: link
• STM32G0 Discovery kit for USB Type-C™ and Power Delivery (STM32G071B-DISCO)
Databrief: [PDF]
• STM32CubeMonUCPD Monitoring and configuration software tool for STM32 USB-C and
Power Delivery 3.0 applications webpage: link
• STM32G0 Online Training: link and a specific training on STM32G0 UCPD interface here
• Application note AN5225: USB Type-C™ Power Delivery using STM32xx Series MCUs
and STM32xxx Series MPUs: [PDF]
• USB Power Delivery on STM32 expansion software for STM32Cube (X-CUBE-USB-PD)
webpage: link
• Single-chip USB type-C port protection IC (TCPP01-M12) webpage: link
32
Releasing your creativity
/STM32
@ST_World
community.st.com
www.st.com/STM32
Thank you