📄 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 + -