Implementation
Configuring the CCU6 Input Capture Unit
To properly configure the CCU6 module for capturing a PWM signal, the module itself
and one of its channels need to be configured.
For the configuration of the module, the following steps are required:
›
An instance of the structure IfxCcu6_Icu_Config needs to be created and default
values are assigned to the configuration with the function
IfxCcu6_Icu_initModuleConfig()
›
For capturing a PWM signal, no changes to the default configuration are required,
therefore the module can be initialized with the default configuration by calling the
function IfxCcu6_Icu_initModule()
›
After the successful initialization of the CCU6 module, its handle structure
(IfxCcu6_Icu) contains the configured capture frequency of the timer. For further
usage, this parameter is stored in the global variable
g_CCU6captureFrequency_Hz.
All used functions and structures can be found in the iLLD header IfxCcu6_Icu.h.
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.
5
Need help?
Do you have a question about the CCU6 PWM Capture 1 and is the answer not in the manual?
Questions and answers