智能车制作

标题: 测速问题 [打印本页]

作者: liudan    时间: 2008-6-23 02:58
标题: 测速问题
<><FONT size=4>我用的是交大那种光电编码器,输出脉冲到ECT,请问使用16位脉冲累加器A对应的是输入端口是不是PT2,累加后的值是不是PACN32的值?</FONT></P>
作者: liudan    时间: 2008-6-23 04:23
标题: Re:测速问题
<>设置PACTL_PAEN=1时将PAC2与PAC3级联成16位脉冲累加器A ,PT7为输入引脚;</P><P>设置PBCTL_PBEN=1时将PAC0与PAC1级联成16位脉冲累加器A ,PT0为输入引脚。</P>
作者: LCL_data    时间: 2008-6-23 04:45
标题: Re:测速问题
这个寄存器读一次自动清零?
作者: liudan    时间: 2008-6-23 05:17
标题: Re:测速问题
可是 128芯片ppt介绍里是这么说的&nbsp;<DIV class=O v:shape="_x0000_s1026"><DIV><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: &#39;Times New Roman&#39;; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><B><I>Note 1</I></B></SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: &#39;Times New Roman&#39;; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><I>: PTx may be used as Pulse Accumulator, </I></SPAN></DIV><DIV><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: &#39;Times New Roman&#39;; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><I>Input Capture or Output Compare pin. </I></SPAN></DIV><DIV><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><I></I></SPAN></DIV><DIV><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: &#39;Times New Roman&#39;; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><I>Where PTx = PT0 - PT3 </I></SPAN></DIV><DIV><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: &#39;Times New Roman&#39;; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><EM>那不是只能用0123口吗,和 7口怎么会有关系?</EM></SPAN></DIV><DIV><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: &#39;Times New Roman&#39;; mso-ascii-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: 宋体; mso-hansi-font-family: &#39;Times New Roman&#39;; mso-fareast-language: ZH-CN"><EM></EM></SPAN>&nbsp;</DIV><DIV style="TEXT-ALIGN: center; mso-line-spacing: &#39;100 50 0&#39;">&nbsp;</DIV><DIV style="TEXT-ALIGN: center; mso-line-spacing: &#39;100 50 0&#39;">&nbsp;</DIV><DIV style="TEXT-ALIGN: center; mso-line-spacing: &#39;100 50 0&#39;">&nbsp;</DIV><DIV style="TEXT-ALIGN: center; mso-line-spacing: &#39;100 50 0&#39;">&nbsp;</DIV><DIV style="TEXT-ALIGN: center; mso-line-spacing: &#39;100 50 0&#39;">&nbsp;</DIV></DIV>
作者: whut_wj    时间: 2008-6-23 19:30
标题: Re:测速问题
<>那是级联的情况,比不级联要复杂一些.</P>
作者: cybersmart    时间: 2008-6-24 03:36
标题: Re:测速问题
<>这和你用的是不是交大的速度传感器没啥关系吧。。。。。</P>
作者: liuyiran    时间: 2008-6-26 03:38
标题: Re:测速问题
级联后用的就是7口!文档里说得很清楚。




欢迎光临 智能车制作 (http://111.231.132.190/) Powered by Discuz! X3.2