Part Number: DRV8323R
Other Parts Discussed in Thread: DRV8323
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.








