Software Library for STUSB4500
The STSW-STUSB003 is a software library enabling the configuration of STUSB4500, and its typical use like dynamic power input management.
The Open source software is available to customize end-application software developments.
The library includes: the STUSB4500 hardware abstraction layers, drivers, Code example, demo and the user manual.
- Open source code
- Alarm management
- Send HW and SW reset
- Access to SINK and SOURCE PDOs
- Change of SINK PDO
- Alignment of SINK PDOs to SOURCE PDOs
- Compilation Environment:
- Toolchain: IAR 8.x: IAR Embedded Workbench for ARM
https://www.iar.com/iar-embedded-workbench/#!?architecture=Arm - pre-compiled demo binary provided
- Toolchain: IAR 8.x: IAR Embedded Workbench for ARM
- Hardware requirements:
- Any microcontroller with I2C interface
- STEVAL-ISC005V1: STUSB4500 evaluation board
- The demo is using NUCLEO-F072RB: STM32 Nucleo-64 development board with ARM Cortex-M0
Here are some screenshots showing the demo result when connecting the USB-C cable.
- Example using a power source with 2 PDOs (Google Pixel Power supply 18W)
- Example using a power source with 3 PDOs (Apple Macbook Power brick 60W)