SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
An important hardware configuration choice is the number of shunt resistors to use. This number is ultimately used by the Clarke transform to convert from a three-phase system to a two-phase system. Three shunt resistors are used if all of the phases have a shunt resistor from the bottom transistor to ground as shown in Figure 6-10.
If this configuration is present, the user should define three shunt resistors in the software for best results. The following code example shows how to configure the software to use three shunt resistors:
//! \brief Defines the number of current sensors used
#define USER_NUM_CURRENT_SENSORS (3)
If the hardware has two shunt resistors to measure the currents, the software must be configured for only two shunt resistors as follows:
//! \brief Defines the number of current sensors used
#define USER_NUM_CURRENT_SENSORS (2)
For more details about shunt resistor measurement requirements of InstaSPIN, see Section 18.