iLLD_TC27xC
1.0
|
![]() |
The ICU interface driver provides a default CCU6 configuration for capturing the input from the selected channel
User can select the various configuration options that hardware allows
In the following sections it will be described, how to integrate the driver into the application framework.
Include following header file into your C code:
Declare the ICU handle and channel handle as global variables in your C code:
See also How to define Interrupts?
Define priority for the Interrrupt handler. This is normally done in the Ifx_IntPrioDef.h file:
Add the interrupt service routine to your C code.
Finally install the interrupt handlers in your initialisation function:
The module can be initialised in two ways, as a stand alone driver or in conjunction with Timer driver The module initialisation can be done in the same function. Here an example:
The Icu is ready for use now!
The ICU driver provides simple to use Capture Control functions
This means: you can start and stop the capture process, and you can also get a time stamp at any point of time during the capture process
Start Capture
Stop Capture
Get time stamp at any point of time during the capture process (can also be used in ISR)