• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






RS-485的問題
#1
中級會員
中級會員


查看用戶資訊
如果要使用RS-485一定要使用Address給每個裝置吧??
那如果要使用RS-485與PC通訊的話,也一定要使用擴充卡吧??
那擴充卡若是只有8個data bits時,
那各裝置的位址是不是就要由軟體控制而非硬體偵測了呢...??

發表於: 2004/12/20 16:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#2
版主
版主


查看用戶資訊
1. 不一定,這要看你使用何種模式 全雙工、半雙工 ? 建議使用半雙工 addressable mode (也就是 9-bit address mode)

2. 應該要吧! PC沒有RS-485的介面

3. 不曉的你的意思

4. 有 9-bit address mode 的 UART 就可以用硬體偵測傳送進來的Serial data 是屬於 位址或是資料,如果是用軟體檢查那就要 Polling 這就要花較多的時間。

建議找一些有關 RS-584 的規格看看,用 GooGle 一找就很多的

http://www.hw.cz/english/docs/rs485/rs485.html

發表於: 2004/12/20 17:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#3
新會員
新會員


查看用戶資訊
一般RS485皆是半雙工,若要全雙工要使用RS-422的界面,
PC沒有RS-485的介面,可在市面上找到很多RS232轉RS485(或RS-422)的介面

發表於: 2004/12/20 20:32
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#4
中級會員
中級會員


查看用戶資訊
3.因為在市面上找得到的RS-485介面卡,其資料位元數均只有8 bits,找不到9 bits的...
那是不是就無法使用9 bits的Address detect模式了呢?!

發表於: 2004/12/22 10:30
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#5
資深會員
資深會員


查看用戶資訊
這是16F877A的模式
bit 6 TX9: 9-bit Transmit Enable bit
1 = Selects 9-bit transmission
0 = Selects 8-bit transmission
可以選擇8bit或9bit

發表於: 2004/12/22 11:24
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#6
資深會員
資深會員


查看用戶資訊
data sheet裡面有記載很多功能
可以好好KK

發表於: 2004/12/22 11:28
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#7
中級會員
中級會員


查看用戶資訊
看來大家好像沒搞懂我的意思...

我的意思是說:
市面上看得到的RS485介面卡
資料位元的設定最大只到8位元...
若dsPIC與PC要透過RS485傳輸時要使用9bits模式的話是不是就有問題了呢...?!
或是可以找得到資料位元為9 bits的RS485介面卡

發表於: 2004/12/23 9:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#8
資深會員
資深會員


查看用戶資訊
**看來大家好像沒搞懂我的意思...

==>是你沒搞懂大家意思

**我的意思是說:
**市面上看得到的RS485介面卡
**資料位元的設定最大只到8位元...

==>485 OR 422根本是已經標準化的東西
哪會有9BIT
因為485 OR 422最後還是要轉換為RS232
請先查一下資料


***若dsPIC與PC要透過RS485傳輸時要使用9bits模式的話是***不是就有問題了呢...?!
**或是可以找得到資料位元為9 bits的RS485介面卡

==>你不一定要用485你可以自行設計啊
假設要用485 那已經是標準化的東西 無解


發表於: 2004/12/23 11:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: RS-485的問題
#9
新會員
新會員


查看用戶資訊
我的看法是這樣
RS485/RS422是通訊界面的電氣規格!
致於data要7,8,9bit,那是protocol的問題

若你一定要RS485 9bit,給你答案 :
你可以參考研華的ADAM-4520/4522

發表於: 2004/12/24 12:58
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... ]

教育訓練中心

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