Browsing this Thread:
1 Anonymous Users
|
Re: 請問一下dsPIC30f6012搭配SPI介面的Flash memory的問題?
|
|
版主
Joined
: 2004/4/30 10:53 最後登入時間
: 2021/11/30 18:11
From CAE, Microchip
Group:
站務管理者 註冊會員
Level : 75 HP : 744 / 1861 MP : 5367 / 108941 EXP : 45
|
SPI 有 四種 Mode:
Mode 0,0 : CKP=0 , CKE=1 ==> SCK rising edge 時 Latch Data. Mode 0,1 : CKP=0 , CKE=0 ==> SCK falling edge 時 Latch Data. Mode 1,0 : CKP=1 , CKE=1 ==> SCK falling edge 時 Latch Data. Mode 1,0 : CKP=1 , CKE=0 ==> SCK rising edge 時 Latch Data.
dsPIC 的 SPI並沒有詳細得基本說明,你可以參考 PIC18F452 data sheet 的 FIGURE 15-5 & 15-6及TABLE 15-1 的說明
所以你只要設定 SPI1CON 的 CKE & CKP 位元就可以控制 SPI的工作模式了。
發表於: 2005/5/10 14:49
|
|
|
請問一下dsPIC30f6012搭配SPI介面的Flash memory的問題?
|
|
新會員
Joined
: 2004/8/24 20:08 最後登入時間
: 2005/5/10 10:49
Group:
註冊會員
Level : 2 HP : 0 / 46 MP : 5 / 2682 EXP : 86
|
請問dsPIC30F6012搭配SPI介面的Flash memory時,如何將dsPIC30f6012設定成SPI介面的mode0或mode3的型式,因為datasheet中只有顯示出4種SCK時脈產生的方式,看了也不甚了解,因此想請教曾使用過的人. 謝謝
發表於: 2005/5/10 10:57
|
|
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.