Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 14309

BOOSTXL-DRV8320RS: Unable to run motor on site 2 - LAUNCHXL-280049C

$
0
0

Part Number:BOOSTXL-DRV8320RS

Hi,

I am working on dual motor control using BOOSTXL-DRV8320RS and able to run all exercises on the motor on site 1. However, when I attempt the LAB11 exercise, I am able to run only the motor connected to site1.

I have interchanged the Booster packs and the motors and still able to work with the motor on site 1. The LED D5 on both glows. This means that the booster packs are fine.

The jumper settings for using both sites are according to the EVM user guide, SPRUIJ3.pdf, page 10.

The motorVals[1].faultNow.all = 0. But when I  compare values of drvSPI8320Vars[0] and drvSPI8320Vars[1], all the fault bits are set are the site 2 booster pack. This happens at line 412 in is11_dual_motor.c

// initialize the DRV8320 interface
HAL_setupDRVSPI(halMtrHandle[ctrlNum], &drvSPI8320Vars[ctrlNum]);

which calls DRV8320_setupSPI() and the  drvDataNew value is always 4095 compared to 0 in case of SPI set-up for site 1.

// Read registers for default values
// Read Status Register 0
drvRegAddr = DRV8320_ADDRESS_STATUS_0;
drvDataNew = DRV8320_readSPI(handle, drvRegAddr);
drv8320SPIVars->Stat_Reg_00.VDS_LC = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_LC_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.VDS_HC = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_HC_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.VDS_LB = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_LB_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.VDS_HB = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_HB_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.VDS_LA = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_LA_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.VDS_HA = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_HA_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.OTSD = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_OTSD_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.UVLO = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_UVLO_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.GDF = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_GDF_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.VDS_OCP = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_VDS_OCP_BITS)?1:0;
drv8320SPIVars->Stat_Reg_00.FAULT = (bool)(drvDataNew & (uint16_t)DRV8320_STATUS00_FAULT_BITS)?1:0;

When I probe the SDO pins of both Booster packs, there is no data on the second. Why could this be happening? 

This results in gate signals from the m/c not reaching the legs.

How can I fix this problem?

Thanks in advance.


Viewing all articles
Browse latest Browse all 14309

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>