2020-04-26 06:32 AM
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:
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