文件名称:AD985
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.