what is the AD8400AR1 address to pass to SPI.transfer?

Hi, all
could you tell me the address to put in SPI.transfer(address) before passing data (SPI.transfer(data)) to the digital potentiometer AD8400AR1? I read on the data sheet that both A1 and A0 must be set to 0, but how can I pass in the byte form of SPI.transfer(address)?
Thanks for the collaboration

Bruno

Address of what?

SPI communications do not use a device address, but if register addresses are needed, those will be in the data sheet.

Actually,when I interface the potentiometer MCP41010, I use the code

#include <SPI.h>
const int csPin=10;
int intensita=5;
int passo=10;

void setup() {
// put your setup code here, to run once:
pinMode (csPin,OUTPUT);
Serial.begin(9600);
SPI.begin();
}

void loop() {
// put your main code here, to run repeatedly:
digPotWrite (intensita);
Serial.println(“intensità=”);
Serial.println(intensita,DEC);
intensita = intensita + passo;
if(intensita==5||intensita==255){
passo=-passo;
}
delay(5000);
}
void digPotWrite(byte valore)
{
digitalWrite (csPin,LOW);
SPI.transfer(B00010001);
SPI.transfer(valore);
digitalWrite(csPin,HIGH);
}

and it works. Now I’m interfacing the digital potentiometer AD8400ARZ1 with same number and kind of pins, but I don’t know what to write in place of B00010001.
Can someone help me?

Thanks a lot

Bruno

If you have not studied the AD8400 data sheet, now is the time to do that.

Take a very close look at the data transfer/timing diagram on page 10 of the data sheet. I would not use the SPI library, and instead just write a for loop.

Thanks for the suggestion. Can you give me any example/idea of the loop? It is not exactly my field.

(Even though the component is declared SPI-compatible)

I don't know what to write in place of B00010001.

Did you try 0?

Yes, I tried.

What about your idea of writing directly a loop?
Thanks

Bruno