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.

DRV8301 SPI Write seems not to update registers

Other Parts Discussed in Thread: DRV8301

I seem to be having issues updating the control registers in my DRV8301.

First reads on the registers: Status 1=0, Status 2=1, Control 1=0, Control 2=0.

I then send the command word 0x1013 to the DRV.  Reading back returns the same as the defaults, as if nothing had been written.

The values of my initial read appear to be correct, based on my reading of what the EN_GATE active initial settings would be.  

The WRITE bit is low, the address 0x02 appears correct, so I don't understand why I keep seeing the default values.

Anyone have any idea what would cause this?

Ed Averill

*edit* My SPI setup call:

	retVal = USCI_A_SPI_masterInit(SPI_BASE,
	        USCI_A_SPI_CLOCKSOURCE_SMCLK,
	        UCS_getSMCLK(),
	        12500000 / 8,
	        USCI_A_SPI_MSB_FIRST,
	        USCI_A_SPI_PHASE_DATA_CHANGED_ONFIRST_CAPTURED_ON_NEXT,         // Works for DRV board
	        USCI_A_SPI_CLOCKPOLARITY_INACTIVITY_LOW
		);