Hellow! I have problem with AD4020 ADC. I use it with STM32F407 control, and it's don't answer? What i do wrong?
My code for STM32
SPI1->CR1 = (0<<0)| //CPHA
(0<<1)| //CPOL
(1<<2)| //MSTR
(5<<3)| //Baund rate
(0<<6)| //SPI Enable
(0<<7)| //LSV first
(1<<8)| //SSI
(1<<9)| //soft CS
(0<<10)| // Full duplex
(1<<11)| // 16 bit
(0<<12)| // CRC data phase
(0<<13)| // CRC disable
(0<<14)| // 3 wire setup
(0<<15); // 4/3 wire setup
while(SPI_I2S_GetFlagStatus(SPI1,SPI_I2S_FLAG_TXE)!= SET) {};
SPI_I2S_SendData(SPI1,0x54FF);
while(SPI_I2S_GetFlagStatus(SPI1,SPI_I2S_FLAG_TXE)!= SET) {};
SPI_I2S_SendData(SPI1,0xFFFF);
Adding tags for internal tracking purposes
[edited by: tschmitt at 1:44 PM (GMT 0) on 24 Feb 2020]