s12ZVM single resistor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s12ZVM single resistor

464 Views
zhouqicheng
Contributor I

 

Hello, the code in the official program of s12ZVM single resistor

#Define I_ PH_ Over FRAC16 (0.933333333333)

#Define TEMP_ Over FRAC16 (0.170489770614)

What does this current and temperature actually represent? How to convert? Do you have any relevant program introduction documents

0 Kudos
1 Reply

454 Views
tomasfedor
NXP Employee
NXP Employee

Hi Zhouqicheng, 

In order to explain it I will use files form S12ZVM PMSM Development Kit sw

https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/magniv-and-s12-solu...

I_PH_OVER and TEMP_OVER are located in PMSM_appconfig.h generated by MCAT tool. 

MTRCKTSPNZVM128\sw\AN5327_SW_CW10\FreeMASTER_control\AN5327_PMSM_FOC_Sensorless_SingleShunt.pmp

Values are scaled in FRAC16 format since fraction arithmetic is used. 

in case of S12ZVM PMSM Development Kit sw:

#define I_PH_OVER FRAC16(0.4650000000)
#define TEMP_OVER FRAC16(0.1704897706)

in order to get physical value we need to apply scales

I_PH_OVER * I max = 0.465 * 20 = 9.3A

TEMP_OVER* Temp max = 0.1704897706 * 645.2 = 110 deg C

tomasfedor_0-1687858475373.png

for more information I recommend application note AN5327. 

Best regards, 

Tomas Fedor.

 

0 Kudos