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

DRV 91680application, current testing should be how to set

$
0
0

(Please visit the site to view this file)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.


Viewing all articles
Browse latest Browse all 13274

Trending Articles