cancel
Showing results for 
Search instead for 
Did you mean: 

SPI interface AD9484 (STM32F765NI)

MikeS1
Associate

Hello,

we are new on this products.

The connection is between stm32f765ni mcu to the AD9484 device under Half-Duplex spi communication.

From the datasheet what we understand is the following procedure:

HW:

  1. First Bit: MSB
  2. Data Size: 16 Bits
  3. Baud RAte: 27.0 MBits/s
  4. CPOL: High
  5. CPHA: 1 Edge

The code msg:

typedef union {

struct {

uint16_t r_w : 1;

uint16_t w0_w1 : 2;

uint16_t address : 8;

uint16_t data : 5;

} parts;

uint16_t whole;

} Ad9484_st;

1. Set message:

msg.parts.r_w = 1; //read

msg.parts.w0_w1 = 0;

msg.parts.address = 0x01; //device id

msg.parts.data = 0x00;

2. swap the message 3. Transmite the requested msg ( infinite time ) ( CSB in low )

4.No Timeout /Delay

5. Receiving the requested data from the device (100 mili ) (CSB is low )

We doesn't get any information from the device.

What we are going wrong ?

 best regards,

es

0 REPLIES 0