📄 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();//状态字节(溢出位和通道指示),没有用到,丢弃
<br>.............
<br>} //---------------------------------------------------------------------------------
<br>
<br>
<br>其中部分配置参数数组如下
<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,
//设置所有通道设置寄存器
<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>在设置所有通道寄存器的时候第一行0x31表示选择物理通道一进行设置
<br>第二行按照阵列访问方式应该是到第二个通道了,参数第一个不应该是0x31而应该是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">快速回复帖子主题:关于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以内)</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) 技术论坛 -> <a href="javascript:history.go(-1)" class="tt4">搜索主题:CS5532</a> -> 关于cs5532的初始化问题
</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 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">任何建议或投诉,欢迎随时与我们联系。 ourDEV.cn 我们的电子开发网,没有广告的纯技术交流净土,“这里远比混乱的现实世界美好”。 </font></td></tr>
<tr bgcolor="#dddddd">
<td class="f02" align="right" height="22" width="20%">网站负责人: </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%">
东莞市东城八一路同沙工业园内,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%">
本网站由东莞科士通(Infostone)科技有限公司属下的<a href="http://www.mailshop.cn/" target="_blank" class="tt4">阿莫电子邮购部</a>提供独家赞助。有正式的工商注册与网站备案。详情可到东莞工商局查询。<br>
本网站(ourDEV.cn)原名称为ourAVR.com(我们的AVR),自2007-09-01起从专业的AVR网转成综合电子网站。<br>
本网站系统由armok Using Oracle + Java/JSP + WebLogic + Linux 2001/12/20 -- 2007/09/13<br>
本BBS所有代码均为原创,版权归 armok 所有。本网站自: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%">
本网站尊重知识产权,自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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -