AnsweredAssumed Answered

AD5422+stm32

Question asked by Natali on Nov 23, 2011
Latest reply on Dec 5, 2011 by AndyR

Help me please. may be i don't see something in apNote but  i don't understand how to work with ad5422.

The listing of my programm is only:

while (1)
{
GPIOB->BRR=1<<7;
GPIOB->BSRR=1<<8;
GPIOB->BRR=1<<9;

 

GPIOB->BRR=1<<8;  //clr latch
temp=WriteToAD5422(0x560001);
GPIOB->BSRR=1<<8;      //set latch
Delay();
GPIOB->BRR=1<<8;      //clr latch

 

GPIOB->BRR=1<<8;  //clr latch
temp=WriteToAD5422(0x011003);
GPIOB->BSRR=1<<8;      //set latch
Delay();
GPIOB->BRR=1<<8;      //clr latch

 

GPIOB->BRR=1<<8;  //clr latch
temp=WriteToAD5422(0x020001);
Init_TMR(TIM2, 180);
Delay();
GPIOB->BSRR=1<<8;      //set latch
Delay();
GPIOB->BRR=1<<8;      //clr latch

 


GPIOB->BRR=1<<8;      //clr latch
temp=WriteToAD5422(0x00);
GPIOB->BSRR=1<<8;      //set latch
Delay();
GPIOB->BRR=1<<8;      //clr latch

}

but I get in temp 0x01000000,0x03000000, 0x01000000 and 0x00 respectively. What is wrong? where have I find the error?

Outcomes