12.2 Real-time Event Mapping

Table 12-1. Real-time Event Mapping List
Function Application Description Event Source Event Destination
Safety General-purpose Automatic 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) PMC Pulse Width Modulation 0 and 1 
(PWM0 and PWM1)
Motor control, PFC Puts the PWM outputs in Safe mode (overcurrent detection, etc.) (see Notes 2, 3) Analog Comparator Controller (ACC) PWM0 and PWM1
Motor control, PFC Puts the PWM outputs in Safe mode (overspeed, overcurrent detection, etc.) (see Notes 2, 4) Analog Front-End Controller (AFEC0) PWM0 and PWM1
AFEC1 PWM0 and PWM1
Motor control Puts the PWM outputs in Safe mode (overspeed detection through timer quadrature decoder) (see Notes 2, 6) TC0.Ch0 PWM0
TC0.Ch1 PWM1
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, PD9 PWM0
PIO PA21, PA26, PA28 PWM1
Security General-purpose Immediate GPBR clear (asynchronous) on tamper detection through WKUP0/1 IO pins (see Note 5) PIO WKUP0/1 GPBR
Measurement trigger Power factor correction
(DC-DC, lighting, etc.) Duty cycle output waveform correction 
Trigger source selection in PWM (see Notes 7, 8) ACC PWM0
PIO PA10, PA22 PWM0
ACC PWM1
PIO PA30, PA18 PWM1
General-purpose Trigger source selection in AFEC (see Note 9) PIO AFE0_ADTRG AFEC0
TC0.Ch0 (TIOA0) AFEC0
TC0.Ch1 (TIOA1) AFEC0
TC0.Ch2 (TIOA2) AFEC0
ACC AFEC0
Motor control ADC-PWM synchronization (see Notes 12, 14) Trigger source selection in AFEC (see Note 9) PWM0 Event Line 0 and 1 AFEC0
General-purpose Trigger source selection in AFEC (see Note 9) PIO AFE1_ADTRG AFEC1
TC1.Ch0 (TIOA3) AFEC1
TC1.Ch1 (TIOA4) AFEC1
TC1.Ch2 (TIOA5) AFEC1
ACC AFEC1
Motor control ADC-PWM synchronization (see Notes 12, 14) 
Trigger source selection in AFEC (see Note 9) PWM1 Event Line
0 and 1 AFEC1
General-purpose Temperature sensor
Low-speed measurement (see Notes 10, 11) RTC RTCOUT0 AFEC0 and AFEC1
Conversion trigger General-purpose Trigger source selection in DACC 
(Digital-to-Analog Converter Controller) (see Note 13) TC0.Ch0-2 (TIOA0, TIOA1, TIOA2) DACC
PIO DATRG DACC
PWM0 Event Line 0 and 1(14) DACC
PWM1 Event Line 0 and 1(14) DACC
Image capture Low-cost image sensor Direct image transfer from sensor to system memory via DMA(15) PIO PA3/4/5/9/10/11/12/13, PA22, PA14, PA21 DMA
Delay measurement Motor control Propagation delay of external components (IOs, power transistor bridge driver, etc.) See Notes 16, 17) PWM0 Comparator Output OC0 TC0.Ch0 
TIOA0 and TIOB0
PWM0 Comparator Output OC1 TC0.Ch1 
TIOA1 and TIOB1
PWM0 Comparator Output OC2 TC0.Ch2 
TIOA2 and TIOB2
PWM1 Comparator Output OC0 TC1.Ch0 
TIOA3 and TIOB3
PWM1 Comparator Output OC1 TC1.Ch1 
TIOA4 and TIOB4
PWM1 Comparator Output OC2 TC1.Ch2 
TIOA5 and TIOB5
PWM0 Comparator Output OC0 TC2.Ch0 
TIOA6 and TIOB6
PWM0 Comparator Output OC1 TC2.Ch1 
TIOA7 and TIOB7
PWM0 Comparator Output OC2 TC2.Ch2 
TIOA8 and TIOB8
PWM1 Comparator Output OC0 TC3.Ch0 
TIOA9 and TIOB9
PWM1 Comparator Output OC1 TC3.Ch1 
TIOA10 and TIOB10
Audio clock recovery from Ethernet Audio GMAC GTSUCOMP signal adaptation via TC (TC3.TC_EMR.TRIGSRCB) in order to drive the clock reference of the external PLL for the audio clock GMAC
GTSUCOMP TC3.Ch2 
TIOB11
Direct Memory Access General-purpose Peripheral 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, I2SC XDMA