?? bbs_content.jsp2.htm
字號:
<br> AD_read();
<br> AD_read();
<br> }
<br> for(i=0;i<35;i++)
<br> {
<br> AD_write(ADInitData[i]);
<br> }
<br>}
<br>//cs5532采樣
<br>void AD_sample(void)
<br>{
<br> unsigned char data[4];
<br> AD_write(0x0c);
<br> data[3]=0;
<br> data[2]=AD_read();
<br> data[1]=AD_read();
<br> data[0]=AD_read();
<br> AD_read();//狀態(tài)字節(jié)(溢出位和通道指示),沒有用到,丟棄
<br>.............
<br>} //---------------------------------------------------------------------------------
<br>
<br>
<br>其中部分配置參數(shù)數(shù)組如下
<br>const unsigned char ADInitData[35]=
<br> {0x41,
<br> 0xfe,0x00,0x00,0x00, //通道0
<br> 0xfe,0x00,0x00,0x00, //通道1
<br> 0xfe,0x00,0x00,0x00, //通道2
<br> 0xfe,0x00,0x00,0x00, //通道3
<br> 0x45,
//設(shè)置所有通道設(shè)置寄存器
<br> 0x31,0xc0,0x31,0xc0,
//0x31:12.5Hz,通道1(1、2腳)
<br> 0x31,0xc0,0x31,0xc0,
//0x71,通道2(19、20腳)
<br> 0x31,0xc0,0x31,0xc0,
<br> 0x31,0xc0,0x31,0xc0,
<br> 0xc0};
<br>
<br>在設(shè)置所有通道寄存器的時候第一行0x31表示選擇物理通道一進行設(shè)置
<br>第二行按照陣列訪問方式應(yīng)該是到第二個通道了,參數(shù)第一個不應(yīng)該是0x31而應(yīng)該是0x71 注釋好像是對的 是不是前面寫錯了 還是有其他原因 請各位大蝦們指教 不勝感激。</font>
</td>
</tr>
<tr>
<td class="f03" style="border-style: none solid solid none; border-color: -moz-use-text-color rgb(187, 187, 187) rgb(255, 255, 255) -moz-use-text-color; border-width: medium 0.5pt 0.5pt medium;" bgcolor="#d1d9e2" valign="bottom">
</td>
</tr>
<tr>
<td class="f03" style="border-style: none solid solid; border-color: -moz-use-text-color rgb(255, 255, 255) rgb(187, 187, 187) rgb(187, 187, 187); border-width: medium 0.5pt 0.5pt;" align="left" bgcolor="#d1d9e2" width="19%">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">2007-06-14,09:38:48
</td>
<td class="f03" style="border-style: none solid solid none; border-color: -moz-use-text-color rgb(187, 187, 187) rgb(187, 187, 187) -moz-use-text-color; border-width: medium 0.5pt 0.5pt medium;" bgcolor="#d1d9e2" valign="top" width="81%">
<table width="100%">
<tbody><tr>
<td align="left">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<a href="http://www.ouravr.com/bbs/user_information.jsp?user_name=dongdaxing" class="tt4" target="_blank">資料</a>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<span class="f01">郵件</span>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
</td>
<td align="right">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<span class="f01">編輯</span>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<span class="f01">刪除</span>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<table style="table-layout: fixed;" border="0" cellpadding="6" cellspacing="0" width="100%">
<tbody><tr>
<td class="f03" rowspan="2" style="border-style: none solid solid; border-color: -moz-use-text-color rgb(187, 187, 187) rgb(187, 187, 187); border-width: medium 0.5pt 0.5pt;" align="left" bgcolor="#e8e8e8" valign="top" width="19%">
【1樓】 <font color="#000000">quray </font><br>
積分:<font color="#000000">99</font><br>
派別:<font color="#000000"></font><br>
等級:<font color="#000000">------</font><br>
來自:<font color="#000000"></font><br>
</td>
<td class="f03" style="border-style: none solid none none; border-color: -moz-use-text-color rgb(187, 187, 187) -moz-use-text-color -moz-use-text-color; border-width: medium 0.5pt medium medium;" bgcolor="#e8e8e8" valign="top" width="81%">
<font color="#000000">我也想學習,能交流一下嗎?</font>
</td>
</tr>
<tr>
<td class="f03" style="border-style: none solid solid none; border-color: -moz-use-text-color rgb(187, 187, 187) rgb(187, 187, 187) -moz-use-text-color; border-width: medium 0.5pt 0.5pt medium;" bgcolor="#e8e8e8" valign="bottom">
</td>
</tr>
<tr>
<td class="f03" style="border-style: none solid solid; border-color: -moz-use-text-color rgb(187, 187, 187) rgb(187, 187, 187); border-width: medium 0.5pt 0.5pt;" align="left" bgcolor="#e8e8e8" width="19%">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">2007-08-31,21:38:09
</td>
<td class="f03" style="border-style: none solid solid none; border-color: -moz-use-text-color rgb(187, 187, 187) rgb(187, 187, 187) -moz-use-text-color; border-width: medium 0.5pt 0.5pt medium;" bgcolor="#e8e8e8" valign="top" width="81%">
<table width="100%">
<tbody><tr>
<td align="left">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<a href="http://www.ouravr.com/bbs/user_information.jsp?user_name=quray" class="tt4" target="_blank">資料</a>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<a href="mailto:zhz13456@163.com" class="tt4">郵件</a>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
</td>
<td align="right">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="2">
<span class="f01">編輯</span>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<span class="f01">刪除</span>
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
<img src="bbs_content.jsp2_files/pixel.gif" height="1" width="7">
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<table border="0" cellpadding="6" cellspacing="0" width="100%">
<tbody><tr>
<td align="left" bgcolor="#5d7790">
<span class="f03"><font color="#ffffff">快速回復(fù)帖子主題:關(guān)于cs5532的初始化問題</font></span>
</td>
</tr>
</tbody></table>
<table border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr><td bgcolor="#e6e6e6">
<span class="f06"><font color="#888888"></font></span>
</td>
</tr>
</tbody></table>
<form method="post" action="bbs_save.jsp?bbs_sn=762826&bbs_id=1000">
<table align="center" bgcolor="#d1d9e2" border="0" cellpadding="0" cellspacing="0" height="10" width="100%">
<tbody><tr>
<td align="center">
<textarea name="replycontent" cols="120" rows="14" maxlength="5000" style="" 9pt=""></textarea>
</td>
</tr>
<tr>
<td align="center">
<input value=" 提 交 " style="font-size: 9pt; font-weight: bold;" type="submit">
</td>
</tr>
</tbody></table> </form>
<table align="center" bgcolor="#d1d9e2" border="0" cellpadding="0" cellspacing="0" height="10" width="100%">
<tbody><tr>
<td align="center">
<a href="http://www.ouravr.com/bbs/upload.html" class="tt9" target="_blank">上傳文件(10M以內(nèi))</a>
<img src="bbs_content.jsp2_files/pixel.gif" height="2" width="20">
<a href="http://www.ouravr.com/bbs/emotion/emotion.html" class="tt9" target="_blank">加入表情</a>
<img src="bbs_content.jsp2_files/pixel.gif" height="2" width="20"><a href="http://www.ouravr.com/bbs/upload_large.html" class="tt9" target="_blank">上傳巨大文件(無限大的文件)</a>
</td>
</tr>
</tbody></table>
<table bgcolor="#ffffff" border="0" cellpadding="6" cellspacing="0" height="60" width="100%">
<tbody><tr>
<td align="left" valign="top">
<span class="tt1">
AVR (原ourAVR.com) 技術(shù)論壇 -> <a href="javascript:history.go(-1)" class="tt4">搜索主題:CS5532</a> -> 關(guān)于cs5532的初始化問題
</span>
</td>
<td align="center" valign="top">
<span class="tt1">跳轉(zhuǎn)至:</span>
<select name="forumid" onchange="window.location=('bbs_list.jsp?bbs_id='+this.options[this.selectedIndex].value)">
<option value="9999">╟—ourDEV.cn 虛擬總論壇(可查看所有分論壇帖子)</option><option value="2060">╟┬電子綜合</option><option selected="selected" value="1000">║├AVR (原ourAVR.com) 技術(shù)論壇</option><option value="1032">║├AT-ARM技術(shù)論壇</option><option value="1006">║├51單片機</option><option value="1028">║├PIC單片機</option><option value="1002">║├DSP</option><option value="1029">║├CPLD/FPGA</option><option value="2070">║├其它單片機與PLC</option><option value="1009">║├PCB(Protel等軟件討論)</option><option value="1024">║└機器人論壇</option><option value="1003">╟—馬潮老師專欄(AVR)</option><option value="1004">╟┬電腦綜合論壇</option><option value="1036">║└共享小軟件</option><option value="1020">╟┬悠閑休息區(qū) (灌水壇)</option><option value="1012">║├網(wǎng)站建設(shè)與建議</option><option value="0020">║└招標/招聘/自薦(項目招標、找工作、招人)</option><option value="1011">╙┬二手交易置換論壇</option><option value="2040"> ├廣告、求購區(qū)</option><option value="2034"> └其它(非技術(shù)、非悠閑)</option>
</select>
</td>
<td align="right" valign="top">
</td>
</tr>
</tbody></table>
<table align="center" bgcolor="#0099ff" border="0" cellpadding="0" cellspacing="1" width="100%">
<tbody><tr bgcolor="#444444"><td colspan="5" class="f02" align="center" height="30"><font color="white">任何建議或投訴,歡迎隨時與我們聯(lián)系。 ourDEV.cn 我們的電子開發(fā)網(wǎng),沒有廣告的純技術(shù)交流凈土,“這里遠比混亂的現(xiàn)實世界美好”。 </font></td></tr>
<tr bgcolor="#dddddd">
<td class="f02" align="right" height="22" width="20%">網(wǎng)站負責人: </td>
<td class="f02" align="left" height="22" width="80%"> 阿莫(armok),手機:13433056000,電郵:13902245677@21cn.com,MSN:armokarmok@hotmail.com</td>
</tr>
<tr bgcolor="#dddddd">
<td class="f02" align="right" height="22" width="20%">地址與電話:</td>
<td class="f02" align="left" height="22" width="80%">
東莞市東城八一路同沙工業(yè)園內(nèi),0769-22298000,傳真請按4<br>
</td>
</tr>
<tr bgcolor="#dddddd">
<td class="f02" align="right" height="22" width="20%">聲明: </td>
<td class="f02" align="left" height="22" width="80%">
本網(wǎng)站由東莞科士通(Infostone)科技有限公司屬下的<a href="http://www.mailshop.cn/" target="_blank" class="tt4">阿莫電子郵購部</a>提供獨家贊助。有正式的工商注冊與網(wǎng)站備案。詳情可到東莞工商局查詢。<br>
本網(wǎng)站(ourDEV.cn)原名稱為ourAVR.com(我們的AVR),自2007-09-01起從專業(yè)的AVR網(wǎng)轉(zhuǎn)成綜合電子網(wǎng)站。<br>
本網(wǎng)站系統(tǒng)由armok Using Oracle + Java/JSP + WebLogic + Linux 2001/12/20 -- 2007/09/13<br>
本BBS所有代碼均為原創(chuàng),版權(quán)歸 armok 所有。本網(wǎng)站自:2004-10-03,16:31:17 起開始運行。</td>
</tr>
<tr bgcolor="#dddddd">
<td class="f02" align="right" height="22" width="20%">法律顧問: </td>
<td class="f02" align="left" height="22" width="80%">
本網(wǎng)站尊重知識產(chǎn)權(quán),自2007年08月15日起,<a href="http://www.ouravr.com/about_weilong.html" class="tt4" target="_blank">魏龍律師</a>擔任ourDEV.cn(原ourAVR.com)常年法律顧問。</td>
</tr>
</tbody></table>
<br>
</body></html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -