• 大小: 1.81MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-28
  • 语言: 其他
  • 标签: AD9852  原理图  

资源简介

AD9852的硬件设计原理图及51程序,因为在网上很难找到这样全的资料所以要的积分比较高,但绝对是物有所值

资源截图

代码片段和文件信息

#include 
/*****************写地址,写数据**************************/
void Write_AD9852(unsigned char ADDRunsigned char WRdata)

   ad9852A_Ctrl =ADDR;
   ad9852_D=WRdata;
   ddsWR=0;
   ddsWR=1;
}

/**********************工作模式选择***********************/
void WR_AD9852Mode(unsigned char M_ctrl)
{   
   Write_AD9852(0x1F0x01|(M_ctrl<<1));
}
/**********************DDS初使化************************/
/*void ddsInit(void)

  
   unsigned char i;
   Pmode=1;
   for(i=45;i>0;i--); 
   ddsRST=0;
   for(i=45;i>0;i--); 
   ddsRST=1;
   for(i=45;i>0;i--); 
   ddsRST=0;
   ddsWR=1;
   Write_AD9852(0x1e0x44);
   Updata(FWordPWordAWord);
   Write_AD9852(0x200x60);
   Write_AD9852(0x210xff);
   Write_AD9852(0x220xff);
   Write_AD9852(0x1f0x00);
   udclock=0;
  } */
void Updata(unsigned char *FWordunsigned char *PWordunsigned char *AWord)
{
 Write_AD9852(0x04FWord[0]);
 Write_AD9852(0x05FWord[1]);
 Write_AD9852(0x06FWord[2]);
 Write_AD9852(0x07FWord[3]);
 Write_AD9852(0x08FWord[4]);
 Write_AD9852(0x09FWord[5]);
 Write_AD9852(0x00PWord[0]);
 Write_AD9852(0x01PWord[1]);
 Write_AD9852(0x21AWord[0]);
 Write_AD9852(0x22AWord[1]);
}
void configword(unsigned long value1unsigned int Pvalueunsigned int Avalueunsigned char *FWordunsigned char *AWordunsigned char *PWord)

  *(FWord+1)=value1>>16;
  *FWord=value1>>24;
  *(FWord+3)=value1;
  *(FWord+2)=value1>>8;
  *(PWord+1)=Pvalue;
  *PWord=Pvalue>>8;
  *(AWord+1)=Avalue;
  *AWord=Avalue>>8; 

 }

void single_tone(unsigned char *FWordunsigned char *AWordunsigned char *PWord)
{  
   init();
   Write_AD9852(0x1e0x44);
   Updata(FWordPWordAWord);
   Write_AD9852(0x200x60);
   Write_AD9852(0x260x0f);
   Write_AD9852(0x270x00);
   Write_AD9852(0x1f0x00);
   Write_AD9852(0x1d0x00);
   udclock=0;
  }

void init(void)
{
   unsigned char i;
   Pmode=1;
   for(i=15;i>0;i--); 
   ddsRST=0;
   for(i=15;i>0;i--); 
   ddsRST=1;
   for(i=15;i>0;i--); 
   ddsRST=0;
   ddsWR=1;
}

void Write_word(unsigned char addressunsigned char nunsigned char *FWord)
{
unsigned char i;
for(i=0;iWrite_AD9852(address+i*FWord++);
}/*
void fm(unsigned int value1unsigned int value2unsigned char *FWord)
{
  FWord[1]=value1;
  FWord[0]=value1>>8;
  FWord[3]=value2;
  FWord[2]=value2>>8;
  Write_AD9852(0x04FWord[0]);
  Write_AD9852(0x05FWord[1]);
  Write_AD9852(0x06FWord[2]);
  Write_AD9852(0x07FWord[3]);
  Write_AD9852(0x080);
  Write_AD9852(0x090);
}
void am( unsigned int Avalue)
{
Write_AD9852(0x21Avalue>>4);
 Write_AD9852(0x22Avalue);
}
void fm_init(unsigned char *FWord2unsigned char *FWord3unsigned char *FWord4)

init();
Write_AD9852(0x1e0x44);
Write_word(0x046FWord2);
Write_word(0x0a6FWord3);

Write_AD9852(0x1a0x00);
Write_AD9852(0x1b0x01);
Write_AD9852(0x1c0x73);
Write_word(0x106FWord4);
Write_AD9852(0x210xff);
Write_AD9852(0x220xff);
Write_AD9852(0x1f0x24)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4266  2009-08-25 23:44  AD9852整合\ad98522.c

     文件      24830  2009-12-06 23:14  AD9852整合\ad9852h.M51

     文件      50661  2009-12-06 23:16  AD9852整合\ad9852h.plg

     文件        748  2009-12-06 22:27  AD9852整合\init.c

     文件       1018  2009-12-06 22:59  AD9852整合\key.c

     文件       2052  2009-12-06 23:04  AD9852整合\lcd.c

     文件       1532  2009-12-06 22:44  AD9852整合\lcdconfig.c

     文件       2657  2009-12-06 23:12  AD9852整合\main.c

     文件       2274  2009-12-06 22:40  AD9852整合\main.h

     文件       1973  2009-08-25 23:18  AD9852整合\max262.c

     文件       4622  2009-08-26 03:14  AD9852整合\max262.LST

     文件       8710  2009-08-26 03:14  AD9852整合\max262.OBJ

     文件       6376  2005-03-22 15:22  AD9852整合\STARTUP.A51

     文件      14048  2009-12-06 23:14  AD9852整合\STARTUP.LST

     文件        114  2009-12-06 23:14  AD9852整合\ad9852h.lnp

     文件       7974  2009-12-06 22:20  AD9852整合\ad98522.LST

     文件      11520  2009-12-06 22:20  AD9852整合\ad98522.OBJ

     文件     750615  2007-07-19 16:22  AD9852整合\AD9852\硬件设计\sch\AD9852.pdf

     文件       3703  2007-07-19 16:21  AD9852整合\AD9852\测试程序\AD9852_TEST.C

     文件     269944  2007-08-06 19:42  AD9852整合\AD9852\PDF\利用单片机和CPLD实现直接数字频率合成.pdf

     文件    1682074  2005-05-19 09:26  AD9852整合\AD9852\DATASHEET\AD9852_300M.pdf

     文件      60345  2005-06-08 08:27  AD9852整合\AD9852\DATASHEET\MC100LVEL16.pdf

     文件        749  2009-12-06 23:14  AD9852整合\STARTUP.OBJ

     文件       1879  2009-12-06 23:14  AD9852整合\init.LST

     文件       4899  2009-12-06 23:14  AD9852整合\init.OBJ

     文件       2754  2009-12-06 23:14  AD9852整合\key.LST

     文件       4876  2009-12-06 23:14  AD9852整合\key.OBJ

     文件       5336  2009-12-06 23:14  AD9852整合\main.LST

     文件       8559  2009-12-06 23:14  AD9852整合\main.OBJ

     文件       4105  2009-12-06 23:14  AD9852整合\lcd.LST

............此处省略18个文件信息

评论

共有 条评论