Real-time Event Mapping

Table 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 PWM0
TC1 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 TIOA0 AFEC0
TC0 TIOA1 AFEC0
TC0 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 TIOA3 AFEC1
TC1 TIOA4 AFEC1
TC1 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 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 
TIOA0 and TIOB0
PWM0 Comparator Output OC1 TC0 
TIOA1 and TIOB1
PWM0 Comparator Output OC2 TC0 
TIOA2 and TIOB2
PWM1 Comparator Output OC0 TC1 
TIOA3 and TIOB3
PWM1 Comparator Output OC1 TC1 
TIOA4 and TIOB4
PWM1 Comparator Output OC2 TC1 
TIOA5 and TIOB5
PWM0 Comparator Output OC0 TC2 
TIOA6 and TIOB6
PWM0 Comparator Output OC1 TC2 
TIOA7 and TIOB7
PWM0 Comparator Output OC2 TC2 
TIOA8 and TIOB8
PWM1 Comparator Output OC0 TC3 
TIOA9 and TIOB9
PWM1 Comparator Output OC1 TC3 
TIOA10 and TIOB10
Audio clock recovery from Ethernet Audio GMAC GTSUCOMP signal adaptation via TC (TC_EMR.TRIGSRCB) in order to drive the clock reference of the external PLL for the audio clock GMAC
GTSUCOMP TC3 
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
Notes:
  1. 1.Refer to Main Crystal Oscillator Failure Detection.
  2. 2.Refer to Fault Inputs and Fault Protection.
  3. 3.Refer to Fault Mode.
  4. 4.Refer to Fault Output.
  5. 5.Refer to Low-power Tamper Detection and Anti-Tampering and SYS_GPBRx.
  6. 6.Refer to Fault Mode.
  7. 7.Refer to PWM_ETRGx.
  8. 8.Refer to PWM External Trigger Mode.
  9. 9.Refer to Conversion Triggers and AFEC_MR.
  10. 10.Refer to Temperature Sensor.
  11. 11.Refer to Waveform Generation.
  12. 12.Refer to PWM_CMPVx and PWM Event Lines.
  13. 13.Refer to DACC_TRIGR.
  14. 14.Refer to PWM Comparison Units and PWM Event Lines.
  15. 15.Refer to Parallel Capture Mode.
  16. 16.Refer to Comparator.
  17. 17.Refer to Synchronization with PWM.
  18. 18.Refer to DMA Controller (XDMAC).