iLLD_TC27xC
1.0
|
![]() |
DTS gives the die-temperature result which will decoded to standard temperature value. Minimum first two temperature results are to be ignored to get reliable temperature.
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:
See also How to define Interrupts?
Define priorities for the Interrrupt handler. This is normally done in the Ifx_IntPrioDef.h file:
Add the interrupt service routine to your C code which should do the error flag handling:
Finally install the interrupt handler in your initialisation function:
The module initialisation can be done in the same function:
Now, DTS is initialised for starting temperature measurements:
Whenever the interrupt handler is called, a new measurment result is available and could be processed further (e.g. for statistical analysis).
If no interrupt routine should be used, a new measurement result can be requested the following way:
Alternatively (and this is the normal usage), the DTS could be periodically started from a timer routine, e.g. each mS. The conversion itself takes 100 uS maximum.
Following function returns the actual temperature in Celsius: