Hi,
I have a problem with reading data from adis16260. I have read the instruction and based on that have written small piece of code to read product number:
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET); //set CS low
spiTxBuff[0]=0x00; //output buffer set to 0x5600
spiTxBuff[1]=0x56;
HAL_SPI_Transmit(&hspi1,spiTxBuff,2,100);
DWT_Delay_us(10); //delay 10 microseconds
HAL_SPI_Receive(&hspi1,spiRxBuff,2,100); //reading data from spiRxBuff
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_SET); //bring CS high
as a result I get 0x3F00 instead of 0x3F84.
Do I have to set values in some of other registers (GLOB_CMD,MSC_CTRL...) before reading data?
Thanks in advance.
Pedja