Other Parts Discussed in Thread: LAUNCHXL-F280049C, , DRV8320
1)
The default value of USER_ADC_FULL_SCALE_CURRENT_A is:
//! \brief Defines the maximum current at the AD converter
//! BOARD_BSXL8320RS_REVA, Gain=12
//#define USER_ADC_FULL_SCALE_CURRENT_A ((float32_t)(42.843))
What I do not understand about this value is that the the ADC is biased at 1.65. So at zero volts, the ADC count is 2048 and 1/2 the ADC range is used. Doesn't that mean that a full scale ADC count of 4096 would correspond to 1/2 the above USER_ADC_FULL_SCALE_CURRENT_A? In other words the full scale is actually 21.4215 Amps?
The overcurrent control is set via the motorVars.dacValH to 2048 + 1024 + 512 + 256 - this corresponds around 18.744 Amps.
2)
The reason I ask about this is that like another user, we changed the R10, R11, and R12 from 0.007 to 0.3 in order to support a low current motor. No other changes made to the TI HW.
I changed the USER_ADC_FULL_SCALE_CURRENT_A from 42.843 to 1.0
As soon as I run is02_gain_offset and set the enable flag, the overcurrent fault occurs.
I set my USER_MOTOR_MAX_CURRENT_A to 0.4 A which should be under the overcurrent fault of 0.43
3) The lab is02 description says
"For this write-up,
AdcaResultRegs.ADCRESULT0, AdcbResultRegs.ADCRESULT0, and
AdccResultRegs.ADCRESULT0 are the motor phase current sampling results; these
three values are equal to half of the maximum ADC converter value since the
reference voltage of amplification circuits is 1.65V in 3.3V systems.
AdcaResultRegs.ADCRESULT1, AdcbResultRegs.ADCRESULT1,
AdccResultRegs.ADCRESULT1 are the motor phase voltage sampling results, and
these values are near 0 since there is no voltage output on the motor phases."
In my case, before I set the enabled flag, in the debugger...
ADCRESULT0 is around 2048 (thus around 0 A)
ADCRESULT1 is around 1280 which the debugger says is around 9V - this is 1/2 my dcBus_V
The lab says this should be 0 since there is no voltage output on the motor phases?
As I mentioned above, when I set motorVars.flagEnableSys=1, overcurrent fault occurs.
What current is the lab trying to use when measuring the offset?
4)
On the LAUNCHXL-F280049C, I have removed jumper JP1,JP2,JP3, and both jumpers from JP8. The BOOSTXL-DRV8320RS is connected to an 18V power supply.
The motor I am trying to use is
1 pole pair
18V
67mA no load current
0.6A max continuous current
5A stall current