12.2 Real-time Event Mapping

Table 12-1. Real-time Event Mapping List
FunctionApplicationDescriptionEvent SourceEvent Destination
SafetyGeneral-purposeAutomatic switch to reliable main RC oscillator in case of main crystal clock failure (see Note 1)Power Management Controller (PMC)PMC
General-purpose, motor control, power factor correction (PFC)Puts the PWM outputs in Safe mode in case of main crystal clock failure (see Notes 1, 2)PMCPulse Width Modulation 0 and 1 
(PWM0 and PWM1)
Motor control, PFCPuts the PWM outputs in Safe mode (overcurrent detection, etc.) (see Notes 2, 3)Analog Comparator Controller (ACC)PWM0 and PWM1
Motor control, PFCPuts the PWM outputs in Safe mode (overspeed, overcurrent detection, etc.) (see Notes 2, 4)Analog Front-End Controller (AFEC0)PWM0 and PWM1
AFEC1PWM0 and PWM1
Motor controlPuts the PWM outputs in Safe mode (overspeed detection through timer quadrature decoder) (see Notes 2, 6)TC0.Ch0PWM0
TC0.Ch1PWM1
General-purpose, motor control, power factor correction (PFC)Puts the PWM outputs in Safe mode 
(general-purpose fault inputs) (see Note 2)PIO PA9, PD8, PD9PWM0
PIO PA21, PA26, PA28PWM1
SecurityGeneral-purposeImmediate GPBR clear (asynchronous) on tamper detection through WKUP0/1 IO pins (see Note 5) PIO WKUP0/1GPBR
Measurement triggerPower factor correction
(DC-DC, lighting, etc.)Duty cycle output waveform correction 
Trigger source selection in PWM (see Notes 7, 8)ACCPWM0
PIO PA10, PA22PWM0
ACCPWM1
PIO PA30, PA18PWM1
General-purposeTrigger source selection in AFEC (see Note 9)PIO AFE0_ADTRGAFEC0
TC0.Ch0 (TIOA0)AFEC0
TC0.Ch1 (TIOA1)AFEC0
TC0.Ch2 (TIOA2)AFEC0
ACCAFEC0
Motor controlADC-PWM synchronization (see Notes 12, 14) Trigger source selection in AFEC (see Note 9)PWM0 Event Line 0 and 1AFEC0
General-purposeTrigger source selection in AFEC (see Note 9)PIO AFE1_ADTRGAFEC1
TC1.Ch0 (TIOA3)AFEC1
TC1.Ch1 (TIOA4)AFEC1
TC1.Ch2 (TIOA5)AFEC1
ACCAFEC1
Motor controlADC-PWM synchronization (see Notes 12, 14) 
Trigger source selection in AFEC (see Note 9)PWM1 Event Line
0 and 1AFEC1
General-purposeTemperature sensor
Low-speed measurement (see Notes 10, 11) RTC RTCOUT0AFEC0 and AFEC1
Conversion triggerGeneral-purposeTrigger source selection in DACC 
(Digital-to-Analog Converter Controller) (see Note 13)TC0.Ch0-2 (TIOA0, TIOA1, TIOA2)DACC
PIO DATRGDACC
PWM0 Event Line 0 and 1(14)DACC
PWM1 Event Line 0 and 1(14)DACC
Image captureLow-cost image sensorDirect image transfer from sensor to system memory via DMA(15)PIO PA3/4/5/9/10/11/12/13, PA22, PA14, PA21DMA
Delay measurementMotor controlPropagation delay of external components (IOs, power transistor bridge driver, etc.) See Notes 16, 17)PWM0 Comparator Output OC0TC0.Ch0 
TIOA0 and TIOB0
PWM0 Comparator Output OC1TC0.Ch1 
TIOA1 and TIOB1
PWM0 Comparator Output OC2TC0.Ch2 
TIOA2 and TIOB2
PWM1 Comparator Output OC0TC1.Ch0 
TIOA3 and TIOB3
PWM1 Comparator Output OC1TC1.Ch1 
TIOA4 and TIOB4
PWM1 Comparator Output OC2TC1.Ch2 
TIOA5 and TIOB5
PWM0 Comparator Output OC0TC2.Ch0 
TIOA6 and TIOB6
PWM0 Comparator Output OC1TC2.Ch1 
TIOA7 and TIOB7
PWM0 Comparator Output OC2TC2.Ch2 
TIOA8 and TIOB8
PWM1 Comparator Output OC0TC3.Ch0 
TIOA9 and TIOB9
PWM1 Comparator Output OC1TC3.Ch1 
TIOA10 and TIOB10
Audio clock recovery from EthernetAudioGMAC GTSUCOMP signal adaptation via TC (TC3.TC_EMR.TRIGSRCB) in order to drive the clock reference of the external PLL for the audio clockGMAC
GTSUCOMPTC3.Ch2 
TIOB11
Direct Memory AccessGeneral-purposePeripheral trigger event generation to transfer data to/from system memory (see Note 18)USART, UART, TWIHS, SPI, QSPI, AFEC, TC (Capture), SSC, HSMCI, DAC, AES, PWM, PIO, I2SCXDMA