• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   2 Anonymous Users






Re: 有關MCP2515 filter 一個問題請教
#2
管理員
管理員


查看用戶資訊
你好, 恭賀新禧 :)
我想你問的應該是 MCP2515 data sheet 4.5.1 中的說明吧 !
因為要支援一些特定的高層通信協定(HLP) , 所以 MCP2515 特別增加了 Data Byte Filtering 的功能. 也就是說當接收有 11-bit 的 Standard Data Frame 時 , 除了可以檢查 11-bit 的 Message ID 是否符合 Mask & Filter 的檢查之外 , 也能再多檢查另外 16-bit 的資料是否合於接收要求 , 也就是置於 Data Byte 0 & 1 的資料( Data Frame 的前兩個 Data Bytes ).
是否記得每一個接收 Buffer (RXB0 & RXB1) 都有一個對應的 Mask (RXM0 & RXM1). 而 RXM0 對應到 2 個 Filter ( RXF0 & RXF1) , RXM1 對應到 4 個 Filter ( RXF2 .. RXF5 ) ? 當 MCP2515 設定為只接收 Standard Data Frame 時 , 用來檢查 Message ID 的就只有各 MASK & Filter 的 2 個Bytes . 而 MASK & Filter 的其它兩個 Byte 是無用的 ( 如 RXM0EIDL & RXM0EIDH).
所以 MCP2515 就自動的利用 Standard Data Frame 用不到的兩個 Bytes 來檢查 Data0 & Data1. 相對的暫存器如下 :
(1) RXB0 , 使用 RXM0EIDL & RXM0EIDH 為 Data Checking 的 MASK. 使用 RXF0EIDL & RXF0EIDH or RXF1EIDL & RXF1EIDH 為 Data Checking 的 Filter
(2) RXB1 , 使用 RXM1EIDL & RXM1EIDH 為 Data Checking 的 MASK. 使用 (RXF2EIDL & RXF2EIDH )or (RXF3EIDL & RXF3EIDH) or ( RXF4EIDL & RXF4EIDH) or (RXF5EIDL & RXF5EIDH) 為 Data Checking 的 Filter

>> 若不想檢查 Data0 & Data1 , 只要將相對應的 MASK 設為 0 就可以了 ( 例如 : RXM0EIDL = 0 , RXM0EIDH = 0 ).

新年事事如意 :)

發表於: 2007/2/22 0:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


有關MCP2515 filter 一個問題請教
#1
新會員
新會員


查看用戶資訊
有人可回答在MCP2515 接收standard data frams (11-bit identifier) 這MCP2515 automatically applies 16 bits of mask and filters. 請問這16bits(2 bytes) 是我們接收8 bytes 資料的byte0 and byte1 或者還是代表其它意思?

發表於: 2007/2/16 11:37
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... ]

教育訓練中心

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