• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
:::


Browsing this Thread:   1 Anonymous Users






Re: 有沒有快速判別canbus ID的方法
#4
版主
版主


查看用戶資訊
既然是要監控 CAN Bus資料美伊比都要收,那硬體將幫不了忙了,自己看軟體去比對吧! 你可以先比大項(MSB)做分類後再比小項目(LSB)。將ID拆開後用 8-bit 的方式比會比較快速的。(你敢用組合語言寫 CAN !!! 上帝保佑你 )

發表於: 2008/1/25 14:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 有沒有快速判別canbus ID的方法
#3
新會員
新會員


查看用戶資訊
可是我要做的是監控can BUS 上資料的處理器,
每一筆資料都要收而且要做對應的處理,
不能夠把can上的資料檔在外面耶!
所以我是想問有沒有快速的軟體判斷方法

發表於: 2008/1/24 21:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 有沒有快速判別canbus ID的方法
#2
版主
版主


查看用戶資訊
比對 Message ID?? 不都是透過 MASKER & FILLTER 用硬體方式比較嗎? 應該不用作軟體的比較吧! 不是你設定的 ID 是不會被收進來的也不會產生中斷的。

發表於: 2008/1/24 16:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


有沒有快速判別canbus ID的方法
#1
新會員
新會員


查看用戶資訊
各位先進好,小弟我目前正在練習canbus的傳輸程式

目前再id判別上有一點小疑問,

想請問一下不知道有沒有快速查詢或是比對id的方法

還是說就只能一個一個比對呢??

以下是我的CODE(一個一個比對):


RECEIVE ;receive back-signal
MOVLF b'00000000',CANCON
BTFSS RXB0CON,RXFUL
BRA $-2
MOVFF RXB0SIDH,TEMP
BCF RXB0CON,RXFUL
BCF PIR3,RXB0IF
COMPARE B'00000111',COUNT1
GOTO COMPARE1
GOTO STEP2

; COMPARE&CHECKING THE RECEIVED MESSAGE

COMPARE1
COMPARE FC,TEMP
GOTO COMPARE2
MOVLW .1
ADDWF COUNT1,1
GOTO RECEIVE

COMPARE2
COMPARE BATTERY,TEMP
GOTO COMPARE3
MOVLW .2
ADDWF COUNT1,1
GOTO RECEIVE

COMPARE3
COMPARE MOTOR,TEMP
GOTO RECEIVE
MOVLW .4
ADDWF COUNT1,1
GOTO RECEIVE


其中COMPARE和MOVLF是我的巨集,

COMPARE 是來比對接收到的id和預設的id,
MOVLFRU就是把MOVLW和MOVWF的結合


我用的是PIC18F4585!


發表於: 2008/1/24 15:04
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... ]

教育訓練中心

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