ST AEKD-USBTYPEC1 User Manual

Introduction
The USB Power Delivery evaluation kit is designed to help you evaluate the functions of the USB Power Delivery protocol stack implemented on the SPC58EC80E5 Chorus line of 32-bit automotive microcontrollers based on Power Architecture® technology
, with 4 MB of flash memory.
You can also use the AEKD-USBTYPEC1 to prototype USB Power Delivery solutions to power compatible consumer devices via the USB Type-C™ ports.
How to use the AEKD-USBTYPEC1 USB Power Delivery evaluation kit
UM2451
User manual
UM2451 - Rev 1 - August 2018 For further information contact your local STMicroelectronics sales of
fice.
www.st.com
1 Evaluation kit overview
The AEKD-USBTYPEC1 kit consists of:
An AEK-USB-2TYPEC1 dual-port USB Type-C interface board.
An SPC58EC-DISP discovery board hosting a SPC58EC80E5 Chorus line 4 MB flash memory, 32-bit automotive microcontroller.
A 1-Amp 12-Volt power supply for the SPC58EC-DISP board.
A mini-B USB to USB Type-A cable to connect the MCU programmer.
A USB Type-C to USB Type-C cable (not electronically marked).
The STSW-USB2TYPEC1 flash image firmware and the related software package.
Figure 2. AEKD-USBTYPEC1 kit
The AEK-USB-2TYPEC1 interface board hosts a pair of STUSB1702Y automotive grade USB Type-C controllers; one for each USB Type-C port. The board contains a dual Transil™ array ESDA25LY and very low capacitance
USBLC6-2SC6Y devices for ESD protection. The status of the ports is signaled on the board through a set of
LEDs for each port. The board includes about 20 test points.
The main devices on the board are the STUSB1702Y USB Type-C controller with Tx/Rx line driver and bi-phase marked coding (BMC), and the physical layer (PHY) protocol for USB Power Delivery stack.
The AEKD-USBTYPEC1 kit supports a 5 V, 500 mA PDO based on the electrical characteristics of the SPC58EC-
DISP. To extend the range of PDOs, you can add an external power board, not included in the kit.
The software package contains the following elements:
The firmware for the SPC58EC-DISP discovery board (already pre-loaded on the board).
A complex driver for the STUSB1702Y USB Type-C controller.
An SPC5-STUDIO library plugin with the USB Power Delivery software stack.
A demo application with predefined 5 V 500 mA PDO.
The standard USB Type-C cable provided in the kit is not electronically marked. It is not suitable for currents above 3 A and does not support USB 3.1 Gen1 or Gen2 signaling.
The USB Power Delivery Consumer role device may be a compatible mobile phone or a tablet accepting a 5 V, 500 mA PDO. You can add an external Power Board to increase the range of available PDOs. Alternatively, you can use the P-NUCLEO-USB002 demo kit as a consumer device.
RELATED LINKS
3 Software package with firmware and USB PD project on page 10
http://www
.usb.org/home
UM2451
Evaluation kit overview
UM2451 - Rev 1
page 2/22
1.1 LED signals
Figure 3. Port status LEDs on the AEK-USB-2TYPEC1
The AEK-USB-2TYPEC1
interface board has the following status LEDs for each port:
1. Role: emits a continuous variable blue flashing light at about 1Hz indicating the device is a provider.
2. VBUS: emits a constant green light when the power negotiation has completed (i.e., the Explicit condition is reached). The provider can now begin to supply the negotiated power to the consumer.
3. CC: emits different orange flashing sequences to indicate the following conditions:
a. flashes at about 1Hz: CC1 line is connected.
b. flashes twice followed by a pause: CC2 line is connected.
Note: The connected Configuration Channel (CC) indicates the direction of the USB cable connection, given the cable
reversibility allowed by the USB Type-C standard.
UM2451
LED signals
UM2451 - Rev 1
page 3/22
2 How to use the AEKD-USBTYPEC1 kit
Step 1. Plug the AEK-USB-2TYPEC1 board on the SPC58EC-DISP
The AEK-USB-2TYPEC1 is plugged into the 4x37 male pin connector of the SPC58EC-DISP
board via
the 4x20 female pin connector from pins A18 to D37 (refer to pin numbering indications on the board).
Figure 4. AEKD-USBTYPEC1 plugged on SPC58EC-DISP
Step 2. Connect the 1-Amp 12-V
olt power supply plug into the socket located on the SPC58EC-DISP and then
turn on the board.
Figure 5. Voltage supply socket and power switch on SPC58EC-DISP
After about 5 seconds, the ROLE LED on the AEK-USB-2TYPEC1 board should start blinking at rate of 1 Hz to indicate the board is a provider.
Step 3. Connect a consumer to a USB Type-C port
You can connect one or two consumers to one or both USB Type-C ports. The USB Type-C ports supply 5 V each and 500 mA in total for both ports.
UM2451
How to use the AEKD-USBTYPEC1 kit
UM2451 - Rev 1
page 4/22
Power negotiation begins when the consumer is connected. If the negotiation concludes successfully (i.e., the “Explicit” condition is reached), the VBUS LED VBUS emits a green light.
If the consumer has a compatible PDO but it is not able to reach the “Explicit” condition, try to:
Use another USB Type-C port on the consumer device, if available.
Disconnect and reconnect the USB Type-C cable.
Switch the SPC58EC-DISP board off and on and try to connect the Consumer device again.
Try a different USB Type-C cable.
2.1 Pin mappings for an external power board
The power negotiation protocol between consumer and provider agrees on a PDO that is actuated on a power board (not included in the kit).
The microcontroller on the SPC58EC80E5 board can direct the power supplied by an external power board through GPIOs on the male connector on the AEK-USB-2TYPEC1 interface board.
Note:
The external power board you use must be compatible with the consumer power requirements.
If the desired voltage is not provided within the time-out interval specified in the USB Power Delivery protocol, the
STUSB1702Y informs the microcontroller that the voltage output in the port is not actuated and the
microcontroller resets the system and starts power negotiation again.
Note: The connection of the external power board may require modifications in the software stack.
Communication between the STUSB1702Y and microcontroller is based on SPI protocol, where the
STUSB1702Y has the master role in the communication.
The following figure shows the 4x37 connector on the SPC58EC-DISP board. The portion occupied by the AEK-
USB-2TYPEC1 is zoomed to show the pins for the external power board (in green) and for the interface board (in
blue).
UM2451
Pin mappings for an external power board
UM2451 - Rev 1
page 5/22
Figure 6. Pin mapping of the AEK-USB-2TYPEC1 connectors
Connectors CN1 (4x20 male pin connector) and CN2 (2x9 male pin connector) are located on the opposite side of the USB T
ype-C ports. CN1 is for the control signals and CN2 is for the power supply. In the figure, the green cells in CN1 represent the pins to drive the external power board. The cell labels starting with “Pxx” represent the microcontroller ports mapped to the 4x37 connector. The microcontroller ports can assume different functions depending on the register settings of a specific microcontroller.
The following table contains the descriptions of the interface board pins.
Table 1. AEK-USB-2TYPEC1 4x20 connector interface board pin descriptions
Pin Name Description
ADC_I_0 ADC channel to convert the current value provided by VBUS on to port 0.
ADC_I_1 ADC channel to convert the current value provided by VBUS on to port 1.
ADC_V_0 ADC channel to convert the voltage value (VBUS) applied to port 0.
ADC_V_1 ADC channel to convert the voltage value (VBUS) applied to port 1.
ALERT_0 Alert pin of STUSB1702Y device managing port 0
ALERT_1 Alert pin of STUSB1702Y device managing port 1
LED01
(1)
To command the LED “ROLE” for port0
LED11
(2)
To command the LED “ROLE” for port1
LED02 To command the LED “VBUS” for port0
UM2451
Pin mappings for an external power board
UM2451 - Rev 1
page 6/22
Pin Name Description
LED12 To command the LED “VBUS” for port1
LED03 To command the LED “CC” for port0
LED13 To command the LED “CC” for port1
MISO_0 Master Input Slave Output (MISO) of SPI protocol for port 0
MISO_1 Master Input Slave Output (MISO) of SPI protocol for port 1
MOSI_0 Master Output Slave Input (MOSI) of SPI protocol for port 0
MOSI_1 Master Output Slave Input (MOSI) of SPI protocol for port 1
NSS_0 Slave Select (NSS) of SPI protocol for port 0
NSS_1 Slave Select (NSS) of SPI protocol for port 1
SCK_0 Serial Clock (SCK) of SPI protocol for port 0
SCK_1 Serial Clock (SCK) of SPI protocol for port 1
SCL
Serial Clock of I2C
SDA
Serial Data of I2C
RESET 0 Used to reset the STUSB1702Y for port 0
RESET 1 Used to reset the STUSB1702Y for port 1
TX_EN_0 Used by slave to ask master to start the SPI communication for port 0 by resetting the NSS pin
TX_EN_1 Used by slave to ask master to start the SPI communication for port 1 by resetting the NSS pin
1.
It is recommended to remove the jumper from the jumper pins JP46 on the SPC58EC_DISP board.
2. It is recommended to remove the jumper from the jumper pins JP48 on the SPC58EC_DISP board.
The following table shows the mapping between the external power board pins and the microcontroller ports. The table also shows the functions that can be assigned to each pin. Only one function can be mapped to a single microcontroller port at a time.
Table 2. AEK-USB-2TYPEC1 4x20 connector power board pin description
Pin name Port #
Function[module instance]
GPIO
(1)
CAN SPI
ADC (12 bit)
(2)
LIN
Timer
(3)
G/P_01 PD[4] GPIO52
RX[1]
RX[3]
SCK[0]
SCK[7]
- TXD[3]
UC6
UC4
G/P_02 PB[11] GPIO27 -
CS0[0]
CS2[2]
- RXD[2]
UC24
UC5
G/P_03 PM[2] GPIO194 RX[6] SOUT[1] - - UC9
G/P_04 PC[2]
GPIO34
EIRQ10
- - - TXD[15]
UC8
UC10
G/P_05 PE[6] GPIO70 RX[0]
CS1[0]
CS1[1]
- RXD[1]
UC4
UC2
G/P_11 PF[2]
GPIO82
EIRQ6
RX[6]
CS2[1]
SOUT[1]
SOUT[3]
INJ_TRG
NOR_TRG
RXD[2]
RXD[8]
UC20
UC12
UM2451
Pin mappings for an external power board
UM2451 - Rev 1
page 7/22
Loading...
+ 15 hidden pages