element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Forum Problema con AD9833 /Problem with AD9833
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 358 subscribers
  • Views 181 views
  • Users 0 members are here
  • dds
  • ad9833
Related

Problema con AD9833 /Problem with AD9833

Former Member
Former Member over 10 years ago

Hola a todos,

 

Estoy tratando de controlar el DDS AD9833 con un dspic33f. Según el datasheet ( http://www.google.es/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCQQFjAB&url=http%3A%2F%2Fwww.analog.c… ) se debe realizar una  inicialización para luego poder controlar la frecuencia. El problema es que al realizar el reset en la secuencia de inicialización comienza a generar una frecuencia a la salida (incluso antes de borrar el bit de reset) que luego no puedo cambiar por lo que sospecho que puede ser un problema de inicialización.

 

El código de la inicialización es el siguiente:

 

Hi all,

 

I am trying to control AD9833 with dspic33f. Datasheet ( http://www.google.es/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCQQFjAB&url=http%3A%2F%2Fwww.analog.c… ) says an inicialization is needed to control the output. my problem is that after reset in the inicializaction process the AD9833 starts to generate an signal (even before erase reset bit) and later i can't change its frequency soy i susspect is an inicialization process

 

My code for  inicializacion is:

 


unsigned char AD9833_Init(short modulo){

 

        EscribeCMD(0x2100);            // D28=1 / RESET=1

        EscribeCMD(0x2000);

      

    return (1);

}

 

donde

where,

 

void EscribeCMD(unsigned short modulo, int cmd){

    unsigned short i=0;

    int aux=0;

   

    FSYNC=0;

   

    for(i=0;i<16;i++){

        aux=(cmd&(0x8000>>i))>>(15-i);

        SDATA=aux;

        __delay_us(1);

        SCLK=0;

        __delay_us(5);

        SCLK=1;

    }

 

   SDATA=1;

    SCLK=1;

    FSYNC=1;

 

    return;

}

 

y el resultado producido en el osciloscopio para el comando de reset (0x2100) parece correcto

 

this is de output for the reset command, it seems to be OK

scope_0.png

 

¿Alguna idea?

Gracias.

 

Any idea? Thanks

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube