?? bbs_content.jsp.htm
字號:
<html><head>
<link rel="STYLESHEET" href="bbs_content.jsp_files/bbs.css" type="text/css"><title>有人用過cs5522(或5532)嗎? ---AVR (原ourAVR.com) 技術論壇</title></head><body bgproperties="fixed" leftmargin="15" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="15" text="#000000"><br>
<script type="text/javascript">
function loadfunction(function_1)
{
var url = function_1.options[function_1.selectedIndex].value;
if (url != "")
{
if(function_1.options[function_1.selectedIndex].className=="class_1")
{
eval(function_1.options[function_1.selectedIndex].value);
}
else if(function_1.options[function_1.selectedIndex].className=="class_2")
{
window.open(url, "");
}
else
{
window.open(url, "class_3");
}
function_1.selectedIndex=0
}
return false;
}
</script>
<table bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="1" height="20" width="100%">
<tbody><tr>
<td width="26%">
<span class="f01">
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="14">歡迎您,ilan2003
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="7"><span class="f03"><font color="#444444">|登錄</font></span>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="2"><span class="f03"><font color="#444444">|快速注冊</font></span>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="2"><a href="http://www.ouravr.com/bbs/logout.jsp?mother_form=bbs_content.jsp&bbs_sn=512677&bbs_id=1000&bbs_page_no=1" title="退出登錄,并回到首頁" class="tt4">|退出</a>
</span>
</td>
<td align="right" width="74%">
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="5"><a href="http://www.ouravr.com/index.html" title="回到本站首頁" class="tt4">首頁</a>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="5"><a href="http://www.ouravr.com/bbs/search_interface.jsp?mother_form=bbs_content.jsp&bbs_sn=512677&bbs_id=1000&bbs_page_no=1" target="_blank" title="搜索" class="tt4">搜索</a>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="5"><a href="http://www.ouravr.com/bbs/online_members_list.jsp" title="當前在線會員" target="_blank" class="tt4">在線</a>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="2">
<select name="list1" onchange="javascript:loadfunction(this)">
<option>個人功能</option>
<option>--------------</option>
<option target="_blank" value="user_data.jsp">修改個人資料</option>
<option target="_blank" value="bbs_list.jsp?search_text=ilan2003&search_mode=3&bbs_id=9999">我的主題</option>
<option target="_blank" value="bbs_list.jsp?search_text=ilan2003&search_mode=4&bbs_id=9999">我的回復</option>
</select> <img src="bbs_content.jsp_files/pixel.gif" height="1" width="2">
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="5"><a href="http://www.mailshop.cn/" title="阿莫電子郵購服務部" target="_blank" class="tt11">本網站由阿莫電子郵購獨家贊助</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) 技術論壇 -> <a href="javascript:history.go(-1)" class="tt4">返回: 分類清單</a> -> 有人用過cs5522(或5532)嗎?
</span>
</td>
<td align="center" valign="top">
<span class="tt1">跳轉至:</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) 技術論壇</option><option value="1032">║├AT-ARM技術論壇</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">╟┬悠閑休息區 (灌水壇)</option><option value="1012">║├網站建設與建議</option><option value="0020">║└招標/招聘/自薦(項目招標、找工作、招人)</option><option value="1011">╙┬二手交易置換論壇</option><option value="2040"> ├廣告、求購區</option><option value="2034"> └其它(非技術、非悠閑)</option>
</select>
</td>
<td align="right" valign="top">
</td>
</tr>
</tbody></table>
<table border="0" cellpadding="6" cellspacing="0" height="30" width="100%">
<tbody><tr bgcolor="#5d7790">
<td align="left" width="81%">
<span class="f06"><font color="#ffffff">貼子主題:有人用過cs5522(或5532)嗎?</font></span>
</td>
<td align="center" width="19%">
<span class="f06"><font color="#ffffff">回復數:</font><font color="#ffffff">20</font>
(其中0條已刪除)
</span>
</td>
</tr>
</tbody></table>
<table bgcolor="#e8e8e8" border="0" cellpadding="0" cellspacing="0" height="30" width="100%">
<tbody><tr>
<td>
<img src="bbs_content.jsp_files/pixel.gif" height="2" width="20">
<span class="f06"><font color="#444444">相關鏈接:</font>
<font color="#444444">本貼沒有相關鏈接</font></span>
</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: solid; border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255) rgb(187, 187, 187); border-width: 0.5pt;" align="left" bgcolor="#d1d9e2" valign="top" width="19%">
【樓主位】 <font color="#000000">rainboyfdy </font><br>
積分:<font color="#000000">62</font><br>
派別:<font color="#000000"></font><br>
等級:<font color="#000000">------</font><br>
來自:<font color="#000000"></font><br>
</td>
<td class="f03" style="border-style: solid solid none none; border-color: rgb(255, 255, 255) rgb(187, 187, 187) -moz-use-text-color -moz-use-text-color; border-width: 0.5pt 0.5pt medium medium;" bgcolor="#d1d9e2" valign="top" width="81%">
<font color="#000000">我想做個最大量程為5V的ADC,有資料嗎?我對著DATASHEET看,沒看懂,也沒個具體的示例。。。。。。編出來的代碼好象不行。。。。
<br>各位指點一下。我把代碼附上
<br>/*---------------------------------------------------------------*/
<br>void Write_CS5522(uchar byte) /*往CS 5522里寫入1個字節,高位在前*/
<br>{
<br> SetBit(CS5522_DDR,CS5522_SCLK);//時鐘和數據線設置為輸出模式
<br> SetBit(CS5522_DDR,CS5522_SDI);
<br>
<br> uchar i;
<br> ClrBit(CS5522_PORT,CS5522_SCLK); //CLOCK為0
<br> for(i=0;i<8;i++)
<br> {
<br> if(byte&0x80)
<br> SetBit(CS5522_PORT,CS5522_SDI);
<br> else ClrBit(CS5522_PORT,CS5522_SDI);
<br>
<br> SetBit(CS5522_PORT,CS5522_SCLK);
<br> ClrBit(CS5522_PORT,CS5522_SCLK);
<br>
<br> byte=byte<<1;
<br> }
<br>
<br>}
<br>/*---------------------------------------------------------------*/
<br>
<br>*---------------------------------------------------------------*/
<br>uchar Read_5522() /*從CS 5522里讀出1個字節*/
<br>{
<br> SetBit(CS5522_DDR,CS5522_SCLK);//時鐘設置為輸出模式
<br> ClrBit(CS5522_DDR,CS5522_SDO); //和數據線設置為輸入模式,以接收數據
<br>
<br> uchar AD8bit,i;
<br> AD8bit=0;
<br> for(i=0;i<8;i++)
<br> {
<br> if( GetPinValue(CS5522_PORT,CS5522_SDO)/*如果SDO為1*/ )AD8bit=(AD8bit|0x01);
<br> AD8bit=(AD8bit<<1);
<br> ClrBit(CS5522_PORT,CS5522_SCLK);
<br> SetBit(CS5522_PORT,CS5522_SCLK);
<br> }
<br> return (AD8bit) ;
<br>}
<br>/*---------------------------------------------------------------*/
<br></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.jsp_files/pixel.gif" height="1" width="7">2005-09-22,15:44:46
</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.jsp_files/pixel.gif" height="1" width="7">
<a href="http://www.ouravr.com/bbs/user_information.jsp?user_name=rainboyfdy" class="tt4" target="_blank">資料</a>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="7">
<span class="f01">郵件</span>
<img src="bbs_content.jsp_files/pixel.gif" height="1" width="7">
</td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -