| 
 | 
 
有谁会spi (serial peripheral interface)可以帮忙我解答以下的问题吗?谢谢。。。 
 
1。    什么是mode number? (combination of CPOL and CPHA, 请参考mode number corner) 
2。    spi的真正application 是什么?我懂它的concept但是不懂它的用途 
3。    为什么会有clock polarity and phase的signal 传送法?他们除了传送方式不同还有什么特别的用途吗?什么情况下得选择什么样的transmission法?(refer clock polarity and phase corner) 
 
 
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
发表于 8-9-2007 09:32 AM
|
显示全部楼层
 
 
 
回复 #1 darlling5147 的帖子
小妹,为什么会问起SPI bus 来了? 
 
SPI是一种bus, 比I2C容易多多咯。。。 
 
SPI 就好像 RS232, 分别是: 
SPI是Sync Clock, clock 是由Master 发出的。 
RS232 是ASync , clock 是 两个Device自身Generate的。 
 
RS232是有 Start Bit, Parity Bit, Stop Bit,  
SPI 没有, 游戏规则可以是你来定的,或看你要interface的是什么。 
 
SPI的速度可以很快, 也可以很慢, 可以去到几十MHz以上。 |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
 楼主 |
发表于 8-9-2007 10:23 AM
|
显示全部楼层
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
发表于 8-9-2007 12:11 PM
|
显示全部楼层
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
 楼主 |
发表于 8-9-2007 12:54 PM
|
显示全部楼层
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
 楼主 |
发表于 8-9-2007 01:08 PM
|
显示全部楼层
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
		
 | 
 | 
 
 
 楼主 |
发表于 9-9-2007 02:48 PM
|
显示全部楼层
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
 楼主 |
发表于 9-9-2007 04:45 PM
|
显示全部楼层
 
 
 
clock polarity and phase是用来让master知道是否slave存在没有,对吗?是沟通上的用途。 
 
对不对呀? |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 | 
 | 
 
 
发表于 9-9-2007 06:40 PM
|
显示全部楼层
 
 
 
原帖由 darlling5147 于 9-9-2007 04:45 PM 发表   
clock polarity and phase是用来让master知道是否slave存在没有,对吗?是沟通上的用途。 
 
对不对呀?   
 
里面已经有讲解的了。 
cpol, cpha只是决定data exchange的方式罢了。 
master不懂有没有slave的存在。 
cs决定master和哪一个slave communicate. 
越多slave,越多io port需要哪来当cs.。最少是log2(total slave). 
 
spi速度快,不过io数目使用量会随着slave的增加一起增加。 
i2c的好处是2 wires,可以连接很多slave.靠protocol来解决不flexible的问题。 理论上用两条可以同时间接去128个device。 |   
 
 
 
 |  
| 
 | 
 
 
 | 
 | 
 
| 
 | 
 | 
 
 
 
 
 |   | 
            本周最热论坛帖子
 
 
 
 |