Post Go back to editing

ADAR1000 Daisy Chain Issue

Hi,

I have 2x ADAR1000s and would like to daisy chain them together.

The ADAR1000 is controlled using and Arduino. The Arduino is programmed using MATLAB. The arduino is connected to boards 1's P1 pins. 

Board 1's P2 connector is connected to Board 2's P1 connector. 

I have also connected Position 4 to Position 6 of the P10 pinout.

My MATLAB script is the following:

%% Board 1
a = arduino();

ADAR1000 = device(a, 'SPIChipSelectPin', 'D10');

writeRead(ADAR1000, [0x00 0x00 0x81]) % Reset

writeRead(ADAR1000, [0x00 0x00 0x18]) % SPI Open

writeRead(ADAR1000, [0x00 0x38 0x60]) % VGA BIAS 2

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

writeRead(ADAR1000, [0x00 0x2F 0x7F]) % Tx Bias

writeRead(ADAR1000, [0x00 0x36 0x16])

writeRead(ADAR1000, [0x00 0x37 0x06])

writeRead(ADAR1000, [0x00 0x31 0x42]) % Current On

%% TX1
writeRead(ADAR1000, [0x00 0x1C 157]) % Gain

writeRead(ADAR1000, [0x00 0x20 0x3F]) % I

writeRead(ADAR1000, [0x00 0x21 0x20]) % Q

%% Board 2

writeRead(ADAR1000, [0x20 0x00 0x18]) % SPI Open

writeRead(ADAR1000, [0x20 0x38 0x60]) % VGA BIAS 2

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

writeRead(ADAR1000, [0x20 0x2F 0x7F]) % Tx Bias

writeRead(ADAR1000, [0x20 0x36 0x16])

writeRead(ADAR1000, [0x20 0x37 0x06])

writeRead(ADAR1000, [0x20 0x31 0x42]) % Current On

%% TX1
writeRead(ADAR1000, [0x20 0x1C 157]) % Gain

writeRead(ADAR1000, [0x20 0x20 0x3F]) % I

writeRead(ADAR1000, [0x20 0x21 0x20]) % Q

I have tried to address each board independently and can confirm that the addresses 0x00 and 0x20 are working.  

However when I run the above script only one board seems to work. Is there anything I am missing?

Many thanks,

Zain

Parents Reply Children
No Data