Browsing this Thread:
1 Anonymous Users
|
PIC18F4550相關SPI問題
|
|
新會員
Joined
: 2008/11/26 15:25 最後登入時間
: 2014/7/2 8:46
Group:
註冊會員
Level : 2 HP : 0 / 46 MP : 5 / 2157 EXP : 86
|
您好,我使用PIC18F4550撰寫 我目前在撰寫SPI程式 void main(void){ unsigned char rcvdByte; OpenSPI(SPI_FOSC_16, MODE_01, SMPMID); while(1)// Infinite loop { WriteSPI(0x55); rcvdByte = ReadSPI(); } } 這是MASTER範例 程式執行,SCK (RB1)與SDO(RC7)輸出正常(透過示波器觀察) 將SDI(RB0)與SDO(RC7)連接,但是程式變數(rcvdByte)卻無法接收到訊號(0x55)。 請教各位 謝謝
Attach file:
Link only for registered users
發表於: 2010/1/6 20:29
|
|
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.