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
Arduino MEGA CAN Coms
Moderator: Benj
-
- Posts: 186
- Joined: Wed Jan 23, 2013 3:43 pm
- Has thanked: 2 times
- Been thanked: 21 times
- Contact:
- 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
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
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
-
- Posts: 186
- Joined: Wed Jan 23, 2013 3:43 pm
- Has thanked: 2 times
- Been thanked: 21 times
- Contact:
Re: Arduino MEGA CAN Coms
Hi Leigh,
Thanks for the quick response, Im all sorted and working now
Regards,
Chris
Thanks for the quick response, Im all sorted and working now
Regards,
Chris