• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: 請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#7
資深會員
資深會員


查看用戶資訊
最近測試的結果,I2C 和 SPI 連 CLOCK 腳都不要共用比較好,
因為原本測試 SPI 時沒什麼問題,
但換到 I2C 時,存取個幾次之後就沒有反應了,
我看還是乖乖的將 DATA 和 CLOCK 分開好了。

發表於: 2009/3/24 13:58
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#6
版主
版主


查看用戶資訊
有人可以相互討論真好。

參照:
使用SPI時
I2C的SDA固定為Hi,所以不會有start stop條件發生。


因為在PIC的 SSP Module 設計中,SDA 腳又為 SDI 腳,所以在做 SPI 傳輸時,SDI 是對方 SPI 送回來的訊號很難避免位準的改變所以很有可能就產生了 Start Condiction 的條件造成 I2C Slave 誤動作,這是我的看法。

發表於: 2009/3/20 11:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#5
資深會員
資深會員


查看用戶資訊
補充說明一下
共用CLK腳,是在SPI跟I2C都不是用Hardware的情況下,也就是用程式寫的Master SPI及I2C。

我的看法說明如下
使用SPI時
I2C的SDA固定為Hi,所以不會有start stop條件發生。

使用I2C時
SPI的CS固定為Hi,SPI不會動作。

發表於: 2009/3/20 10:01
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#4
版主
版主


查看用戶資訊
我認為 SPI 的 CLock 干擾 SCL 腳造成 I2C Slave Device 的誤判。

發表於: 2009/3/20 9:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#3
資深會員
資深會員


查看用戶資訊
單獨並聯CLOCK腳應該是可以的,DATA腳不可以並聯,雖然沒試過,但理論上應該可行

發表於: 2009/3/19 15:11
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#2
版主
版主


查看用戶資訊
I2C 和 I2C 之間彼此是可以並在一塊的,因為是用 Slave Address 來區別。 SPI 與 SPI 也是可以並在一起但要用CS腳來區隔。

I2C 與 SPI 應該不能並在一起,主要是I2C 在 SCL 為 Hi 時不允許有 SDA 的變動,不然 I2C 將視為 Start or Restart or Stop Condiction 的狀態而啟動內部的 Step Mechine 的動作造成 I2C 卡死的現象。

發表於: 2009/3/19 11:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問 I2C 和 SPI 的 DATA 和 CLOCK 腳可以並聯嗎?
#1
資深會員
資深會員


查看用戶資訊
大家好:

例如我現在有一顆 24LC08 是 I2C 介面,
另一顆 MCP3201 是 SPI 介面,

我想要節省 CPU 的 IO 腳,
如果兩顆 IC 的 DATA 和 CLOCK 可以並聯的話,
這樣我只需要 3 支 IO 就可以控制兩顆 IC,
不知道可不可以這樣做?是否有人試過?
謝謝。

發表於: 2009/3/18 15:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------