Description: 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--
}
}
To Search:
File list (Check if you may need any files):
AD9850_1_刘远.c