完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我是新手。我需要为我过时的望远镜建造一个驱动系统。我用一个引导摄像机来控制跟踪。我设计的板使用SPI。在1847板上,我使用SDO引脚和SCLK引脚发送数据到1938板,我称之为从机。它还接收来自引导相机的信号。我的问题是没有从选择连接。我需要一个,因为没有从奴隶到主人的沟通。
以上来自于百度翻译 以下为原文 I am new at this game. I need to build a drive system for my antiquated telescope. I am using a guide camera to control the tracking. I designed the boards to use SPI. ON the 1847 board, I used the SDO pin AND the SCLK pin to send data to the 1938 board ,which I am calling the slave. It also receives the signals from the guide camera. my problem is there is no slave select connection. Do I need one since there is no communication from slave to master. |
|
相关推荐
4个回答
|
|
SS(从属选择)通常用于保持从属和主同步(也允许多个奴隶)。还有其他方法可以做到这一点,但大多数需要更多的固件和更多的硬件。从属选择方法内置于PIC处理器中的大多数SPI硬件(从从属模式)。代码的同步方法需要更复杂的协议。
以上来自于百度翻译 以下为原文 The SS (slave select) is generally used to keep the slave and master in sync (also to allow for multiple slaves). There are other methods to do this but most require more firmware and or more hardware. The slave select method is built-in to most spi hardware in pic processors (in slave mode). Code methods of sync require more complex protocols. |
|
|
|
最简单的答案是“是的,你做的”。正如杰克所言,任何避免一个问题的解决方案都比添加电线复杂得多。编辑:我注意到,在HTTP://www. McCHIP.COM/FUMMS/M10497 32.ASPX中,你已经得到了同样的问题的答案。请不要启动关于同一任务的多个主题。离子,它会浪费大量的精力,而不知道已经提供了什么答案。
以上来自于百度翻译 以下为原文 The simplest answer is "Yes you do". As Jack stated, any solution to avoid one is a lot more complex than just adding the wire. Edit: I notice you were already getting answers to the same question at http://www.microchip.com/forums/m1049732.aspx Please do not start multiple topics about the same question, it causes a lot of wasted effort not seeing what answers have already been supplied. |
|
|
|
信息谢谢。我回到了这本书的两个芯片,认识到同样的引脚也可以用于I2C协议,所以我将使用I2C。我的下一个问题是1847个输入,这是4个方向针(N,S,E,W)必须激活两个不同的马达,每个有一个方向销和使能引脚,驱动L98电机驱动器从1938芯片(n=(启用A)+(方向+)等)。1847如何告诉1938如何输出纠正PIN。
以上来自于百度翻译 以下为原文 Thanx for the info. I went back into the book on the two chips and realized that the same pins can also be used for I2C protocol so I will use I2C. My next Question is the inputs on 1847 which are 4 directional pins(N,S,E,W)Have to activate two different motors each having a directional pin and an enable pin, driving a L298 motor driver from a 1938 chip(N=(enable A) +(Direction +) and so on. How does 1847 tell 1938 how to output to correct pin. |
|
|
|
Hiu正在创建系统,所以您还必须为2个PICS之间的通信创建某种协议(命令和数据)。这是一个简单的方法,因为您对双方都有充分的控制。
以上来自于百度翻译 以下为原文 Hi You are creating the system, so you must also create some kind of protocol (commands and data) for the communication between the 2 PICs. And this is an easy one, because you have full control on both sides. Best regards Jorge |
|
|
|
只有小组成员才能发言,加入小组>>
5159 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2223 浏览 5 评论
724浏览 1评论
608浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
496浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
621浏览 0评论
520浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 22:36 , Processed in 1.225102 second(s), Total 52, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号