• slider image 71
  • slider image 72
  • slider image 73
:::


Browsing this Thread:   1 Anonymous Users






SPI 傳輸 Arduino(Master) to SAM D21 Xplained Pro(Slave)
#1
新會員
新會員


查看用戶資訊
Hi,
想請教各位, 我想以SPI的方式將Arduino(Master)某一字串傳給SAM D21 Xplained Pro(Slave), 但Debug後發現是Slave一直沒有收到值, 想請問此應用是否有可參考的code?
參考來源(已試過Arduino(Master) spi Arduino(Slave)沒問題, 連接方式參照Arduino的PIN腳接到SAM D21 Xplained Pro相應的PIN腳, GND有互接):
Arduino(Master):http://www.tastones.com/zh-tw/tutoria ... ial_peripheral_interface/

SAMD21(Slave):example project (spi driver slave callback)

希望能以Arduino(Master)-- spi--> SAM D21 Xplained Pro(Slave)方式傳輸。

Best regards,
JYLin

發表於: 5/25 23:44
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: SPI 傳輸 Arduino(Master) to SAM D21 Xplained Pro(Slave)
#2
管理員
管理員


查看用戶資訊
我使用Studio 7裡面的SAMD21 SPI example code (MASTRE/SLAVE), 拿兩片SAMD21 Xplained EVB對接測試是正常的喔!
檢查SPI Master/Slave 的MISO與MOSI是否交換對接, 或者勾示波器量一下看哪一邊動作異常

Attach file:



jpg  (0.00 KB)


jpg  (0.00 KB)


發表於: 5/26 8:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
You cannot start a new 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.

[進階搜尋]