完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我正在制作一个电路连接PIC18F420到无线电模块使用SPI。目前还不清楚在PIC上使用哪一个引脚。有4X连接MISO,MOSI,SCK和CS。PIC是主控器,我很确定MISO=SDI MoSi=SDO,CS和SCK引脚需要任何特殊引脚吗?或者他们应该连接到SC和SCK引脚。我有一个想法,这两个引脚是选择PIC。欢呼,Camerart。
以上来自于百度翻译 以下为原文 Hi, I am making a circuit connecting a PIC 18F4520 to a radio module using SPI. It isn't clear which pins to use on the PIC. There are 4x connections MISO, MOSI, SCK and CS. The PIC is the master, I'm pretty sure that MISO=SDI MOSI=SDO Do the CS and SCK pins need to be any special pins? or should they connect to the SC and SCK pins. I have a thought that these two pins are for selecting the PIC. Cheers, Camerart. |
|
相关推荐
16个回答
|
|
SDI和SDO的缺点是,它们不清楚它们是与主控方还是与从属方有关。因此,MISO和MOSI更加清楚:MOSI在主控方是SDO,并且必须与从属方的SDI连接……等等。
以上来自于百度翻译 以下为原文 SDI and SDO have the disadvantage that they don't make it clear if they relate to master or the slave's side Hence, MISO and MOSI are more clear: MOSI is SDO at the Master and must be connected to SDI at the Slave... and so on. |
|
|
|
添加:当然,SCK转到SCK,然后您需要一个通用的I/O引脚,您将使用它作为CS(芯片选择),从主服务器到从服务器的SS。
以上来自于百度翻译 以下为原文 Add: of course SCK goes to SCK and then you need a generic I/O pin that you'll use as the CS (chip select) from the Master to the SS of the Slave. |
|
|
|
正如达里奥所言,当PIC充当奴隶时,PIC PIN标示为“SS”,仅用于该功能。这是一个通用的I/O引脚时,PIC是一个主人。
以上来自于百度翻译 以下为原文 As Dario stated. The PIC pin labelled "SS" is only dedicated to that function when the PIC is acting as a slave. It is a general I/O pin when the PIC is a master. |
|
|
|
你好,看起来很容易,直到它不工作:PIC主芯片从机。PIC SDO到芯片MOSIPIC SDI到芯片MISOPIC SCK到芯片SCK到芯片SCK的通用I/O到芯片CS,这是正确的吗?谢谢,Camerart。
以上来自于百度翻译 以下为原文 Hi both, It looks easy till it doesn't workwink: PIC master chip slave. PIC SDO to CHIP MOSI PIC SDI to CHIP MISO PIC SCK to CHIP SCK PIC generic I/O to CHIP CS Is this correct? Thanks, Camerart. |
|
|
|
|
|
|
|
嗨,D,谢谢。我才刚刚开始这么做。
以上来自于百度翻译 以下为原文 Hi D, Thanks. I've only just started so only set-up so far. C |
|
|
|
|
|
|
|
你好,我不明白你的问题吗?我刚开始写一个程序,需要知道哪个引脚在哪里。我使用Oshonsoft模拟器,它用SPI引脚设置进行模拟。
以上来自于百度翻译 以下为原文 Hi Q, I don't follow your question? I'm just starting to write a program, and needed to know which pins go where. I use Oshonsoft simulator, and it simulates so far, with the SPI pin setting. C |
|
|
|
你在帖子#5上的评论(“看起来很容易,直到它不工作”)似乎暗示你尝试过,但它不起作用。我可以看出,这可能只是一个即兴评论。
以上来自于百度翻译 以下为原文 Your comment in post #5 ("It looks easy till it doesn't work"), seemed to imply you tried that, but it wasn't working. I can see it was probably just an off the cuff comment. |
|
|
|
嗨,你好,是的,我刚才说,在一个项目中,有一条线或逗号不合适,它不能正常工作,但是启动一条线看起来很容易。
以上来自于百度翻译 以下为原文 Hi Q, Yes, I was just saying, that one wire or comma out of place in a project and it won't work properly, yet when starting one it looks easy. C. |
|
|
|
嗨,你好,是的,我刚才说,在一个项目中,有一条线或逗号不合适,它不能正常工作,但是启动一条线看起来很容易。
以上来自于百度翻译 以下为原文 Hi Q, Yes, I was just saying, that one wire or comma out of place in a project and it won't work properly, yet when starting one it looks easy. C. |
|
|
|
嗨,你好,是的,我刚才说,在一个项目中,有一条线或逗号不合适,它不能正常工作,但是启动一条线看起来很容易。
以上来自于百度翻译 以下为原文 Hi Q, Yes, I was just saying, that one wire or comma out of place in a project and it won't work properly, yet when starting one it looks easy. C. |
|
|
|
嗨,你好,是的,我刚才说,在一个项目中,有一条线或逗号不合适,它不能正常工作,但是启动一条线看起来很容易。
以上来自于百度翻译 以下为原文 Hi Q, Yes, I was just saying, that one wire or comma out of place in a project and it won't work properly, yet when starting one it looks easy. C. |
|
|
|
嗨,你好,是的,我刚才说,在一个项目中,有一条线或逗号不合适,它不能正常工作,但是启动一条线看起来很容易。
以上来自于百度翻译 以下为原文 Hi Q, Yes, I was just saying, that one wire or comma out of place in a project and it won't work properly, yet when starting one it looks easy. C. |
|
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
677浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 11:53 , Processed in 1.679085 second(s), Total 107, Slave 90 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号