i use 0.0005Ohm , the motor cannot drive.
The sampled current value captured by freemaster is attached.
when i use the 0.002Ohm resistor, the motor can drive.
what is the reason?
Solved! Go to Solution.
Hello NoahXu,
The principles for Shunt selection are nicely described in application note AN5207: Hardware Design Guidelines for S12ZVM. See chapters 7.5 and 7.6 (pages 34~38).
The shunt ressitance must be selected wisely and in considering to following input circuit.
Too high shunt resistance will consume too much energy while too small shunt resistance will not generate enough voltage to overcome the noise.
Unfotunately you didn't specified how you changed the scale in your project. When you change the shunt, you have to recalculate the HW scales.
In MCAT -> Parameters tab is "I max" parameter, that refers to theoretical current that causes 5V at ADC input.
So, if you use shunt with 4-times smaller resistance and simultaneously you do not change the attenuation of the current amplifier, you need to set the I max 4 - times higher.
For example:
The hardware scale is not updated run-time, therefore you have to generate new static configuration file, build project again and flash into MCU.
For that click on "Store Data" button (picture above), followed by "Generate Configuration File":
I hope it helps you.
Best regards
RadekS
Just note: The attached FreeMASTER screeshot shows the speed and not the currents.
Hello NoahXu,
The principles for Shunt selection are nicely described in application note AN5207: Hardware Design Guidelines for S12ZVM. See chapters 7.5 and 7.6 (pages 34~38).
The shunt ressitance must be selected wisely and in considering to following input circuit.
Too high shunt resistance will consume too much energy while too small shunt resistance will not generate enough voltage to overcome the noise.
Unfotunately you didn't specified how you changed the scale in your project. When you change the shunt, you have to recalculate the HW scales.
In MCAT -> Parameters tab is "I max" parameter, that refers to theoretical current that causes 5V at ADC input.
So, if you use shunt with 4-times smaller resistance and simultaneously you do not change the attenuation of the current amplifier, you need to set the I max 4 - times higher.
For example:
The hardware scale is not updated run-time, therefore you have to generate new static configuration file, build project again and flash into MCU.
For that click on "Store Data" button (picture above), followed by "Generate Configuration File":
I hope it helps you.
Best regards
RadekS
Hi, Radek
thanks for your remind, but i already took the scales into consideration.
in the cotrol algrithom, i arealdy changed the I_max value from 62.5 A to 250A.(you can calculate the gain and offset according to my circuit.)
now the problem is when use the 0.002Ohm resistor the motor can run while the 0.0005Ohm resistor cannot run.
is that related to the filtering capacitors i set here?
Hello NoahXu,
I am still quite confused by the combination of your posts.
In the FreeMASTER thread, you wrote that you use S12ZVM RDB EWP design that has 10mOhm shunt.
In the thread related to shunt filter https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-choose-the-shunt-capacitor-value-of-... you show an amplifier input circle completely different than the circuit in this thread.
Could you please specify exactly on what board (schematic) you are working?
Anyway, both schematics are incorrect.
In case of schematic here:
as an example of correct minimum circuit scheme I can use here the EWP design where I am talking about missing R14 in your design (just ignore the values)
In the case of schematic on thread https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-choose-the-shunt-capacitor-value-of-...
Hi, Radek
the schematics post in this thread is what i designed. for designs attached in other thread is what i referenced.
1) seems i missed the resistor in the divider. thanks for your remind.
2) divider resistor value , you mean it is to too big so the current will be too small?
3)VDDX as divider source, good suggestion. voltage follower, good suggesion.
4)resistor tolerance, i will change to smaller ones like 0.1% to check.
5)R38 R39 , it is used to calc the dc line current. it is a integral circuit.
6)R26 R28 , for one application which need different voltage bias.
at last,thanks for your review.