智能车制作

 找回密码
 注册

扫一扫,访问微社区

查看: 3309|回复: 6
打印 上一主题 下一主题

测速问题

[复制链接]

0

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
219
威望
197
贡献
22
兑换币
0
注册时间
2008-3-3
在线时间
0 小时
跳转到指定楼层
1#
发表于 2008-6-23 02:58:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<><FONT size=4>我用的是交大那种光电编码器,输出脉冲到ECT,请问使用16位脉冲累加器A对应的是输入端口是不是PT2,累加后的值是不是PACN32的值?</FONT></P>

0

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
219
威望
197
贡献
22
兑换币
0
注册时间
2008-3-3
在线时间
0 小时
2#
 楼主| 发表于 2008-6-23 04:23:33 | 只看该作者

Re:测速问题

<>设置PACTL_PAEN=1时将PAC2与PAC3级联成16位脉冲累加器A ,PT7为输入引脚;</P><P>设置PBCTL_PBEN=1时将PAC0与PAC1级联成16位脉冲累加器A ,PT0为输入引脚。</P>
回复 支持 反对

使用道具 举报

0

主题

37

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
306
威望
254
贡献
44
兑换币
20
注册时间
2007-12-18
在线时间
4 小时
3#
发表于 2008-6-23 04:45:23 | 只看该作者

Re:测速问题

这个寄存器读一次自动清零?
回复 支持 反对

使用道具 举报

0

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
219
威望
197
贡献
22
兑换币
0
注册时间
2008-3-3
在线时间
0 小时
4#
 楼主| 发表于 2008-6-23 05:17:20 | 只看该作者

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>
回复 支持 反对

使用道具 举报

14

主题

929

帖子

1

精华

功勋会员

WJ

Rank: 10Rank: 10Rank: 10

积分
6304

特殊贡献奖章

威望
1456
贡献
4674
兑换币
17
注册时间
2008-4-6
在线时间
87 小时
5#
发表于 2008-6-23 19:30:17 | 只看该作者

Re:测速问题

<>那是级联的情况,比不级联要复杂一些.</P>
回复 支持 反对

使用道具 举报

0

主题

11

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
215
威望
189
贡献
26
兑换币
0
注册时间
2008-6-24
在线时间
0 小时
6#
发表于 2008-6-24 03:36:12 | 只看该作者

Re:测速问题

<>这和你用的是不是交大的速度传感器没啥关系吧。。。。。</P>
回复 支持 反对

使用道具 举报

0

主题

24

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
351
威望
263
贡献
54
兑换币
0
注册时间
2008-1-21
在线时间
17 小时
7#
发表于 2008-6-26 03:38:00 | 只看该作者

Re:测速问题

级联后用的就是7口!文档里说得很清楚。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关于我们|联系我们|小黑屋|智能车制作 ( 黑ICP备2022002344号

GMT+8, 2024-9-24 09:23 , Processed in 0.075825 second(s), 32 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表