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

DRV8323R: DRV8323 CSA_GAIN Not Updating – Always Reads as Gain_5VpV

$
0
0
Part Number: DRV8323R
Other Parts Discussed in Thread: DRV8323

Tool/software:

Hi,

I have a code snippet (adapted from Lab 2b) that should configure the DRV8323 as follows:

//this section is readapted from the lab2b for the DRV8323
gDrvSpi8323Vars[mtrNum].Ctrl_Reg_06.CSA_GAIN = Gain_20VpV;
gDrvSpi8323Vars[mtrNum].Ctrl_Reg_06.VREF_DIV = 1;
gDrvSpi8323Vars[mtrNum].WriteCmd = true;
HAL_writeDrvData(halHandleMtr[mtrNum],&gDrvSpi8323Vars[mtrNum]);
gDrvSpi8323Vars[mtrNum].ReadCmd = true;
HAL_readDrvData(halHandleMtr[mtrNum],&gDrvSpi8323Vars[mtrNum]);

In theory, this should set CSA_GAIN to Gain_20VpV.
However, when I read the register back (through the debugger), it always shows Gain_5VpV.

Am I missing something?

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>