AnsweredAssumed Answered

Multi-tone AD9911

Question asked by Wilken on May 25, 2011
Latest reply on May 26, 2011 by Wilken

Hi all!

I'm trying to make my DDS output frequencies at all channels. But I can only output frequencies en CH1?

Have i forgot something?

the code below is what I have implemented in my MCU

the CSRbyte changes with channel selection

 

SPDR = CSR;       // writing to CSR register
while (!(SPSR & (1<<7)));           // wait until finished
    SPDR = CSRbyte;                     // write CSRbyte
   while (!(SPSR & (1<<7)));           // wait until finished
SPDR = CTW0;      // Write to channel frequency tuning word
while (!(SPSR & (1<<7)));           // wait until finished  
   SPDR = FTW >> 24;                 // write fourth byte
   while (!(SPSR & (1<<7)));           // wait until finished
SPDR = FTW >> 16;                 // write third byte
   while (!(SPSR & (1<<7)));           // wait until finished
SPDR = FTW >> 8;                 // write second byte
   while (!(SPSR & (1<<7)));           // wait until finished
SPDR = FTW;                   // write first byte

 

I hope someone can help me.

 

-Wilken

Outcomes