![Infineon iMOTION EVAL-IMM101T Series Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/infineon/imotion-eval-imm101t-series/imotion-eval-imm101t-series_user-manual_2055179020.webp)
20 of 38
EVAL-IMM101T
Smart IPM evaluation board application note
Thermal Protection
7
Thermal Protection
The IMM101T devices feature an integrated temperature sensor which allows to monitor the internal
temperature of the module. The device temperature can be accessed using both MCEDesigner and the script
enginelanguage. The particular register name for this functionality is InternalTemp and the register value is
already in Kelvin [K].
In order to enable the over-temperature protection for the EVAL-IMM101T Starter Kit, a corresponding script file
(.mcs) has been pre-loaded into the IMM101T IC mounted on the EVAL-IMM101T Starter kit, together with the
latest IMM101T Software Package (v1.2.1 at the time of the release). The script function needs to be enabled in
the MCEWizard Options page during the system setup, otherwise the over-temperature protection will not be
active. In the future, the over-temperature protection will be implemented in the MCE firmware, so this script-
based protection will not be needed anymore. Please always download the latest MCE software package for
IMM101T from the Infineon website (
www.infineon.com/imotion-software
) and refer to the corresponding
iMOTION™ MCE Software Reference Manual to get the list of all supported features. Also refer to the “How to use
iMOTION™ Script Language” application note for more details about iMOTION Script functionality.
The script which is used for the over-temperature protection is shown below: the script is implemented to stop
the motor when the measured temperature reaches 80°C (shut down temperature) and to restart the motor when
the measured temperature goes below 60°C (restart temperature). Please note that the measured temperature
is the controller temperature, whereas the hottest spot of the module is on the power switches. Based on
expertimantal results, the shut down temperature set in this case (80°C measured on controller) corresponds to
the power switches temperature around 105°C.
#SET SCRIPT_USER_VERSION (1.00) /*Script version value should be 255.255*/
#SET SCRIPT_TASK0_EXECUTION_PERIOD (2) /*Script execution time for Task0
in mS, maximum value 65535*/
#SET SCRIPT_TASK1_EXECUTION_PERIOD (1) /*Script execution time for Task1
in 10mS, maximum value 65535*/
#SET SCRIPT_START_COMMAND (0x1) /* Start command, Task0 : Bit0, Task1 :
Bit1; if bit is set, script executes after init */
#SET SCRIPT_TASK0_EXECUTION_STEP (6) /* Script Task0 step, This defines
number of lines to be executed every 1mS*/
#SET SCRIPT_TASK1_EXECUTION_STEP (11) /* Script Task1 step, This defines
number of lines to be executed every 10mS*/
Script_Task0_init()
{
int t_hyst, t_shutdown, flag, temperature; /*Local variables
declaration*/
/*Local variables initialization*/
t_hyst=333; /*60°C, please insert the value in Kelvin*/
t_shutdown=353; /*80°C, please insert the value in Kelvin*/
flag=0;
temperature=0;
}