?? ad9850 dds控制子程序 - dds-鎖相環(huán) - radiobook dds鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸pldfpgavhdl免費(fèi)虛擬主機(jī) - powered by discuz!.htm
字號(hào):
//8<BR> 0xb7,0xaf,0x03
//9<BR>};<BR>unsigned char code
dds_word_10hz[10][2]={<BR> 0x00,0x00,
//0<BR> 0x7c,0x0a,
//1<BR> 0x14,0xf8,
//2<BR> 0x75,0x1f,
//3<BR> 0xf1,0x29,
//4<BR> 0x6d,0x34,
//5<BR> 0xea,0x3e,
//6<BR> 0x66,0x49,
//7<BR> 0xe2,0x53,
//8<BR> 0x5f,0xfe
//9<BR>};<BR>unsigned char code
dds_word_1hz[10][2]={<BR> 0x00,0x00,
//0<BR> 0x0c,0x01,
//1<BR> 0x18,0x02,
//2<BR> 0x25,0x03,
//3<BR> 0x31,0x04,
//4<BR> 0x3e,0x05,
//5<BR> 0x4a,0x06,
//6<BR> 0x57,0x07,
//7<BR> 0x63,0x08,
//8<BR> 0x6f,0x09
//9<BR>};<BR><BR>/********************************************/<BR><BR>//控制字計(jì)算<BR>void
fre2word(void){<BR> unsigned int temp1,temp2;<BR>
//計(jì)算W0的值。注意,本例DDS工作在串行方式,這里W0是指控制字低8位,請(qǐng)區(qū)別于并行方式<BR>
temp1=dds_word_1hz[fre[7]][0]+dds_word_10hz[fre[6]][0]+dds_word_100hz[fre[5]][0]+dds_word_1khz[fre[4]][0]+dds_word_10khz[fre[3]][0]+dds_word_100khz[fre[2]][0]+dds_word_1mhz[fre[1]][0]+dds_word_10mhz[fre[0]][0];<BR>
W[0]=(unsigned char)temp1;<BR> //計(jì)算W0相加時(shí)的進(jìn)位<BR>
temp2=(unsigned char)(temp1>>8);<BR><BR>
//計(jì)算W1值<BR>
temp1=dds_word_1hz[fre[7]][1]+dds_word_10hz[fre[6]][1]+dds_word_100hz[fre[5]][1]+dds_word_1khz[fre[4]][1]+dds_word_10khz[fre[3]][1]+dds_word_100khz[fre[2]][1]+dds_word_1mhz[fre[1]][1]+dds_word_10mhz[fre[0]][1]+temp2;<BR>
W[1]=(unsigned char)temp1;<BR> temp2=(unsigned
char)(temp1>>8);<BR><BR> //計(jì)算W2值<BR>
temp1=dds_word_100hz[fre[5]][2]+dds_word_1khz[fre[4]][2]+dds_word_10khz[fre[3]][2]+dds_word_100khz[fre[2]][2]+dds_word_1mhz[fre[1]][2]+dds_word_10mhz[fre[0]][2]+temp2;<BR>
W[2]=(unsigned char)temp1;<BR> temp2=(unsigned
char)(temp1>>8);<BR><BR> //計(jì)算W3值<BR>
temp1=dds_word_10khz[fre[3]][3]+dds_word_100khz[fre[2]][3]+dds_word_1mhz[fre[1]][3]+dds_word_10mhz[fre[0]][3]+temp2;<BR>
W[3]=(unsigned char)temp1;<BR>}</DIV></DIV>
<DIV></DIV></TD></TR>
<TR>
<TD class=postauthor>
<DIV class="popupmenu_popup userinfopanel" id=userinfo22_menu
style="DISPLAY: none">
<DIV class=imicons><A
href="http://wpa.qq.com/msgrd?V=1&Uin=380357473&Site=Radiobook&Menu=yes"
target=_blank><IMG alt=QQ
src="AD9850 DDS控制子程序 - DDS-鎖相環(huán) - Radiobook DDS鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸PLDFPGAVHDL免費(fèi)虛擬主機(jī) - Powered by Discuz!.files/qq.gif"></A>
</DIV>
<DL>
<DT>UID</DT>
<DD>1 </DD>
<DT>帖子</DT>
<DD>429 </DD>
<DT>精華</DT>
<DD><A
href="http://www.radiobook.cn/digest.php?authorid=1">4</A> </DD>
<DT>積分</DT>
<DD>50 </DD>
<DT>注冊(cè)</DT>
<DD>2007-3-31 </DD>
<DT>閱讀權(quán)限</DT>
<DD>200 </DD>
<DT>來(lái)自</DT>
<DD>中國(guó)黑龍江 </DD>
<DT>威望</DT>
<DD>50 </DD>
<DT>金錢</DT>
<DD>0 </DD></DL>
<P><A href="http://www.radiobook.cn/" target=_blank>查看個(gè)人網(wǎng)站</A></P>
<P><A href="http://www.radiobook.cn/space.php?action=viewpro&uid=1"
target=_blank>查看詳細(xì)資料</A></P></DIV></TD>
<TD class=postcontent>
<DIV class=postactions>
<P><STRONG title=頂部 onclick=scroll(0,0)>TOP</STRONG> </P>
<DIV id=ad_thread1_0></DIV></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV id=ad_interthread></DIV>
<DIV class="mainbox viewthread">
<TABLE id=pid378 cellSpacing=0 cellPadding=0 summary=pid378>
<TBODY>
<TR>
<TD class=postauthor><CITE><A class=dropmenu id=userinfo378
onmouseover=showMenu(this.id)
href="http://www.radiobook.cn/space.php?uid=50"
target=_blank>hgdsnow</A></CITE>
<DIV class=avatar><IMG class=avatar alt=""
src="AD9850 DDS控制子程序 - DDS-鎖相環(huán) - Radiobook DDS鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸PLDFPGAVHDL免費(fèi)虛擬主機(jī) - Powered by Discuz!.files/noavatar.gif"></DIV>
<P><EM>新手上路</EM></P>
<P><IMG alt="Rank: 1"
src="AD9850 DDS控制子程序 - DDS-鎖相環(huán) - Radiobook DDS鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸PLDFPGAVHDL免費(fèi)虛擬主機(jī) - Powered by Discuz!.files/star_level1.gif"></P>
<UL>
<LI class=space><A title=hgdsnow的個(gè)人空間
href="http://www.radiobook.cn/space.php?uid=50" target=_blank>個(gè)人空間</A>
</LI>
<LI class=pm><A id=ajax_uid_378
onclick="ajaxmenu(event, this.id, 9000000, null, 0)"
href="http://www.radiobook.cn/pm.php?action=send&uid=50"
target=_blank>發(fā)短消息</A> </LI>
<LI class=buddy><A id=ajax_buddy_1
onclick="ajaxmenu(event, this.id, null, 0)"
href="http://www.radiobook.cn/memcp.php?action=buddylist&newbuddyid=50&buddysubmit=yes"
target=_blank>加為好友</A> </LI>
<LI class=offline>當(dāng)前離線 </LI></UL></TD>
<TD class=postcontent>
<DIV class=postinfo><STRONG title=復(fù)制帖子鏈接到剪貼板
onclick="setcopy('http://www.radiobook.cn/viewthread.php?tid=16&page=1#pid378', '帖子鏈接已經(jīng)復(fù)制到剪貼板')">2<SUP>#</SUP></STRONG>
<EM onclick="$('postmessage_378').className='t_bigfont'">大</EM> <EM
onclick="$('postmessage_378').className='t_msgfont'">中</EM> <EM
onclick="$('postmessage_378').className='t_smallfont'">小</EM> 發(fā)表于 2007-5-6
10:42 <A
href="http://www.radiobook.cn/viewthread.php?tid=16&page=1&authorid=50">只看該作者</A>
</DIV>
<DIV id=ad_thread2_1></DIV>
<DIV class="postmessage defaultpost">
<DIV id=ad_thread3_1></DIV>
<DIV id=ad_thread4_1></DIV>
<H2>好</H2>
<DIV class=t_msgfont
id=postmessage_378>不知能否加我QQ349942412<BR>想請(qǐng)教</DIV></DIV>
<DIV></DIV></TD></TR>
<TR>
<TD class=postauthor>
<DIV class="popupmenu_popup userinfopanel" id=userinfo378_menu
style="DISPLAY: none">
<DL>
<DT>UID</DT>
<DD>50 </DD>
<DT>帖子</DT>
<DD>11 </DD>
<DT>精華</DT>
<DD><A
href="http://www.radiobook.cn/digest.php?authorid=50">0</A> </DD>
<DT>積分</DT>
<DD>0 </DD>
<DT>注冊(cè)</DT>
<DD>2007-5-6 </DD>
<DT>閱讀權(quán)限</DT>
<DD>10 </DD>
<DT>來(lái)自</DT>
<DD></DD>
<DT>威望</DT>
<DD>0 </DD>
<DT>金錢</DT>
<DD>0 </DD></DL>
<P><A href="http://www.radiobook.cn/space.php?action=viewpro&uid=50"
target=_blank>查看詳細(xì)資料</A></P></DIV></TD>
<TD class=postcontent>
<DIV class=postactions>
<P><STRONG title=頂部 onclick=scroll(0,0)>TOP</STRONG> </P>
<DIV id=ad_thread1_1></DIV></DIV></TD></TR></TBODY></TABLE></DIV>
<DIV class="mainbox viewthread">
<TABLE id=pid799 cellSpacing=0 cellPadding=0 summary=pid799>
<TBODY>
<TR>
<TD class=postauthor><A name=lastpost></A><CITE><A class=dropmenu
id=userinfo799 onmouseover=showMenu(this.id)
href="http://www.radiobook.cn/space.php?uid=182"
target=_blank>waiwai8066</A></CITE>
<DIV class=avatar><IMG class=avatar alt=""
src="AD9850 DDS控制子程序 - DDS-鎖相環(huán) - Radiobook DDS鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸PLDFPGAVHDL免費(fèi)虛擬主機(jī) - Powered by Discuz!.files/noavatar.gif"></DIV>
<P><EM>新手上路</EM></P>
<P><IMG alt="Rank: 1"
src="AD9850 DDS控制子程序 - DDS-鎖相環(huán) - Radiobook DDS鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸PLDFPGAVHDL免費(fèi)虛擬主機(jī) - Powered by Discuz!.files/star_level1.gif"></P>
<UL>
<LI class=space><A title=waiwai8066的個(gè)人空間
href="http://www.radiobook.cn/space.php?uid=182" target=_blank>個(gè)人空間</A>
</LI>
<LI class=pm><A id=ajax_uid_799
onclick="ajaxmenu(event, this.id, 9000000, null, 0)"
href="http://www.radiobook.cn/pm.php?action=send&uid=182"
target=_blank>發(fā)短消息</A> </LI>
<LI class=buddy><A id=ajax_buddy_2
onclick="ajaxmenu(event, this.id, null, 0)"
href="http://www.radiobook.cn/memcp.php?action=buddylist&newbuddyid=182&buddysubmit=yes"
target=_blank>加為好友</A> </LI>
<LI class=offline>當(dāng)前離線 </LI></UL></TD>
<TD class=postcontent>
<DIV class=postinfo><STRONG title=復(fù)制帖子鏈接到剪貼板
onclick="setcopy('http://www.radiobook.cn/viewthread.php?tid=16&page=1#pid799', '帖子鏈接已經(jīng)復(fù)制到剪貼板')">3<SUP>#</SUP></STRONG>
<EM onclick="$('postmessage_799').className='t_bigfont'">大</EM> <EM
onclick="$('postmessage_799').className='t_msgfont'">中</EM> <EM
onclick="$('postmessage_799').className='t_smallfont'">小</EM> 發(fā)表于
2007-7-29 12:38 <A
href="http://www.radiobook.cn/viewthread.php?tid=16&page=1&authorid=182">只看該作者</A>
</DIV>
<DIV id=ad_thread2_2></DIV>
<DIV class="postmessage defaultpost">
<DIV id=ad_thread3_2></DIV>
<DIV id=ad_thread4_2></DIV>
<H2>程序</H2>
<DIV class=t_msgfont
id=postmessage_799>能否把省略的程序也貼出來(lái)啊??或者發(fā)到我的郵箱有可以啊,謝謝樓主了。我的郵箱<A
href="mailto:lhpostbox@126.com">lhpostbox@126.com</A></DIV></DIV>
<DIV></DIV></TD></TR>
<TR>
<TD class=postauthor>
<DIV class="popupmenu_popup userinfopanel" id=userinfo799_menu
style="DISPLAY: none">
<DL>
<DT>UID</DT>
<DD>182 </DD>
<DT>帖子</DT>
<DD>1 </DD>
<DT>精華</DT>
<DD><A
href="http://www.radiobook.cn/digest.php?authorid=182">0</A> </DD>
<DT>積分</DT>
<DD>0 </DD>
<DT>注冊(cè)</DT>
<DD>2007-7-29 </DD>
<DT>閱讀權(quán)限</DT>
<DD>10 </DD>
<DT>來(lái)自</DT>
<DD></DD>
<DT>威望</DT>
<DD>0 </DD>
<DT>金錢</DT>
<DD>0 </DD></DL>
<P><A href="http://www.radiobook.cn/space.php?action=viewpro&uid=182"
target=_blank>查看詳細(xì)資料</A></P></DIV></TD>
<TD class=postcontent>
<DIV class=postactions>
<P><STRONG title=頂部 onclick=scroll(0,0)>TOP</STRONG> </P>
<DIV id=ad_thread1_2></DIV></DIV></TD></TR></TBODY></TABLE></DIV></FORM>
<DIV class=pages_btns>
<DIV class=threadflow><A
href="http://www.radiobook.cn/redirect.php?fid=13&tid=16&goto=nextoldset">??
上一主題</A> | <A
href="http://www.radiobook.cn/redirect.php?fid=13&tid=16&goto=nextnewset">下一主題
??</A></DIV><SPAN class=postbtn id=newspecialtmp
onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><A
href="http://www.radiobook.cn/post.php?action=newthread&fid=13&extra="><IMG
title=發(fā)新話題 alt=發(fā)新話題
src="AD9850 DDS控制子程序 - DDS-鎖相環(huán) - Radiobook DDS鎖相環(huán)頻率合成大學(xué)生電子設(shè)計(jì)大賽中文器件資料下載調(diào)頻發(fā)射單片機(jī)無(wú)線數(shù)據(jù)傳輸PLDFPGAVHDL免費(fèi)虛擬主機(jī) - Powered by Discuz!.files/newtopic.gif"
border=0></A></SPAN> <SPAN class=replybtn><A
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -