[SOLVED] AD9850 Phase with control word

Status
Not open for further replies.

paulfjujo

Advanced Member level 4
Joined
Jun 9, 2008
Messages
1,469
Helped
298
Reputation
596
Reaction score
286
Trophy points
1,363
Location
France 01800
paulfjujo.free.fr
Activity points
10,644
hello,


The datasheet of AD9850 show only any possible values of the control word to
change the phase shift of sinus output.
0x01 180°
0x02 90°
0x04 45°
0x14 60°
0x1A 120°

are they the only possibilities , because i don't understand the rules :
the relation ship between bits value and shift phase.

example : what is the value for 30° ?

if someone knows it , please share your information ?
 

Solution is proposed in the post : DDS AD9850 and reset

Code:
  case 'P':  // dephasage AD9850
         {  
           Dephasage++;
           if (Dephasage >31) Dephasage=0;
           Ad9850_Control= (Byte)(Dephasage <<3) ;
           F1=(float)Dephasage * 11.25;
           fltToa (F1,txt,1);
           k=fprintf(_H_USART,"  Ad9850_Control = %02X output SINUS AD9850 %s ° \r", Ad9850_Control,txt);
           AD9850_Charge_Freq(Freq_AD9850);
           Tempo(10000L);
           Raz_Receipt();     
           break; 
         } // case P
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…