This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: CCS5.1

Other Parts Discussed in Thread: DRV91680

Tool/software: Code Composer Studio

Problem consultation

91680  application, current testing should be how to set?

According to figure 23,   Procedures are set as follows: 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

   data01=SPI_Read(DRV91680_Reg08);         //DSAGain[0.1]=00,   DAC2DSAInput ,D7=1;

   SPI_Write(DRV91680_Reg08 , ((data01 && 0x78)  || 0x87)) ; // DSARefSel Addr8 D2=1,

 

   data01=SPI_Read(DRV91680_Reg07);          //DSAShortInput=0   Addr=7, d6

  SPI_Write(DRV91680_Reg07 , (data01 && 0xFF)) ;  

 

   //RdsonSel[1:0]=00; ADDR=04, D0\D1=00

   data01=SPI_Read(DRV91680_Reg04);

SPI_Write(DRV91680_Reg04, (data01 && 0xFC)) ;

 

  data01= SPI_Read(DRV91680_Reg0E);

   SPI_Write(DRV91680_Reg0E , ((data01 && 0x0F)| 0xE0)) ;

    //--------------------------------------------------------

  data01= SPI_Read(DRV91680_Reg04) ;     //READ  Electric current value

    while((data01 & 0x80)==0x00 )

    {

    data01= SPI_Read(DRV91680_Reg04) ;

    }

    data01= SPI_Read(DRV91680_Reg10) ;

   data01= ((data01 << 2) & 0x0300)  ;

    data01 |=SPI_Read(DRV91680_Reg0F) ; 

    Electriccurrent_ADC = data01;           //Electric current DATA

 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

The original program is the operation of the motor, add this paragraph of code, the actual operation, the motor does not move. Somehow?   Is there a wrong setting, or does it affect the operation of the motor?

How to set up effectively, please help to give answers.

When the motor is running, the current is 0~100A.