TIDUF17 November 2022 TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1
The current through the motor is sampled by the microcontroller as part of the motor control algorithm during every PWM cycle. To measure bidirectional currents of the motor phase, that is, positive and negative currents, the circuits below require a reference voltage of 1.65-V. This offset reference voltage is created by a voltage follower as shown in Figure 2-17. This 1.65-V reference voltage is used to both three-shunt and single-shunt AC voltage feedback sensing circuit.
Figure 2-18 shows how the motor current is represented as a voltage signal, with filtering, amplification, and offset to the center of the ADC input range. This circuit is used for each phase of the 3-phase PMSM of compressor and fan. The transfer function of this circuit is given by Equation 29.
Where Rshunt=0.005(OHM) and Voffset=1.65(V)
The calculated resistance values lead to the sensing circuit shown in Figure 2-18, the Gi is given by Equation 30.
The maximum peak to peak current measurable by the microcontroller is given by Equation 31.
which is the peak to peak value of ±33A. The following code snippet shows how this is defined for compressor motor in user_mtr1.h file:
//! \brief Defines the maximum current at the AD converter
//!
#define USER_M1_ADC_FULL_SCALE_CURRENT_A (66.00f)
Correct polarity of the current feedback is also important so that the microcontroller has an accurate current measurement. In this hardware board configuration, the negative pin of the shunt resistor, which is connected to ground, is also connected to the non-inverting pin of the operational amplifier.