Sending Large amounts of data In MSCAN.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Sending Large amounts of data In MSCAN.

1,598 次查看
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 回复数

405 次查看
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 项奖励

405 次查看
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 项奖励