Sending Large amounts of data In MSCAN.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sending Large amounts of data In MSCAN.

1,588 Views
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.
Labels (1)
0 Kudos
2 Replies

395 Views
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 Kudos

395 Views
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 Kudos