15.2 Real-Time Event Mapping

Table 15-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)TC0PWM0
TC0PWM1
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 (TIOA0)AFEC0
TC0 (TIOA1)AFEC0
TC0 (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 (TIOA3)AFEC1
TC1 (TIOA4)AFEC1
TC1 (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 (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 
TIOA0 and TIOB0
PWM0 Comparator Output OC1TC0 
TIOA1 and TIOB1
PWM0 Comparator Output OC2TC0 
TIOA2 and TIOB2
PWM1 Comparator Output OC0TC1 
TIOA3 and TIOB3
PWM1 Comparator Output OC1TC1 
TIOA4 and TIOB4
PWM1 Comparator Output OC2TC1 TIOA5 and TIOB5
PWM0 Comparator Output OC0TC2 
TIOA6 and TIOB6
PWM0 Comparator Output OC1TC2 
TIOA7 and TIOB7
PWM0 Comparator Output OC2TC2 
TIOA8 and TIOB8
PWM1 Comparator Output OC0TC3 
TIOA9 and TIOB9
PWM1 Comparator Output OC1TC3 
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 
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
Note:
  1. Refer to the Main Crystal Oscillator Failure Detection.
  2. Refer to the Fault Inputs and Fault Protection.
  3. Refer to the Fault Mode.
  4. Refer to the Fault Output.
  5. Refer to the Low-power Tamper Detection and Anti-Tampering and SYS_GPBRx.
  6. Refer to the Fault Mode.
  7. Refer to the PWM_ETRGn.
  8. Refer to the PWM External Trigger Mode.
  9. Refer to the Conversion Triggers and AFEC_MR.
  10. Refer to the Temperature Sensor.
  11. Refer to the Waveform Generation.
  12. Refer to the PWM_CMPVn and PWM Event Lines.
  13. Refer to the DACC_TRIGR.
  14. Refer to the PWM Comparison Units and PWM Event Lines.
  15. Refer to the Parallel Capture Mode.
  16. Refer to the Comparator.
  17. Refer to the Synchronization with PWM.
  18. Refer to the DMA Controller (XDMAC).