Demonstration description
1.3.2
Peripherals used by the UCPD demonstration
Figure 6. STM32G071RBT peripherals used by the UCPD demonstration
Table 1. STM32G071RBT peripherals used by the UCPD demonstration
Peripheral
SPI
GPIO
I2C
UCPD
DMA
1.3.3
Interrupts
Table 2
shows all the external interrupts used by the demonstration
Interrupt
Systick
EXTI line 0
10/30
LCD is controlled through SPI1. Write accesses to the LCD are performed to display
strings and bitmaps during the UCPD demonstration execution.
The GPIO pins connected to the joystick are used to interact with the UCPD
demonstration (e.g. menu navigation).
One GPIO pin is used to detect the door position
Several GPIOs are used to drive some indication LEDs
I2C1 is used to control 3 different INA230:
– Two INA230 to detect the voltage level on both CC lines
– One INA230 to monitor the voltage and the current on VBUS
UCPD1 is used to manage the USB Type-C communication over the Type-C port.
DMA is used for ADC conversions.
Table 2. STM32G071RBT demonstration interrupts usage
Delay management
Joystick SEL (interrupt mode, rising edge)
UM2546 Rev 1
Usage description
Usage description
UM2546
Need help?
Do you have a question about the STM32G071B-DISCO and is the answer not in the manual?
Questions and answers