• slider image 442
  • slider image 497
  • slider image 498
  • slider image 499
  • slider image 500
  • slider image 502
:::


Browsing this Thread:   1 Anonymous Users






Re: RS485通訊,怎知道有資料接收進來?
#5
資深會員
資深會員


查看用戶資訊
當然要接電阻防止訊號反射。

發表於: 2007/6/29 11:27
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS485通訊,怎知道有資料接收進來?
#4
資深會員
資深會員


查看用戶資訊
參照:

jubel 寫到:
謝了
跟i2c一樣等待接收時都是高準位
被拉到低準位時代表有裝置要發送訊息了是嗎
不同點是雙線通訊會有一條CLK供對應資料內容
而單線通訊則必須依照設定的鮑率自己計算資料內容



參照:

想再請問一下
PIC接75176是直接把TX接D,RX接到R就好了是嗎?
需不需要接顆電阻到地來讓訊號更確實?

請參考
http://cs.nju.edu.cn/yangxc/dcc2003.files/jszc-sub/jszc-066.html

RS485 儀器連線示範(二) (用google 搜尋)


發表於: 2007/6/29 11:26
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS485通訊,怎知道有資料接收進來?
#3
資深會員
資深會員


查看用戶資訊
謝了
跟i2c一樣等待接收時都是高準位
被拉到低準位時代表有裝置要發送訊息了是嗎
不同點是雙線通訊會有一條CLK供對應資料內容
而單線通訊則必須依照設定的鮑率自己計算資料內容

想再請問一下
PIC接75176是直接把TX接D,RX接到R就好了是嗎?
需不需要接顆電阻到地來讓訊號更確實?

發表於: 2007/6/29 10:34
木亟缶夬金戔
彳艮缶夬金戔
走召缶夬金戔
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS485通訊,怎知道有資料接收進來?
#2
資深會員
資深會員


查看用戶資訊
>> 老是有不明原因通訊中斷...
這要靠自己慢慢查了

>>當資料匯流排都是空的時候
>>75176都沒有接收到資料傳給PIC
>>這時PIC的RX都是低準位
>>那PIC怎麼知道目前是沒有資料還是收到00H ?
和RS232一樣ㄚ, 收到Hi->Lo就是啟始位元, 不過基本上不需要擔心, PIC會自己判斷的

>>TX負責傳送,RX負責接收
>>那怎麼知道目前要開始接收資料了?
剛開始所有device 都切到rx(75176),
進入等待狀態(entry idle mode, neither tx mode nor rx mode)
只有要發送的device 切到tx (entry tx mode)
這樣其他device 只要一收到有資料進來就開始接收(entry rx mode)
並且不可進入 tx狀態
直到資料接收完畢(all device reentry idle mode)

>> 單線通訊是怎麼判斷接收開始跟接收結束?
接收開始如上述...
接收結速有兩方法, 都靠軟體自行定義
1. 在資料串開頭定義好待傳送資料長度
2. 設定特訂字元為結束字元 (ex. 0xF2)

發表於: 2007/6/29 10:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


RS485通訊,怎知道有資料接收進來?
#1
資深會員
資深會員


查看用戶資訊
最近一直在弄RS485通訊
老是有不明原因通訊中斷...

我想請問一下
當資料匯流排都是空的時候
75176都沒有接收到資料傳給PIC
這時PIC的RX都是低準位
那PIC怎麼知道目前是沒有資料還是收到00H ?
TX負責傳送,RX負責接收
那怎麼知道目前要開始接收資料了?

這種應該算是單線通訊吧
雙線通訊還有一個CLK可以對應
單線通訊是怎麼判斷接收開始跟接收結束?

發表於: 2007/6/29 9:33
木亟缶夬金戔
彳艮缶夬金戔
走召缶夬金戔
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... ]

教育訓練中心

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