RM0440
Wakeup from STOP is enabled by setting the WUPEN bit in the UCPD_CFG2 register.
At UCPD level three types of event requiring kernel clock activity may occur during STOP
i.e.
–
–
–
It order to function correctly with the RCC, the clock request signal will be activated
(conditional on WUPEN) when there is asynchronous activity on:
–
–
–
45.6
UCPD interrupts
The table below gives the UCPD interrupts.
Fast Role Swap detection event
Type C voltage level event (CC2)
Type C voltage level event (CC1)
Rx message received
Rx data overflow interrupt
Rx Hard Reset detect interrupt
Rx ordered set (4 K-codes) detected
Receive data register not empty
Tx data underrun condition interrupt
HRST discarded interrupt
Transmit message abort interrupt
Activity on the analog PHY voltage threshold detectors which could later be
confirmed to be a stable change between voltage ranges defined in the Type-C
specification
Activity on Power Delivery BMC receiver (coming from the selected CC pin) which
could potentially generate an Rx message event (i.e. RXORDSET) later
Activity on Power Delivery FRS detector which could potentially generate an FRS
signaling detection event (i.e. FRSEVT) later
Type-C voltage threshold detectors (coming from either CC pin)
The Power Delivery receiver signal (coming from the selected CC pin)
The FRS detection signal (coming from the selected CC pin)
Table 422. UCPD interrupt requests
Interrupt event
interrupt
interrupt
HRST sent interrupt
USB Type-C™ / USB Power Delivery interface (UCPD)
Event flag/Interrupt
Event flag
FRSEVT
Write 1 to FRSEVTCF
TYPECEVT2
TYPECEVT1
RXMSGEND
RXOVR
Write 1 to RXOVRCF
RXHRSTDET
RXORDDET
RXNE
TXUND
Write 1 to TXUNDCF
HRSTSENT
HRSTDISC
TXMSGABT
RM0440 Rev 1
Interrupt enable
clearing method
Write 1 to
TYPECEVT2CF
Write 1 to
TYPECEVT1CF
Write 1 to
RXMSGENDCF
Write 1 to
RXHRSTDETIE
RXHRSTDETCF
Write 1 to
RXORDDETCF
Read data in
UCPD_RXDR
Write 1 to
HRSTSENTCF
Write 1 to
HRSTDISCCF
Write 1 to
TXMSGABTCF
control bit
FRSEVTIE
TYPECEVT2IE
TYPECEVT1IE
RXMSGENDIE
RXOVR
RXORDDETIE
RXNEIE
TXUNDIE
HRSTSENTIE
HRSTDISCIE
TXMSGABTIE
2021/2083
2040
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?
Questions and answers