Implementation
The Interrupt Service Routines (ISR)
For capturing of PWM signals with the CCU6 module, two ISRs are required:
›
CCU6_ICU_Period_Match_Int_Handler()
- Interrupt on every period
match, used for counting the timer overflows
›
CCU6_ICU_Rising_Edge_Int_Handler()
- Interrupt on every rising edge
at the input pin of capture/compare channel 0, used to calculate
–
the time between two rising edges and the PWM frequency
–
the time between a rising edge and the falling edge and the PWM duty
cycle
The method implementing each ISR needs to be assigned a
priority
and a
CPU core
responsible for its execution. This is done with the macro
IFX_INTERRUPT(isr, vectabNum, priority)
.
8
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.