文件名称:AD985
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 孙*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
AD9850单片机使用程序,AD9850是AD公司生产的最高时钟为125 MHz、采用先进的CMOS技术的直接频率合成器,主要由可编程DDS系统、高性能模数变换器(DAC)和高速比较器3部分构成,能实现全数字编程控制的频率合成。
-include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
long uint Frequency_Out
double Con_Word_1 = 0x00
double Con_Word_2 = 0x00
long uint ConTrol_Word = 0x00 //根据设置的频率换算成将要送入AD9850中的整数量;
uchar dingshiqilideshijianbianliang = 0x00
uchar keyzhi = 0x00
uchar AnJianCiShuBiangLiang = 0x00
long uint SheZhiZhongYaoXianShiDeShuJu = 0x00
long uint Out_Signal_Max = 3000000
uchar lianjiabiaozhi = 0x00 lianjianbiaozhi = 0x00
sbit Light = P1^0 //程序状态指示灯,它与单片机对9850控制无关,只是调程序的时候使用!
sbit reset = P1^2 //ad9850 reset
sbit w_clk = P1^4 // ad9850 w_clk
sbit fqud = P1^3 //ad9850 fqud
delay(long int n)
{
while(n!=0)
{
n--
}
}
-include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
long uint Frequency_Out
double Con_Word_1 = 0x00
double Con_Word_2 = 0x00
long uint ConTrol_Word = 0x00 //根据设置的频率换算成将要送入AD9850中的整数量;
uchar dingshiqilideshijianbianliang = 0x00
uchar keyzhi = 0x00
uchar AnJianCiShuBiangLiang = 0x00
long uint SheZhiZhongYaoXianShiDeShuJu = 0x00
long uint Out_Signal_Max = 3000000
uchar lianjiabiaozhi = 0x00 lianjianbiaozhi = 0x00
sbit Light = P1^0 //程序状态指示灯,它与单片机对9850控制无关,只是调程序的时候使用!
sbit reset = P1^2 //ad9850 reset
sbit w_clk = P1^4 // ad9850 w_clk
sbit fqud = P1^3 //ad9850 fqud
delay(long int n)
{
while(n!=0)
{
n--
}
}
相关搜索: AD985
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AD9850_1_刘远.c