• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: 請問 CAN Module 中的 Mask 及 Filter
#4
版主
版主


查看用戶資訊
Masker 是指設為 "1" 的位元將會被檢查,如果 Masker 設為 0x000 就表示所有位元將不檢查,這時就算是設了 Filter 也沒用,所有的資料都會被收進來。

如果 masker 設為 0xFF0,代表 b0~b3 將不檢查,Filter 也將不管這四個位元值為何。 b4~b11 將會被檢查且須符合 Filter 裡 b4~b11 的設定值。例如: 此時 Filter 設為 0x3A0,那能被接收的 Message ID 的範圍為 0x3A0 ~0x3AF。 若 Masker Filter 設為 0x3FF,那能被接收的 Message ID 的就只有一個 0x3A0 。

參照:
我 Mask 設 0x200
Filter0 設 0x200
Filter1 設 0x0FF
接收到的 Message_ID 為 0x200

請問在 Filter0 可以接收對吧,那 Filter1 是否會 reject 該筆資
料呢?

Filter0 可以接收,但 Message ID 的範圍為 xx1x xxxx xxxx(b) , Filter1 則會 Reject 這筆資料。


發表於: 2007/10/23 15:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 CAN Module 中的 Mask 及 Filter
#3
高級會員
高級會員


查看用戶資訊
參照:

Filter 都設為零,代表 Message ID 為 0 , 所以 Message ID 0x200 & 0x000 都可以被收進來。


"Filter 都設為零,代表 Message ID 為 0"
<== 這指的是......?,不好意思,我不大懂!

想請教個問題, RXB0 它有兩個 Filter ,這要怎麼比較呢?
RXB1 還有四個 Filter 呢?
請問 CAN 的 Filter 過程是怎麼動作的呢?

如: (單以 RXB0 來說)
我 Mask 設 0x200
Filter0 設 0x200
Filter1 設 0x0FF
接收到的 Message_ID 為 0x200

請問在 Filter0 可以接收對吧,那 Filter1 是否會 reject 該筆資
料呢?

發表於: 2007/10/23 14:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問 CAN Module 中的 Mask 及 Filter
#2
版主
版主


查看用戶資訊
ㄧ個 CAN Node 不是只能允有一個 Message ID,它可以透過不同的 Filter 變成不同的 Message ID , 或使用群體式的 ID 方式。

參照:
Message 的 ID 為 0x200
Mask 設 0x7ff
RXB0 的 Filter0 也設 0x200
其它 Filter 都設 0x00
Filter 都設為零,代表 Message ID 為 0 , 所以 Message ID 0x200 & 0x000 都可以被收進來。如果是 Masker 設為零,那所有資料都不檢查直接就收進來了。

參照:
在 NORMAL 的模式中,一個 Node 只傳,另一個只收,請問這樣的 CAN 設定,收的到資料嗎?
可以收的到。CAN Controller 裡的收、發式各自獨立的模組雙方沒有瓜葛。


發表於: 2007/10/22 13:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問 CAN Module 中的 Mask 及 Filter
#1
高級會員
高級會員


查看用戶資訊
請問在 CAN Module 中,為何要有多個 Filter ?
在 Mask 中不就設定了要過濾的位元了嗎?
這樣不是一個 Filter 就夠了嗎?
請問其它 Filter 有用到嗎?為何 RXB0 跟 RXB1 的 Filter 個數
不一樣?

如果:
Message 的 ID 為 0x200
Mask 設 0x7ff
RXB0 的 Filter0 也設 0x200
其它 Filter 都設 0x00

在 NORMAL 的模式中,一個 Node 只傳,另一個只收,請問這樣
的 CAN 設定,收的到資料嗎?

發表於: 2007/10/19 20:36
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... ]

教育訓練中心

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