Arduino MEGA CAN Coms

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Arduino MEGA CAN Coms

Post by Chris_MIRA »

Hi,
Im trying to use CAN comms with the Arduino MEGA, BUT the CAN options in the properties list only allow for 20 or 8 MHz, the Mega is 16, is there another way of configuring this? Can you send me a fix to include 16 MHz or (even better) make it a user set-able value?

regards,
Chris

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Arduino MEGA CAN Coms

Post by LeighM »

Hi Chris
The CAN property speed relates to the crystal/frequency of the MCP2515 CAN controller chip, not the processor. So I hope that is either 20MHz or 8MHz, let me know if not.
We had to go for a fixed list, rather than a variable parameter, as calculating the options for the phase bit lengths gets a bit too complicated.
Thanks
Leigh

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Arduino MEGA CAN Coms

Post by Chris_MIRA »

Hi Leigh,
Thanks for the quick response, Im all sorted and working now :D
Regards,
Chris

Post Reply