Sending Large amounts of data In MSCAN.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Sending Large amounts of data In MSCAN.

2,152件の閲覧回数
Saud
Contributor I
suppose i want to send 256 bytes of data at a go on the CAN bus ,what is the best strategy to do so ?
Currently what i am doing is reloading the CAN buffer registers after sending 1 frame in the transmit ISR and recalling the Send routine and this goes on till all bytes are transmitted.
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

959件の閲覧回数
Bibi
Contributor I
hi,
 
Acording to the CAN specification you can only send 8 bytes in a frame.
So I think the way you send your data is a good one.
 
But you can also write your data in a global large buffer, enable the transfert of a frame and use the Tx interrupt to enable the transfert of the other data.
 
0 件の賞賛
返信

959件の閲覧回数
Alban
Senior Contributor II
Yo,
 
That's where the X-Gate will be nicely used !
You would give it the buffer of data and it would send all the CAN packets by 8 without the CPU having to worry about anything.
Neat :smileytongue:
 
Alban.
0 件の賞賛
返信